WP Statistics - Version 13.2.4

Version Description

= 13.0 = IMPORTANT NOTE Welcome to WP Statistics v13.0, our biggest update! Thank you for being part of our community. Weve been working hard for one year to develop this version and make WP Statistics better for you. Before updating, make sure you disabled all your add-ons, then after that, try to update add-ons.

If you encounter any bug, please create an issue on GitHub where we can act upon them more efficiently. Since GitHub is not a support forum, just bugs are welcomed, and any other request will be closed.

Download this release

Release Info

Developer mostafa.s1990
Plugin Icon 128x128 WP Statistics
Version 13.2.4
Comparing to
See all releases

Code changes from version 13.2.3 to 13.2.4

Files changed (46) hide show
  1. assets/css/admin.min.css +1 -1
  2. assets/dev/javascript/config.js +1 -1
  3. assets/dev/javascript/meta-box.js +4 -1
  4. assets/dev/javascript/meta-box/devices.js +86 -0
  5. assets/dev/javascript/meta-box/manufacturers.js +86 -0
  6. assets/dev/javascript/run.js +1 -1
  7. assets/dev/sass/component/meta-box.scss +5 -5
  8. assets/dev/sass/component/ui.admin.scss +1 -1
  9. assets/dev/sass/pages/add-one.scss +1 -1
  10. assets/dev/sass/pages/setting.scss +2 -2
  11. assets/dev/sass/pages/welcome.scss +1 -1
  12. assets/js/admin.min.js +1 -1
  13. includes/admin/class-wp-statistics-admin-notices.php +12 -4
  14. includes/admin/meta-box/wp-statistics-meta-box-devices.php +128 -0
  15. includes/admin/meta-box/wp-statistics-meta-box-models.php +128 -0
  16. includes/admin/pages/class-wp-statistics-admin-page-optimization.php +56 -58
  17. includes/admin/pages/class-wp-statistics-admin-page-settings.php +49 -82
  18. includes/admin/templates/layout/tabs-settings.php +0 -1
  19. includes/admin/templates/optimization/database.php +63 -57
  20. includes/admin/templates/optimization/historical.php +4 -3
  21. includes/admin/templates/optimization/updates.php +30 -36
  22. includes/admin/templates/settings.php +0 -3
  23. includes/admin/templates/settings/externals.php +6 -9
  24. includes/admin/templates/settings/general.php +2 -2
  25. includes/admin/templates/settings/notifications.php +2 -2
  26. includes/admin/templates/settings/wp-cli.php +0 -64
  27. includes/api/v2/class-wp-statistics-api-hit.php +5 -25
  28. includes/class-wp-statistics-admin-bar.php +2 -2
  29. includes/class-wp-statistics-cli.php +8 -19
  30. includes/class-wp-statistics-exclusion.php +2 -2
  31. includes/class-wp-statistics-frontend.php +2 -42
  32. includes/class-wp-statistics-helper.php +94 -4
  33. includes/class-wp-statistics-hits.php +3 -1
  34. includes/class-wp-statistics-install.php +21 -1
  35. includes/class-wp-statistics-meta-box.php +39 -23
  36. includes/class-wp-statistics-option.php +4 -4
  37. includes/class-wp-statistics-pages.php +1 -1
  38. includes/class-wp-statistics-rest-api.php +2 -2
  39. includes/class-wp-statistics-search-engine.php +1 -1
  40. includes/class-wp-statistics-user-agent.php +15 -3
  41. includes/class-wp-statistics-user.php +1 -1
  42. includes/class-wp-statistics-visitor.php +2 -0
  43. includes/class-wp-statistics-widget.php +1 -1
  44. includes/class-wp-statistics.php +7 -2
  45. readme.txt +25 -18
  46. wp-statistics.php +2 -2
assets/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- .wps-text-danger{color:#DC3545 !important}.wps-text-success{color:#459605 !important}.wps-text-warning{color:#dc6b26 !important}.wps-text-muted{color:#797979 !important}.wps-center{text-align:center !important}.wps-d-none{display:none}.wps-d-inline-block{display:inline-block}.wps-middle-vertical{vertical-align:middle}a[href*='?page=wps_break_menu']{pointer-events:none}.wps-cursor-default{cursor:default}.wp-core-ui .btn-danger{background:rgba(186,0,0,0.74);border-color:rgba(170,0,0,0.77) rgba(153,0,0,0.74) rgba(153,0,0,0.74);box-shadow:0 1px 0 rgba(153,0,0,0.74);color:#fff;text-decoration:none;text-shadow:0 -1px 1px rgba(153,0,0,0.74),1px 0 1px rgba(153,0,0,0.74),0 1px 1px rgba(153,0,0,0.74),-1px 0 1px rgba(153,0,0,0.74)}.wp-core-ui .btn-danger:hover{background:#c20000;border-color:#990000;color:#fff}.wp-core-ui .btn-danger:active{background:rgba(170,0,0,0.75);border-color:rgba(153,0,0,0.74);box-shadow:inset 0 2px 0 rgba(153,0,0,0.75)}.wp-core-ui .btn-danger:focus{box-shadow:0 1px 0 rgba(170,0,0,0.75),0 0 2px 1px rgba(219,51,51,0.75);background:rgba(194,0,0,0.75);border-color:rgba(153,0,0,0.75);color:#fff;outline:0 !important}.wps-btn-inline{vertical-align:-2px;margin:0 5px}.wps-m-top-20{margin-top:20px}.wps-text-wrap{display:inline-block;overflow:hidden;white-space:nowrap;width:100% !important}.wps-width-100{width:100% !important}.wps-200-px{width:200px !important}.wps-inline{display:inline}.wps_page_title{display:inline-block;vertical-align:-15px;margin-top:10px;margin-bottom:10px;margin-right:5px}.wps_title{display:inline;font-size:1.6em}.wp-statistics-container{margin:0 auto}.wps-pull-right{float:right}.wps-pull-left{float:left}@media print{#wpadminbar,#adminmenuback,#adminmenuwrap,#show-settings-link{display:none}#wpcontent,#wpfooter{margin-left:0px}}#wpadminbar #wp-admin-bar-wp-statistic-menu .ab-icon:before{content:'\f184';top:2px}#wp-admin-bar-wp-statistics-menu-page{text-align:center}#wp-admin-bar-wp-statistics-menu-page .ab-item{height:auto !important}#wp-admin-bar-wp-statistics-menu-page a{padding-bottom:4px !important}#wp-admin-bar-wp-statistics-menu-page a img{max-width:200px}#wp-admin-bar-wp-statistics-menu-page .wps-admin-bar__chart__unlock-button{background-color:#2f5a82;padding:1px 0px;color:#ffffff;line-height:21px;font-size:12px;border-radius:2px;display:table;margin:0 auto;width:100%}.pagination-wrap{clear:both;display:block;overflow:hidden;text-align:center;margin-top:25px}.pagination-wrap .wps-page-number{color:#148e00;direction:rtl;margin-top:4px}.pagination-wrap .page-numbers li{margin-bottom:0;display:inline-block}.pagination-wrap .page-numbers li a,.pagination-wrap .pagination-wrap .page-numbers li span{display:inline-block;padding:6px 12px;margin-right:4px;border-radius:3px;border:solid 1px #c0c0c0;background:#e9e9e9;box-shadow:inset 0px 1px 0px rgba(255,255,255,0.8),0px 1px 3px rgba(0,0,0,0.1);font-size:.875em;font-weight:bold;text-decoration:none;color:#717171;text-shadow:0px 1px 0px #fff}.pagination-wrap .page-numbers>li>a:hover,.pagination-wrap .page-numbers>li>span:hover,.pagination-wrap .page-numbers>li>a:focus,.pagination-wrap .page-numbers>li>span:focus{background:#fefefe;background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#FEFEFE), to(#f0f0f0));background:-moz-linear-gradient(#FEFEFE, #f0f0f0)}.pagination-wrap .page-numbers li .current{border:none;background:#616161 !important;box-shadow:inset 0px 0px 8px rgba(0,0,0,0.5),0px 1px 0px rgba(255,255,255,0.8) !important;color:#f0f0f0;text-shadow:0px 0px 3px rgba(0,0,0,0.5);padding:7.5px 14px;vertical-align:-1.5px;margin:-8px 5px -5px 5px;border-radius:5px}i.mce-i-icon-statistic{font:400 20px/1 dashicons;padding:0;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-left:-2px;padding-right:2px}.wp-statistic-mce-desc{color:#b1b1b1 !important;margin-left:82px !important}html[dir="rtl"] .wp-statistic-mce-desc{text-align:right !important;margin:0 82px 0px 0px !important}.wps-gutenberg-chart-js{height:350px}.wps_loading_box{width:100%;text-align:center;min-height:65px;padding-top:15px}.wps-more span,.wps-refresh span{transition:transform .6s ease-in-out;-webkit-transition:-webkit-transform .6s ease-in-out}.wps-more:hover span,.wps-refresh:hover span{color:#00a0d2}.wps-refresh:hover span{transform:rotate(360deg);-webkit-transform:rotate(360deg);color:#00a0d2}.button-link.wps-more,.button-link.wps-refresh{text-decoration:none !important}.wps-postbox-full{width:100%;float:left;margin-right:20px}#wps-big-postbox{width:100%;direction:ltr;margin-top:5px}.log-url{direction:ltr;float:left;font-size:10px;margin:0 0 0 2px;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}#wp_statistics_editor_meta_box,#wp-statistics-browsers-widget,#wp-statistics-countries-widget,#wp-statistics-hitsmap-widget,#wp-statistics-hits-widget,#wp-statistics-pages-widget,#wp-statistics-recent-widget,#wp-statistics-referring-widget,#wp-statistics-search-widget,#wp-statistics-summary-widget,#wp-statistics-words-widget,#wp-statistics-top-visitors-widget,#wps_hits_postbox,#wps_top_visitors_postbox,#wps_search_postbox,#wps_words_postbox,#wps_recent_postbox,#wps_map_postbox,#wps_pages_postbox,#wps_summary_postbox,#wps_browsers_postbox,#wps_referring_postbox,#wps_countries_postbox,#wps_words_postbox{overflow:hidden}#time_zone a{font-size:11px;text-decoration:none}#about-links{margin:0 0 10px}#about-links p{display:inline;font-size:12px;margin:0 2px;font-style:italic}.left-div{float:left}.right-div{float:right}#donate-text{float:left}#donate-button{float:right;margin:-2px 0 0 0}#donate-button a{height:23px;line-height:22px}.wp-statistics-sub-fullwidth{width:100%}.wp-statistics-responsive-table{overflow-x:auto}.wps-postbox-veronalabs{margin:18px 0 0 0}.wps-postbox-veronalabs img{width:116px}.wps-btn-group{text-align:center;margin:25px auto}.wps-btn-group .btn{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wps-btn-group .btn:focus,.wps-btn-group .btn:active:focus,.wps-btn-group .btn.active:focus,.wps-btn-group .btn.focus,.wps-btn-group .btn:active.focus,.wps-btn-group .btn.active.focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.wps-btn-group .btn:hover,.wps-btn-group .btn:focus,.wps-btn-group .btn.focus{color:#333333;text-decoration:none}.wps-btn-group .btn:active,.wps-btn-group .btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.wps-btn-group .btn.disabled,.wps-btn-group .btn[disabled],.wps-btn-group fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);opacity:0.65;-webkit-box-shadow:none;box-shadow:none}.wps-btn-group a.btn.disabled,.wps-btn-group fieldset[disabled] a.btn{pointer-events:none}.wps-btn-group .btn-default{color:#333333;background-color:#ffffff;border-color:#e0e0e0}.wps-btn-group .btn-default:focus,.wps-btn-group .btn-default.focus{color:#333333;background-color:#e6e6e6;border-color:#8c8c8c}.wps-btn-group .btn-default:hover{color:#333333;background-color:#e6e6e6;border-color:#adadad}.wps-btn-group .btn-default:active,.wps-btn-group .btn-default.active,.wps-btn-group .open>.dropdown-toggle.btn-default{color:#333333;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wps-btn-group .btn-default:active:hover,.wps-btn-group .btn-default.active:hover,.wps-btn-group .open>.dropdown-toggle.btn-default:hover,.wps-btn-group .btn-default:active:focus,.wps-btn-group .btn-default.active:focus,.wps-btn-group .open>.dropdown-toggle.btn-default:focus,.wps-btn-group .btn-default:active.focus,.wps-btn-group .btn-default.active.focus,.wps-btn-group .open>.dropdown-toggle.btn-default.focus{color:#333333;background-color:#d4d4d4;border-color:#8c8c8c}.wps-btn-group .btn-default.disabled:hover,.wps-btn-group .btn-default[disabled]:hover,.wps-btn-group fieldset[disabled] .btn-default:hover,.wps-btn-group .btn-default.disabled:focus,.wps-btn-group .btn-default[disabled]:focus,.wps-btn-group fieldset[disabled] .btn-default:focus,.wps-btn-group .btn-default.disabled.focus,.wps-btn-group .btn-default[disabled].focus,.wps-btn-group fieldset[disabled] .btn-default.focus{background-color:#ffffff;border-color:#cccccc}.wps-btn-group .btn-default .badge{color:#ffffff;background-color:#333333}.wps-btn-group .btn-primary{color:#ffffff;background-color:#00a0d2;border-color:#00A0D2}.wps-btn-group .btn-primary:focus,.wps-btn-group .btn-primary.focus{color:#ffffff;background-color:#286090;border-color:#122b40}.wps-btn-group .btn-primary:hover{color:#ffffff;background-color:#286090;border-color:#204d74}.wps-btn-group .btn-primary:active,.wps-btn-group .btn-primary.active,.wps-btn-group .open>.dropdown-toggle.btn-primary{color:#ffffff;background-color:#286090;background-image:none;border-color:#204d74}.wps-btn-group .btn-primary:active:hover,.wps-btn-group .btn-primary.active:hover,.wps-btn-group .open>.dropdown-toggle.btn-primary:hover,.wps-btn-group .btn-primary:active:focus,.wps-btn-group .btn-primary.active:focus,.wps-btn-group .open>.dropdown-toggle.btn-primary:focus,.wps-btn-group .btn-primary:active.focus,.wps-btn-group .btn-primary.active.focus,.wps-btn-group .open>.dropdown-toggle.btn-primary.focus{color:#ffffff;background-color:#204d74;border-color:#122b40}.wps-btn-group .btn-primary.disabled:hover,.wps-btn-group .btn-primary[disabled]:hover,.wps-btn-group fieldset[disabled] .btn-primary:hover,.wps-btn-group .btn-primary.disabled:focus,.wps-btn-group .btn-primary[disabled]:focus,.wps-btn-group fieldset[disabled] .btn-primary:focus,.wps-btn-group .btn-primary.disabled.focus,.wps-btn-group .btn-primary[disabled].focus,.wps-btn-group fieldset[disabled] .btn-primary.focus{background-color:#337ab7;border-color:#2e6da4}.wps-btn-group .btn-primary .badge{color:#337ab7;background-color:#ffffff}.wps-btn-group .btn-danger{color:#ffffff;background-color:#d9534f;border-color:#d43f3a}.wps-btn-group .btn-danger:focus,.wps-btn-group .btn-danger.focus{color:#ffffff;background-color:#c9302c;border-color:#761c19}.wps-btn-group .btn-danger:hover{color:#ffffff;background-color:#c9302c;border-color:#ac2925}.wps-btn-group .btn-danger:active,.wps-btn-group .btn-danger.active,.wps-btn-group .open>.dropdown-toggle.btn-danger{color:#ffffff;background-color:#c9302c;background-image:none;border-color:#ac2925}.wps-btn-group .btn-danger:active:hover,.wps-btn-group .btn-danger.active:hover,.wps-btn-group .open>.dropdown-toggle.btn-danger:hover,.wps-btn-group .btn-danger:active:focus,.wps-btn-group .btn-danger.active:focus,.wps-btn-group .open>.dropdown-toggle.btn-danger:focus,.wps-btn-group .btn-danger:active.focus,.wps-btn-group .btn-danger.active.focus,.wps-btn-group .open>.dropdown-toggle.btn-danger.focus{color:#ffffff;background-color:#ac2925;border-color:#761c19}.wps-btn-group .btn-danger.disabled:hover,.wps-btn-group .btn-danger[disabled]:hover,.wps-btn-group fieldset[disabled] .btn-danger:hover,.wps-btn-group .btn-danger.disabled:focus,.wps-btn-group .btn-danger[disabled]:focus,.wps-btn-group fieldset[disabled] .btn-danger:focus,.wps-btn-group .btn-danger.disabled.focus,.wps-btn-group .btn-danger[disabled].focus,.wps-btn-group fieldset[disabled] .btn-danger.focus{background-color:#d9534f;border-color:#d43f3a}.wps-btn-group .btn-danger .badge{color:#d9534f;background-color:#ffffff}.wps-btn-group .btn-link{font-weight:400;color:#337ab7;border-radius:0}.wps-btn-group .btn-link,.wps-btn-group .btn-link:active,.wps-btn-group .btn-link.active,.wps-btn-group .btn-link[disabled],.wps-btn-group fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.wps-btn-group .btn-link,.wps-btn-group .btn-link:hover,.wps-btn-group .btn-link:focus,.wps-btn-group .btn-link:active{border-color:transparent}.wps-btn-group .btn-link:hover,.wps-btn-group .btn-link:focus{color:#23527c;text-decoration:underline;background-color:transparent}.wps-btn-group .btn-link[disabled]:hover,.wps-btn-group fieldset[disabled] .btn-link:hover,.wps-btn-group .btn-link[disabled]:focus,.wps-btn-group fieldset[disabled] .btn-link:focus{color:#777777;text-decoration:none}.wps-btn-group .btn-block{display:block;width:100%}.wps-btn-group .btn-block+.btn-block{margin-top:5px}.wps-btn-group input[type="submit"].btn-block,.wps-btn-group input[type="reset"].btn-block,.wps-btn-group input[type="button"].btn-block{width:100%}.wps-btn-group .btn-group,.wps-btn-group .btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.wps-btn-group .btn-group>.btn,.wps-btn-group .btn-group-vertical>.btn{position:relative;float:left}.wps-btn-group .btn-group>.btn:hover,.wps-btn-group .btn-group-vertical>.btn:hover,.wps-btn-group .btn-group>.btn:focus,.wps-btn-group .btn-group-vertical>.btn:focus,.wps-btn-group .btn-group>.btn:active,.wps-btn-group .btn-group-vertical>.btn:active,.wps-btn-group .btn-group>.btn.active,.wps-btn-group .btn-group-vertical>.btn.active{z-index:2}.wps-btn-group .btn-group .btn+.btn,.wps-btn-group .btn-group .btn+.btn-group,.wps-btn-group .btn-group .btn-group+.btn,.wps-btn-group .btn-group .btn-group+.btn-group{margin-left:-1px}.wps-btn-group .btn-toolbar{margin-left:-5px}.wps-btn-group .btn-toolbar .btn,.wps-btn-group .btn-toolbar .btn-group,.wps-btn-group .btn-toolbar .input-group{float:left}.wps-btn-group .btn-toolbar>.btn,.wps-btn-group .btn-toolbar>.btn-group,.wps-btn-group .btn-toolbar>.input-group{margin-left:5px}.wps-btn-group .btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.wps-btn-group .btn-group>.btn:first-child{margin-left:0}.wps-btn-group .btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.wps-btn-group .btn-group>.btn:last-child:not(:first-child),.wps-btn-group .btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.wps-btn-group .btn-group>.btn-group{float:left}.wps-btn-group .btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.wps-btn-group .btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.wps-btn-group .btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.wps-btn-group .btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.wps-btn-group .btn-group .dropdown-toggle:active,.wps-btn-group .btn-group.open .dropdown-toggle{outline:0}.wps-btn-group .btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.wps-btn-group .btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.wps-btn-group .btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.wps-btn-group .btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.wps-btn-group .btn .caret{margin-left:0}.wps-btn-group .btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.wps-btn-group .dropup .btn-lg .caret{border-width:0 5px 5px}.wps-btn-group .btn-group-vertical>.btn,.wps-btn-group .btn-group-vertical>.btn-group,.wps-btn-group .btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.wps-btn-group .btn-group-vertical>.btn-group>.btn{float:none}.wps-btn-group .btn-group-vertical>.btn+.btn,.wps-btn-group .btn-group-vertical>.btn+.btn-group,.wps-btn-group .btn-group-vertical>.btn-group+.btn,.wps-btn-group .btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.wps-btn-group .btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.wps-btn-group .btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.wps-btn-group .btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.wps-btn-group .btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.wps-btn-group .btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.wps-btn-group .btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.wps-btn-group .btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.wps-btn-group .btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.wps-btn-group .btn-group-justified>.btn,.wps-btn-group .btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.wps-btn-group .btn-group-justified>.btn-group .btn{width:100%}.wps-btn-group .btn-group-justified>.btn-group .dropdown-menu{left:auto}.wps-btn-group [data-toggle="buttons"]>.btn input[type="radio"],.wps-btn-group [data-toggle="buttons"]>.btn-group>.btn input[type="radio"],.wps-btn-group [data-toggle="buttons"]>.btn input[type="checkbox"],.wps-btn-group [data-toggle="buttons"]>.btn-group>.btn input[type="checkbox"]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.wps-btn-group .clearfix:before,.wps-btn-group .clearfix:after,.wps-btn-group .btn-toolbar:before,.wps-btn-group .btn-toolbar:after,.wps-btn-group .btn-group-vertical>.btn-group:before,.wps-btn-group .btn-group-vertical>.btn-group:after{display:table;content:" "}.wps-btn-group .clearfix:after,.wps-btn-group .btn-toolbar:after,.wps-btn-group .btn-group-vertical>.btn-group:after{clear:both}.wps-btn-group .center-block{display:block;margin-right:auto;margin-left:auto}.wps-btn-group .pull-right{float:right !important}.wps-btn-group .pull-left{float:left !important}.wps-btn-group .hide{display:none !important}div[data-chart-date-picker]{text-align:center;margin-bottom:20px;transition:1s all}div[data-chart-date-picker] input{margin:0px 8px;border-radius:5px;box-shadow:none;padding:5px}div[data-chart-date-picker] input[type=submit]{vertical-align:2px}.wps-ph-item{position:relative;display:flex;flex-wrap:wrap;overflow:hidden;background-color:#fff;direction:ltr}.wps-ph-item,.wps-ph-item *,.wps-ph-item ::after,.wps-ph-item ::before{box-sizing:border-box}.wps-ph-item::before{content:" ";position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;animation:phAnimation 1s linear infinite;background:linear-gradient(to right, rgba(255,255,255,0) 46%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 54%) 50% 50%}.wps-ph-item>*{flex:1 1 auto;display:flex;flex-flow:column;padding-right:10px;padding-left:10px}.wps-ph-row{display:flex;flex-wrap:wrap;margin-bottom:7.5px}.wps-ph-row div{height:15px;margin-bottom:7.5px;background-color:#dee4ea}.wps-ph-row .big,.wps-ph-row.big div{height:20px;margin-bottom:15px}.wps-ph-row .empty{background-color:rgba(255,255,255,0)}.wps-ph-col-2{flex:0 0 16.66667%}.wps-ph-col-4{flex:0 0 33.33333%}.wps-ph-col-6{flex:0 0 50%}.wps-ph-col-8{flex:0 0 66.66667%}.wps-ph-col-10{flex:0 0 83.33333%}.wps-ph-col-12{flex:0 0 100%}.wps-ph-avatar{position:relative;width:100%;min-width:60px;background-color:#dee4ea;margin-bottom:15px;border-radius:50%;overflow:hidden}.wps-ph-avatar::before{content:" ";display:block;padding-top:100%}.wps-ph-picture{width:100%;height:120px;background-color:#dee4ea;margin-bottom:15px}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}.wps-text-placeholder{width:90px;height:25px;margin:0px auto}.wps-badge{display:inline-block;min-width:8px;padding:3px 7px;font-size:12px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:1px;background-color:#DC3545;border-radius:10px}#post-stats{border:none}#th-colspan{text-align:center}#th-colspan span{color:#459605 !important;font-size:30px}#last-visitor tr{text-align:center}#last-visitor tr:first-child{background:none repeat scroll 0 0 #EEEEEE;font-weight:bold;text-align:center}#last-search tr{text-align:center}#last-search tr:first-child{background:none repeat scroll 0 0 #EEEEEE;font-weight:bold;text-align:center}table.wps-table-fixed{table-layout:fixed;width:100%}table.wps-table-auto{table-layout:auto;width:100%}.wps-report-table tr{text-align:left}.wps-report-table tr:first-child{background:none repeat scroll 0 0 #EEEEEE;font-weight:bold;text-align:center}.th-center{text-align:center !important}.td-align{text-align:left}.td-url{color:#009936 !important;direction:ltr;font-size:10px !important;text-align:left;white-space:nowrap}.log-item{border-bottom:1px solid #efeeee;border-top:1px solid #FFFFFF;min-height:46px;padding:3px 7px}.log-item:hover{background:none repeat scroll 0 0 #f7f7f7}.log-referred{float:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}.log-page-title{float:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.log-ip{direction:ltr;float:right;font-size:10px;margin-bottom:5px;white-space:pre;overflow:hidden;text-overflow:ellipsis;text-align:right}.log-tools{float:left;margin:0 2px}.log-agent{float:left}.table-stats tr,.table-stats td{border-bottom:1px solid #efeeee;background-color:white;transition:1s all}.table-stats tr:last-child td{border-bottom:0}.table-stats tr:hover:not(:first-child) td{background-color:rgba(241,241,241,0.65) !important}.table-stats tr:first-child td{border:0 none;text-align:left}.rtl .table-stats.left-align tr,.rtl .table-stats.left-align td{text-align:left !important}.rtl .table-stats tr,.rtl .table-stats td{text-align:right !important}.rtl .table-stats .log-tools{float:right}.rtl .table-stats .th-center{text-align:center !important}.table-stats{border:0 none !important}#visits-log{direction:ltr;height:290px;width:100%}#search-engine-log{direction:ltr}#platform-log{direction:ltr}#visits-stats{direction:ltr}#exclusion-stats{direction:ltr}#search-stats{direction:ltr}#page-stats{direction:ltr}.wp-statistics-settings .widefat{float:left}.wp-statistics-settings .note{color:#FF0000;font-size:11px !important;font-weight:bold}.wp-statistics-settings .postbox-container{margin-top:51px}.wp-statistics-settings .postbox-container .postbox{padding:12px !important}.wp-statistics-settings ul.tabs{margin:0;padding:0;list-style:none}.wp-statistics-settings ul.tabs li{background:none;color:#222;display:inline-block;padding:10px 8px;cursor:pointer;border:1px solid #f1f1f1;margin:0}.wp-statistics-settings ul.tabs li.current{background:#ffffff;color:#222;border-right-color:#e5e5e5;border-left-color:#e5e5e5;border-bottom-color:#ffffff;border-top-color:#e5e5e5;padding-bottom:11px}.wp-statistics-settings .tab-content{display:none;margin:-1px 0 0 0}.wp-statistics-settings .tab-content.current{display:inherit}.wp-statistics-settings #update_geoip{margin-left:5px;margin-top:-5px;line-height:19px;font-size:12px;height:25px}@media only screen and (max-width: 1327px){.wp-statistics-settings ul.tabs li{padding:10px 5px}}.wp-statistics-plugins .widefat>*{float:left}.wp-statistics-plugins .widefat .plugin-card{position:relative}.wp-statistics-plugins .widefat .plugin-card .desc,.wp-statistics-plugins .widefat .plugin-card .name{margin-right:0}.wp-statistics-plugins .widefat .plugin-card-bottom{float:initial}.wp-statistics-plugins .widefat .plugin-card-bottom span.from{display:none}.wp-statistics-plugins .widefat .column-downloaded p{margin:2px 0 0 0}.wp-statistics-plugins .column-price{display:inline;margin:0 8px;font-size:15px;color:#589616}.wp-statistics-plugins .plugin-card .cover-ribbon{height:115px;width:115px;position:absolute;left:-8px;top:-7px;overflow:hidden}.wp-statistics-plugins .plugin-card .cover-ribbon .cover-ribbon-inside{background:#EA4335;color:#FFF;transform:rotate(-45deg);position:absolute;left:-35px;top:16px;padding:10px;min-width:127px;text-align:center;z-index:9}.wp-statistics-plugins .plugin-card .cover-ribbon .cover-ribbon-inside:before{width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:10px solid #992C23;position:absolute;left:-5px;bottom:0;content:"";top:34px;transform:rotate(-45deg)}.wp-statistics-plugins .plugin-card .cover-ribbon .cover-ribbon-inside:after{width:0;height:0;border-top:7px solid transparent;border-left:7px solid #992C23;border-bottom:7px solid transparent;position:absolute;top:33px;bottom:0;right:4px;content:"";transform:rotate(-45deg)}.wp-statistics-welcome .wp-badge{background-image:url("../images/logo-250-white.png");background-color:#1aabec}.wp-statistics-welcome .nav-tab.donate{background-color:#459605;color:#ffffff}.wp-statistics-welcome .tab-content{display:none}.wp-statistics-welcome .tab-content.current{display:block}.wp-statistics-welcome ul li{margin:0 31px}.wp-statistics-welcome ul{list-style-type:square;line-height:28px;margin:0 0 20px 0}.wp-statistics-welcome img{width:auto}.wp-statistics-welcome .center-section{padding:41px 0 60px;clear:both;text-align:center}.wp-statistics-welcome .normal-section .left{float:left;width:50%;text-align:left}.wp-statistics-welcome .normal-section .right{float:right;width:50%}.wp-statistics-welcome .normal-section{float:left;width:100%;padding:36px 0 44px;border-bottom:1px solid #dedede}.wp-statistics-welcome .normal-section h2{text-align:left}.wp-statistics-welcome .text-center{text-align:center !important}.wp-statistics-welcome .content-padding{padding:0 43px}.wp-statistics-welcome .addons-item img{width:120px;border-radius:4px}.wp-statistics-welcome .addons-item a{display:inline-block;margin:0 5px}.wp-statistics-welcome .center-section.logo img{width:150px}.wp-statistics-welcome .center-section.logo>a{display:inline-block}.wp-statistics-welcome .plugin-icon{width:128px;height:128px}.wp-statistics-welcome .plugin-card h3{margin:0 0 12px;font-size:18px;line-height:1.3}.wp-statistics-welcome .plugin-card{text-align:left}.wp-statistics-welcome .about-text img{width:90px}.wps-return-to-dashboard{margin:30px 0 0 -5px;font-size:14px;font-weight:600}.wps-return-to-dashboard a{text-decoration:none;padding:0 5px}#wps-postbox-container-1{width:30%;float:left}#wps-postbox-container-2{margin:0 0 0 1%;width:68%;float:right}@media screen and (max-width: 998px){#wps-postbox-container-1{width:35%}#wps-postbox-container-2{margin:0 0 0 1%;width:63%}}@media screen and (max-width: 758px){#wps-postbox-container-1{width:100%}#wps-postbox-container-2{margin:0 0 0 1%;width:100%}}@media screen and (max-width: 524px){#wps-postbox-container-1{width:100%}#wps-postbox-container-2{margin:0 0 0 1%;width:100%}}#wps-postbox-container-1 a,#wps-postbox-container-2 a,#wps-big-postbox a{text-decoration:none}.column-wp-statistics-tax-hits{width:15%;text-align:center}.column-wp-statistics-post-hits{width:10%;text-align:center}.wps-admin-column__unlock a{color:#ffffff;font-size:12px;display:flex;justify-content:center}.wps-admin-column__unlock a span{background:#347ab6;padding:1px 3px;border-radius:2px;position:absolute;visibility:hidden;font-size:9px;line-height:14px;z-index:1;margin-top:7px}.wps-admin-column__unlock a img{width:100%;opacity:0.5}.wps-admin-column__unlock a:hover span{visibility:visible}body.toplevel_page_wps_overview_page fieldset.columns-prefs,body.toplevel_page_wps_overview_page label[for=wp-statistics-about-widget-hide]{display:none !important}#wps_overview_ads_postbox .inside{padding:0 !important;margin:0;line-height:0}#wps_overview_ads_postbox .inside a img{width:100%;height:auto}#wps_overview_ads_postbox .inside a:focus{box-shadow:none}#wps_overview_ads_postbox .inside .close-overview-ads{position:absolute;right:0;margin:15px 20px;opacity:0;transition:1s all}#wps_overview_ads_postbox .inside .close-overview-ads span.dashicons{font-size:21px;color:#72777c;cursor:pointer}#wps_overview_ads_postbox .inside:hover .close-overview-ads{opacity:1}#wps_overview_ads_postbox{padding:0}.toplevel_page_wps_overview_page #screen-meta-links{margin-bottom:-30px}.wps-equal-postbox{display:flex}.wps-postbox-half{width:calc((100% / 2) - 20px);margin-right:10px}.wps-postbox-half .title-center{text-align:center;margin:25px auto;color:#828282}.wps-postbox-half .inside{padding:5px 10px !important;margin:5px 0 5px 0 !important}.wps-title-group{margin:15px 0 20px 0;border-bottom:1px solid #d2d2d2;padding-bottom:13px;width:98%}body[class*="wps_visitors_page"] #TB_closeWindowButton:focus .tb-close-icon{-webkit-box-shadow:none !important;box-shadow:none !important}body[class*="wps_visitors_page"] #visitors-filter{cursor:pointer;color:#666;transition:0.5s all;margin-top:5px}body[class*="wps_visitors_page"] #visitors-filter .dashicons{vertical-align:-5px}body[class*="wps_visitors_page"] #visitors-filter:hover{color:#d82424}body[class*="wps_visitors_page"] .select2-dropdown{z-index:9999999999 !important}body[class*="wps_visitors_page"] .select2-container{width:100% !important}body[class*="wps_visitors_page"] .tbl-page-column{width:220px}body[class*="wps_visitors_page"] .tbl-page-column span.txt-overflow{white-space:nowrap;overflow:hidden;width:210px !important;display:block}#wps-visitors-filter-form{padding:10px 5px}#wps-visitors-filter-form table.widefat{border:0 !important;box-shadow:none !important}html[dir=rtl] body[class*="wps_visitors_page"] #TB_ajaxContent{text-align:right !important}form#wp-statistics-select-pages{margin-bottom:-15px;margin-top:16px}form#wp-statistics-select-pages .select-title{vertical-align:-2px}form#wp-statistics-select-pages select[name=ID]{width:300px;margin:0 8px}form#wp-statistics-select-pages input[type=submit]{margin:0 5px;vertical-align:-2px}form#wp-statistics-select-pages .submit-form{padding:0 5px;vertical-align:-3px}.wps-wrap.wps-meta-box-footer{padding-top:14px}.wps-admin-pages-visitors__preview{max-height:230px;overflow:hidden;position:relative}.wps-admin-pages-visitors__preview img{width:100%}.wps-admin-pages-visitors__preview:after{content:"";position:absolute;z-index:1;bottom:0;left:0;pointer-events:none;background-image:linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);width:100%;height:4em}#wps-big-postbox .wps-admin-pages-visitors__preview{max-height:290px}.wps-admin-pages-visitors__promotion{background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);padding:7px 20px 15px;width:52%;text-align:center;box-shadow:rgba(0,0,0,0.3) 0px 19px 38px,rgba(0,0,0,0) 0px 0px 12px}.wps-admin-pages-visitors__promotion p{margin:5px !important}.wps-admin-pages-visitors__promotion a{padding:10px 14px !important}.misc-pub-hits:before{content:"\f184";font:normal 20px/1 dashicons;display:inline-block;margin-left:-1px;padding-right:3px;vertical-align:top;color:#8c8f94}.wps-about-logo{max-width:170px;margin:0 0 9px 0}.wps-summary-stats{background:none repeat scroll 0 0 rgba(0,0,0,0);border:1px none;margin:0 0 10px}.wps-summary-stats tr:first-child th{border-top:0 none}.wps-summary-stats span{color:#21759B !important;font-family:Georgia, "Times New Roman", "Bitstream Charter", Times, serif;font-size:21px}.wps-engine-logo{vertical-align:-3px}#wp-statistics-visitors-map{direction:ltr;height:300px;width:100%}.map-html-marker{max-height:170px;width:200px}.map-html-marker p{border-bottom:1px dashed #EFEFEF;font-size:10px;margin:2px 0;padding:3px 0;text-align:left}.map-html-marker p:last-child{border-bottom:0 none}.jqvmap-label{z-index:10000}.jqvmap-zoomin,.jqvmap-zoomout{background:#717171 !important}.wps-referring-widget-ip{display:block;padding:0 15px;font-size:10px;color:#a2a2a2;margin-left:6px}.wps-wrap__main{padding:20px}.wps-wrap .postbox{padding:0}.wps-wrap .postbox .postbox-header{padding:7px 15px}.wps-wrap .postbox .postbox-header h2{padding:0}.wps-wrap .postbox .inside{padding:15px}.wps-wrap .postbox table tr:first-child th{padding:0}.wps-wrap .postbox table tr:first-child th h3{margin-top:0}.toplevel_page_wps_overview_page .wps-wrap,.statistics_page_wps_hits_page .wps-wrap,.statistics_page_wps_online_page .wps-wrap,.statistics_page_wps_online_page .wps-wrap,.statistics_page_wps_referrers_page .wps-wrap,.statistics_page_wps_words_page .wps-wrap,.statistics_page_wps_visitors_page .wps-wrap,.statistics_page_wps_searches_page .wps-wrap,.statistics_page_wps_pages_page .wps-wrap,.statistics_page_wps_categories_page .wps-wrap,.statistics_page_wps_tags_page .wps-wrap,.statistics_page_wps_authors_page .wps-wrap,.statistics_page_wps_browser_page .wps-wrap,.statistics_page_wps_platform_page .wps-wrap,.statistics_page_wps_top-visitors_page .wps-wrap,.statistics_page_wps_optimization_page .wps-wrap,.statistics_page_wps_settings_page .wps-wrap,.statistics_page_wps_plugins_page .wps-wrap{margin:0 !important}.toplevel_page_wps_overview_page #wpcontent,.statistics_page_wps_hits_page #wpcontent,.statistics_page_wps_online_page #wpcontent,.statistics_page_wps_visitors_page #wpcontent,.statistics_page_wps_referrers_page #wpcontent,.statistics_page_wps_words_page #wpcontent,.statistics_page_wps_searches_page #wpcontent,.statistics_page_wps_pages_page #wpcontent,.statistics_page_wps_categories_page #wpcontent,.statistics_page_wps_tags_page #wpcontent,.statistics_page_wps_authors_page #wpcontent,.statistics_page_wps_browser_page #wpcontent,.statistics_page_wps_platform_page #wpcontent,.statistics_page_wps_top-visitors_page #wpcontent,.statistics_page_wps_optimization_page #wpcontent,.statistics_page_wps_settings_page #wpcontent,.statistics_page_wps_plugins_page #wpcontent{padding:0 !important}.toplevel_page_wps_overview_page #wpbody-content>.notice,.statistics_page_wps_hits_page #wpbody-content>.notice,.statistics_page_wps_online_page #wpbody-content>.notice,.statistics_page_wps_visitors_page #wpbody-content>.notice,.statistics_page_wps_referrers_page #wpbody-content>.notice,.statistics_page_wps_words_page #wpbody-content>.notice,.statistics_page_wps_searches_page #wpbody-content>.notice,.statistics_page_wps_pages_page #wpbody-content>.notice,.statistics_page_wps_categories_page #wpbody-content>.notice,.statistics_page_wps_tags_page #wpbody-content>.notice,.statistics_page_wps_authors_page #wpbody-content>.notice,.statistics_page_wps_browser_page #wpbody-content>.notice,.statistics_page_wps_platform_page #wpbody-content>.notice,.statistics_page_wps_top-visitors_page #wpbody-content>.notice,.statistics_page_wps_optimization_page #wpbody-content>.notice,.statistics_page_wps_settings_page #wpbody-content>.notice,.statistics_page_wps_plugins_page #wpbody-content>.notice{margin:20px !important}.statistics_page_wps_plugins_page .wps-wrap .notice{margin:20px !important}.wps-wrap__main .notice{margin:20px 0 !important}.wps-header-banner{width:100%;max-width:100%;background:url("../images/page-header.svg") center center/100% no-repeat;min-height:138px;display:flex;justify-content:flex-end;align-items:center;padding:0 0 20px}@media screen and (max-width: 1300px){.wps-header-banner{background:url("../images/page-header.svg") 5% center/cover no-repeat;min-height:113px;display:flex;justify-content:flex-end;align-items:center;padding:20px}}#screen-meta-links+br+.wps-wrap .wps-header-banner{transform:translateY(-31px);z-index:-1;position:relative;min-height:150px}#screen-meta-links+br+.wps-wrap .wps-wrap__main{transform:translateY(-31px)}.wps-wrap input[type="text"].small-text{padding:12px 8px !important;min-width:80px}.wps-wrap .notice:not(.hidden){padding:2px 14px;border-radius:4px;color:#242A31;font-weight:normal;font-size:14px;line-height:24px;border:1px solid #D6D6D6;box-sizing:border-box;border-left:6px solid #F2BB08;box-shadow:0px 2px 4px rgba(0,0,0,0.08);margin:10px 0 24px;display:flex;align-items:flex-start}.wps-wrap .notice::before{content:'';min-width:20px;min-height:20px;display:inline-block;vertical-align:middle;margin-right:10px;margin-top:10px;background:center center/auto no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V12.5C9 12.2239 9.22386 12 9.5 12H10.5C10.7761 12 11 12.2239 11 12.5V13.5ZM10.53 10C10.6572 10.0009 10.7647 9.90624 10.78 9.78L11.18 6.56C11.1972 6.41735 11.1523 6.27417 11.0566 6.16698C10.9609 6.05979 10.8237 5.99896 10.68 6H9.32C9.17631 5.99896 9.03912 6.05979 8.94342 6.16698C8.84771 6.27417 8.80275 6.41735 8.82 6.56L9.22 9.78C9.23526 9.90624 9.34284 10.0009 9.47 10H10.53Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.wps-wrap .notice-warning::before{background-image:url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.88 12.88L15.71 13.71C15.8947 13.8963 15.9989 14.1477 16 14.41V15C16 15.5523 15.5523 16 15 16H1C0.447715 16 0 15.5523 0 15V14.41C0.00110462 14.1477 0.105256 13.8963 0.29 13.71L1.12 12.88C1.68277 12.3179 1.9993 11.5554 2 10.76V8C2 6.70178 2.42107 5.43858 3.2 4.4L4.1 3.2C4.66656 2.44458 5.55573 2 6.5 2H7V0.5C7 0.223858 7.22386 0 7.5 0H8.5C8.77614 0 9 0.223858 9 0.5V2H9.5C10.4443 2 11.3334 2.44458 11.9 3.2L12.8 4.4C13.5789 5.43858 14 6.70178 14 8V10.76C14.0007 11.5554 14.3172 12.3179 14.88 12.88ZM8 20C9.10457 20 10 19.1046 10 18H6C6 19.1046 6.89543 20 8 20Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.wps-wrap .notice-error{border-left-color:#FF0000}.wps-wrap .notice-error::before{min-width:23px;margin-right:8px;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.wps-wrap .notice-info{border-left-color:#0090AD}.wps-wrap .notice-info::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V10.5C9 10.2239 9.22386 10 9.5 10H10.5C10.7761 10 11 10.2239 11 10.5V13.5ZM10.5 8C10.7761 8 11 7.77614 11 7.5V6.5C11 6.22386 10.7761 6 10.5 6H9.5C9.22386 6 9 6.22386 9 6.5V7.5C9 7.77614 9.22386 8 9.5 8H10.5Z' fill='%230090AD'/%3E%3C/svg%3E%0A")}.wps-wrap .notice-success{border-left-color:#22BB3F}.wps-wrap .notice-success::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM8.73 13.35L14.35 7.73C14.5341 7.53685 14.5341 7.23315 14.35 7.04L13.82 6.51C13.6256 6.31943 13.3144 6.31943 13.12 6.51L8.38 11.25L6.88 9.76C6.78927 9.66332 6.66259 9.60848 6.53 9.60848C6.39741 9.60848 6.27073 9.66332 6.18 9.76L5.65 10.29C5.55534 10.3839 5.5021 10.5117 5.5021 10.645C5.5021 10.7783 5.55534 10.9061 5.65 11L8.03 13.35C8.12073 13.4467 8.24741 13.5015 8.38 13.5015C8.51259 13.5015 8.63927 13.4467 8.73 13.35Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.rtl .wps-wrap .notice{border-left:0;border-right:6px solid #F2BB08}.rtl .wps-wrap .notice::before{margin-right:0;margin-left:10px}.rtl .wps-wrap .notice-warning::before{background-image:url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.88 12.88L15.71 13.71C15.8947 13.8963 15.9989 14.1477 16 14.41V15C16 15.5523 15.5523 16 15 16H1C0.447715 16 0 15.5523 0 15V14.41C0.00110462 14.1477 0.105256 13.8963 0.29 13.71L1.12 12.88C1.68277 12.3179 1.9993 11.5554 2 10.76V8C2 6.70178 2.42107 5.43858 3.2 4.4L4.1 3.2C4.66656 2.44458 5.55573 2 6.5 2H7V0.5C7 0.223858 7.22386 0 7.5 0H8.5C8.77614 0 9 0.223858 9 0.5V2H9.5C10.4443 2 11.3334 2.44458 11.9 3.2L12.8 4.4C13.5789 5.43858 14 6.70178 14 8V10.76C14.0007 11.5554 14.3172 12.3179 14.88 12.88ZM8 20C9.10457 20 10 19.1046 10 18H6C6 19.1046 6.89543 20 8 20Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.rtl .wps-wrap .notice-danger{border-right-color:#FF0000}.rtl .wps-wrap .notice-danger::before{margin-right:0;margin-left:8px;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.rtl .wps-wrap .notice-info{border-right-color:#0090AD}.rtl .wps-wrap .notice-info::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V10.5C9 10.2239 9.22386 10 9.5 10H10.5C10.7761 10 11 10.2239 11 10.5V13.5ZM10.5 8C10.7761 8 11 7.77614 11 7.5V6.5C11 6.22386 10.7761 6 10.5 6H9.5C9.22386 6 9 6.22386 9 6.5V7.5C9 7.77614 9.22386 8 9.5 8H10.5Z' fill='%230090AD'/%3E%3C/svg%3E%0A")}.rtl .wps-wrap .notice-success{border-right-color:#22BB3F}.rtl .wps-wrap .notice-success::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM8.73 13.35L14.35 7.73C14.5341 7.53685 14.5341 7.23315 14.35 7.04L13.82 6.51C13.6256 6.31943 13.3144 6.31943 13.12 6.51L8.38 11.25L6.88 9.76C6.78927 9.66332 6.66259 9.60848 6.53 9.60848C6.39741 9.60848 6.27073 9.66332 6.18 9.76L5.65 10.29C5.55534 10.3839 5.5021 10.5117 5.5021 10.645C5.5021 10.7783 5.55534 10.9061 5.65 11L8.03 13.35C8.12073 13.4467 8.24741 13.5015 8.38 13.5015C8.51259 13.5015 8.63927 13.4467 8.73 13.35Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.rtl .wpsms-header-banner{justify-content:flex-start;align-items:center}.wpsms-header-banner .license-status{min-width:200px;padding:15px 17px;width:auto;background:#fff;box-shadow:0px 2px 4px rgba(0,0,0,0.08);border-radius:4px}.wpsms-header-banner .license-status h3{margin:0 0 5px;font-weight:600;font-size:14px;line-height:24px;letter-spacing:0.02em;text-transform:uppercase}.wpsms-header-banner .license-status span,.wpsms-header-banner .license-status a{font-weight:normal;font-size:14px;line-height:24px;color:#000;text-decoration:none;transition:0.2s;display:flex;align-items:center}.wpsms-header-banner .license-status a:hover{color:#404BF2}.wpsms-header-banner .license-status--free a::after{content:'';width:14px;height:10px;margin-left:12px;background:center center/100% no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.333008 5.33335V4.66668C0.333008 4.48259 0.482246 4.33335 0.666341 4.33335H11.4463L8.47968 1.37335C8.41657 1.31076 8.38107 1.22556 8.38107 1.13668C8.38107 1.0478 8.41657 0.962602 8.47968 0.900013L8.95301 0.433347C9.0156 0.370243 9.1008 0.334747 9.18967 0.334747C9.27855 0.334747 9.36375 0.370243 9.42634 0.433347L13.5197 4.52001C13.6135 4.61369 13.6662 4.74078 13.6663 4.87335V5.12668C13.6648 5.25896 13.6123 5.38553 13.5197 5.48001L9.42634 9.56668C9.36375 9.62978 9.27855 9.66528 9.18967 9.66528C9.1008 9.66528 9.0156 9.62978 8.95301 9.56668L8.47968 9.09335C8.41697 9.03191 8.38163 8.94781 8.38163 8.86001C8.38163 8.77222 8.41697 8.68812 8.47968 8.62668L11.4463 5.66668H0.666341C0.482246 5.66668 0.333008 5.51744 0.333008 5.33335Z' fill='black'/%3E%3C/svg%3E%0A")}.wpsms-header-banner .license-status--invalid span::before,.wpsms-header-banner .license-status--valid span::before{content:'';width:19px;height:16px;margin-right:5px;background:center center/19px 16px no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.wpsms-header-banner .license-status--valid span::before{content:'';width:19px;height:19px;margin-right:5px;background:center center/100% no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.0142 8.0389C16.7723 8.66066 16.7723 9.35048 17.0142 9.97224L17.1559 10.3806C17.6721 11.7288 17.0469 13.2456 15.7304 13.8389L15.3553 14.0056C14.74 14.2707 14.2422 14.7505 13.9549 15.3556L13.7881 15.7306C13.1946 17.0467 11.6774 17.6716 10.3287 17.1556L9.94523 17.0139C9.32327 16.7721 8.63323 16.7721 8.01127 17.0139L7.62781 17.1556C6.27912 17.6716 4.76187 17.0467 4.16836 15.7306L4.00164 15.3556C3.73645 14.7405 3.25645 14.2429 2.6512 13.9556L2.27608 13.7889C0.959569 13.1956 0.334388 11.6788 0.850617 10.3306L0.992329 9.94724C1.23424 9.32548 1.23424 8.63566 0.992329 8.0139L0.850617 7.63057C0.334388 6.28232 0.959569 4.76556 2.27608 4.17224L2.6512 4.00557C3.24775 3.73062 3.72659 3.25192 4.00164 2.65557L4.19336 2.28057C4.78753 0.951276 6.32204 0.323725 7.67783 0.85557L8.06128 0.997236C8.68324 1.23907 9.37328 1.23907 9.99524 0.997236L10.3787 0.85557C11.7274 0.339508 13.2446 0.964487 13.8382 2.28057L14.0049 2.65557C14.2799 3.25192 14.7588 3.73062 15.3553 4.00557L15.7304 4.19724C17.0469 4.79056 17.6721 6.30732 17.1559 7.65557L17.0142 8.0389ZM7.94444 11.7972L12.6293 7.1139C12.7828 6.95295 12.7828 6.69986 12.6293 6.5389L12.1875 6.09724C12.0254 5.93843 11.766 5.93843 11.604 6.09724L7.65268 10.0472L6.40228 8.80557C6.32664 8.72501 6.22104 8.6793 6.11052 8.6793C5.99999 8.6793 5.89439 8.72501 5.81875 8.80557L5.37694 9.24724C5.29804 9.32547 5.25366 9.43197 5.25366 9.54307C5.25366 9.65417 5.29804 9.76067 5.37694 9.8389L7.36092 11.7972C7.43656 11.8778 7.54216 11.9235 7.65268 11.9235C7.76321 11.9235 7.86881 11.8778 7.94444 11.7972Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.rtl .wpsms-header-banner .license-status span::before{margin-left:5px;margin-right:0}.wps-wrap .postbox{background:#FFFFFF;border:0;box-shadow:0px 2px 4px rgba(0,0,0,0.08);border-radius:2px}.wps-wrap .postbox-header{border-bottom:1px solid #E7E7E7}.wps-wrap .thickbox.button,.wps-wrap .button{background:#fff;border:1px solid #D6D6D6;box-sizing:border-box;box-shadow:0px 2px 4px rgba(0,0,0,0.05);border-radius:2px;color:#000;transition:0.2s;margin:10px 0}.wps-wrap .wpsms-button-group{margin-top:20px}.wps-wrap .button:hover{background:#fff;border-color:#404BF2;color:#000}.wps-wrap .button,.wps-wrap .thickbox.button{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 24px;border-radius:2px;transition:0.2s}.rtl .wps-wrap .button{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 16px;border-radius:2px;transition:0.2s}.wps-wrap .button:disabled{background-color:#808080 !important}.wps-wrap .button-primary{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 24px;border-radius:2px;transition:0.2s;background:#404BF2;border-color:#404BF2;color:#fff !important;margin:10px 0}.wps-wrap textarea{max-width:calc(100% - 45px)}.wps-wrap .button-primary:hover{background-color:#1E27BF;border-color:#1E27BF}.wps-wrap .button:focus{background-color:#fff;border-color:#1E27BF;color:#000 !important;box-shadow:0 0 0 1px #1E27BF;outline:2px solid transparent}.wps-wrap .button-primary:focus{background-color:#1E27BF;border-color:#1E27BF;box-shadow:0 0 0 1px #1E27BF;outline:2px solid transparent;color:#fff !important}.wps-wrap input[type="checkbox"]:focus{box-shadow:none !important;outline:unset !important}.wps-wrap input[type="text"],.wps-wrap input[type="number"],.chosen-container-multi .chosen-choices,.wps-wrap select{padding:12px 16px !important;font-weight:normal;font-size:14px;line-height:20px;border:1px solid #5B5B5B !important;box-sizing:border-box;border-radius:2px}.wps-wrap select{padding:12px 24px 12px 8px !important}.rtl .wps-wrap select{padding:12px 8px 12px 24px !important}.wps-wrap input[type="text"]:focus,.wps-wrap input[type="number"]:focus,.wps-wrap select:focus{border-color:#404BF2;box-shadow:0 0 0 1px #404BF2;outline:2px solid transparent}.wps-wrap input[type="text"]::placeholder,.wps-wrap input[type="number"]::placeholder,.wps-wrap select::placeholder{font-weight:normal;font-size:14px;line-height:20px;color:#000000}.wps-wrap input[type="checkbox"],.wps-wrap input[type="radio"]{background:#fff;width:24px;height:24px;border-radius:2px;border:1px solid #5B5B5B !important;transition:0.2s}.wps-wrap input[type="radio"]{border-radius:50%;transition:0.2s}.wps-wrap input[type="radio"]:checked{background-color:#404AF2 !important;border-color:#404AF2 !important}.wps-wrap input[type="radio"]:checked::before{background-color:#fff !important;transition:0.2s;width:10px;height:10px;margin:.38rem !important}.wps-wrap input[type="checkbox"]:hover{border-color:#404BF2 !important}.wps-wrap input[type="checkbox"]:checked{background:#404BF2;border-color:#404BF2 !important}.wps-wrap input[type="checkbox"]:checked::before{margin:-.07rem 0 0 -.12rem !important;content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E") !important;height:1.5rem !important;width:1.5rem !important}.wps-wrap .btn-danger:hover{background:#c20000 !important;background-color:#c20000;border-color:#990000 !important;color:#fff}.wps-wrap .wps-inline select{padding:12px 24px 12px 16px !important}.wps-wrap .wp-statistics-sub-fullwidth input{padding:6px !important}.wps-wrap .wp-statistics-sub-fullwidth .button-primary{padding:7px 14px !important}.wps-wrap .meta-box-sortables .inside{padding:15px !important}.wps-wrap .meta-box-sortables .inside-no-padding{margin-bottom:20px;display:flex}.statistics_page_wps_categories_page .wps-wrap .postbox,.statistics_page_wps_tags_page .wps-wrap .postbox,.statistics_page_wps_authors_page .wps-wrap .postbox,.statistics_page_wps_pages_page .wps-wrap .postbox{padding:10px 3px !important}.statistics_page_wps_optimization_page .wps-wrap .postbox,.statistics_page_wps_settings_page .wps-wrap .postbox,.-d8-a2-d9-85-d8-a7-d8-b1_page_wps_settings_page .wps-wrap .postbox{padding:15px}.wps-wrap .btn-danger{background:rgba(186,0,0,0.74) !important;border-color:rgba(170,0,0,0.77) rgba(153,0,0,0.74) rgba(153,0,0,0.74) !important;box-shadow:0 1px 0 rgba(153,0,0,0.74);color:#fff;text-decoration:none;padding:12px 16px !important;text-shadow:0 -1px 1px rgba(153,0,0,0.74),1px 0 1px rgba(153,0,0,0.74),0 1px 1px rgba(153,0,0,0.74),-1px 0 1px rgba(153,0,0,0.74)}.wps-wrap #wps-plugins-support .button{padding:12px !important;margin-top:8px}.wps-wrap ul.tabs{background-color:#fff;margin-bottom:10px;box-shadow:0px 2px 4px rgba(0,0,0,0.08);padding:0 20px;display:flex}.wps-wrap ul.tabs li{border:0;border-bottom:4px solid transparent !important;padding:20px 8px;margin-right:8px;transition:0.2s;color:#4A4A4A;font-weight:600;font-size:14px;line-height:24px;letter-spacing:0.02em;text-transform:capitalize;word-break:keep-all;white-space:nowrap}.wps-wrap ul.tabs li:hover{color:#000}.wps-wrap ul.tabs li.current{border:0;border-bottom-color:#404BF2 !important;padding:20px 8px;color:#000}@media screen and (max-width: 1460px){.wps-wrap ul.tabs{overflow-x:scroll}}.wp-statistics-settings #update_geoip{padding:5px 15px}.wps-wrap #poststuff .postbox-container{margin-top:0 !important}.wps-widgets-settings-wrap #tab_container,.wps-mini-chart-settings-wrap #tab_container,.wps-rest-api-settings-wrap #tab_container,.wps-realtime-stats-settings-wrap #tab_container{background-color:#fff;padding:15px;box-shadow:0px 2px 4px rgba(0,0,0,0.08)}.wps-widgets-settings-wrap .nav-tab-wrapper,.wps-mini-chart-settings-wrap .nav-tab-wrapper,.wps-rest-api-settings-wrap .nav-tab-wrapper,.wps-realtime-stats-settings-wrap .nav-tab-wrapper{padding-top:0 !important}.wps-rest-api-settings-wrap .nav-tab-wrapper .nav-tab-active,.wps-widgets-settings-wrap .nav-tab-wrapper .nav-tab-active,.wps-mini-chart-settings-wrap .nav-tab-wrapper .nav-tab-active,.wps-realtime-stats-settings-wrap .nav-tab-wrapper .nav-tab-active{background-color:#fff;border-bottom-color:#fff}.wps-widgets-settings-wrap .nav-tab-wrapper,.wps-mini-chart-settings-wrap .nav-tab-wrapper,.wps-rest-api-settings-wrap .nav-tab-wrapper,.wps-realtime-stats-settings-wrap .nav-tab-wrapper{background-color:#fff;margin:20px 0 !important;box-shadow:0px 2px 4px rgba(0,0,0,0.08);padding:0 15px;display:flex;border:none !important}.wps-widgets-settings-wrap .nav-tab-wrapper a,.wps-mini-chart-settings-wrap .nav-tab-wrapper a,.wps-rest-api-settings-wrap .nav-tab-wrapper a,.wps-realtime-stats-settings-wrap .nav-tab-wrapper a{border:0;border-top:4px solid transparent !important;border-bottom:4px solid transparent !important;padding:20px 8px;margin-right:8px;transition:0.2s;color:#4A4A4A;font-weight:600;font-size:14px;line-height:19px;letter-spacing:0.02em;text-transform:capitalize;word-break:keep-all;white-space:nowrap;background-color:transparent !important}.wps-widgets-settings-wrap .nav-tab-wrapper a:hover,.wps-mini-chart-settings-wrap .nav-tab-wrapper a:hover,.wps-rest-api-settings-wrap .nav-tab-wrapper a:hover,.wps-realtime-stats-settings-wrap .nav-tab-wrapper a:hover{color:#000}.wps-widgets-settings-wrap .nav-tab-wrapper a.nav-tab-active,.wps-mini-chart-settings-wrap .nav-tab-wrapper a.nav-tab-active,.wps-rest-api-settings-wrap .nav-tab-wrapper a.nav-tab-active,.wps-realtime-stats-settings-wrap .nav-tab-wrapper a.nav-tab-active{border:0;border-bottom-color:#404BF2 !important;padding:20px 8px;color:#000}.wps-widgets-settings-wrap input[type="checkbox"],.wps-widgets-settings-wrap input[type="radio"],.wps-mini-chart-settings-wrap input[type="checkbox"],.wps-mini-chart-settings-wrap input[type="radio"],.wps-rest-api-settings-wrap input[type="checkbox"],.wps-rest-api-settings-wrap input[type="radio"],.wps-realtime-stats-settings-wrap input[type="checkbox"],.wps-realtime-stats-settings-wrap input[type="radio"]{background:#fff;width:24px;height:24px;border-radius:2px;border:1px solid #5B5B5B !important;transition:0.2s}.wps-widgets-settings-wrap input[type="radio"],.wps-mini-chart-settings-wrap input[type="radio"],.wps-rest-api-settings-wrap input[type="radio"],.wps-realtime-stats-settings-wrap input[type="radio"]{border-radius:50%;transition:0.2s}.wps-widgets-settings-wrap input[type="radio"]:checked,.wps-mini-chart-settings-wrap input[type="radio"]:checked,.wps-rest-api-settings-wrap input[type="radio"]:checked,.wps-realtime-stats-settings-wrap input[type="radio"]:checked{background-color:#404AF2 !important;border-color:#404AF2 !important}.wps-widgets-settings-wrap input[type="radio"]:checked::before,.wps-mini-chart-settings-wrap input[type="radio"]:checked::before,.wps-rest-api-settings-wrap input[type="radio"]:checked::before,.wps-realtime-stats-settings-wrap input[type="radio"]:checked::before{background-color:#fff !important;transition:0.2s;width:10px;height:10px;margin:.38rem !important}.wps-widgets-settings-wrap input[type="checkbox"]:hover,.wps-mini-chart-settings-wrap input[type="checkbox"]:hover,.wps-rest-api-settings-wrap input[type="checkbox"]:hover,.wps-realtime-stats-settings-wrap input[type="checkbox"]:hover{border-color:#404BF2 !important}.wps-widgets-settings-wrap input[type="checkbox"]:checked,.wps-mini-chart-settings-wrap input[type="checkbox"]:checked,.wps-rest-api-settings-wrap input[type="checkbox"]:checked,.wps-realtime-stats-settings-wrap input[type="checkbox"]:checked{background:#404BF2;border-color:#404BF2 !important}.wps-widgets-settings-wrap input[type="checkbox"]:checked::before,.wps-mini-chart-settings-wrap input[type="checkbox"]:checked::before,.wps-rest-api-settings-wrap input[type="checkbox"]:checked::before,.wps-realtime-stats-settings-wrap input[type="checkbox"]:checked::before{margin:-.07rem 0 0 -.12rem !important;content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E") !important;height:1.5rem !important;width:1.5rem !important}.wps-widgets-settings-wrap .thickbox.button,.wps-widgets-settings-wrap .button,.wps-widgets-settings-wrap input[type="button"],.wps-mini-chart-settings-wrap .thickbox.button,.wps-mini-chart-settings-wrap .button,.wps-mini-chart-settings-wrap input[type="button"],.wps-rest-api-settings-wrap .thickbox.button,.wps-rest-api-settings-wrap .button,.wps-rest-api-settings-wrap input[type="button"],.wps-realtime-stats-settings-wrap .thickbox.button,.wps-realtime-stats-settings-wrap .button,.wps-realtime-stats-settings-wrap input[type="button"]{background:#fff;border:1px solid #D6D6D6;box-sizing:border-box;box-shadow:0px 2px 4px rgba(0,0,0,0.05);border-radius:2px;color:#000;transition:0.2s}.wps-widgets-settings-wrap .wpsms-button-group,.wps-mini-chart-settings-wrap .wpsms-button-group,.wps-rest-api-settings-wrap .wpsms-button-group,.wps-realtime-stats-settings-wrap .wpsms-button-group{margin-top:20px}.wps-widgets-settings-wrap .button:hover,.wps-widgets-settings-wrap input[type="button"]:hover,.wps-mini-chart-settings-wrap .button:hover,.wps-mini-chart-settings-wrap input[type="button"]:hover,.wps-rest-api-settings-wrap .button:hover,.wps-rest-api-settings-wrap input[type="button"]:hover,.wps-realtime-stats-settings-wrap .button:hover,.wps-realtime-stats-settings-wrap input[type="button"]:hover{background:#fff;border-color:#404BF2;color:#000}.wps-widgets-settings-wrap .button,.wps-widgets-settings-wrap input[type="button"],.wps-widgets-settings-wrap .thickbox.button,.wps-mini-chart-settings-wrap .button,.wps-mini-chart-settings-wrap input[type="button"],.wps-mini-chart-settings-wrap .thickbox.button,.wps-rest-api-settings-wrap .button,.wps-rest-api-settings-wrap input[type="button"],.wps-rest-api-settings-wrap .thickbox.button,.wps-realtime-stats-settings-wrap .button,.wps-realtime-stats-settings-wrap input[type="button"],.wps-realtime-stats-settings-wrap .thickbox.button{font-weight:600 !important;font-size:14px;line-height:17px;padding:14px 24px;border-radius:2px;transition:0.2s}.rtl .wps-widgets-settings-wrap .button,.rtl .wps-mini-chart-settings-wrap .button,.rtl .wps-rest-api-settings-wrap .button,.rtl .wps-realtime-stats-settings-wrap .button{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 16px;border-radius:2px;transition:0.2s}.wps-widgets-settings-wrap .button:disabled,.wps-mini-chart-settings-wrap .button:disabled,.wps-rest-api-settings-wrap .button:disabled,.wps-realtime-stats-settings-wrap-wrap .button:disabled{background-color:#808080 !important}.wps-widgets-settings-wrap .button-primary,.wps-mini-chart-settings-wrap .button-primary,.wps-rest-api-settings-wrap .button-primary,.wps-realtime-stats-settings-wrap .button-primary{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 24px;border-radius:2px;transition:0.2s;background:#404BF2;border-color:#404BF2;color:#fff !important}.wps-widgets-settings-wrap textarea,.wps-mini-chart-settings-wrap textarea,.wps-rest-api-settings-wrap textarea,.wps-realtime-stats-settings-wrap textarea{max-width:calc(100% - 45px)}.wps-widgets-settings-wrap .button-primary:hover,.wps-mini-chart-settings-wrap .button-primary:hover,.wps-rest-api-settings-wrap .button-primary:hover,.wps-realtime-stats-settings-wrap .button-primary:hover{background-color:#1E27BF;border-color:#1E27BF}.wps-widgets-settings-wrap .button:focus,.wps-widgets-settings-wrap input[type="button"]:focus,.wps-mini-chart-settings-wrap .button:focus,.wps-mini-chart-settings-wrap input[type="button"]:focus,.wps-rest-api-settings-wrap .button:focus,.wps-rest-api-settings-wrap input[type="button"]:focus,.wps-realtime-stats-settings-wrap .button:focus,.wps-realtime-stats-settings-wrap input[type="button"]:focus{background-color:#fff;border-color:#1E27BF;color:#000 !important;box-shadow:0 0 0 1px #1E27BF;outline:2px solid transparent}.wps-widgets-settings-wrap .button-primary:focus,.wps-mini-chart-settings-wrap .button-primary:focus,.wps-rest-api-settings-wrap .button-primary:focus,.wps-realtime-stats-settings-wrap .button-primary:focus{background-color:#1E27BF;border-color:#1E27BF;box-shadow:0 0 0 1px #1E27BF;outline:2px solid transparent;color:#fff !important}.wps-widgets-settings-wrap input[type="text"],.wps-widgets-settings-wrap input[type="date"],.wps-widgets-settings-wrap input[type="number"],.wps-widgets-settings-wrap .chosen-container-multi .chosen-choices,.wps-widgets-settings-wrap select,.wps-mini-chart-settings-wrap input[type="text"],.wps-mini-chart-settings-wrap input[type="number"],.wps-mini-chart-settings-wrap input[type="date"],.wps-widgets-settings-wrap input[type="number"],.wps-mini-chart-settings-wrap .chosen-container-multi .chosen-choices,.wps-mini-chart-settings-wrap select,.wps-rest-api-settings-wrap input[type="text"],.wps-rest-api-settings-wrap input[type="number"],.wps-rest-api-settings-wrap input[type="date"],.wps-widgets-settings-wrap input[type="number"],.wps-mini-chart-settings-wrap .chosen-container-multi .chosen-choices,.wps-rest-api-settings-wrap select,.wps-realtime-stats-settings-wrap input[type="text"],.wps-realtime-stats-settings-wrap input[type="number"],.wps-rest-api-settings-wrap input[type="date"],.wps-widgets-settings-wrap input[type="number"],.wps-realtime-stats-settings-wrap .chosen-container-multi .chosen-choices,.wps-realtime-stats-settings-wrap select{padding:12px 16px !important;font-weight:normal;font-size:14px;line-height:20px;border:1px solid #5B5B5B !important;box-sizing:border-box;border-radius:2px}.wps-mini-chart-settings-wrap input[type="number"],.wps-rest-api-settings-wrap input[type="number"],.wps-realtime-stats-settings-wrap input[type="number"]{padding-right:2px !important}.wps-widgets-settings-wrap .button.insert-media.add_media,.wps-mini-chart-settings-wrap .button.insert-media.add_media,.wps-rest-api-settings-wrap .button.insert-media.add_media,.wps-realtime-stats-settings-wrap .button.insert-media.add_media{padding:3px 12px !important}.wps-widgets-settings-wrap select,.wps-mini-chart-settings-wrap select,.wps-realtime-stats-settings-wrap select{padding:12px 24px 12px 14px !important}.wps-widgets-settings-wrap input[type="text"]+.button,.wps-mini-chart-settings-wrap input[type="text"]+.button,.wps-rest-api-settings-wrap input[type="text"]+.button,.wps-realtime-stats-settings-wrap input[type="text"]+.button{margin-left:5px}.wps-wrap .notice .notice-dismiss,.wps-widgets-settings-wrap .notice .notice-dismiss,.wps-mini-chart-settings-wrap .notice .notice-dismiss,.wps-rest-api-settings-wrap .notice .notice-dismiss,.wps-realtime-stats-settings-wrap .notice .notice-dismiss{margin-top:5.5px}.wps-wrap .notice .notice-dismiss::before,.wps-widgets-settings-wrap .notice .notice-dismiss::before,.wps-mini-chart-settings-wrap .notice .notice-dismiss::before,.wps-rest-api-settings-wrap .notice .notice-dismiss::before,.wps-realtime-stats-settings-wrap .notice .notice-dismiss::before{font-size:20px}.wps-widgets-settings-wrap .notice,.wps-mini-chart-settings-wrap .notice,.wps-rest-api-settings-wrap .notice,.wps-realtime-stats-settings-wrap .notice{padding:2px 14px;border-radius:4px;color:#242A31;font-weight:normal;font-size:14px;line-height:24px;border:1px solid #D6D6D6;box-sizing:border-box;border-left:6px solid #F2BB08;box-shadow:0px 2px 4px rgba(0,0,0,0.08);margin:10px 0 24px;display:flex;align-items:flex-start}.wps-widgets-settings-wrap .notice::before,.wps-mini-chart-settings-wrap .notice::before,.wps-rest-api-settings-wrap .notice::before,.wps-realtime-stats-settings-wrap .notice::before{content:'';min-width:20px;min-height:20px;display:inline-block;vertical-align:middle;margin-right:10px;margin-top:10px;background:center center/auto no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V12.5C9 12.2239 9.22386 12 9.5 12H10.5C10.7761 12 11 12.2239 11 12.5V13.5ZM10.53 10C10.6572 10.0009 10.7647 9.90624 10.78 9.78L11.18 6.56C11.1972 6.41735 11.1523 6.27417 11.0566 6.16698C10.9609 6.05979 10.8237 5.99896 10.68 6H9.32C9.17631 5.99896 9.03912 6.05979 8.94342 6.16698C8.84771 6.27417 8.80275 6.41735 8.82 6.56L9.22 9.78C9.23526 9.90624 9.34284 10.0009 9.47 10H10.53Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.wps-widgets-settings-wrap .notice-warning::before,.wps-mini-chart-settings-wrap .notice-warning::before,.wps-rest-api-settings-wrap .notice-warning::before,.wps-realtime-stats-settings-wrap .notice-warning::before{background-image:url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.88 12.88L15.71 13.71C15.8947 13.8963 15.9989 14.1477 16 14.41V15C16 15.5523 15.5523 16 15 16H1C0.447715 16 0 15.5523 0 15V14.41C0.00110462 14.1477 0.105256 13.8963 0.29 13.71L1.12 12.88C1.68277 12.3179 1.9993 11.5554 2 10.76V8C2 6.70178 2.42107 5.43858 3.2 4.4L4.1 3.2C4.66656 2.44458 5.55573 2 6.5 2H7V0.5C7 0.223858 7.22386 0 7.5 0H8.5C8.77614 0 9 0.223858 9 0.5V2H9.5C10.4443 2 11.3334 2.44458 11.9 3.2L12.8 4.4C13.5789 5.43858 14 6.70178 14 8V10.76C14.0007 11.5554 14.3172 12.3179 14.88 12.88ZM8 20C9.10457 20 10 19.1046 10 18H6C6 19.1046 6.89543 20 8 20Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.wps-widgets-settings-wrap .notice-error,.wps-mini-chart-settings-wrap .notice-error,.wps-rest-api-settings-wrap .notice-error,.wps-realtime-stats-settings-wrap .notice-error{border-left-color:#FF0000}.wps-widgets-settings-wrap .notice-error::before,.wps-mini-chart-settings-wrap .notice-error::before,.wps-rest-api-settings-wrap .notice-error::before,.wps-realtime-stats-settings-wrap .notice-error::before{min-width:23px;margin-right:8px;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.wps-widgets-settings-wrap .notice-info,.wps-mini-chart-settings-wrap .notice-info,.wps-rest-api-settings-wrap .notice-info,.wps-realtime-stats-settings-wrap .notice-info{border-left-color:#0090AD}.wps-widgets-settings-wrap .notice-info::before,.wps-mini-chart-settings-wrap .notice-info::before,.wps-rest-api-settings-wrap .notice-info::before,.wps-realtime-stats-settings-wrap .notice-info::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V10.5C9 10.2239 9.22386 10 9.5 10H10.5C10.7761 10 11 10.2239 11 10.5V13.5ZM10.5 8C10.7761 8 11 7.77614 11 7.5V6.5C11 6.22386 10.7761 6 10.5 6H9.5C9.22386 6 9 6.22386 9 6.5V7.5C9 7.77614 9.22386 8 9.5 8H10.5Z' fill='%230090AD'/%3E%3C/svg%3E%0A")}.wps-widgets-settings-wrap .notice-success,.wps-mini-chart-settings-wrap .notice-success,.wps-rest-api-settings-wrap .notice-success,.wps-realtime-stats-settings-wrap .notice-success{border-left-color:#22BB3F}.wps-widgets-settings-wrap .notice-success::before,.wps-mini-chart-settings-wrap .notice-success::before,.wps-rest-api-settings-wrap .notice-success::before,.wps-realtime-stats-settings-wrap .notice-success::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM8.73 13.35L14.35 7.73C14.5341 7.53685 14.5341 7.23315 14.35 7.04L13.82 6.51C13.6256 6.31943 13.3144 6.31943 13.12 6.51L8.38 11.25L6.88 9.76C6.78927 9.66332 6.66259 9.60848 6.53 9.60848C6.39741 9.60848 6.27073 9.66332 6.18 9.76L5.65 10.29C5.55534 10.3839 5.5021 10.5117 5.5021 10.645C5.5021 10.7783 5.55534 10.9061 5.65 11L8.03 13.35C8.12073 13.4467 8.24741 13.5015 8.38 13.5015C8.51259 13.5015 8.63927 13.4467 8.73 13.35Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.rtl .wps-widgets-settings-wrap .notice,.rtl .wps-mini-chart-settings-wrap .notice,.rtl .wps-rest-api-settings-wrap .notice,.rtl .wps-realtime-stats-settings-wrap .notice{border-left:0;border-right:6px solid #F2BB08}.rtl .wps-widgets-settings-wrap .notice::before,.rtl .wps-mini-chart-settings-wrap .notice::before,.rtl .wps-rest-api-settings-wrap .notice::before,.rtl .wps-realtime-stats-settings-wrap .notice::before{margin-right:0;margin-left:10px}.rtl .wps-widgets-settings-wrap .notice-warning::before,.rtl .wps-mini-chart-settings-wrap .notice-warning::before,.rtl .wps-rest-api-settings-wrap .notice-warning::before,.rtl .wps-realtime-stats-settings-wrap .notice-warning::before{background-image:url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.88 12.88L15.71 13.71C15.8947 13.8963 15.9989 14.1477 16 14.41V15C16 15.5523 15.5523 16 15 16H1C0.447715 16 0 15.5523 0 15V14.41C0.00110462 14.1477 0.105256 13.8963 0.29 13.71L1.12 12.88C1.68277 12.3179 1.9993 11.5554 2 10.76V8C2 6.70178 2.42107 5.43858 3.2 4.4L4.1 3.2C4.66656 2.44458 5.55573 2 6.5 2H7V0.5C7 0.223858 7.22386 0 7.5 0H8.5C8.77614 0 9 0.223858 9 0.5V2H9.5C10.4443 2 11.3334 2.44458 11.9 3.2L12.8 4.4C13.5789 5.43858 14 6.70178 14 8V10.76C14.0007 11.5554 14.3172 12.3179 14.88 12.88ZM8 20C9.10457 20 10 19.1046 10 18H6C6 19.1046 6.89543 20 8 20Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.rtl .wps-widgets-settings-wrap .notice-danger,.rtl .wps-mini-chart-settings-wrap .notice-danger,.rtl .wps-rest-api-settings-wrap .notice-danger,.rtl .wps-realtime-stats-settings-wrap .notice-danger{border-right-color:#FF0000}.rtl .wps-widgets-settings-wrap .notice-danger::before,.rtl .wps-mini-chart-settings-wrap .notice-danger::before,.rtl .wps-rest-api-settings-wrap .notice-danger::before,.rtl .wps-realtime-stats-settings-wrap .notice-danger::before{margin-right:0;margin-left:8px;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.rtl .wps-widgets-settings-wrap .notice-info,.rtl .wps-mini-chart-settings-wrap .notice-info,.rtl .wps-rest-api-settings-wrap .notice-info,.rtl .wps-realtime-stats-settings-wrap .notice-info{border-right-color:#0090AD}.rtl .wps-widgets-settings-wrap .notice-info::before,.rtl .wps-mini-chart-settings-wrap .notice-info::before,.rtl .wps-rest-api-settings-wrap .notice-info::before,.rtl .wps-realtime-stats-settings-wrap .notice-info::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V10.5C9 10.2239 9.22386 10 9.5 10H10.5C10.7761 10 11 10.2239 11 10.5V13.5ZM10.5 8C10.7761 8 11 7.77614 11 7.5V6.5C11 6.22386 10.7761 6 10.5 6H9.5C9.22386 6 9 6.22386 9 6.5V7.5C9 7.77614 9.22386 8 9.5 8H10.5Z' fill='%230090AD'/%3E%3C/svg%3E%0A")}.rtl .wps-widgets-settings-wrap .notice-success,.rtl .wps-mini-chart-settings-wrap .notice-success,.rtl .wps-rest-api-settings-wrap .notice-success,.rtl .wps-realtime-stats-settings-wrap .notice-success{border-right-color:#22BB3F}.rtl .wps-widgets-settings-wrap .notice-success::before,.rtl .wps-mini-chart-settings-wrap .notice-success::before,.rtl .wps-rest-api-settings-wrap .notice-success::before,.rtl .wps-realtime-stats-settings-wrap .notice-success::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM8.73 13.35L14.35 7.73C14.5341 7.53685 14.5341 7.23315 14.35 7.04L13.82 6.51C13.6256 6.31943 13.3144 6.31943 13.12 6.51L8.38 11.25L6.88 9.76C6.78927 9.66332 6.66259 9.60848 6.53 9.60848C6.39741 9.60848 6.27073 9.66332 6.18 9.76L5.65 10.29C5.55534 10.3839 5.5021 10.5117 5.5021 10.645C5.5021 10.7783 5.55534 10.9061 5.65 11L8.03 13.35C8.12073 13.4467 8.24741 13.5015 8.38 13.5015C8.51259 13.5015 8.63927 13.4467 8.73 13.35Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.wps-mini-chart-settings-wrap input[type="text"].wp-color-picker,.wps-rest-api-settings-wrap input[type="text"].wp-color-picker,.wps-realtime-stats-settings-wrap input[type="text"].wp-color-picker{padding:2px 3px !important}.wps-wrap label{color:#000}.wps-wrap td .description{margin-top:12px !important;color:#5B5B5B}.wps-wrap select+input[type="submit"],.wps-wrap select+button{margin-left:4px}
1
+ .wps-text-danger{color:#DC3545 !important}.wps-text-success{color:#459605 !important}.wps-text-warning{color:#dc6b26 !important}.wps-text-muted{color:#797979 !important}.wps-center{text-align:center !important}.wps-d-none{display:none}.wps-d-inline-block{display:inline-block}.wps-middle-vertical{vertical-align:middle}a[href*='?page=wps_break_menu']{pointer-events:none}.wps-cursor-default{cursor:default}.wp-core-ui .btn-danger{background:rgba(186,0,0,0.74);border-color:rgba(170,0,0,0.77) rgba(153,0,0,0.74) rgba(153,0,0,0.74);box-shadow:0 1px 0 rgba(153,0,0,0.74);color:#fff;text-decoration:none;text-shadow:0 -1px 1px rgba(153,0,0,0.74),1px 0 1px rgba(153,0,0,0.74),0 1px 1px rgba(153,0,0,0.74),-1px 0 1px rgba(153,0,0,0.74)}.wp-core-ui .btn-danger:hover{background:#c20000;border-color:#990000;color:#fff}.wp-core-ui .btn-danger:active{background:rgba(170,0,0,0.75);border-color:rgba(153,0,0,0.74);box-shadow:inset 0 2px 0 rgba(153,0,0,0.75)}.wp-core-ui .btn-danger:focus{box-shadow:0 1px 0 rgba(170,0,0,0.75),0 0 2px 1px rgba(219,51,51,0.75);background:rgba(194,0,0,0.75);border-color:rgba(153,0,0,0.75);color:#fff;outline:0 !important}.wps-btn-inline{vertical-align:-2px;margin:0 5px}.wps-m-top-20{margin-top:20px}.wps-text-wrap{display:inline-block;overflow:hidden;white-space:nowrap;width:100% !important}.wps-width-100{width:100% !important}.wps-200-px{width:200px !important}.wps-inline{display:inline}.wps_page_title{display:inline-block;vertical-align:-15px;margin-top:10px;margin-bottom:10px;margin-right:5px}.wps_title{display:inline;font-size:1.6em}.wp-statistics-container{margin:0 auto}.wps-pull-right{float:right}.wps-pull-left{float:left}@media print{#wpadminbar,#adminmenuback,#adminmenuwrap,#show-settings-link{display:none}#wpcontent,#wpfooter{margin-left:0px}}#wpadminbar #wp-admin-bar-wp-statistic-menu .ab-icon:before{content:'\f184';top:2px}#wp-admin-bar-wp-statistics-menu-page{text-align:center}#wp-admin-bar-wp-statistics-menu-page .ab-item{height:auto !important}#wp-admin-bar-wp-statistics-menu-page a{padding-bottom:4px !important}#wp-admin-bar-wp-statistics-menu-page a img{max-width:200px}#wp-admin-bar-wp-statistics-menu-page .wps-admin-bar__chart__unlock-button{background-color:#2f5a82;padding:1px 0px;color:#ffffff;line-height:21px;font-size:12px;border-radius:2px;display:table;margin:0 auto;width:100%}.pagination-wrap{clear:both;display:block;overflow:hidden;text-align:center;margin-top:25px}.pagination-wrap .wps-page-number{color:#148e00;direction:rtl;margin-top:4px}.pagination-wrap .page-numbers li{margin-bottom:0;display:inline-block}.pagination-wrap .page-numbers li a,.pagination-wrap .pagination-wrap .page-numbers li span{display:inline-block;padding:6px 12px;margin-right:4px;border-radius:3px;border:solid 1px #c0c0c0;background:#e9e9e9;box-shadow:inset 0px 1px 0px rgba(255,255,255,0.8),0px 1px 3px rgba(0,0,0,0.1);font-size:.875em;font-weight:bold;text-decoration:none;color:#717171;text-shadow:0px 1px 0px #fff}.pagination-wrap .page-numbers>li>a:hover,.pagination-wrap .page-numbers>li>span:hover,.pagination-wrap .page-numbers>li>a:focus,.pagination-wrap .page-numbers>li>span:focus{background:#fefefe;background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#FEFEFE), to(#f0f0f0));background:-moz-linear-gradient(#FEFEFE, #f0f0f0)}.pagination-wrap .page-numbers li .current{border:none;background:#616161 !important;box-shadow:inset 0px 0px 8px rgba(0,0,0,0.5),0px 1px 0px rgba(255,255,255,0.8) !important;color:#f0f0f0;text-shadow:0px 0px 3px rgba(0,0,0,0.5);padding:7.5px 14px;vertical-align:-1.5px;margin:-8px 5px -5px 5px;border-radius:5px}i.mce-i-icon-statistic{font:400 20px/1 dashicons;padding:0;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-left:-2px;padding-right:2px}.wp-statistic-mce-desc{color:#b1b1b1 !important;margin-left:82px !important}html[dir="rtl"] .wp-statistic-mce-desc{text-align:right !important;margin:0 82px 0px 0px !important}.wps-gutenberg-chart-js{height:350px}.wps_loading_box{width:100%;text-align:center;min-height:65px;padding-top:15px}.wps-refresh:focus{box-shadow:none !important}.wps-more:hover span,.wps-refresh:hover span{color:#00a0d2}.wps-refresh:focus span{transition:transform .6s ease-in-out;-webkit-transition:-webkit-transform .6s ease-in-out;transform:rotate(360deg);-webkit-transform:rotate(360deg);color:#00a0d2}.button-link.wps-more,.button-link.wps-refresh{text-decoration:none !important}.wps-postbox-full{width:100%;float:left;margin-right:20px}#wps-big-postbox{width:100%;direction:ltr;margin-top:5px}.log-url{direction:ltr;float:left;font-size:10px;margin:0 0 0 2px;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}#wp_statistics_editor_meta_box,#wp-statistics-browsers-widget,#wp-statistics-countries-widget,#wp-statistics-hitsmap-widget,#wp-statistics-hits-widget,#wp-statistics-pages-widget,#wp-statistics-recent-widget,#wp-statistics-referring-widget,#wp-statistics-search-widget,#wp-statistics-summary-widget,#wp-statistics-words-widget,#wp-statistics-top-visitors-widget,#wps_hits_postbox,#wps_top_visitors_postbox,#wps_search_postbox,#wps_words_postbox,#wps_recent_postbox,#wps_map_postbox,#wps_pages_postbox,#wps_summary_postbox,#wps_browsers_postbox,#wps_referring_postbox,#wps_countries_postbox,#wps_words_postbox{overflow:hidden}#time_zone a{font-size:11px;text-decoration:none}#about-links{margin:0 0 10px}#about-links p{display:inline;font-size:12px;margin:0 2px;font-style:italic}.left-div{float:left}.right-div{float:right}#donate-text{float:left}#donate-button{float:right;margin:-2px 0 0 0}#donate-button a{height:23px;line-height:22px}.wp-statistics-sub-fullwidth{width:100%}.wp-statistics-responsive-table{overflow-x:auto}.wps-postbox-veronalabs{margin:18px 0 0 0}.wps-postbox-veronalabs img{width:116px}.wps-btn-group{text-align:center;margin:25px auto}.wps-btn-group .btn{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wps-btn-group .btn:focus,.wps-btn-group .btn:active:focus,.wps-btn-group .btn.active:focus,.wps-btn-group .btn.focus,.wps-btn-group .btn:active.focus,.wps-btn-group .btn.active.focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.wps-btn-group .btn:hover,.wps-btn-group .btn:focus,.wps-btn-group .btn.focus{color:#333333;text-decoration:none}.wps-btn-group .btn:active,.wps-btn-group .btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.wps-btn-group .btn.disabled,.wps-btn-group .btn[disabled],.wps-btn-group fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);opacity:0.65;-webkit-box-shadow:none;box-shadow:none}.wps-btn-group a.btn.disabled,.wps-btn-group fieldset[disabled] a.btn{pointer-events:none}.wps-btn-group .btn-default{color:#333333;background-color:#ffffff;border-color:#e0e0e0}.wps-btn-group .btn-default:focus,.wps-btn-group .btn-default.focus{color:#333333;background-color:#e6e6e6;border-color:#8c8c8c}.wps-btn-group .btn-default:hover{color:#333333;background-color:#e6e6e6;border-color:#adadad}.wps-btn-group .btn-default:active,.wps-btn-group .btn-default.active,.wps-btn-group .open>.dropdown-toggle.btn-default{color:#333333;background-color:#e6e6e6;background-image:none;border-color:#adadad}.wps-btn-group .btn-default:active:hover,.wps-btn-group .btn-default.active:hover,.wps-btn-group .open>.dropdown-toggle.btn-default:hover,.wps-btn-group .btn-default:active:focus,.wps-btn-group .btn-default.active:focus,.wps-btn-group .open>.dropdown-toggle.btn-default:focus,.wps-btn-group .btn-default:active.focus,.wps-btn-group .btn-default.active.focus,.wps-btn-group .open>.dropdown-toggle.btn-default.focus{color:#333333;background-color:#d4d4d4;border-color:#8c8c8c}.wps-btn-group .btn-default.disabled:hover,.wps-btn-group .btn-default[disabled]:hover,.wps-btn-group fieldset[disabled] .btn-default:hover,.wps-btn-group .btn-default.disabled:focus,.wps-btn-group .btn-default[disabled]:focus,.wps-btn-group fieldset[disabled] .btn-default:focus,.wps-btn-group .btn-default.disabled.focus,.wps-btn-group .btn-default[disabled].focus,.wps-btn-group fieldset[disabled] .btn-default.focus{background-color:#ffffff;border-color:#cccccc}.wps-btn-group .btn-default .badge{color:#ffffff;background-color:#333333}.wps-btn-group .btn-primary{color:#ffffff;background-color:#00a0d2;border-color:#00A0D2}.wps-btn-group .btn-primary:focus,.wps-btn-group .btn-primary.focus{color:#ffffff;background-color:#286090;border-color:#122b40}.wps-btn-group .btn-primary:hover{color:#ffffff;background-color:#286090;border-color:#204d74}.wps-btn-group .btn-primary:active,.wps-btn-group .btn-primary.active,.wps-btn-group .open>.dropdown-toggle.btn-primary{color:#ffffff;background-color:#286090;background-image:none;border-color:#204d74}.wps-btn-group .btn-primary:active:hover,.wps-btn-group .btn-primary.active:hover,.wps-btn-group .open>.dropdown-toggle.btn-primary:hover,.wps-btn-group .btn-primary:active:focus,.wps-btn-group .btn-primary.active:focus,.wps-btn-group .open>.dropdown-toggle.btn-primary:focus,.wps-btn-group .btn-primary:active.focus,.wps-btn-group .btn-primary.active.focus,.wps-btn-group .open>.dropdown-toggle.btn-primary.focus{color:#ffffff;background-color:#204d74;border-color:#122b40}.wps-btn-group .btn-primary.disabled:hover,.wps-btn-group .btn-primary[disabled]:hover,.wps-btn-group fieldset[disabled] .btn-primary:hover,.wps-btn-group .btn-primary.disabled:focus,.wps-btn-group .btn-primary[disabled]:focus,.wps-btn-group fieldset[disabled] .btn-primary:focus,.wps-btn-group .btn-primary.disabled.focus,.wps-btn-group .btn-primary[disabled].focus,.wps-btn-group fieldset[disabled] .btn-primary.focus{background-color:#337ab7;border-color:#2e6da4}.wps-btn-group .btn-primary .badge{color:#337ab7;background-color:#ffffff}.wps-btn-group .btn-danger{color:#ffffff;background-color:#d9534f;border-color:#d43f3a}.wps-btn-group .btn-danger:focus,.wps-btn-group .btn-danger.focus{color:#ffffff;background-color:#c9302c;border-color:#761c19}.wps-btn-group .btn-danger:hover{color:#ffffff;background-color:#c9302c;border-color:#ac2925}.wps-btn-group .btn-danger:active,.wps-btn-group .btn-danger.active,.wps-btn-group .open>.dropdown-toggle.btn-danger{color:#ffffff;background-color:#c9302c;background-image:none;border-color:#ac2925}.wps-btn-group .btn-danger:active:hover,.wps-btn-group .btn-danger.active:hover,.wps-btn-group .open>.dropdown-toggle.btn-danger:hover,.wps-btn-group .btn-danger:active:focus,.wps-btn-group .btn-danger.active:focus,.wps-btn-group .open>.dropdown-toggle.btn-danger:focus,.wps-btn-group .btn-danger:active.focus,.wps-btn-group .btn-danger.active.focus,.wps-btn-group .open>.dropdown-toggle.btn-danger.focus{color:#ffffff;background-color:#ac2925;border-color:#761c19}.wps-btn-group .btn-danger.disabled:hover,.wps-btn-group .btn-danger[disabled]:hover,.wps-btn-group fieldset[disabled] .btn-danger:hover,.wps-btn-group .btn-danger.disabled:focus,.wps-btn-group .btn-danger[disabled]:focus,.wps-btn-group fieldset[disabled] .btn-danger:focus,.wps-btn-group .btn-danger.disabled.focus,.wps-btn-group .btn-danger[disabled].focus,.wps-btn-group fieldset[disabled] .btn-danger.focus{background-color:#d9534f;border-color:#d43f3a}.wps-btn-group .btn-danger .badge{color:#d9534f;background-color:#ffffff}.wps-btn-group .btn-link{font-weight:400;color:#337ab7;border-radius:0}.wps-btn-group .btn-link,.wps-btn-group .btn-link:active,.wps-btn-group .btn-link.active,.wps-btn-group .btn-link[disabled],.wps-btn-group fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.wps-btn-group .btn-link,.wps-btn-group .btn-link:hover,.wps-btn-group .btn-link:focus,.wps-btn-group .btn-link:active{border-color:transparent}.wps-btn-group .btn-link:hover,.wps-btn-group .btn-link:focus{color:#23527c;text-decoration:underline;background-color:transparent}.wps-btn-group .btn-link[disabled]:hover,.wps-btn-group fieldset[disabled] .btn-link:hover,.wps-btn-group .btn-link[disabled]:focus,.wps-btn-group fieldset[disabled] .btn-link:focus{color:#777777;text-decoration:none}.wps-btn-group .btn-block{display:block;width:100%}.wps-btn-group .btn-block+.btn-block{margin-top:5px}.wps-btn-group input[type="submit"].btn-block,.wps-btn-group input[type="reset"].btn-block,.wps-btn-group input[type="button"].btn-block{width:100%}.wps-btn-group .btn-group,.wps-btn-group .btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.wps-btn-group .btn-group>.btn,.wps-btn-group .btn-group-vertical>.btn{position:relative;float:left}.wps-btn-group .btn-group>.btn:hover,.wps-btn-group .btn-group-vertical>.btn:hover,.wps-btn-group .btn-group>.btn:focus,.wps-btn-group .btn-group-vertical>.btn:focus,.wps-btn-group .btn-group>.btn:active,.wps-btn-group .btn-group-vertical>.btn:active,.wps-btn-group .btn-group>.btn.active,.wps-btn-group .btn-group-vertical>.btn.active{z-index:2}.wps-btn-group .btn-group .btn+.btn,.wps-btn-group .btn-group .btn+.btn-group,.wps-btn-group .btn-group .btn-group+.btn,.wps-btn-group .btn-group .btn-group+.btn-group{margin-left:-1px}.wps-btn-group .btn-toolbar{margin-left:-5px}.wps-btn-group .btn-toolbar .btn,.wps-btn-group .btn-toolbar .btn-group,.wps-btn-group .btn-toolbar .input-group{float:left}.wps-btn-group .btn-toolbar>.btn,.wps-btn-group .btn-toolbar>.btn-group,.wps-btn-group .btn-toolbar>.input-group{margin-left:5px}.wps-btn-group .btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.wps-btn-group .btn-group>.btn:first-child{margin-left:0}.wps-btn-group .btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.wps-btn-group .btn-group>.btn:last-child:not(:first-child),.wps-btn-group .btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.wps-btn-group .btn-group>.btn-group{float:left}.wps-btn-group .btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.wps-btn-group .btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.wps-btn-group .btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.wps-btn-group .btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.wps-btn-group .btn-group .dropdown-toggle:active,.wps-btn-group .btn-group.open .dropdown-toggle{outline:0}.wps-btn-group .btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.wps-btn-group .btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.wps-btn-group .btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.wps-btn-group .btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.wps-btn-group .btn .caret{margin-left:0}.wps-btn-group .btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.wps-btn-group .dropup .btn-lg .caret{border-width:0 5px 5px}.wps-btn-group .btn-group-vertical>.btn,.wps-btn-group .btn-group-vertical>.btn-group,.wps-btn-group .btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.wps-btn-group .btn-group-vertical>.btn-group>.btn{float:none}.wps-btn-group .btn-group-vertical>.btn+.btn,.wps-btn-group .btn-group-vertical>.btn+.btn-group,.wps-btn-group .btn-group-vertical>.btn-group+.btn,.wps-btn-group .btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.wps-btn-group .btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.wps-btn-group .btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.wps-btn-group .btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.wps-btn-group .btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.wps-btn-group .btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.wps-btn-group .btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.wps-btn-group .btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.wps-btn-group .btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.wps-btn-group .btn-group-justified>.btn,.wps-btn-group .btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.wps-btn-group .btn-group-justified>.btn-group .btn{width:100%}.wps-btn-group .btn-group-justified>.btn-group .dropdown-menu{left:auto}.wps-btn-group [data-toggle="buttons"]>.btn input[type="radio"],.wps-btn-group [data-toggle="buttons"]>.btn-group>.btn input[type="radio"],.wps-btn-group [data-toggle="buttons"]>.btn input[type="checkbox"],.wps-btn-group [data-toggle="buttons"]>.btn-group>.btn input[type="checkbox"]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.wps-btn-group .clearfix:before,.wps-btn-group .clearfix:after,.wps-btn-group .btn-toolbar:before,.wps-btn-group .btn-toolbar:after,.wps-btn-group .btn-group-vertical>.btn-group:before,.wps-btn-group .btn-group-vertical>.btn-group:after{display:table;content:" "}.wps-btn-group .clearfix:after,.wps-btn-group .btn-toolbar:after,.wps-btn-group .btn-group-vertical>.btn-group:after{clear:both}.wps-btn-group .center-block{display:block;margin-right:auto;margin-left:auto}.wps-btn-group .pull-right{float:right !important}.wps-btn-group .pull-left{float:left !important}.wps-btn-group .hide{display:none !important}div[data-chart-date-picker]{text-align:center;margin-bottom:20px;transition:1s all}div[data-chart-date-picker] input{margin:0px 8px;border-radius:5px;box-shadow:none;padding:5px}div[data-chart-date-picker] input[type=submit]{vertical-align:2px}.wps-ph-item{position:relative;display:flex;flex-wrap:wrap;overflow:hidden;background-color:#fff;direction:ltr}.wps-ph-item,.wps-ph-item *,.wps-ph-item ::after,.wps-ph-item ::before{box-sizing:border-box}.wps-ph-item::before{content:" ";position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;animation:phAnimation 1s linear infinite;background:linear-gradient(to right, rgba(255,255,255,0) 46%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 54%) 50% 50%}.wps-ph-item>*{flex:1 1 auto;display:flex;flex-flow:column;padding-right:10px;padding-left:10px}.wps-ph-row{display:flex;flex-wrap:wrap;margin-bottom:7.5px}.wps-ph-row div{height:15px;margin-bottom:7.5px;background-color:#dee4ea}.wps-ph-row .big,.wps-ph-row.big div{height:20px;margin-bottom:15px}.wps-ph-row .empty{background-color:rgba(255,255,255,0)}.wps-ph-col-2{flex:0 0 16.66667%}.wps-ph-col-4{flex:0 0 33.33333%}.wps-ph-col-6{flex:0 0 50%}.wps-ph-col-8{flex:0 0 66.66667%}.wps-ph-col-10{flex:0 0 83.33333%}.wps-ph-col-12{flex:0 0 100%}.wps-ph-avatar{position:relative;width:100%;min-width:60px;background-color:#dee4ea;margin-bottom:15px;border-radius:50%;overflow:hidden}.wps-ph-avatar::before{content:" ";display:block;padding-top:100%}.wps-ph-picture{width:100%;height:120px;background-color:#dee4ea;margin-bottom:15px}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}.wps-text-placeholder{width:90px;height:25px;margin:0px auto}.wps-badge{display:inline-block;min-width:8px;padding:3px 7px;font-size:12px;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:1px;background-color:#DC3545;border-radius:10px}#post-stats{border:none}#th-colspan{text-align:center}#th-colspan span{color:#459605 !important;font-size:30px}#last-visitor tr{text-align:center}#last-visitor tr:first-child{background:none repeat scroll 0 0 #EEEEEE;font-weight:bold;text-align:center}#last-search tr{text-align:center}#last-search tr:first-child{background:none repeat scroll 0 0 #EEEEEE;font-weight:bold;text-align:center}table.wps-table-fixed{table-layout:fixed;width:100%}table.wps-table-auto{table-layout:auto;width:100%}.wps-report-table tr{text-align:left}.wps-report-table tr:first-child{background:none repeat scroll 0 0 #EEEEEE;font-weight:bold;text-align:center}.th-center{text-align:center !important}.td-align{text-align:left}.td-url{color:#009936 !important;direction:ltr;font-size:10px !important;text-align:left;white-space:nowrap}.log-item{border-bottom:1px solid #efeeee;border-top:1px solid #FFFFFF;min-height:46px;padding:3px 7px}.log-item:hover{background:none repeat scroll 0 0 #f7f7f7}.log-referred{float:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto}.log-page-title{float:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%}.log-ip{direction:ltr;float:right;font-size:10px;margin-bottom:5px;white-space:pre;overflow:hidden;text-overflow:ellipsis;text-align:right}.log-tools{float:left;margin:0 2px}.log-agent{float:left}.table-stats tr,.table-stats td{border-bottom:1px solid #efeeee;background-color:white;transition:1s all}.table-stats tr:last-child td{border-bottom:0}.table-stats tr:hover:not(:first-child) td{background-color:rgba(241,241,241,0.65) !important}.table-stats tr:first-child td{border:0 none;text-align:left}.rtl .table-stats.left-align tr,.rtl .table-stats.left-align td{text-align:left !important}.rtl .table-stats tr,.rtl .table-stats td{text-align:right !important}.rtl .table-stats .log-tools{float:right}.rtl .table-stats .th-center{text-align:center !important}.table-stats{border:0 none !important}#visits-log{direction:ltr;height:290px;width:100%}#search-engine-log{direction:ltr}#platform-log{direction:ltr}#visits-stats{direction:ltr}#exclusion-stats{direction:ltr}#search-stats{direction:ltr}#page-stats{direction:ltr}.wp-statistics-settings .widefat{float:left}.wp-statistics-settings .note{color:#FF0000;font-size:11px !important;font-weight:bold}.wp-statistics-settings .postbox-container{margin-top:51px}.wp-statistics-settings .postbox-container .postbox{padding:12px !important}.wp-statistics-settings ul.tabs{margin:0;padding:0;list-style:none}.wp-statistics-settings ul.tabs li{background:none;color:#222;display:inline-block;padding:10px 8px;cursor:pointer;border:1px solid #f1f1f1;margin:0}.wp-statistics-settings ul.tabs li.current{background:#ffffff;color:#222;border-right-color:#e5e5e5;border-left-color:#e5e5e5;border-bottom-color:#ffffff;border-top-color:#e5e5e5;padding-bottom:11px}.wp-statistics-settings .tab-content{display:none;margin:-1px 0 0 0}.wp-statistics-settings .tab-content.current{display:inherit}.wp-statistics-settings #update_geoip{margin-left:5px;margin-top:-5px;line-height:19px;font-size:12px;height:25px}@media only screen and (max-width: 1327px){.wp-statistics-settings ul.tabs li{padding:10px 5px}}.wp-statistics-plugins .widefat>*{float:left}.wp-statistics-plugins .widefat .plugin-card{position:relative}.wp-statistics-plugins .widefat .plugin-card .desc,.wp-statistics-plugins .widefat .plugin-card .name{margin-right:0}.wp-statistics-plugins .widefat .plugin-card-bottom{float:initial}.wp-statistics-plugins .widefat .plugin-card-bottom span.from{display:none}.wp-statistics-plugins .widefat .column-downloaded p{margin:2px 0 0 0}.wp-statistics-plugins .column-price{display:inline;margin:0 8px;font-size:15px;color:#589616}.wp-statistics-plugins .plugin-card .cover-ribbon{height:115px;width:115px;position:absolute;left:-8px;top:-7px;overflow:hidden}.wp-statistics-plugins .plugin-card .cover-ribbon .cover-ribbon-inside{background:#EA4335;color:#FFF;transform:rotate(-45deg);position:absolute;left:-35px;top:16px;padding:10px;min-width:127px;text-align:center;z-index:9}.wp-statistics-plugins .plugin-card .cover-ribbon .cover-ribbon-inside:before{width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:10px solid #992C23;position:absolute;left:-5px;bottom:0;content:"";top:34px;transform:rotate(-45deg)}.wp-statistics-plugins .plugin-card .cover-ribbon .cover-ribbon-inside:after{width:0;height:0;border-top:7px solid transparent;border-left:7px solid #992C23;border-bottom:7px solid transparent;position:absolute;top:33px;bottom:0;right:4px;content:"";transform:rotate(-45deg)}.wp-statistics-welcome .wp-badge{background-image:url("../images/logo-250-white.png");background-color:#1aabec}.wp-statistics-welcome .nav-tab.donate{background-color:#459605;color:#ffffff}.wp-statistics-welcome .tab-content{display:none}.wp-statistics-welcome .tab-content.current{display:block}.wp-statistics-welcome ul li{margin:0 31px}.wp-statistics-welcome ul{list-style-type:square;line-height:28px;margin:0 0 20px 0}.wp-statistics-welcome img{width:auto}.wp-statistics-welcome .center-section{padding:41px 0 60px;clear:both;text-align:center}.wp-statistics-welcome .normal-section .left{float:left;width:50%;text-align:left}.wp-statistics-welcome .normal-section .right{float:right;width:50%}.wp-statistics-welcome .normal-section{float:left;width:100%;padding:36px 0 44px;border-bottom:1px solid #dedede}.wp-statistics-welcome .normal-section h2{text-align:left}.wp-statistics-welcome .text-center{text-align:center !important}.wp-statistics-welcome .content-padding{padding:0 43px}.wp-statistics-welcome .addons-item img{width:120px;border-radius:4px}.wp-statistics-welcome .addons-item a{display:inline-block;margin:0 5px}.wp-statistics-welcome .center-section.logo img{width:150px}.wp-statistics-welcome .center-section.logo>a{display:inline-block}.wp-statistics-welcome .plugin-icon{width:128px;height:128px}.wp-statistics-welcome .plugin-card h3{margin:0 0 12px;font-size:18px;line-height:1.3}.wp-statistics-welcome .plugin-card{text-align:left}.wp-statistics-welcome .about-text img{width:90px}.wps-return-to-dashboard{margin:30px 0 0 -5px;font-size:14px;font-weight:600}.wps-return-to-dashboard a{text-decoration:none;padding:0 5px}#wps-postbox-container-1{width:30%;float:left}#wps-postbox-container-2{margin:0 0 0 1%;width:68%;float:right}@media screen and (max-width: 998px){#wps-postbox-container-1{width:35%}#wps-postbox-container-2{margin:0 0 0 1%;width:63%}}@media screen and (max-width: 758px){#wps-postbox-container-1{width:100%}#wps-postbox-container-2{margin:0 0 0 1%;width:100%}}@media screen and (max-width: 524px){#wps-postbox-container-1{width:100%}#wps-postbox-container-2{margin:0 0 0 1%;width:100%}}#wps-postbox-container-1 a,#wps-postbox-container-2 a,#wps-big-postbox a{text-decoration:none}.column-wp-statistics-tax-hits{width:15%;text-align:center}.column-wp-statistics-post-hits{width:10%;text-align:center}.wps-admin-column__unlock a{color:#ffffff;font-size:12px;display:flex;justify-content:center}.wps-admin-column__unlock a span{background:#347ab6;padding:1px 3px;border-radius:2px;position:absolute;visibility:hidden;font-size:9px;line-height:14px;z-index:1;margin-top:7px}.wps-admin-column__unlock a img{width:100%;opacity:0.5}.wps-admin-column__unlock a:hover span{visibility:visible}body.toplevel_page_wps_overview_page fieldset.columns-prefs,body.toplevel_page_wps_overview_page label[for=wp-statistics-about-widget-hide]{display:none !important}#wps_overview_ads_postbox .inside{padding:0 !important;margin:0;line-height:0}#wps_overview_ads_postbox .inside a img{width:100%;height:auto}#wps_overview_ads_postbox .inside a:focus{box-shadow:none}#wps_overview_ads_postbox .inside .close-overview-ads{position:absolute;right:0;margin:15px 20px;opacity:0;transition:1s all}#wps_overview_ads_postbox .inside .close-overview-ads span.dashicons{font-size:21px;color:#72777c;cursor:pointer}#wps_overview_ads_postbox .inside:hover .close-overview-ads{opacity:1}#wps_overview_ads_postbox{padding:0}.toplevel_page_wps_overview_page #screen-meta-links{margin-bottom:-30px}.wps-equal-postbox{display:flex}.wps-postbox-half{width:calc((100% / 2) - 20px);margin-right:10px}.wps-postbox-half .title-center{text-align:center;margin:25px auto;color:#828282}.wps-postbox-half .inside{padding:5px 10px !important;margin:5px 0 5px 0 !important}.wps-title-group{margin:15px 0 20px 0;border-bottom:1px solid #d2d2d2;padding-bottom:13px;width:98%}body[class*="wps_visitors_page"] #TB_closeWindowButton:focus .tb-close-icon{-webkit-box-shadow:none !important;box-shadow:none !important}body[class*="wps_visitors_page"] #visitors-filter{cursor:pointer;color:#666;transition:0.5s all;margin-top:5px}body[class*="wps_visitors_page"] #visitors-filter .dashicons{vertical-align:-5px}body[class*="wps_visitors_page"] #visitors-filter:hover{color:#d82424}body[class*="wps_visitors_page"] .select2-dropdown{z-index:9999999999 !important}body[class*="wps_visitors_page"] .select2-container{width:100% !important}body[class*="wps_visitors_page"] .tbl-page-column{width:220px}body[class*="wps_visitors_page"] .tbl-page-column span.txt-overflow{white-space:nowrap;overflow:hidden;width:210px !important;display:block}#wps-visitors-filter-form{padding:10px 5px}#wps-visitors-filter-form table.widefat{border:0 !important;box-shadow:none !important}html[dir=rtl] body[class*="wps_visitors_page"] #TB_ajaxContent{text-align:right !important}form#wp-statistics-select-pages{margin-bottom:-15px;margin-top:16px}form#wp-statistics-select-pages .select-title{vertical-align:-2px}form#wp-statistics-select-pages select[name=ID]{width:300px;margin:0 8px}form#wp-statistics-select-pages input[type=submit]{margin:0 5px;vertical-align:-2px}form#wp-statistics-select-pages .submit-form{padding:0 5px;vertical-align:-3px}.wps-wrap.wps-meta-box-footer{padding-top:14px}.wps-admin-pages-visitors__preview{max-height:230px;overflow:hidden;position:relative}.wps-admin-pages-visitors__preview img{width:100%}.wps-admin-pages-visitors__preview:after{content:"";position:absolute;z-index:1;bottom:0;left:0;pointer-events:none;background-image:linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%);width:100%;height:4em}#wps-big-postbox .wps-admin-pages-visitors__preview{max-height:290px}.wps-admin-pages-visitors__promotion{background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);padding:7px 20px 15px;width:52%;text-align:center;box-shadow:rgba(0,0,0,0.3) 0px 19px 38px,rgba(0,0,0,0) 0px 0px 12px}.wps-admin-pages-visitors__promotion p{margin:5px !important}.wps-admin-pages-visitors__promotion a{padding:10px 14px !important}.misc-pub-hits:before{content:"\f184";font:normal 20px/1 dashicons;display:inline-block;margin-left:-1px;padding-right:3px;vertical-align:top;color:#8c8f94}.wps-about-logo{max-width:170px;margin:0 0 9px 0}.wps-summary-stats{background:none repeat scroll 0 0 rgba(0,0,0,0);border:1px none;margin:0 0 10px}.wps-summary-stats tr:first-child th{border-top:0 none}.wps-summary-stats span{color:#21759B !important;font-family:Georgia, "Times New Roman", "Bitstream Charter", Times, serif;font-size:21px}.wps-engine-logo{vertical-align:-3px}#wp-statistics-visitors-map{direction:ltr;height:300px;width:100%}.map-html-marker{max-height:170px;width:200px}.map-html-marker p{border-bottom:1px dashed #EFEFEF;font-size:10px;margin:2px 0;padding:3px 0;text-align:left}.map-html-marker p:last-child{border-bottom:0 none}.jqvmap-label{z-index:10000}.jqvmap-zoomin,.jqvmap-zoomout{background:#717171 !important}.wps-referring-widget-ip{display:block;padding:0 15px;font-size:10px;color:#a2a2a2;margin-left:6px}.wps-wrap__main{padding:20px}.wps-wrap .postbox{padding:0}.wps-wrap .postbox .postbox-header{padding:7px 15px}.wps-wrap .postbox .postbox-header h2{padding:0}.wps-wrap .postbox .inside{padding:15px}.wps-wrap .postbox table tr:first-child th{padding:0}.wps-wrap .postbox table tr:first-child th h3{margin-top:0}.toplevel_page_wps_overview_page .wps-wrap,.statistics_page_wps_hits_page .wps-wrap,.statistics_page_wps_online_page .wps-wrap,.statistics_page_wps_online_page .wps-wrap,.statistics_page_wps_referrers_page .wps-wrap,.statistics_page_wps_words_page .wps-wrap,.statistics_page_wps_visitors_page .wps-wrap,.statistics_page_wps_searches_page .wps-wrap,.statistics_page_wps_pages_page .wps-wrap,.statistics_page_wps_categories_page .wps-wrap,.statistics_page_wps_tags_page .wps-wrap,.statistics_page_wps_authors_page .wps-wrap,.statistics_page_wps_browser_page .wps-wrap,.statistics_page_wps_platform_page .wps-wrap,.statistics_page_wps_top-visitors_page .wps-wrap,.statistics_page_wps_optimization_page .wps-wrap,.statistics_page_wps_settings_page .wps-wrap,.statistics_page_wps_plugins_page .wps-wrap{margin:0 !important}.toplevel_page_wps_overview_page #wpcontent,.statistics_page_wps_hits_page #wpcontent,.statistics_page_wps_online_page #wpcontent,.statistics_page_wps_visitors_page #wpcontent,.statistics_page_wps_referrers_page #wpcontent,.statistics_page_wps_words_page #wpcontent,.statistics_page_wps_searches_page #wpcontent,.statistics_page_wps_pages_page #wpcontent,.statistics_page_wps_categories_page #wpcontent,.statistics_page_wps_tags_page #wpcontent,.statistics_page_wps_authors_page #wpcontent,.statistics_page_wps_browser_page #wpcontent,.statistics_page_wps_platform_page #wpcontent,.statistics_page_wps_top-visitors_page #wpcontent,.statistics_page_wps_optimization_page #wpcontent,.statistics_page_wps_settings_page #wpcontent,.statistics_page_wps_plugins_page #wpcontent{padding:0 !important}.toplevel_page_wps_overview_page #wpbody-content>.notice,.statistics_page_wps_hits_page #wpbody-content>.notice,.statistics_page_wps_online_page #wpbody-content>.notice,.statistics_page_wps_visitors_page #wpbody-content>.notice,.statistics_page_wps_referrers_page #wpbody-content>.notice,.statistics_page_wps_words_page #wpbody-content>.notice,.statistics_page_wps_searches_page #wpbody-content>.notice,.statistics_page_wps_pages_page #wpbody-content>.notice,.statistics_page_wps_categories_page #wpbody-content>.notice,.statistics_page_wps_tags_page #wpbody-content>.notice,.statistics_page_wps_authors_page #wpbody-content>.notice,.statistics_page_wps_browser_page #wpbody-content>.notice,.statistics_page_wps_platform_page #wpbody-content>.notice,.statistics_page_wps_top-visitors_page #wpbody-content>.notice,.statistics_page_wps_optimization_page #wpbody-content>.notice,.statistics_page_wps_settings_page #wpbody-content>.notice,.statistics_page_wps_plugins_page #wpbody-content>.notice{margin:20px !important}.statistics_page_wps_plugins_page .wps-wrap .notice{margin:20px !important}.wps-wrap__main .notice{margin:20px 0 !important}.wps-header-banner{width:100%;max-width:100%;background:url("../images/page-header.svg") center center/100% no-repeat;min-height:138px;display:flex;justify-content:flex-end;align-items:center;padding:0 0 20px}@media screen and (max-width: 1300px){.wps-header-banner{background:url("../images/page-header.svg") 5% center/cover no-repeat;min-height:113px;display:flex;justify-content:flex-end;align-items:center;padding:20px}}#screen-meta-links+br+.wps-wrap .wps-header-banner{transform:translateY(-31px);z-index:-1;position:relative;min-height:150px}#screen-meta-links+br+.wps-wrap .wps-wrap__main{transform:translateY(-31px)}.wps-wrap input[type="text"].small-text{padding:12px 8px !important;min-width:80px}.wps-wrap .notice:not(.hidden){padding:2px 14px;border-radius:4px;color:#242A31;font-weight:normal;font-size:14px;line-height:24px;border:1px solid #D6D6D6;box-sizing:border-box;border-left:6px solid #F2BB08;box-shadow:0px 2px 4px rgba(0,0,0,0.08);margin:10px 0 24px;display:flex;align-items:flex-start}.wps-wrap .notice::before{content:'';min-width:20px;min-height:20px;display:inline-block;vertical-align:middle;margin-right:10px;margin-top:10px;background:center center/auto no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V12.5C9 12.2239 9.22386 12 9.5 12H10.5C10.7761 12 11 12.2239 11 12.5V13.5ZM10.53 10C10.6572 10.0009 10.7647 9.90624 10.78 9.78L11.18 6.56C11.1972 6.41735 11.1523 6.27417 11.0566 6.16698C10.9609 6.05979 10.8237 5.99896 10.68 6H9.32C9.17631 5.99896 9.03912 6.05979 8.94342 6.16698C8.84771 6.27417 8.80275 6.41735 8.82 6.56L9.22 9.78C9.23526 9.90624 9.34284 10.0009 9.47 10H10.53Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.wps-wrap .notice-warning::before{background-image:url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.88 12.88L15.71 13.71C15.8947 13.8963 15.9989 14.1477 16 14.41V15C16 15.5523 15.5523 16 15 16H1C0.447715 16 0 15.5523 0 15V14.41C0.00110462 14.1477 0.105256 13.8963 0.29 13.71L1.12 12.88C1.68277 12.3179 1.9993 11.5554 2 10.76V8C2 6.70178 2.42107 5.43858 3.2 4.4L4.1 3.2C4.66656 2.44458 5.55573 2 6.5 2H7V0.5C7 0.223858 7.22386 0 7.5 0H8.5C8.77614 0 9 0.223858 9 0.5V2H9.5C10.4443 2 11.3334 2.44458 11.9 3.2L12.8 4.4C13.5789 5.43858 14 6.70178 14 8V10.76C14.0007 11.5554 14.3172 12.3179 14.88 12.88ZM8 20C9.10457 20 10 19.1046 10 18H6C6 19.1046 6.89543 20 8 20Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.wps-wrap .notice-error{border-left-color:#FF0000}.wps-wrap .notice-error::before{min-width:23px;margin-right:8px;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.wps-wrap .notice-info{border-left-color:#0090AD}.wps-wrap .notice-info::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V10.5C9 10.2239 9.22386 10 9.5 10H10.5C10.7761 10 11 10.2239 11 10.5V13.5ZM10.5 8C10.7761 8 11 7.77614 11 7.5V6.5C11 6.22386 10.7761 6 10.5 6H9.5C9.22386 6 9 6.22386 9 6.5V7.5C9 7.77614 9.22386 8 9.5 8H10.5Z' fill='%230090AD'/%3E%3C/svg%3E%0A")}.wps-wrap .notice-success{border-left-color:#22BB3F}.wps-wrap .notice-success::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM8.73 13.35L14.35 7.73C14.5341 7.53685 14.5341 7.23315 14.35 7.04L13.82 6.51C13.6256 6.31943 13.3144 6.31943 13.12 6.51L8.38 11.25L6.88 9.76C6.78927 9.66332 6.66259 9.60848 6.53 9.60848C6.39741 9.60848 6.27073 9.66332 6.18 9.76L5.65 10.29C5.55534 10.3839 5.5021 10.5117 5.5021 10.645C5.5021 10.7783 5.55534 10.9061 5.65 11L8.03 13.35C8.12073 13.4467 8.24741 13.5015 8.38 13.5015C8.51259 13.5015 8.63927 13.4467 8.73 13.35Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.rtl .wps-wrap .notice{border-left:0;border-right:6px solid #F2BB08}.rtl .wps-wrap .notice::before{margin-right:0;margin-left:10px}.rtl .wps-wrap .notice-warning::before{background-image:url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.88 12.88L15.71 13.71C15.8947 13.8963 15.9989 14.1477 16 14.41V15C16 15.5523 15.5523 16 15 16H1C0.447715 16 0 15.5523 0 15V14.41C0.00110462 14.1477 0.105256 13.8963 0.29 13.71L1.12 12.88C1.68277 12.3179 1.9993 11.5554 2 10.76V8C2 6.70178 2.42107 5.43858 3.2 4.4L4.1 3.2C4.66656 2.44458 5.55573 2 6.5 2H7V0.5C7 0.223858 7.22386 0 7.5 0H8.5C8.77614 0 9 0.223858 9 0.5V2H9.5C10.4443 2 11.3334 2.44458 11.9 3.2L12.8 4.4C13.5789 5.43858 14 6.70178 14 8V10.76C14.0007 11.5554 14.3172 12.3179 14.88 12.88ZM8 20C9.10457 20 10 19.1046 10 18H6C6 19.1046 6.89543 20 8 20Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.rtl .wps-wrap .notice-danger{border-right-color:#FF0000}.rtl .wps-wrap .notice-danger::before{margin-right:0;margin-left:8px;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.rtl .wps-wrap .notice-info{border-right-color:#0090AD}.rtl .wps-wrap .notice-info::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V10.5C9 10.2239 9.22386 10 9.5 10H10.5C10.7761 10 11 10.2239 11 10.5V13.5ZM10.5 8C10.7761 8 11 7.77614 11 7.5V6.5C11 6.22386 10.7761 6 10.5 6H9.5C9.22386 6 9 6.22386 9 6.5V7.5C9 7.77614 9.22386 8 9.5 8H10.5Z' fill='%230090AD'/%3E%3C/svg%3E%0A")}.rtl .wps-wrap .notice-success{border-right-color:#22BB3F}.rtl .wps-wrap .notice-success::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM8.73 13.35L14.35 7.73C14.5341 7.53685 14.5341 7.23315 14.35 7.04L13.82 6.51C13.6256 6.31943 13.3144 6.31943 13.12 6.51L8.38 11.25L6.88 9.76C6.78927 9.66332 6.66259 9.60848 6.53 9.60848C6.39741 9.60848 6.27073 9.66332 6.18 9.76L5.65 10.29C5.55534 10.3839 5.5021 10.5117 5.5021 10.645C5.5021 10.7783 5.55534 10.9061 5.65 11L8.03 13.35C8.12073 13.4467 8.24741 13.5015 8.38 13.5015C8.51259 13.5015 8.63927 13.4467 8.73 13.35Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.rtl .wpsms-header-banner{justify-content:flex-start;align-items:center}.wpsms-header-banner .license-status{min-width:200px;padding:15px 17px;width:auto;background:#fff;box-shadow:0px 2px 4px rgba(0,0,0,0.08);border-radius:4px}.wpsms-header-banner .license-status h3{margin:0 0 5px;font-weight:600;font-size:14px;line-height:24px;letter-spacing:0.02em;text-transform:uppercase}.wpsms-header-banner .license-status span,.wpsms-header-banner .license-status a{font-weight:normal;font-size:14px;line-height:24px;color:#000;text-decoration:none;transition:0.2s;display:flex;align-items:center}.wpsms-header-banner .license-status a:hover{color:#404BF2}.wpsms-header-banner .license-status--free a::after{content:'';width:14px;height:10px;margin-left:12px;background:center center/100% no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.333008 5.33335V4.66668C0.333008 4.48259 0.482246 4.33335 0.666341 4.33335H11.4463L8.47968 1.37335C8.41657 1.31076 8.38107 1.22556 8.38107 1.13668C8.38107 1.0478 8.41657 0.962602 8.47968 0.900013L8.95301 0.433347C9.0156 0.370243 9.1008 0.334747 9.18967 0.334747C9.27855 0.334747 9.36375 0.370243 9.42634 0.433347L13.5197 4.52001C13.6135 4.61369 13.6662 4.74078 13.6663 4.87335V5.12668C13.6648 5.25896 13.6123 5.38553 13.5197 5.48001L9.42634 9.56668C9.36375 9.62978 9.27855 9.66528 9.18967 9.66528C9.1008 9.66528 9.0156 9.62978 8.95301 9.56668L8.47968 9.09335C8.41697 9.03191 8.38163 8.94781 8.38163 8.86001C8.38163 8.77222 8.41697 8.68812 8.47968 8.62668L11.4463 5.66668H0.666341C0.482246 5.66668 0.333008 5.51744 0.333008 5.33335Z' fill='black'/%3E%3C/svg%3E%0A")}.wpsms-header-banner .license-status--invalid span::before,.wpsms-header-banner .license-status--valid span::before{content:'';width:19px;height:16px;margin-right:5px;background:center center/19px 16px no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.wpsms-header-banner .license-status--valid span::before{content:'';width:19px;height:19px;margin-right:5px;background:center center/100% no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.0142 8.0389C16.7723 8.66066 16.7723 9.35048 17.0142 9.97224L17.1559 10.3806C17.6721 11.7288 17.0469 13.2456 15.7304 13.8389L15.3553 14.0056C14.74 14.2707 14.2422 14.7505 13.9549 15.3556L13.7881 15.7306C13.1946 17.0467 11.6774 17.6716 10.3287 17.1556L9.94523 17.0139C9.32327 16.7721 8.63323 16.7721 8.01127 17.0139L7.62781 17.1556C6.27912 17.6716 4.76187 17.0467 4.16836 15.7306L4.00164 15.3556C3.73645 14.7405 3.25645 14.2429 2.6512 13.9556L2.27608 13.7889C0.959569 13.1956 0.334388 11.6788 0.850617 10.3306L0.992329 9.94724C1.23424 9.32548 1.23424 8.63566 0.992329 8.0139L0.850617 7.63057C0.334388 6.28232 0.959569 4.76556 2.27608 4.17224L2.6512 4.00557C3.24775 3.73062 3.72659 3.25192 4.00164 2.65557L4.19336 2.28057C4.78753 0.951276 6.32204 0.323725 7.67783 0.85557L8.06128 0.997236C8.68324 1.23907 9.37328 1.23907 9.99524 0.997236L10.3787 0.85557C11.7274 0.339508 13.2446 0.964487 13.8382 2.28057L14.0049 2.65557C14.2799 3.25192 14.7588 3.73062 15.3553 4.00557L15.7304 4.19724C17.0469 4.79056 17.6721 6.30732 17.1559 7.65557L17.0142 8.0389ZM7.94444 11.7972L12.6293 7.1139C12.7828 6.95295 12.7828 6.69986 12.6293 6.5389L12.1875 6.09724C12.0254 5.93843 11.766 5.93843 11.604 6.09724L7.65268 10.0472L6.40228 8.80557C6.32664 8.72501 6.22104 8.6793 6.11052 8.6793C5.99999 8.6793 5.89439 8.72501 5.81875 8.80557L5.37694 9.24724C5.29804 9.32547 5.25366 9.43197 5.25366 9.54307C5.25366 9.65417 5.29804 9.76067 5.37694 9.8389L7.36092 11.7972C7.43656 11.8778 7.54216 11.9235 7.65268 11.9235C7.76321 11.9235 7.86881 11.8778 7.94444 11.7972Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.rtl .wpsms-header-banner .license-status span::before{margin-left:5px;margin-right:0}.wps-wrap .postbox{background:#FFFFFF;border:0;box-shadow:0px 2px 4px rgba(0,0,0,0.08);border-radius:2px}.wps-wrap .postbox-header{border-bottom:1px solid #E7E7E7}.wps-wrap .thickbox.button,.wps-wrap .button{background:#fff;border:1px solid #D6D6D6;box-sizing:border-box;box-shadow:0px 2px 4px rgba(0,0,0,0.05);border-radius:2px;color:#000;transition:0.2s;margin:10px 0}.wps-wrap .wpsms-button-group{margin-top:20px}.wps-wrap .button:hover{background:#fff;border-color:#404BF2;color:#000}.wps-wrap .button,.wps-wrap .thickbox.button{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 24px;border-radius:2px;transition:0.2s}.rtl .wps-wrap .button{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 16px;border-radius:2px;transition:0.2s}.wps-wrap .button:disabled{background-color:#808080 !important}.wps-wrap .button-primary{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 24px;border-radius:2px;transition:0.2s;background:#404BF2;border-color:#404BF2;color:#fff !important;margin:10px 0}.wps-wrap textarea{max-width:calc(100% - 45px)}.wps-wrap .button-primary:hover{background-color:#1E27BF;border-color:#1E27BF}.wps-wrap .button:focus{background-color:#fff;border-color:#1E27BF;color:#000 !important;box-shadow:0 0 0 1px #1E27BF;outline:2px solid transparent}.wps-wrap .button-primary:focus{background-color:#1E27BF;border-color:#1E27BF;box-shadow:0 0 0 1px #1E27BF;outline:2px solid transparent;color:#fff !important}.wps-wrap input[type="checkbox"]:focus{box-shadow:none !important;outline:unset !important}.wps-wrap input[type="text"],.wps-wrap input[type="number"],.chosen-container-multi .chosen-choices,.wps-wrap select{padding:12px 16px !important;font-weight:normal;font-size:14px;line-height:20px;border:1px solid #5B5B5B !important;box-sizing:border-box;border-radius:2px}.wps-wrap select{padding:12px 24px 12px 8px !important}.rtl .wps-wrap select{padding:12px 8px 12px 24px !important}.wps-wrap input[type="text"]:focus,.wps-wrap input[type="number"]:focus,.wps-wrap select:focus{border-color:#404BF2;box-shadow:0 0 0 1px #404BF2;outline:2px solid transparent}.wps-wrap input[type="text"]::placeholder,.wps-wrap input[type="number"]::placeholder,.wps-wrap select::placeholder{font-weight:normal;font-size:14px;line-height:20px;color:#000000}.wps-wrap input[type="checkbox"],.wps-wrap input[type="radio"]{background:#fff;width:24px;height:24px;border-radius:2px;border:1px solid #5B5B5B !important;transition:0.2s}.wps-wrap input[type="radio"]{border-radius:50%;transition:0.2s}.wps-wrap input[type="radio"]:checked{background-color:#404AF2 !important;border-color:#404AF2 !important}.wps-wrap input[type="radio"]:checked::before{background-color:#fff !important;transition:0.2s;width:10px;height:10px;margin:.38rem !important}.wps-wrap input[type="checkbox"]:hover{border-color:#404BF2 !important}.wps-wrap input[type="checkbox"]:checked{background:#404BF2;border-color:#404BF2 !important}.wps-wrap input[type="checkbox"]:checked::before{margin:-.07rem 0 0 -.12rem !important;content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E") !important;height:1.5rem !important;width:1.5rem !important}.wps-wrap .btn-danger:hover{background:#c20000 !important;background-color:#c20000;border-color:#990000 !important;color:#fff}.wps-wrap .wps-inline select{padding:12px 24px 12px 16px !important}.wps-wrap .wp-statistics-sub-fullwidth input{padding:6px !important}.wps-wrap .wp-statistics-sub-fullwidth .button-primary{padding:7px 14px !important}.wps-wrap .meta-box-sortables .inside{padding:15px !important}.wps-wrap .meta-box-sortables .inside-no-padding{margin-bottom:20px;display:flex}.statistics_page_wps_categories_page .wps-wrap .postbox,.statistics_page_wps_tags_page .wps-wrap .postbox,.statistics_page_wps_authors_page .wps-wrap .postbox,.statistics_page_wps_pages_page .wps-wrap .postbox{padding:10px 3px !important}.statistics_page_wps_optimization_page .wps-wrap .postbox,.statistics_page_wps_settings_page .wps-wrap .postbox,.-d8-a2-d9-85-d8-a7-d8-b1_page_wps_settings_page .wps-wrap .postbox{padding:15px}.wps-wrap .btn-danger{background:rgba(186,0,0,0.74) !important;border-color:rgba(170,0,0,0.77) rgba(153,0,0,0.74) rgba(153,0,0,0.74) !important;box-shadow:0 1px 0 rgba(153,0,0,0.74);color:#fff;text-decoration:none;padding:12px 16px !important;text-shadow:0 -1px 1px rgba(153,0,0,0.74),1px 0 1px rgba(153,0,0,0.74),0 1px 1px rgba(153,0,0,0.74),-1px 0 1px rgba(153,0,0,0.74)}.wps-wrap #wps-plugins-support .button{padding:12px !important;margin-top:8px}.wps-wrap ul.tabs{background-color:#fff;margin-bottom:10px;box-shadow:0px 2px 4px rgba(0,0,0,0.08);padding:0 20px;display:flex}.wps-wrap ul.tabs li{border:0;border-bottom:4px solid transparent !important;padding:20px 8px;margin-right:8px;transition:0.2s;color:#4A4A4A;font-weight:600;font-size:14px;line-height:24px;letter-spacing:0.02em;text-transform:capitalize;word-break:keep-all;white-space:nowrap}.wps-wrap ul.tabs li:hover{color:#000}.wps-wrap ul.tabs li.current{border:0;border-bottom-color:#404BF2 !important;padding:20px 8px;color:#000}@media screen and (max-width: 1460px){.wps-wrap ul.tabs{overflow-x:scroll}}.wp-statistics-settings #update_geoip{padding:5px 15px}.wps-wrap #poststuff .postbox-container{margin-top:0 !important}.wps-widgets-settings-wrap #tab_container,.wps-mini-chart-settings-wrap #tab_container,.wps-rest-api-settings-wrap #tab_container,.wps-realtime-stats-settings-wrap #tab_container{background-color:#fff;padding:15px;box-shadow:0px 2px 4px rgba(0,0,0,0.08)}.wps-widgets-settings-wrap .nav-tab-wrapper,.wps-mini-chart-settings-wrap .nav-tab-wrapper,.wps-rest-api-settings-wrap .nav-tab-wrapper,.wps-realtime-stats-settings-wrap .nav-tab-wrapper{padding-top:0 !important}.wps-rest-api-settings-wrap .nav-tab-wrapper .nav-tab-active,.wps-widgets-settings-wrap .nav-tab-wrapper .nav-tab-active,.wps-mini-chart-settings-wrap .nav-tab-wrapper .nav-tab-active,.wps-realtime-stats-settings-wrap .nav-tab-wrapper .nav-tab-active{background-color:#fff;border-bottom-color:#fff}.wps-widgets-settings-wrap .nav-tab-wrapper,.wps-mini-chart-settings-wrap .nav-tab-wrapper,.wps-rest-api-settings-wrap .nav-tab-wrapper,.wps-realtime-stats-settings-wrap .nav-tab-wrapper{background-color:#fff;margin:20px 0 !important;box-shadow:0px 2px 4px rgba(0,0,0,0.08);padding:0 15px;display:flex;border:none !important}.wps-widgets-settings-wrap .nav-tab-wrapper a,.wps-mini-chart-settings-wrap .nav-tab-wrapper a,.wps-rest-api-settings-wrap .nav-tab-wrapper a,.wps-realtime-stats-settings-wrap .nav-tab-wrapper a{border:0;border-top:4px solid transparent !important;border-bottom:4px solid transparent !important;padding:20px 8px;margin-right:8px;transition:0.2s;color:#4A4A4A;font-weight:600;font-size:14px;line-height:19px;letter-spacing:0.02em;text-transform:capitalize;word-break:keep-all;white-space:nowrap;background-color:transparent !important}.wps-widgets-settings-wrap .nav-tab-wrapper a:hover,.wps-mini-chart-settings-wrap .nav-tab-wrapper a:hover,.wps-rest-api-settings-wrap .nav-tab-wrapper a:hover,.wps-realtime-stats-settings-wrap .nav-tab-wrapper a:hover{color:#000}.wps-widgets-settings-wrap .nav-tab-wrapper a.nav-tab-active,.wps-mini-chart-settings-wrap .nav-tab-wrapper a.nav-tab-active,.wps-rest-api-settings-wrap .nav-tab-wrapper a.nav-tab-active,.wps-realtime-stats-settings-wrap .nav-tab-wrapper a.nav-tab-active{border:0;border-bottom-color:#404BF2 !important;padding:20px 8px;color:#000}.wps-widgets-settings-wrap input[type="checkbox"],.wps-widgets-settings-wrap input[type="radio"],.wps-mini-chart-settings-wrap input[type="checkbox"],.wps-mini-chart-settings-wrap input[type="radio"],.wps-rest-api-settings-wrap input[type="checkbox"],.wps-rest-api-settings-wrap input[type="radio"],.wps-realtime-stats-settings-wrap input[type="checkbox"],.wps-realtime-stats-settings-wrap input[type="radio"]{background:#fff;width:24px;height:24px;border-radius:2px;border:1px solid #5B5B5B !important;transition:0.2s}.wps-widgets-settings-wrap input[type="radio"],.wps-mini-chart-settings-wrap input[type="radio"],.wps-rest-api-settings-wrap input[type="radio"],.wps-realtime-stats-settings-wrap input[type="radio"]{border-radius:50%;transition:0.2s}.wps-widgets-settings-wrap input[type="radio"]:checked,.wps-mini-chart-settings-wrap input[type="radio"]:checked,.wps-rest-api-settings-wrap input[type="radio"]:checked,.wps-realtime-stats-settings-wrap input[type="radio"]:checked{background-color:#404AF2 !important;border-color:#404AF2 !important}.wps-widgets-settings-wrap input[type="radio"]:checked::before,.wps-mini-chart-settings-wrap input[type="radio"]:checked::before,.wps-rest-api-settings-wrap input[type="radio"]:checked::before,.wps-realtime-stats-settings-wrap input[type="radio"]:checked::before{background-color:#fff !important;transition:0.2s;width:10px;height:10px;margin:.38rem !important}.wps-widgets-settings-wrap input[type="checkbox"]:hover,.wps-mini-chart-settings-wrap input[type="checkbox"]:hover,.wps-rest-api-settings-wrap input[type="checkbox"]:hover,.wps-realtime-stats-settings-wrap input[type="checkbox"]:hover{border-color:#404BF2 !important}.wps-widgets-settings-wrap input[type="checkbox"]:checked,.wps-mini-chart-settings-wrap input[type="checkbox"]:checked,.wps-rest-api-settings-wrap input[type="checkbox"]:checked,.wps-realtime-stats-settings-wrap input[type="checkbox"]:checked{background:#404BF2;border-color:#404BF2 !important}.wps-widgets-settings-wrap input[type="checkbox"]:checked::before,.wps-mini-chart-settings-wrap input[type="checkbox"]:checked::before,.wps-rest-api-settings-wrap input[type="checkbox"]:checked::before,.wps-realtime-stats-settings-wrap input[type="checkbox"]:checked::before{margin:-.07rem 0 0 -.12rem !important;content:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23fff%27%2F%3E%3C%2Fsvg%3E") !important;height:1.5rem !important;width:1.5rem !important}.wps-widgets-settings-wrap .thickbox.button,.wps-widgets-settings-wrap .button,.wps-widgets-settings-wrap input[type="button"],.wps-mini-chart-settings-wrap .thickbox.button,.wps-mini-chart-settings-wrap .button,.wps-mini-chart-settings-wrap input[type="button"],.wps-rest-api-settings-wrap .thickbox.button,.wps-rest-api-settings-wrap .button,.wps-rest-api-settings-wrap input[type="button"],.wps-realtime-stats-settings-wrap .thickbox.button,.wps-realtime-stats-settings-wrap .button,.wps-realtime-stats-settings-wrap input[type="button"]{background:#fff;border:1px solid #D6D6D6;box-sizing:border-box;box-shadow:0px 2px 4px rgba(0,0,0,0.05);border-radius:2px;color:#000;transition:0.2s}.wps-widgets-settings-wrap .wpsms-button-group,.wps-mini-chart-settings-wrap .wpsms-button-group,.wps-rest-api-settings-wrap .wpsms-button-group,.wps-realtime-stats-settings-wrap .wpsms-button-group{margin-top:20px}.wps-widgets-settings-wrap .button:hover,.wps-widgets-settings-wrap input[type="button"]:hover,.wps-mini-chart-settings-wrap .button:hover,.wps-mini-chart-settings-wrap input[type="button"]:hover,.wps-rest-api-settings-wrap .button:hover,.wps-rest-api-settings-wrap input[type="button"]:hover,.wps-realtime-stats-settings-wrap .button:hover,.wps-realtime-stats-settings-wrap input[type="button"]:hover{background:#fff;border-color:#404BF2;color:#000}.wps-widgets-settings-wrap .button,.wps-widgets-settings-wrap input[type="button"],.wps-widgets-settings-wrap .thickbox.button,.wps-mini-chart-settings-wrap .button,.wps-mini-chart-settings-wrap input[type="button"],.wps-mini-chart-settings-wrap .thickbox.button,.wps-rest-api-settings-wrap .button,.wps-rest-api-settings-wrap input[type="button"],.wps-rest-api-settings-wrap .thickbox.button,.wps-realtime-stats-settings-wrap .button,.wps-realtime-stats-settings-wrap input[type="button"],.wps-realtime-stats-settings-wrap .thickbox.button{font-weight:600 !important;font-size:14px;line-height:17px;padding:14px 24px;border-radius:2px;transition:0.2s}.rtl .wps-widgets-settings-wrap .button,.rtl .wps-mini-chart-settings-wrap .button,.rtl .wps-rest-api-settings-wrap .button,.rtl .wps-realtime-stats-settings-wrap .button{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 16px;border-radius:2px;transition:0.2s}.wps-widgets-settings-wrap .button:disabled,.wps-mini-chart-settings-wrap .button:disabled,.wps-rest-api-settings-wrap .button:disabled,.wps-realtime-stats-settings-wrap-wrap .button:disabled{background-color:#808080 !important}.wps-widgets-settings-wrap .button-primary,.wps-mini-chart-settings-wrap .button-primary,.wps-rest-api-settings-wrap .button-primary,.wps-realtime-stats-settings-wrap .button-primary{font-weight:600 !important;font-size:14px;line-height:17px;padding:15px 24px;border-radius:2px;transition:0.2s;background:#404BF2;border-color:#404BF2;color:#fff !important}.wps-widgets-settings-wrap textarea,.wps-mini-chart-settings-wrap textarea,.wps-rest-api-settings-wrap textarea,.wps-realtime-stats-settings-wrap textarea{max-width:calc(100% - 45px)}.wps-widgets-settings-wrap .button-primary:hover,.wps-mini-chart-settings-wrap .button-primary:hover,.wps-rest-api-settings-wrap .button-primary:hover,.wps-realtime-stats-settings-wrap .button-primary:hover{background-color:#1E27BF;border-color:#1E27BF}.wps-widgets-settings-wrap .button:focus,.wps-widgets-settings-wrap input[type="button"]:focus,.wps-mini-chart-settings-wrap .button:focus,.wps-mini-chart-settings-wrap input[type="button"]:focus,.wps-rest-api-settings-wrap .button:focus,.wps-rest-api-settings-wrap input[type="button"]:focus,.wps-realtime-stats-settings-wrap .button:focus,.wps-realtime-stats-settings-wrap input[type="button"]:focus{background-color:#fff;border-color:#1E27BF;color:#000 !important;box-shadow:0 0 0 1px #1E27BF;outline:2px solid transparent}.wps-widgets-settings-wrap .button-primary:focus,.wps-mini-chart-settings-wrap .button-primary:focus,.wps-rest-api-settings-wrap .button-primary:focus,.wps-realtime-stats-settings-wrap .button-primary:focus{background-color:#1E27BF;border-color:#1E27BF;box-shadow:0 0 0 1px #1E27BF;outline:2px solid transparent;color:#fff !important}.wps-widgets-settings-wrap input[type="text"],.wps-widgets-settings-wrap input[type="date"],.wps-widgets-settings-wrap input[type="number"],.wps-widgets-settings-wrap .chosen-container-multi .chosen-choices,.wps-widgets-settings-wrap select,.wps-mini-chart-settings-wrap input[type="text"],.wps-mini-chart-settings-wrap input[type="number"],.wps-mini-chart-settings-wrap input[type="date"],.wps-widgets-settings-wrap input[type="number"],.wps-mini-chart-settings-wrap .chosen-container-multi .chosen-choices,.wps-mini-chart-settings-wrap select,.wps-rest-api-settings-wrap input[type="text"],.wps-rest-api-settings-wrap input[type="number"],.wps-rest-api-settings-wrap input[type="date"],.wps-widgets-settings-wrap input[type="number"],.wps-mini-chart-settings-wrap .chosen-container-multi .chosen-choices,.wps-rest-api-settings-wrap select,.wps-realtime-stats-settings-wrap input[type="text"],.wps-realtime-stats-settings-wrap input[type="number"],.wps-rest-api-settings-wrap input[type="date"],.wps-widgets-settings-wrap input[type="number"],.wps-realtime-stats-settings-wrap .chosen-container-multi .chosen-choices,.wps-realtime-stats-settings-wrap select{padding:12px 16px !important;font-weight:normal;font-size:14px;line-height:20px;border:1px solid #5B5B5B !important;box-sizing:border-box;border-radius:2px}.wps-mini-chart-settings-wrap input[type="number"],.wps-rest-api-settings-wrap input[type="number"],.wps-realtime-stats-settings-wrap input[type="number"]{padding-right:2px !important}.wps-widgets-settings-wrap .button.insert-media.add_media,.wps-mini-chart-settings-wrap .button.insert-media.add_media,.wps-rest-api-settings-wrap .button.insert-media.add_media,.wps-realtime-stats-settings-wrap .button.insert-media.add_media{padding:3px 12px !important}.wps-widgets-settings-wrap select,.wps-mini-chart-settings-wrap select,.wps-realtime-stats-settings-wrap select{padding:12px 24px 12px 14px !important}.wps-widgets-settings-wrap input[type="text"]+.button,.wps-mini-chart-settings-wrap input[type="text"]+.button,.wps-rest-api-settings-wrap input[type="text"]+.button,.wps-realtime-stats-settings-wrap input[type="text"]+.button{margin-left:5px}.wps-wrap .notice .notice-dismiss,.wps-widgets-settings-wrap .notice .notice-dismiss,.wps-mini-chart-settings-wrap .notice .notice-dismiss,.wps-rest-api-settings-wrap .notice .notice-dismiss,.wps-realtime-stats-settings-wrap .notice .notice-dismiss{margin-top:1px}.wps-wrap .notice .notice-dismiss::before,.wps-widgets-settings-wrap .notice .notice-dismiss::before,.wps-mini-chart-settings-wrap .notice .notice-dismiss::before,.wps-rest-api-settings-wrap .notice .notice-dismiss::before,.wps-realtime-stats-settings-wrap .notice .notice-dismiss::before{font-size:20px}.wps-widgets-settings-wrap .notice,.wps-mini-chart-settings-wrap .notice,.wps-rest-api-settings-wrap .notice,.wps-realtime-stats-settings-wrap .notice{padding:2px 14px;border-radius:4px;color:#242A31;font-weight:normal;font-size:14px;line-height:24px;border:1px solid #D6D6D6;box-sizing:border-box;border-left:6px solid #F2BB08;box-shadow:0px 2px 4px rgba(0,0,0,0.08);margin:10px 0 24px;display:flex;align-items:flex-start}.wps-widgets-settings-wrap .notice::before,.wps-mini-chart-settings-wrap .notice::before,.wps-rest-api-settings-wrap .notice::before,.wps-realtime-stats-settings-wrap .notice::before{content:'';min-width:20px;min-height:20px;display:inline-block;vertical-align:middle;margin-right:10px;margin-top:10px;background:center center/auto no-repeat;background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V12.5C9 12.2239 9.22386 12 9.5 12H10.5C10.7761 12 11 12.2239 11 12.5V13.5ZM10.53 10C10.6572 10.0009 10.7647 9.90624 10.78 9.78L11.18 6.56C11.1972 6.41735 11.1523 6.27417 11.0566 6.16698C10.9609 6.05979 10.8237 5.99896 10.68 6H9.32C9.17631 5.99896 9.03912 6.05979 8.94342 6.16698C8.84771 6.27417 8.80275 6.41735 8.82 6.56L9.22 9.78C9.23526 9.90624 9.34284 10.0009 9.47 10H10.53Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.wps-widgets-settings-wrap .notice-warning::before,.wps-mini-chart-settings-wrap .notice-warning::before,.wps-rest-api-settings-wrap .notice-warning::before,.wps-realtime-stats-settings-wrap .notice-warning::before{background-image:url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.88 12.88L15.71 13.71C15.8947 13.8963 15.9989 14.1477 16 14.41V15C16 15.5523 15.5523 16 15 16H1C0.447715 16 0 15.5523 0 15V14.41C0.00110462 14.1477 0.105256 13.8963 0.29 13.71L1.12 12.88C1.68277 12.3179 1.9993 11.5554 2 10.76V8C2 6.70178 2.42107 5.43858 3.2 4.4L4.1 3.2C4.66656 2.44458 5.55573 2 6.5 2H7V0.5C7 0.223858 7.22386 0 7.5 0H8.5C8.77614 0 9 0.223858 9 0.5V2H9.5C10.4443 2 11.3334 2.44458 11.9 3.2L12.8 4.4C13.5789 5.43858 14 6.70178 14 8V10.76C14.0007 11.5554 14.3172 12.3179 14.88 12.88ZM8 20C9.10457 20 10 19.1046 10 18H6C6 19.1046 6.89543 20 8 20Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.wps-widgets-settings-wrap .notice-error,.wps-mini-chart-settings-wrap .notice-error,.wps-rest-api-settings-wrap .notice-error,.wps-realtime-stats-settings-wrap .notice-error{border-left-color:#FF0000}.wps-widgets-settings-wrap .notice-error::before,.wps-mini-chart-settings-wrap .notice-error::before,.wps-rest-api-settings-wrap .notice-error::before,.wps-realtime-stats-settings-wrap .notice-error::before{min-width:23px;margin-right:8px;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.wps-widgets-settings-wrap .notice-info,.wps-mini-chart-settings-wrap .notice-info,.wps-rest-api-settings-wrap .notice-info,.wps-realtime-stats-settings-wrap .notice-info{border-left-color:#0090AD}.wps-widgets-settings-wrap .notice-info::before,.wps-mini-chart-settings-wrap .notice-info::before,.wps-rest-api-settings-wrap .notice-info::before,.wps-realtime-stats-settings-wrap .notice-info::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V10.5C9 10.2239 9.22386 10 9.5 10H10.5C10.7761 10 11 10.2239 11 10.5V13.5ZM10.5 8C10.7761 8 11 7.77614 11 7.5V6.5C11 6.22386 10.7761 6 10.5 6H9.5C9.22386 6 9 6.22386 9 6.5V7.5C9 7.77614 9.22386 8 9.5 8H10.5Z' fill='%230090AD'/%3E%3C/svg%3E%0A")}.wps-widgets-settings-wrap .notice-success,.wps-mini-chart-settings-wrap .notice-success,.wps-rest-api-settings-wrap .notice-success,.wps-realtime-stats-settings-wrap .notice-success{border-left-color:#22BB3F}.wps-widgets-settings-wrap .notice-success::before,.wps-mini-chart-settings-wrap .notice-success::before,.wps-rest-api-settings-wrap .notice-success::before,.wps-realtime-stats-settings-wrap .notice-success::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM8.73 13.35L14.35 7.73C14.5341 7.53685 14.5341 7.23315 14.35 7.04L13.82 6.51C13.6256 6.31943 13.3144 6.31943 13.12 6.51L8.38 11.25L6.88 9.76C6.78927 9.66332 6.66259 9.60848 6.53 9.60848C6.39741 9.60848 6.27073 9.66332 6.18 9.76L5.65 10.29C5.55534 10.3839 5.5021 10.5117 5.5021 10.645C5.5021 10.7783 5.55534 10.9061 5.65 11L8.03 13.35C8.12073 13.4467 8.24741 13.5015 8.38 13.5015C8.51259 13.5015 8.63927 13.4467 8.73 13.35Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.rtl .wps-widgets-settings-wrap .notice,.rtl .wps-mini-chart-settings-wrap .notice,.rtl .wps-rest-api-settings-wrap .notice,.rtl .wps-realtime-stats-settings-wrap .notice{border-left:0;border-right:6px solid #F2BB08}.rtl .wps-widgets-settings-wrap .notice::before,.rtl .wps-mini-chart-settings-wrap .notice::before,.rtl .wps-rest-api-settings-wrap .notice::before,.rtl .wps-realtime-stats-settings-wrap .notice::before{margin-right:0;margin-left:10px}.rtl .wps-widgets-settings-wrap .notice-warning::before,.rtl .wps-mini-chart-settings-wrap .notice-warning::before,.rtl .wps-rest-api-settings-wrap .notice-warning::before,.rtl .wps-realtime-stats-settings-wrap .notice-warning::before{background-image:url("data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.88 12.88L15.71 13.71C15.8947 13.8963 15.9989 14.1477 16 14.41V15C16 15.5523 15.5523 16 15 16H1C0.447715 16 0 15.5523 0 15V14.41C0.00110462 14.1477 0.105256 13.8963 0.29 13.71L1.12 12.88C1.68277 12.3179 1.9993 11.5554 2 10.76V8C2 6.70178 2.42107 5.43858 3.2 4.4L4.1 3.2C4.66656 2.44458 5.55573 2 6.5 2H7V0.5C7 0.223858 7.22386 0 7.5 0H8.5C8.77614 0 9 0.223858 9 0.5V2H9.5C10.4443 2 11.3334 2.44458 11.9 3.2L12.8 4.4C13.5789 5.43858 14 6.70178 14 8V10.76C14.0007 11.5554 14.3172 12.3179 14.88 12.88ZM8 20C9.10457 20 10 19.1046 10 18H6C6 19.1046 6.89543 20 8 20Z' fill='%23F2BB08'/%3E%3C/svg%3E%0A")}.rtl .wps-widgets-settings-wrap .notice-danger,.rtl .wps-mini-chart-settings-wrap .notice-danger,.rtl .wps-rest-api-settings-wrap .notice-danger,.rtl .wps-realtime-stats-settings-wrap .notice-danger{border-right-color:#FF0000}.rtl .wps-widgets-settings-wrap .notice-danger::before,.rtl .wps-mini-chart-settings-wrap .notice-danger::before,.rtl .wps-rest-api-settings-wrap .notice-danger::before,.rtl .wps-realtime-stats-settings-wrap .notice-danger::before{margin-right:0;margin-left:8px;background-image:url("data:image/svg+xml,%3Csvg width='23' height='19' viewBox='0 0 23 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.9055 17.63L11.8131 0.37C11.6763 0.141211 11.4296 0.0008087 11.163 0H10.8629C10.5963 0.0008087 10.3496 0.141211 10.2127 0.37L0.100349 17.63C-0.0295434 17.8667 -0.0295434 18.1533 0.100349 18.39L0.240382 18.62C0.370004 18.8573 0.620158 19.0035 0.890536 19H21.1153C21.3857 19.0035 21.6359 18.8573 21.7655 18.62L21.9055 18.39C22.0354 18.1533 22.0354 17.8667 21.9055 17.63ZM12.0032 14.5C12.0032 14.7761 11.7793 15 11.503 15H10.5028C10.2266 15 10.0027 14.7761 10.0027 14.5V13.5C10.0027 13.2239 10.2266 13 10.5028 13H11.503C11.7793 13 12.0032 13.2239 12.0032 13.5V14.5ZM11.5331 11C11.6602 11.0009 11.7679 10.9062 11.7831 10.78L12.1832 7.56C12.2005 7.41735 12.1555 7.27417 12.0598 7.16698C11.964 7.05979 11.8268 6.99896 11.6831 7H10.3228C10.179 6.99896 10.0418 7.05979 9.9461 7.16698C9.85037 7.27417 9.8054 7.41735 9.82265 7.56L10.2227 10.78C10.238 10.9062 10.3456 11.0009 10.4728 11H11.5331Z' fill='%23FF0000'/%3E%3C/svg%3E%0A")}.rtl .wps-widgets-settings-wrap .notice-info,.rtl .wps-mini-chart-settings-wrap .notice-info,.rtl .wps-rest-api-settings-wrap .notice-info,.rtl .wps-realtime-stats-settings-wrap .notice-info{border-right-color:#0090AD}.rtl .wps-widgets-settings-wrap .notice-info::before,.rtl .wps-mini-chart-settings-wrap .notice-info::before,.rtl .wps-rest-api-settings-wrap .notice-info::before,.rtl .wps-realtime-stats-settings-wrap .notice-info::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C4.47715 0 0 4.47715 0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 7.34784 18.9464 4.8043 17.0711 2.92893C15.1957 1.05357 12.6522 0 10 0ZM11 13.5C11 13.7761 10.7761 14 10.5 14H9.5C9.22386 14 9 13.7761 9 13.5V10.5C9 10.2239 9.22386 10 9.5 10H10.5C10.7761 10 11 10.2239 11 10.5V13.5ZM10.5 8C10.7761 8 11 7.77614 11 7.5V6.5C11 6.22386 10.7761 6 10.5 6H9.5C9.22386 6 9 6.22386 9 6.5V7.5C9 7.77614 9.22386 8 9.5 8H10.5Z' fill='%230090AD'/%3E%3C/svg%3E%0A")}.rtl .wps-widgets-settings-wrap .notice-success,.rtl .wps-mini-chart-settings-wrap .notice-success,.rtl .wps-rest-api-settings-wrap .notice-success,.rtl .wps-realtime-stats-settings-wrap .notice-success{border-right-color:#22BB3F}.rtl .wps-widgets-settings-wrap .notice-success::before,.rtl .wps-mini-chart-settings-wrap .notice-success::before,.rtl .wps-rest-api-settings-wrap .notice-success::before,.rtl .wps-realtime-stats-settings-wrap .notice-success::before{background-image:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 10C0 4.47715 4.47715 0 10 0C12.6522 0 15.1957 1.05357 17.0711 2.92893C18.9464 4.8043 20 7.34784 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM8.73 13.35L14.35 7.73C14.5341 7.53685 14.5341 7.23315 14.35 7.04L13.82 6.51C13.6256 6.31943 13.3144 6.31943 13.12 6.51L8.38 11.25L6.88 9.76C6.78927 9.66332 6.66259 9.60848 6.53 9.60848C6.39741 9.60848 6.27073 9.66332 6.18 9.76L5.65 10.29C5.55534 10.3839 5.5021 10.5117 5.5021 10.645C5.5021 10.7783 5.55534 10.9061 5.65 11L8.03 13.35C8.12073 13.4467 8.24741 13.5015 8.38 13.5015C8.51259 13.5015 8.63927 13.4467 8.73 13.35Z' fill='%2322BB3F'/%3E%3C/svg%3E%0A")}.wps-mini-chart-settings-wrap input[type="text"].wp-color-picker,.wps-rest-api-settings-wrap input[type="text"].wp-color-picker,.wps-realtime-stats-settings-wrap input[type="text"].wp-color-picker{padding:2px 3px !important}.wps-wrap label{color:#000}.wps-wrap td .description{margin-top:12px !important;color:#5B5B5B}.wps-wrap select+input[type="submit"],.wps-wrap select+button{margin-left:4px}
assets/dev/javascript/config.js CHANGED
@@ -1,7 +1,7 @@
1
  /* Start Wp-statistics Admin Js */
2
  var wps_js = {};
3
 
4
- /* Get WP-Statistics global Data From Frontend */
5
  wps_js.global = (typeof wps_global != 'undefined') ? wps_global : [];
6
 
7
  /* WordPress Global Lang */
1
  /* Start Wp-statistics Admin Js */
2
  var wps_js = {};
3
 
4
+ /* Get WP Statistics global Data From Frontend */
5
  wps_js.global = (typeof wps_global != 'undefined') ? wps_global : [];
6
 
7
  /* WordPress Global Lang */
assets/dev/javascript/meta-box.js CHANGED
@@ -192,7 +192,10 @@ jQuery(document).on("click", '.wps-refresh', function (e) {
192
  let meta_box_name = wps_js.meta_box_name_by_id(parentID);
193
 
194
  // Run Meta Box
195
- wps_js.run_meta_box(meta_box_name);
 
 
 
196
  });
197
 
198
  /**
192
  let meta_box_name = wps_js.meta_box_name_by_id(parentID);
193
 
194
  // Run Meta Box
195
+ wps_js.run_meta_box(meta_box_name, false, false);
196
+ setTimeout(function () {
197
+ jQuery('#' + parentID).find('.wps-refresh').blur();
198
+ }, 1000);
199
  });
200
 
201
  /**
assets/dev/javascript/meta-box/devices.js ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ wps_js.devices_meta_box = {
2
+
3
+ placeholder: function () {
4
+ return wps_js.circle_placeholder();
5
+ },
6
+
7
+ view: function (args = []) {
8
+
9
+ // Create Html
10
+ let html = '';
11
+
12
+ // Check Show Button Group
13
+ if (wps_js.is_active('overview_page')) {
14
+ html += wps_js.btn_group_chart('devices', args);
15
+ setTimeout(function () {
16
+ wps_js.date_picker();
17
+ }, 1000);
18
+ }
19
+
20
+ // Add Chart
21
+ html += '<canvas id="' + wps_js.chart_id('devices') + '" height="220"></canvas>';
22
+
23
+ // show Data
24
+ return html;
25
+ },
26
+
27
+ meta_box_init: function (args = []) {
28
+
29
+ // Get Background Color
30
+ let backgroundColor = [];
31
+ let color;
32
+ for (let i = 0; i <= 20; i++) {
33
+ color = wps_js.random_color();
34
+ backgroundColor.push('rgba(' + color[0] + ',' + color[1] + ',' + color[2] + ',' + '0.4)');
35
+ }
36
+
37
+ // Prepare Data
38
+ let data = [{
39
+ label: wps_js._('device'),
40
+ data: args['device_value'],
41
+ backgroundColor: backgroundColor,
42
+ tension: 0.4
43
+ }];
44
+
45
+ // Show Chart
46
+ wps_js.pie_chart(wps_js.chart_id('devices'), args['device_name'], data);
47
+
48
+ // Check Table information
49
+ if (wps_js.exist_tag('#' + wps_js.getMetaBoxKey('devices-table'))) {
50
+
51
+ // Reset All Height
52
+ ['devices-table', 'devices'].forEach((key) => {
53
+ jQuery("#" + wps_js.getMetaBoxKey(key) + " .inside").removeAttr("style");
54
+ });
55
+
56
+ // Show Table information
57
+ let tbl = `<div class="title-center">${args.title}</div>
58
+ <table width="100%" class="widefat table-stats">
59
+ <tr>
60
+ <td class="wps-text-muted">${wps_js._('device')}</td>
61
+ <td class="wps-text-muted">${wps_js._('visitor_count')}</td>
62
+ <td class="wps-text-muted">${wps_js._('percentage')}</td>
63
+ </tr>`;
64
+
65
+ for (let i = 0; i < args.device_name.length; i++) {
66
+ tbl += `
67
+ <tr>
68
+ <td>${args.device_name[i]}</td>
69
+ <td>${(parseInt(args.device_value[i]) > 0 ? `<a href="` + args.info.visitor_page + `&device=` + args.device_name[i] + `&from=` + args.from + `&to=` + args.to + `" target="_blank"> ${wps_js.number_format(args.device_value[i])} </a>` : wps_js.number_format(args.device_value[i]))}</td>
70
+ <td>${wps_js.number_format((args.device_value[i] / args.total) * 100)}%</td>
71
+ </tr>
72
+ `;
73
+ }
74
+
75
+ // Set Total
76
+ tbl += ` <tr><td>${wps_js._('total')}</td><td>${wps_js.number_format(args.total)}</td><td></td></tr>`;
77
+ tbl += `</table>`;
78
+ jQuery("#" + wps_js.getMetaBoxKey('devices-table') + " .inside").html(tbl);
79
+
80
+ // Set Equal Height
81
+ wps_js.set_equal_height('.postBox-table .inside', '.postBox-chart .inside');
82
+ }
83
+
84
+ }
85
+
86
+ };
assets/dev/javascript/meta-box/manufacturers.js ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ wps_js.models_meta_box = {
2
+
3
+ placeholder: function () {
4
+ return wps_js.circle_placeholder();
5
+ },
6
+
7
+ view: function (args = []) {
8
+
9
+ // Create Html
10
+ let html = '';
11
+
12
+ // Check Show Button Group
13
+ if (wps_js.is_active('overview_page')) {
14
+ html += wps_js.btn_group_chart('models', args);
15
+ setTimeout(function () {
16
+ wps_js.date_picker();
17
+ }, 1000);
18
+ }
19
+
20
+ // Add Chart
21
+ html += '<canvas id="' + wps_js.chart_id('models') + '" height="220"></canvas>';
22
+
23
+ // show Data
24
+ return html;
25
+ },
26
+
27
+ meta_box_init: function (args = []) {
28
+
29
+ // Get Background Color
30
+ let backgroundColor = [];
31
+ let color;
32
+ for (let i = 0; i <= 20; i++) {
33
+ color = wps_js.random_color();
34
+ backgroundColor.push('rgba(' + color[0] + ',' + color[1] + ',' + color[2] + ',' + '0.4)');
35
+ }
36
+
37
+ // Prepare Data
38
+ let data = [{
39
+ label: wps_js._('model'),
40
+ data: args['model_value'],
41
+ backgroundColor: backgroundColor,
42
+ tension: 0.4
43
+ }];
44
+
45
+ // Show Chart
46
+ wps_js.pie_chart(wps_js.chart_id('models'), args['model_name'], data);
47
+
48
+ // Check Table information
49
+ if (wps_js.exist_tag('#' + wps_js.getMetaBoxKey('models-table'))) {
50
+
51
+ // Reset All Height
52
+ ['models-table', 'models'].forEach((key) => {
53
+ jQuery("#" + wps_js.getMetaBoxKey(key) + " .inside").removeAttr("style");
54
+ });
55
+
56
+ // Show Table information
57
+ let tbl = `<div class="title-center">${args.title}</div>
58
+ <table width="100%" class="widefat table-stats">
59
+ <tr>
60
+ <td class="wps-text-muted">${wps_js._('model')}</td>
61
+ <td class="wps-text-muted">${wps_js._('visitor_count')}</td>
62
+ <td class="wps-text-muted">${wps_js._('percentage')}</td>
63
+ </tr>`;
64
+
65
+ for (let i = 0; i < args.model_name.length; i++) {
66
+ tbl += `
67
+ <tr>
68
+ <td>${args.model_name[i]}</td>
69
+ <td>${(parseInt(args.model_value[i]) > 0 ? `<a href="` + args.info.visitor_page + `&model=` + args.model_name[i] + `&from=` + args.from + `&to=` + args.to + `" target="_blank"> ${wps_js.number_format(args.model_value[i])} </a>` : wps_js.number_format(args.model_value[i]))}</td>
70
+ <td>${wps_js.number_format((args.model_value[i] / args.total) * 100)}%</td>
71
+ </tr>
72
+ `;
73
+ }
74
+
75
+ // Set Total
76
+ tbl += ` <tr><td>${wps_js._('total')}</td><td>${wps_js.number_format(args.total)}</td><td></td></tr>`;
77
+ tbl += `</table>`;
78
+ jQuery("#" + wps_js.getMetaBoxKey('models-table') + " .inside").html(tbl);
79
+
80
+ // Set Equal Height
81
+ wps_js.set_equal_height('.postBox-table .inside', '.postBox-chart .inside');
82
+ }
83
+
84
+ }
85
+
86
+ };
assets/dev/javascript/run.js CHANGED
@@ -1,4 +1,4 @@
1
- // Load Jquery Date Picker in WP-Statistics Admin
2
  wps_js.date_picker();
3
 
4
  // Run Meta Box [Overview Or Dashboard]
1
+ // Load Jquery Date Picker in WP Statistics Admin
2
  wps_js.date_picker();
3
 
4
  // Run Meta Box [Overview Or Dashboard]
assets/dev/sass/component/meta-box.scss CHANGED
@@ -10,17 +10,17 @@
10
  padding-top: 15px;
11
  }
12
 
13
- /* Refresh button Meta Box */
14
- .wps-more span, .wps-refresh span {
15
- transition: transform .6s ease-in-out;
16
- -webkit-transition: -webkit-transform .6s ease-in-out;
17
  }
18
 
19
  .wps-more:hover span, .wps-refresh:hover span {
20
  color: #00a0d2;
21
  }
22
 
23
- .wps-refresh:hover span {
 
 
24
  transform: rotate(360deg);
25
  -webkit-transform: rotate(360deg);
26
  color: #00a0d2;
10
  padding-top: 15px;
11
  }
12
 
13
+ .wps-refresh:focus {
14
+ box-shadow: none !important;
 
 
15
  }
16
 
17
  .wps-more:hover span, .wps-refresh:hover span {
18
  color: #00a0d2;
19
  }
20
 
21
+ .wps-refresh:focus span {
22
+ transition: transform .6s ease-in-out;
23
+ -webkit-transition: -webkit-transform .6s ease-in-out;
24
  transform: rotate(360deg);
25
  -webkit-transform: rotate(360deg);
26
  color: #00a0d2;
assets/dev/sass/component/ui.admin.scss CHANGED
@@ -882,7 +882,7 @@
882
  .wps-mini-chart-settings-wrap .notice .notice-dismiss,
883
  .wps-rest-api-settings-wrap .notice .notice-dismiss,
884
  .wps-realtime-stats-settings-wrap .notice .notice-dismiss {
885
- margin-top: 5.5px;
886
  }
887
 
888
  .wps-wrap .notice .notice-dismiss::before,
882
  .wps-mini-chart-settings-wrap .notice .notice-dismiss,
883
  .wps-rest-api-settings-wrap .notice .notice-dismiss,
884
  .wps-realtime-stats-settings-wrap .notice .notice-dismiss {
885
+ margin-top: 1px;
886
  }
887
 
888
  .wps-wrap .notice .notice-dismiss::before,
assets/dev/sass/pages/add-one.scss CHANGED
@@ -1,5 +1,5 @@
1
  /*
2
- * WP-Statistics Add-Ons Admin page
3
  */
4
  .wp-statistics-plugins {
5
 
1
  /*
2
+ * WP Statistics Add-Ons Admin page
3
  */
4
  .wp-statistics-plugins {
5
 
assets/dev/sass/pages/setting.scss CHANGED
@@ -1,5 +1,5 @@
1
  /**
2
- * WP-Statistics Setting Admin page
3
  */
4
  .wp-statistics-settings {
5
 
@@ -66,7 +66,7 @@
66
 
67
  }
68
 
69
- /** WP-Statistics Media Query Setting Admin page **/
70
  @media only screen and (max-width: 1327px) {
71
  .wp-statistics-settings ul.tabs li {
72
  padding: 10px 5px;
1
  /**
2
+ * WP Statistics Setting Admin page
3
  */
4
  .wp-statistics-settings {
5
 
66
 
67
  }
68
 
69
+ /** WP Statistics Media Query Setting Admin page **/
70
  @media only screen and (max-width: 1327px) {
71
  .wp-statistics-settings ul.tabs li {
72
  padding: 10px 5px;
assets/dev/sass/pages/welcome.scss CHANGED
@@ -1,5 +1,5 @@
1
  /*
2
- * WP-Statistics Welcome Admin page
3
  */
4
  .wp-statistics-welcome {
5
 
1
  /*
2
+ * WP Statistics Welcome Admin page
3
  */
4
  .wp-statistics-welcome {
5
 
assets/js/admin.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}jQuery(document).ready(function(e){var t;t=function(c){var l={},d={};c.ajaxq=function(e,a){if(void 0===a)throw"AjaxQ: queue name is not provided";var o=c.Deferred(),t=o.promise();t.success=t.done,t.error=t.fail,t.complete=t.always;var r,s="function"==typeof a,n=s?null:c.extend(!0,{},a);return r=function(){var t=c.ajax.apply(window,[s?a():n]);return t.done(function(){o.resolve.apply(this,arguments)}),t.fail(function(){o.reject.apply(this,arguments)}),t.always(i),t},l[e]?l[e].push(r):(l[e]=[],r=r(),d[e]=r),t;function i(){var t;l[e]&&((t=l[e].shift())?(t=t(),d[e]=t):(delete l[e],delete d[e]))}},c.each(["getq","postq"],function(t,s){c[s]=function(t,e,a,o,r){return c.isFunction(a)&&(r=r||o,o=a,a=void 0),c.ajaxq(t,{type:"postq"===s?"post":"get",url:e,data:a,success:o,dataType:r})}});function e(t){return l.hasOwnProperty(t)&&0<l[t].length||d.hasOwnProperty(t)}c.ajaxq.isRunning=function(t){return t?e(t):function(){for(var t in l)if(e(t))return!0;return!1}()},c.ajaxq.getActiveRequest=function(t){if(!t)throw"AjaxQ: queue name is required";return d[t]},c.ajaxq.abort=function(t){if(!t)throw"AjaxQ: queue name is required";var e=c.ajaxq.getActiveRequest(t);delete l[t],delete d[t],e&&e.abort()},c.ajaxq.clear=function(t){if(t)l[t]&&(l[t]=[]);else for(var e in l)l.hasOwnProperty(e)&&(l[e]=[])}},"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=t(require("jquery")):t(jQuery);var a,o,r,s,n,i,c,l,d,p,u,_,h={};function m(t){jQuery(".wp-statistics-settings ul.tabs li").removeClass("current"),jQuery(".wp-statistics-settings .tab-content").removeClass("current"),jQuery("[data-tab="+t+"]").addClass("current"),jQuery("#"+t).addClass("current"),jQuery("#wp-statistics-settings-form").length&&(t=jQuery(location).attr("href")+"&tab="+t,jQuery("#wp-statistics-settings-form").attr("action",t).submit())}function g(t,e){jQuery(document).on("change",t,function(t){t.preventDefault();t=jQuery(e);this.checked?t.show("slow"):(t.hide("slow"),t.find("input[type=checkbox]").prop("checked",!1))})}h.global="undefined"!=typeof wps_global?wps_global:[],h._=function(t){return t in this.global.i18n?this.global.i18n[t]:""},h.is_active=function(t){return 1===h.global.options[t]},h.ajax_queue={key:"wp-statistics",time:400},h.ajaxQ=function(o,r,e,s){var t=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"GET",n=!(5<arguments.length&&void 0!==arguments[5])||arguments[5],t={url:o=!1===o||"metabox"===o?h.global.meta_box_api:o,type:t,dataType:"json",crossDomain:!0,cache:!1,data:r,success:function(t){o===h.global.meta_box_api&&!0===n?t.no_data?jQuery(h.meta_box_inner(r.name)).empty().html(h.no_meta_box_data()):(jQuery(h.meta_box_inner(r.name)).empty().html(h[e].view(t)),h[e].meta_box_init&&setTimeout(function(){h[e].meta_box_init(t)},150)):h[e](t)},error:function(t,e,a){o===h.global.meta_box_api&&!0===n?jQuery(h.meta_box_inner(r.name)).empty().html(h[s](t.responseText)):h[s](t.responseText)}};o===h.global.meta_box_api&&(t.beforeSend=function(t){t.setRequestHeader("X-WP-Nonce",h.global.rest_api_nonce),t.setRequestHeader("Access-Control-Allow-Origin","*")}),jQuery.ajaxq(h.ajax_queue.key,t)},h.placeholder=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return'<div class="wps-ph-item"><div class="wps-ph-col-12">'.concat(h.placeholder_content("picture"),"").concat(h.placeholder_content("line"),"</div>")+(!1!==t?t:"")+"</div>"},h.line_placeholder=function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,e='<div class="wps-ph-item">',a=0;a<t;a++)e+='<div class="wps-ph-col-12"> <div class="wps-ph-row"><div class="wps-ph-col-6 big"></div><div class="wps-ph-col-4 empty big"></div><div class="wps-ph-col-4"></div><div class="wps-ph-col-8 empty"></div><div class="wps-ph-col-6"></div><div class="wps-ph-col-6 empty"></div><div class="wps-ph-col-12"></div> </div></div>';return e+="</div>"},h.circle_placeholder=function(){return'<div class="wps-ph-item"> '.concat(h.placeholder_content("circle"),"</div>")},h.rectangle_placeholder=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return'<div class="wps-ph-item'+(0<t.length?" "+t:"")+'"><div class="wps-ph-col-12">'.concat(h.placeholder_content("picture"),"</div></div>")},h.placeholder_content=function(){var t="";switch(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"line"){case"picture":t='<div class="wps-ph-picture"></div>';break;case"line":t='<div class="wps-ph-row"><div class="wps-ph-col-6 big"></div><div class="wps-ph-col-4 empty big"></div><div class="wps-ph-col-2 big"></div><div class="wps-ph-col-4"></div><div class="wps-ph-col-8 empty"></div><div class="wps-ph-col-6"></div><div class="wps-ph-col-6 empty"></div><div class="wps-ph-col-12"></div> </div>';break;case"circle":t='<div class="wps-ph-col-2"></div><div class="wps-ph-col-8"><div class="wps-ph-avatar"></div></div>'}return t},h.exist_tag=function(t){return jQuery(t).length},h.date_picker=function(){jQuery.fn.datepicker&&"undefined"!=typeof wps_i18n_jquery_datepicker&&jQuery("input[data-wps-date-picker]").datepicker({monthNames:wps_i18n_jquery_datepicker.monthNames,monthNamesShort:wps_i18n_jquery_datepicker.monthNamesShort,dayNames:wps_i18n_jquery_datepicker.dayNames,dayNamesShort:wps_i18n_jquery_datepicker.dayNamesShort,dayNamesMin:wps_i18n_jquery_datepicker.dayNamesMin,dateFormat:wps_i18n_jquery_datepicker.dateFormat,firstDay:wps_i18n_jquery_datepicker.firstDay,isRTL:wps_i18n_jquery_datepicker.isRTL,onSelect:function(t){var e=jQuery(this).attr("data-wps-date-picker");0<t.length&&jQuery("input[id=date-"+e+"]").val(t)}})},h.select2=function(){jQuery("select[data-type-show=select2]").select2()},h.redirect=function(t){window.location.replace(t)},h.line_chart=function(t,e,a,o){t=document.getElementById(t).getContext("2d");h.is_active("rtl")&&(Chart.defaults.global={defaultFontFamily:"Tahoma"}),new Chart(t,{type:"line",data:{labels:a,datasets:o},options:{responsive:!0,legend:{position:"bottom"},animation:{duration:1500},title:{display:!0,text:e},tooltips:{mode:"index",intersect:!1},interaction:{intersect:!1},scales:{yAxes:[{ticks:{beginAtZero:!0}}]}}})},h.pie_chart=function(t,e,a){var o=3<arguments.length&&void 0!==arguments[3]&&arguments[3],t=document.getElementById(t).getContext("2d");h.is_active("rtl")&&(Chart.defaults.global={defaultFontFamily:"Tahoma"}),!1===o&&(o=function(t,e){var a=e.datasets[t.datasetIndex],o=a.data.reduce(function(t,e,a,o){return t+e}),a=a.data[t.index];return Math.floor(a/o*100+.5)+"% - "+e.labels[t.index]}),new Chart(t,{type:"pie",data:{labels:e,datasets:a},options:{responsive:!0,legend:{position:"bottom"},animation:{duration:1500},tooltips:{callbacks:{label:o}}},plugins:[{afterDraw:function(t){var e,a,o;!0===t.data.datasets[0].data.every(function(t){return 0==t})&&(e=t.chart.ctx,a=t.chart.width,o=t.chart.height,t.clear(),e.save(),e.textAlign="center",e.textBaseline="middle",e.font="14px normal 'Tahoma'",e.fillText(h._("no_data"),a/2,o/2),e.restore())}}]})},h.chart_id=function(t){return"wp-statistics-"+t+"-meta-box-chart"},h.random_color=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=[[243,156,18,"#f39c12"],[52,152,219,"#3498db"],[192,57,43,"#c0392b"],[155,89,182,"#9b59b6"],[39,174,96,"#27ae60"],[230,126,34,"#e67e22"],[142,68,173,"#8e44ad"],[46,204,113,"#2ecc71"],[41,128,185,"#2980b9"],[22,160,133,"#16a085"],[211,84,0,"#d35400"],[44,62,80,"#2c3e50"],[241,196,15,"#f1c40f"],[231,76,60,"#e74c3c"],[26,188,156,"#1abc9c"],[46,204,113,"#2ecc71"],[52,152,219,"#3498db"],[155,89,182,"#9b59b6"],[52,73,94,"#34495e"],[22,160,133,"#16a085"],[39,174,96,"#27ae60"],[44,62,80,"#2c3e50"],[241,196,15,"#f1c40f"],[230,126,34,"#e67e22"],[231,76,60,"#e74c3c"],[236,240,241,"#9b9e9f"],[149,165,166,"#a65d20"]];return e[!1===t?Math.floor(Math.random()*e.length):t]},h.site_icon=function(t){return'<img src="https://www.google.com/s2/favicons?domain='.concat(t,'" width="16" height="16" alt="').concat(t,'" style="vertical-align: -3px;" />')},h.wordpress_postbox_ajax=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"enable",e=jQuery(".postbox .hndle, .postbox .handlediv");"enable"===t?e.on("click",window.postboxes.handle_click):e.off("click",window.postboxes.handle_click)},h.isset=function(t){for(var e=Array.prototype.slice.call(arguments,1),a=0;a<e.length;a++){if(!t||!t.hasOwnProperty(e[a]))return!1;t=t[e[a]]}return!0},h.number_format=function(t,e,a,o){if(null==t||!isFinite(t))throw new TypeError("number is not valid");var r;e||(e=1<(r=t.toString().split(".").length)?r:0),a=a||".",o=o||",";e=(t=(t=parseFloat(t).toFixed(e)).replace(".",a)).split(a);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,o),t=e.join(a)},h.set_equal_height=function(t,e){var a=jQuery(t).height(),o=jQuery(e).height(),r=e,e=a;a<o&&(r=t,e=o),jQuery(r).css("height",e+"px")},h.Create_Half_PostBox=function(t,e){return'<div class="postbox-container wps-postbox-half '.concat(t,'"><div class="metabox-holder"><div class="meta-box-sortables"> <div class="postbox" id="').concat(e,'"> <div class="inside"></div></div></div></div></div>')},h.isIP=function(t){var e="(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)";return new RegExp("^".concat(e,"\\.").concat(e,"\\.").concat(e,"\\.").concat(e,"$")).test(t)},h.getLinkParams=function(t){t=(1<arguments.length&&void 0!==arguments[1]&&arguments[1]||window.location.href).match(new RegExp("(?:[?&]"+t+"=)([^&]+)"));return t?t[1]:null},h.sum=function(t){return t.reduce(function(t,e){return t+e},0)},h.sanitize_meta_box_name=function(t){return t.replace(new RegExp("-","g"),"_")},h.get_meta_box_method=function(t){return this.sanitize_meta_box_name(t)+"_meta_box"},h.getMetaBoxKey=function(t){return"wp-statistics-"+t+"-widget"},h.no_meta_box_data=function(){return h._("no_data")},h.error_meta_box_data=function(t){t=JSON.parse(t);return h.isset(t,"message")?t.message:h._("rest_connect")},h.get_meta_box_info=function(t){return t in h.global.meta_boxes?h.global.meta_boxes[t]:[]},h.meta_box_lang=function(t,e){return e in h.global.meta_boxes[t].lang?h.global.meta_boxes[t].lang[e]:""},h.meta_box_inner=function(t){return"#"+h.getMetaBoxKey(t)+" div.inside"},h.meta_box_name_by_id=function(t){return t.split("statistics-").pop().split("-widget")[0]},h.meta_box_button=function(t){var e="#"+h.getMetaBoxKey(t)+" .handle-actions button:first",a=h.get_meta_box_info(t),o="z-index: 9999;position: absolute;top: 1px;",r="right";h.is_active("rtl")&&(r="left"),jQuery("#"+h.getMetaBoxKey(t)+" button[class*=wps-refresh], #"+h.getMetaBoxKey(t)+" button[class*=wps-more]").remove(),h.is_active("more_btn")&&h.isset(a,"page_url")&&jQuery('<button class="handlediv wps-more"'+(h.is_active("gutenberg")?' style="'.concat(o).concat(r,': 3%;" '):'style="line-height: 28px;"')+' type="button" onclick="location.href = \''+h.global.admin_url+"admin.php?page="+a.page_url+'\';"><span class="screen-reader-text">'+h._("more_detail")+'</span> <span class="dashicons dashicons-external"></span></button>').insertBefore(e),h.is_active("more_btn")&&h.isset(a,"page_url")?jQuery('<button class="handlediv wps-refresh"'+(h.is_active("gutenberg")?' style="'.concat(o).concat(r,': 6%;" '):'style="line-height: 28px;"')+' type="button"><span class="screen-reader-text">'+h._("reload")+'</span> <span class="dashicons dashicons-update"></span> </button>').insertAfter("#"+h.getMetaBoxKey(t)+" button[class*=wps-more]"):jQuery('<button class="handlediv wps-refresh"'+(h.is_active("gutenberg")?' style="'.concat(o).concat(r,': 3%;" '):'style="line-height: 28px;"')+' type="button"><span class="screen-reader-text">'+h._("reload")+'</span> <span class="dashicons dashicons-update"></span> </button>').insertBefore(e)},h.run_meta_box=function(t){var e,a,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];h.exist_tag("#"+h.getMetaBoxKey(t))&&(h.is_active("gutenberg")||!h.is_active("gutenberg")&&jQuery("#"+h.getMetaBoxKey(t)).is(":visible"))&&(e=jQuery(h.meta_box_inner(t)),(a=h.get_meta_box_method(t))in h&&("placeholder"in h[a]?e.html(h[a].placeholder()):e.html(h.placeholder()),!0===r&&h.meta_box_button(t),!(t={name:t})!==o&&(t=Object.assign(o,t)),"params"in h[a]&&(t=Object.assign(t,h[a].params())),h.ajaxQ("metabox",t,a,"error_meta_box_data")))},h.run_meta_boxes=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];(t=!1===t?Object.keys(h.global.meta_boxes):t).forEach(function(t){h.run_meta_box(t)})},jQuery(document).on("mouseenter mouseleave",".wps-refresh, .wps-more",function(t){"mouseenter"===t.type?h.wordpress_postbox_ajax("disable"):h.wordpress_postbox_ajax("enable")}),jQuery(document).on("click",".wps-refresh",function(t){t.preventDefault();t=jQuery(this).closest(".postbox").attr("id"),t=h.meta_box_name_by_id(t);h.run_meta_box(t)}),jQuery(document).on("click",'input[type=checkbox][id^="wp-statistics-"][id$="-widget-hide"]',function(){var t;jQuery(this).is(":checked")&&(t=jQuery(this).attr("id"),t=h.meta_box_name_by_id(t),h.run_meta_box(t))}),h.btn_group_chart=function(e){var a,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o={7:h._("str_week"),30:h._("str_month"),365:h._("str_year")};"ago"==t.type&&(a=parseInt(t.days));var r='<div class="wps-btn-group"><div class="btn-group" role="group">';return Object.keys(o).forEach(function(t){r+='<button type="button" class="btn '+(t==a?"btn-primary":"btn-default")+'" data-chart-time="'.concat(e,'" data-time="').concat(t,'">').concat(o[t],"</button>")}),r+='<button type="button" class="btn '+("between"==t.type?"btn-primary":"btn-default")+'" data-custom-date-picker="'.concat(e,'">').concat(h._("custom"),"</button>"),r+="</div></div>",r+='<div data-chart-date-picker="'.concat(e,'"')+("ago"==t.type?' style="display:none;"':"")+'><input type="text" size="18" name="date-from" data-wps-date-picker="from" value="'.concat(t.from,'" placeholder="YYYY-MM-DD" autocomplete="off">')+h._("to")+'<input type="text" size="18" name="date-to" data-wps-date-picker="to" value="'.concat(t.to,'" placeholder="YYYY-MM-DD" autocomplete="off"><input type="submit" value="')+h._("go")+'" data-between-chart-show="'.concat(e,'" class="button-primary"><input type="hidden" name="" id="date-from" value="').concat(t.from,'"><input type="hidden" name="" id="date-to" value="').concat(t.to,'"></div>')},jQuery(document).on("click",".wps-btn-group button",function(){jQuery(".wps-btn-group button").attr("class","btn btn-default"),jQuery(this).attr("class","btn btn-primary")}),jQuery(document).on("click","button[data-custom-date-picker]",function(){jQuery("div[data-chart-date-picker= "+jQuery(this).attr("data-custom-date-picker")+"]").slideDown()}),jQuery(document).on("click","button[data-chart-time]",function(){h.run_meta_box(jQuery(this).attr("data-chart-time"),{ago:jQuery(this).attr("data-time"),"no-data":"no"})}),jQuery(document).on("click","input[data-between-chart-show]",function(){var t=jQuery(this).attr("data-between-chart-show");h.run_meta_box(t,{from:jQuery("div[data-chart-date-picker="+t+"] input[id=date-from]").val(),to:jQuery("div[data-chart-date-picker="+t+"] input[id=date-to]").val(),"no-data":"no"})}),h.browsers_meta_box={placeholder:function(){return h.circle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return h.is_active("overview_page")&&(e+=h.btn_group_chart("browsers",t),setTimeout(function(){h.date_picker()},1e3)),e+='<canvas id="'+h.chart_id("browsers")+'" height="220"></canvas>'},meta_box_init:function(){for(var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o<=10;o++)t=h.random_color(o),a.push("rgba("+t[0]+","+t[1]+","+t[2]+",0.4)");var r=[{label:h._("browsers"),data:e.browsers_value,backgroundColor:a}];if(h.pie_chart(h.chart_id("browsers"),e.browsers_name,r),h.exist_tag("#"+h.getMetaBoxKey("browsers-table"))){["browsers-table","browsers"].forEach(function(t){jQuery("#"+h.getMetaBoxKey(t)+" .inside").removeAttr("style")});for(var s='<div class="title-center">'.concat(e.title,'</div><table width="100%" class="widefat table-stats"><tr><td class="wps-text-muted">').concat(h._("browser"),'</td><td class="wps-text-muted">').concat(h._("visitor_count"),'</td><td class="wps-text-muted">').concat(h._("percentage"),"</td></tr>"),n=0;n<e.browsers_name.length;n++)s+=" <tr><td>".concat(e.browsers_name[n],"</td><td>").concat(0<parseInt(e.browsers_value[n])?"".concat("other"!==e.info.agent[n]?'<a href="'+e.info.visitor_page+"&agent="+e.info.agent[n]+"&from="+e.from+"&to="+e.to+'" target="_blank">':""," ").concat(h.number_format(e.browsers_value[n])," ").concat("other"!==e.info.agent[n]?"</a>":""):e.browsers_value[n],"</td><td>").concat(h.number_format(e.browsers_value[n]/e.total*100),"%</td> </tr>");s+=" <tr><td>".concat(h._("total"),"</td><td>").concat(h.number_format(e.total),"</td><td></td></tr>"),s+="</table>",jQuery("#"+h.getMetaBoxKey("browsers-table")+" .inside").html(s),h.set_equal_height(".postBox-table .inside",".postBox-chart .inside");for(var i="",c=0;c<e.browsers_name.length;c++)0<parseInt(e.browsers_value[c])&&e.info.agent[c]&&(i+='<div class="wps-title-group"><img src="'.concat(e.info.logo[c],'" alt="').concat(e.browsers_name[c],'" style="vertical-align: -3px;"> ').concat(e.browsers_name[c],'</div><div class="wp-clearfix"></div>'),i+=h.Create_Half_PostBox("postBox-chart-"+e.info.agent[c],"browser-"+e.info.agent[c]+"-chart"),i+=h.Create_Half_PostBox("postBox-table-"+e.info.agent[c],"browser-"+e.info.agent[c]+"-table"),i+='<div class="wp-clearfix"></div>');jQuery(i).insertAfter("#browsers-table");for(var l=0;l<e.browsers_name.length;l++)0<parseInt(e.browsers_value[l])&&e.info.agent[l]&&this.run_custom_browser(e.info.agent[l])}},run_custom_browser:function(t){["browser-"+t+"-chart","browser-"+t+"-table"].forEach(function(t){jQuery("#"+t+" .inside").css("height","430px")}),jQuery("#browser-"+t+"-table .inside").html(h.placeholder()),jQuery("#browser-"+t+"-chart .inside").html(h.circle_placeholder()),jQuery(".wps-ph-picture").attr("style","height: 310px;");var e={name:"browsers",browser:t};["from","to"].forEach(function(t){h.isset(h.global,"request_params",t)&&(e[t]=h.global.request_params[t])}),h.ajaxQ(h.global.meta_box_api,e,"show_custom_agent","error_custom_agent","GET",!1)}},h.show_custom_agent=function(n){var i=n.info.agent[0];jQuery("#browser-"+i+"-chart .inside").html('<canvas id="'+h.chart_id("browser-"+i)+'" height="220"></canvas>'),setTimeout(function(){for(var t,e=[],a=0;a<=10;a++)t=h.random_color(a),e.push("rgba("+t[0]+","+t[1]+","+t[2]+",0.4)");var o=[{label:h._("browsers"),data:n.browsers_value,backgroundColor:e}];h.pie_chart(h.chart_id("browser-"+i),n.browsers_name,o),["browser-"+i+"-chart","browser-"+i+"-table"].forEach(function(t){jQuery("#"+t+" .inside").removeAttr("style")});for(var r='<div class="title-center">'.concat(n.title,'</div><table width="100%" class="widefat table-stats"><tr><td class="wps-text-muted">').concat(h._("version_list"),'</td><td class="wps-text-muted">').concat(h._("visitor_count"),'</td><td class="wps-text-muted">').concat(h._("percentage"),"</td></tr>"),s=0;s<n.browsers_name.length;s++)r+=" <tr><td>".concat(n.browsers_name[s],"</td><td>").concat(0<parseInt(n.browsers_value[s])?h.number_format(n.browsers_value[s]):n.browsers_value[s],"</td><td>").concat(h.number_format(n.browsers_value[s]/n.total*100),"%</td></tr>");r+=" <tr><td>".concat(h._("total"),"</td><td>").concat(h.number_format(n.total),"</td><td></td></tr>"),r+="</table>";o="#browser-"+i+"-table .inside";jQuery(o).html(r),h.set_equal_height(o,"#browser-"+i+"-chart .inside")},500)},h.error_custom_agent=function(t){},h.countries_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";e+='<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td width="10%" style=\'text-align: left\'>'.concat(h._("rank"),"</td><td width=\"10%\" style='text-align: left'>").concat(h._("flag"),"</td><td width=\"40%\" style='text-align: left'>").concat(h._("country"),"</td><td width=\"40%\" style='text-align: left'>").concat(h._("visitor_count"),"</td></tr>");var a=1;return t.forEach(function(t){e+="<tr><td style='text-align: left;'>".concat(a,"</td><td style='text-align: left;'><img src=\"").concat(t.flag,'" title="').concat(t.name,'" alt="').concat(t.name,"\"/></td><td style='text-align: left;'>").concat(t.name,"</td><td style='text-align: left;'><a href=\"").concat(t.link,'" title="').concat(t.name,'" target="_blank">').concat(h.number_format(t.number),"</a></td></tr>"),a++}),e+="</tbody></table>"}},h.exclusions_meta_box={placeholder:function(){return h.rectangle_placeholder()},view:function(){var t=h.is_active("overview_page")?110:210;h.isset(h.global,"request_params","page")&&"exclusions"===h.global.request_params.page&&(t=80);var e="";return e+='<canvas id="'+h.chart_id("exclusions")+'" height="'+t+'"></canvas>'},meta_box_init:function(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.show_chart(h.chart_id("exclusions"),e),!h.isset(h.global,"request_params","page")||"exclusions"!==h.global.request_params.page||h.exist_tag(t="span[id='number-total-chart-exclusions']")&&(e=h.sum(Object.values(e.total)),jQuery(t).html(h.number_format(e)))},show_chart:function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],s="",n=[],i=0;Object.keys(r.exclusions).forEach(function(t){var e,a,o=h.sum(Object.values(r.value[t]));0<o&&(e=r.exclusions[t],a=h.random_color(i),n.push({label:e,data:r.value[t],backgroundColor:"rgba("+a[0]+","+a[1]+","+a[2]+",0.3)",borderColor:"rgba("+a[0]+","+a[1]+","+a[2]+",1)",borderWidth:1,fill:!0,tension:.4}),s+="<tr><th>".concat(e,'</th> <th class="th-center"><span style="color: #9a9494 !important;">').concat(h.number_format(o),"</span></th></tr>"),i++)}),h.exist_tag("table[data-table=exclusions]")&&jQuery(s).insertAfter("table[data-table=exclusions] tr:first"),h.line_chart(t,r.title,r.date,n)}},h.hits_meta_box={placeholder:function(){return h.rectangle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=h.is_active("overview_page")?110:210;h.isset(h.global,"request_params","page")&&"hits"===h.global.request_params.page&&(e=80);var a="";return h.is_active("overview_page")&&(a+=h.btn_group_chart("hits",t),setTimeout(function(){h.date_picker()},1e3)),a+='<canvas id="'+h.chart_id("hits")+'" height="'+e+'"></canvas>'},meta_box_init:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.hits_chart(h.chart_id("hits"),a),h.isset(h.global,"request_params","page")&&"hits"===h.global.request_params.page&&["visits","visitors"].forEach(function(t){var e="span[id^='number-total-chart-"+t+"']";h.exist_tag(e)&&jQuery(e).html(a.total[t])})},hits_chart:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],a=e;"hits-chart"in e&&(a=e["hits-chart"]);e=[];h.is_active("visitors")&&e.push({label:h._("visitors"),data:a.visitors,backgroundColor:"rgba(255, 99, 132, 0.2)",borderColor:"rgba(255, 99, 132, 1)",borderWidth:1,fill:!0,tension:.4}),h.is_active("visits")&&e.push({label:h._("visits"),data:a.visits,backgroundColor:"rgba(54, 162, 235, 0.2)",borderColor:"rgba(54, 162, 235, 1)",borderWidth:1,fill:!0,tension:.4}),h.line_chart(t,a.title,a.date,e)}},h.hitsmap_meta_box={placeholder:function(){return h.rectangle_placeholder()},view:function(){return'<div id="wp-statistics-visitors-map"></div>'},meta_box_init:function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],r=Array();o.hasOwnProperty("country")&&Object.keys(o.country).forEach(function(e){var a="<div class='map-html-marker'><img src='".concat(o.country[e].flag,"' alt=\"").concat(o.country[e].name,"\" title='").concat(o.country[e].name,"' class='log-tools'/> ").concat(o.country[e].name," [").concat(o.total_country[e],"]<hr />");Object.keys(o.visitor[e]).forEach(function(t){a+="<p><img src='".concat(o.visitor[e][t].browser.logo,"' alt=\"").concat(o.visitor[e][t].browser.name,"\" class='log-tools' title='").concat(o.visitor[e][t].browser.name,"'/> ").concat(o.visitor[e][t].ip," ")+("Unknown"!==o.visitor[e][t].city?"- "+o.visitor[e][t].city:"")+"</p>"}),a+="</div>",r[e]=a}),jQuery("#wp-statistics-visitors-map").vectorMap({map:"world_en",backgroundColor:"#fff",borderColor:"#7e7e7e",borderOpacity:.6,color:"#e6e5e2",hoverColor:"#c3403c",colors:o.color,onLabelShow:function(t,e,a){void 0!==r[a]?e.html(r[a]):e.html(e.html()+" [0]<hr />")}})}},h.pages_chart_meta_box={placeholder:function(){return h.rectangle_placeholder()},view:function(){return'<canvas id="'+h.chart_id("pages-chart")+'" height="80"></canvas>'},meta_box_init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.show_chart(h.chart_id("pages-chart"),t),h.exist_tag("span[id=number-total-visits]")&&jQuery("span[id=number-total-visits]").html(t.total),h.exist_tag("span[id=number-total-chart-visits]")&&jQuery("span[id=number-total-chart-visits]").html(t.total_dates)},show_chart:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];h.line_chart(t,e.title,e.date,[{label:h._("visits"),data:e.stat,backgroundColor:"rgba(54, 162, 235, 0.2)",borderColor:"rgba(54, 162, 235, 1)",borderWidth:1,fill:!0,tension:.4}])}},h.pages_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";e+='<table width="100%" class="widefat table-stats wps-report-table wps-table-fixed"><tbody><tr><td width=\'10%\'>'.concat(h._("id"),"</td><td width='40%'>").concat(h._("title"),"</td><td width='40%'>").concat(h._("link"),"</td><td width='10%'>").concat(h._("visits"),"</td></tr>");var a=1;return t.forEach(function(t){e+="<tr><td style='text-align: left;'>".concat(a,"</td><td style='text-align: left;'><span title='").concat(t.title,"' class='wps-cursor-default wps-text-wrap'>").concat(t.title,"</span></td><td style='text-align: left;'><a href=\"").concat(t.link,'" title="').concat(t.title,'" target="_blank">').concat(t.str_url,'</a></td><td style="text-align: left"><a href="').concat(t.hits_page,'" class="wps-text-muted">').concat(t.number,"</a></td></tr>"),a++}),e+="</tbody></table>"}},h.platforms_meta_box={placeholder:function(){return h.circle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return h.is_active("overview_page")&&(e+=h.btn_group_chart("platforms",t),setTimeout(function(){h.date_picker()},1e3)),e+='<canvas id="'+h.chart_id("platforms")+'" height="220"></canvas>'},meta_box_init:function(){for(var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o<=20;o++)t=h.random_color(),a.push("rgba("+t[0]+","+t[1]+","+t[2]+",0.4)");var r=[{label:h._("platform"),data:e.platform_value,backgroundColor:a,tension:.4}];if(h.pie_chart(h.chart_id("platforms"),e.platform_name,r),h.exist_tag("#"+h.getMetaBoxKey("platforms-table"))){["platforms-table","platforms"].forEach(function(t){jQuery("#"+h.getMetaBoxKey(t)+" .inside").removeAttr("style")});for(var s='<div class="title-center">'.concat(e.title,'</div><table width="100%" class="widefat table-stats"><tr><td class="wps-text-muted">').concat(h._("platform"),'</td><td class="wps-text-muted">').concat(h._("visitor_count"),'</td><td class="wps-text-muted">').concat(h._("percentage"),"</td></tr>"),n=0;n<e.platform_name.length;n++)s+=" <tr><td>".concat(e.platform_name[n],"</td><td>").concat(0<parseInt(e.platform_value[n])?'<a href="'+e.info.visitor_page+"&platform="+e.platform_name[n]+"&from="+e.from+"&to="+e.to+'" target="_blank"> '.concat(h.number_format(e.platform_value[n])," </a>"):h.number_format(e.platform_value[n]),"</td><td>").concat(h.number_format(e.platform_value[n]/e.total*100),"%</td> </tr>");s+=" <tr><td>".concat(h._("total"),"</td><td>").concat(h.number_format(e.total),"</td><td></td></tr>"),s+="</table>",jQuery("#"+h.getMetaBoxKey("platforms-table")+" .inside").html(s),h.set_equal_height(".postBox-table .inside",".postBox-chart .inside")}}},h.post_meta_box={params:function(){return{ID:h.global.page.ID}},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return(t.hasOwnProperty("content")?'<div class="wps-center" style="padding: 15px;"> '+t.content+"</div>":'<canvas id="'+h.chart_id("post")+'" height="85"></canvas>')+'<div class="wps-wrap wps-meta-box-footer">'+t.visitors+"</div>"},meta_box_init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];t.hasOwnProperty("content")?jQuery("#"+h.getMetaBoxKey("post")+" button[onclick]").remove():this.post_hits_chart(h.chart_id("post"),t)},post_hits_chart:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];h.line_chart(t,e.title,e.date,[{label:e.post_title,data:e.state,backgroundColor:"rgba(255, 99, 132, 0.2)",borderColor:"rgba(255, 99, 132, 1)",borderWidth:1,fill:!0,tension:.4}])}},h.quickstats_meta_box={view:function(){var t="";return t+='<table width="100%" class="widefat table-stats wps-summary-stats"><tbody>',t+=h.summary_meta_box.summary_statistics(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]),t+="</tbody></table>",t+='<br><hr width="80%"/><br>',t+='<canvas id="'+h.chart_id("quickstats")+'" height="210"></canvas>'},meta_box_init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];h.hits_meta_box.hits_chart(h.chart_id("quickstats"),t)}},h.recent_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return e+='<div class="wp-statistics-responsive-table">',e+='<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td>'.concat(h._("browser"),"</td>")+(h.is_active("geo_ip")?"<td>".concat(h._("country"),"</td>"):"")+""+(h.is_active("geo_city")?"<td>".concat(h._("city"),"</td>"):"")+"<td>".concat(h._("date"),"</td><td>").concat(h._("hits"),"</td><td>").concat(h._("ip"),"</td><td>").concat(h._("referrer"),"</td></tr>"),t.forEach(function(t){e+='<tr><td style="text-align: left"><a href="'.concat(t.browser.link,'" title="').concat(t.browser.name,'"><img src="').concat(t.browser.logo,'" alt="').concat(t.browser.name,"\" class='log-tools' title='").concat(t.browser.name,"'/></a></td>")+(h.is_active("geo_ip")?'<td style="text-align: left"><img src=\''.concat(t.country.flag,"' alt='").concat(t.country.name,"' title='").concat(t.country.name,"' class='log-tools'/></td>"):"")+""+(h.is_active("geo_city")?"<td>".concat(t.city,"</td>"):"")+'<td style="text-align: left">'.concat(t.date,'</td><td style="text-align: left">').concat(t.hits,'</td><td style="text-align: left">')+(t.hash_ip||"<a href='".concat(t.ip.link,"'>").concat(t.ip.value,"</a>"))+'</td><td style="text-align: left">'.concat(t.referred,"</td></tr>")}),e+="</tbody></table>",e+="</div>"}},h.referring_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return e+='<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td width="80%">'.concat(h._("address"),'</td><td width="20%">').concat(h.meta_box_lang("referring","references"),"</td></tr>"),t.forEach(function(t){e+="<tr><td>"+h.site_icon(t.domain)+" <a href='//".concat(t.domain,"' title='").concat(t.title,'\' target="_blank">').concat(t.domain,"</a><span class='wps-cursor-default wps-referring-widget-ip'")+(2<t.country.length?' title="'.concat(t.country,'"'):"")+">".concat(t.ip,'</span></td><td class="wps-middle-vertical"><a href="').concat(t.page_link,'">').concat(t.number,"</a></td></tr>")}),e+="</tbody></table>"}},h.search_meta_box={placeholder:function(){return h.rectangle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=h.is_active("overview_page")?110:210;h.isset(h.global,"request_params","page")&&"searches"===h.global.request_params.page&&(e=80);var a="";return h.is_active("overview_page")&&(a+=h.btn_group_chart("search",t),setTimeout(function(){h.date_picker()},1e3)),a+='<canvas id="'+h.chart_id("search")+'" height="'+e+'"></canvas>'},meta_box_init:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],o=[],r=0;Object.keys(a["search-engine"]).forEach(function(t){var e=a["search-engine"][t].name,t=h.random_color(r);o.push({label:e,data:a.stat[e],backgroundColor:"rgba("+t[0]+","+t[1]+","+t[2]+",0.3)",borderColor:"rgba("+t[0]+","+t[1]+","+t[2]+",1)",borderWidth:1,fill:!0,tension:.4}),r++}),1===a.total.active&&o.push({label:h._("total"),data:a.total.stat,backgroundColor:"rgba("+a.total.color+", 0.2)",borderColor:"rgba("+a.total.color+", 1)",borderWidth:1,fill:!0,tension:.4}),h.line_chart(h.chart_id("search"),a.title,a.date,o)}},h.summary_meta_box={summary_statistics:function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],r="";return o.user_online&&(r="<tr><th>".concat(h._("online_users"),':</th><th colspan="2" id="th-colspan"><span><a href="').concat(o.user_online.link,'">').concat(o.user_online.value,"</a></span></th></tr>")),(h.is_active("visitors")||h.is_active("visits"))&&function(){r+='<tr><th width="60%"></th>',["visitors","visits"].forEach(function(t){r+='<th class="th-center">'+(h.is_active(t)?h._(t):"")+"</th>"}),r+="</tr>";for(var a=["today","yesterday","week","month","year","total"],t=0;t<a.length;t++)!function(e){r+="<tr><th>".concat(h._(a[e]),": </th>"),["visitors","visits"].forEach(function(t){r+='<th class="th-center">'+(h.is_active(t)?'<a href="'.concat(o[t][a[e]].link,'"><span>').concat(o[t][a[e]].value,"</span></a>"):"")+"</th>"}),r+="</tr>"}(t)}(),r},view:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a="";return a+='<table width="100%" class="widefat table-stats wps-summary-stats"><tbody>',a+=this.summary_statistics(e),h.is_active("visitors")&&(a+='<tr><th colspan="3"><br><hr></th></tr>',a+='<tr><th colspan="3" style="text-align: center;">'.concat(h.meta_box_lang("summary","search_engine"),'</th></tr><tr><th width="60%"></th><th class="th-center">').concat(h._("today"),'</th><th class="th-center">').concat(h._("yesterday"),"</th></tr>"),Object.keys(e["search-engine"]).forEach(function(t){a+='<tr><th><img src="'.concat(e["search-engine"][t].logo,'" alt="').concat(e["search-engine"][t].name,'" class="wps-engine-logo"> ').concat(e["search-engine"][t].name,':</th><th class="th-center"><span>').concat(e["search-engine"][t].today,'</span></th><th class="th-center"><span>').concat(e["search-engine"][t].yesterday,"</span></th></tr>")}),a+="<tr><th>".concat(h._("daily_total"),':</th><td id="th-colspan" class="th-center"><span>').concat(e["search-engine-total"].today,'</span></td><td id="th-colspan" class="th-center"><span>').concat(e["search-engine-total"].yesterday,"</span></td></tr><tr><th>").concat(h._("total"),':</th><th colspan="2" id="th-colspan"><span>').concat(e["search-engine-total"].total,"</span></th></tr>")),a+=' <tr><th colspan="3"><br><hr></th></tr><tr><th colspan="3" style="text-align: center;">'.concat(h.meta_box_lang("summary","current_time_date"),'<span id="time_zone"><a href="').concat(e.timezone["option-link"],'"> ').concat(h.meta_box_lang("summary","adjustment"),'</a></span></th></tr><tr><th colspan="3">').concat(h._("date"),': <code dir="ltr">').concat(e.timezone.date,'</code></th></tr><tr> <th colspan="3">').concat(h._("time"),': <code dir="ltr">').concat(e.timezone.time,"</code></th></tr>"),a+="</tbody></table>"}},h.top_pages_chart_meta_box={placeholder:function(){return h.rectangle_placeholder()},view:function(){var t="";return setTimeout(function(){h.date_picker()},1e3),t+='<canvas id="'+h.chart_id("top-pages-chart")+'" height="80"></canvas>'},meta_box_init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.top_pages_chart(h.chart_id("top-pages-chart"),t)},top_pages_chart:function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=[],r=0;Object.keys(a.stat).forEach(function(t){var e=h.random_color(r);o.push({label:t,data:a.stat[t],backgroundColor:"rgba("+e[0]+","+e[1]+","+e[2]+",0.3)",borderColor:"rgba("+e[0]+","+e[1]+","+e[2]+",1)",borderWidth:1,fill:!0,tension:.4}),r++}),h.line_chart(t,a.title,a.date,o)}},h.top_visitors_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";e+='<div class="wp-statistics-responsive-table">',e+='<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td>'.concat(h._("rank"),"</td><td>").concat(h._("hits"),"</td>")+(h.is_active("geo_ip")?"<td>".concat(h._("flag"),"</td><td>").concat(h._("country"),"</td>"):"")+""+(h.is_active("geo_city")?"<td>".concat(h._("city"),"</td>"):"")+"<td>".concat(h._("ip"),"</td><td>").concat(h._("agent"),"</td><td>").concat(h._("platform"),"</td><td>").concat(h._("version"),"</td></tr>");var a=1;return t.forEach(function(t){e+="<tr><td>".concat(a,"</td><td>").concat(t.hits,"</td>")+(h.is_active("geo_ip")?"<td><img src='".concat(t.country.flag,"' alt='").concat(t.country.name,"' title='").concat(t.country.name,"' class='log-tools'/></td><td>").concat(t.country.name,"</td>"):"")+""+(h.is_active("geo_city")?"<td>".concat(t.city,"</td>"):"")+"<td>"+(t.hash_ip||"<a href='".concat(t.ip.link,"'>").concat(t.ip.value,"</a>"))+"</td><td>".concat(t.agent,"</td><td>").concat(t.platform,"</td><td>").concat(t.version,"</td></tr>"),a++}),e+="</tbody></table>",e+="</div>"}},h.useronline_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return e+='<table class="widefat table-stats wps-report-table wps-table-fixed"><tr>'+(h.is_active("geo_ip")?"<td style='text-align: left;'>".concat(h._("country"),"</td>"):"")+"<td style='text-align: left;'>".concat(h._("ip"),"</td><td width=\"35%\" style='text-align: left;'>").concat(h._("page"),"</td><td style='text-align: left;'>").concat(h._("referrer"),"</td></tr>"),t.forEach(function(t){e+="<tr>"+(h.is_active("geo_ip")?'<td style="text-align: left"><img src=\''.concat(t.country.flag,"' alt='").concat(t.country.name,"' title='").concat(t.country.name,"' class='log-tools'/></td>"):"")+"<td style='text-align: left !important'>"+(t.hash_ip||t.ip.value)+"</td><td style='text-align: left !important;'><span class=\"wps-text-wrap\">"+(2<t.page.link.length?'<a href="'.concat(t.page.link,'" title="').concat(t.page.title,'" target="_blank" class="wps-text-muted">'):"")+t.page.title+(2<t.page.link.length?"</a>":"")+'</span></td><td style="text-align: left !important">'.concat(t.referred,"</td></tr>")}),e+="</table>"}},h.words_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";e+='<div class="wp-statistics-responsive-table">',e+='<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td>'.concat(h._("word"),"</td><td>").concat(h._("browser"),"</td>")+(h.is_active("geo_ip")?"<td>".concat(h._("country"),"</td>"):"")+""+(h.is_active("geo_city")?"<td>".concat(h._("city"),"</td>"):"")+"<td>".concat(h._("date"),"</td><td>").concat(h._("ip"),"</td><td>").concat(h._("referrer"),"</td></tr>");return t.forEach(function(t){e+='<tr><td style="text-align: left"><span title=\''.concat(t.word,"' class='wps-cursor-default wps-text-wrap")+(h.is_active("overview_page")?" wps-200-px":"")+"'>".concat(t.word,'</span></td><td style="text-align: left"><a href="').concat(t.browser.link,'" title="').concat(t.browser.name,'"><img src="').concat(t.browser.logo,'" alt="').concat(t.browser.name,"\" class='log-tools' title='").concat(t.browser.name,"'/></a></td>")+(h.is_active("geo_ip")?'<td style="text-align: left"><img src=\''.concat(t.country.flag,"' alt='").concat(t.country.name,"' title='").concat(t.country.name,"' class='log-tools'/></td>"):"")+(h.is_active("geo_city")?'<td style="text-align: left">'.concat(t.city,"</td>"):"")+'<td style="text-align: left">'.concat(t.date,'</td><td style="text-align: left">')+(t.hash_ip||"<a href='".concat(t.ip.link,"'>").concat(t.ip.value,"</a>"))+'</td><td style="text-align: left">'.concat(t.referred,"</td></tr>"),0}),e+="</tbody></table>",e+="</div>"}},h.isset(h.global,"request_params","page")&&"authors"===h.global.request_params.page&&(a={ago:30,type:"author",ID:0},["from","to","ID"].forEach(function(t){h.isset(h.global,"request_params",t)&&(a[t]=h.global.request_params[t])}),jQuery("span[id^='number-total-']").html(h.rectangle_placeholder("wps-text-placeholder")),h.run_meta_box("pages-chart",a,!1)),h.isset(h.global,"request_params","page")&&"browser"===h.global.request_params.page&&(o={},["from","to"].forEach(function(t){h.isset(h.global,"request_params",t)&&(o[t]=h.global.request_params[t])}),["browsers-table","browsers"].forEach(function(t){jQuery("#"+h.getMetaBoxKey(t)+" .inside").css("height","430px")}),jQuery("#wp-statistics-browsers-table-widget .inside").html(h.placeholder()),jQuery(".wps-ph-picture").attr("style","height: 310px;"),h.run_meta_box("browsers",o,!1)),h.isset(h.global,"request_params","page")&&"categories"===h.global.request_params.page&&(r={ago:30,type:"category",ID:0},["from","to","ID"].forEach(function(t){h.isset(h.global,"request_params",t)&&(r[t]=h.global.request_params[t])}),jQuery("span[id^='number-total-']").html(h.rectangle_placeholder("wps-text-placeholder")),h.run_meta_box("pages-chart",r,!1)),h.isset(h.global,"request_params","page")&&"countries"===h.global.request_params.page&&(s={limit:0},["from","to"].forEach(function(t){h.isset(h.global,"request_params",t)&&(s[t]=h.global.request_params[t])}),h.run_meta_box("countries",s,!1)),h.isset(h.global,"request_params","page")&&"exclusions"===h.global.request_params.page&&(n=h.isset(h.global,"request_params","from")&&h.isset(h.global,"request_params","to")?{from:h.global.request_params.from,to:h.global.request_params.to}:{ago:30},jQuery("span[id^='number-total-chart-']").html(h.rectangle_placeholder("wps-text-placeholder")),h.run_meta_box("exclusions",n,!1)),h.isset(h.global,"request_params","page")&&"hits"===h.global.request_params.page&&(n={},n=h.isset(h.global,"request_params","from")&&h.isset(h.global,"request_params","to")?{from:h.global.request_params.from,to:h.global.request_params.to}:{ago:30},jQuery("span[id^='number-total-chart-']").html(h.rectangle_placeholder("wps-text-placeholder")),h.run_meta_box("hits",n,!1)),h.isset(h.global,"request_params","page")&&"overview"===h.global.request_params.page&&h.isset(h.global,"overview","ads")&&h.is_active("overview_ads")&&(i='<div id="wps_overview_ads_postbox" class="postbox"><div class="inside"><div class="close-overview-ads"><span class="dashicons dashicons-dismiss"></span></div><a href="'.concat(h.global.overview.ads.link,'" title="').concat(h.global.overview.ads.title,'" ').concat("yes"==h.global.overview.ads._target?' target="_blank"':"",'><img src="').concat(h.global.overview.ads.image,'" id="wps_overview_ads_image" alt="').concat(h.global.overview.ads.title,'"></a></div></div>'),jQuery(i).insertAfter("#wps-postbox-container-2 #normal-sortables div.postbox:first"),jQuery(document).on("click",".close-overview-ads",function(){jQuery("#wps_overview_ads_postbox").fadeOut("normal"),jQuery.ajax({url:h.global.admin_url+"admin-ajax.php",type:"get",data:{action:"wp_statistics_close_overview_ads",ads_id:""+h.global.overview.ads.ID,wps_nonce:""+h.global.rest_api_nonce},datatype:"json"})}),jQuery("#wps-donate-notice").on("click",".notice-dismiss",function(){jQuery.ajax({url:h.global.admin_url+"admin-ajax.php",type:"get",data:{action:"wp_statistics_close_notice",notice:"donate",wps_nonce:""+h.global.rest_api_nonce},datatype:"json"})}),jQuery("#wps_overview_ads_image").on("error",function(){jQuery("#wps_overview_ads_postbox").remove()})),h.isset(h.global,"request_params","page")&&"pages"===h.global.request_params.page&&(h.isset(h.global,"request_params","ID")&&h.isset(h.global,"request_params","type")?(i=h.isset(h.global,"request_params","from")&&h.isset(h.global,"request_params","to")?{from:h.global.request_params.from,to:h.global.request_params.to}:{ago:30},i=Object.assign(i,{ID:h.global.request_params.ID,type:h.global.request_params.type}),h.run_meta_box("pages-chart",i,!1),h.exist_tag("form#wp-statistics-select-pages")&&h.select2(),jQuery(document).on("change","select[name=ID]",function(){jQuery("span.submit-form").html(h._("please_wait")),jQuery(this).closest("form").trigger("submit")})):(l={},h.isset(h.global,"request_params","pagination-page")&&(l.paged=h.global.request_params["pagination-page"]),h.isset(h.global,"request_params","from")&&h.isset(h.global,"request_params","to")?(l.from=h.global.request_params.from,l.to=h.global.request_params.to):l.ago=30,h.run_meta_box("top-pages-chart",l,!1))),h.isset(h.global,"request_params","page")&&"platform"===h.global.request_params.page&&(c={},["from","to"].forEach(function(t){h.isset(h.global,"request_params",t)&&(c[t]=h.global.request_params[t])}),["platforms-table","platforms"].forEach(function(t){jQuery("#"+h.getMetaBoxKey(t)+" .inside").css("height","430px")}),jQuery("#wp-statistics-platforms-table-widget .inside").html(h.placeholder()),jQuery(".wps-ph-picture").attr("style","height: 310px;"),h.run_meta_box("platforms",c,!1)),h.isset(h.global,"request_params","page")&&"searches"===h.global.request_params.page&&(l=h.isset(h.global,"request_params","from")&&h.isset(h.global,"request_params","to")?{from:h.global.request_params.from,to:h.global.request_params.to}:{ago:30},h.run_meta_box("search",l,!1)),jQuery(".wp-statistics-settings").length&&((d=function(t){if(t=new RegExp("[?&]"+t+"=([^&#]*)").exec(window.location.href))return t[1]}("tab"))&&m(d),jQuery(".wp-statistics-settings ul.tabs li").click(function(){m(jQuery(this).attr("data-tab"))})),g("input[name=wps_visitors]","tr[data-view=visitors_log_tr]"),g("input[name=wps_referrerspam]","tr.referrerspam_field"),h.isset(h.global,"request_params","page")&&"settings"===h.global.request_params.page&&(jQuery("#wp-statistics-settings-form ul.tabs li").click(function(t){t.preventDefault();t=e(this).attr("data-tab");"undefined"!=typeof localStorage&&localStorage.setItem("wp-statistics-settings-active-tab",t)}),"undefined"==typeof localStorage||!h.isset(h.global,"request_params","save_setting")||"yes"!==h.global.request_params.save_setting||(d=localStorage.getItem("wp-statistics-settings-active-tab"))&&0<d.length&&e("#wp-statistics-settings-form ul.tabs li[data-tab="+d+"]").click()),h.isset(h.global,"request_params","page")&&"tags"===h.global.request_params.page&&(p={ago:30,type:"post_tag",ID:0},["from","to","ID"].forEach(function(t){h.isset(h.global,"request_params",t)&&(p[t]=h.global.request_params[t])}),jQuery("span[id^='number-total-']").html(h.rectangle_placeholder("wps-text-placeholder")),h.run_meta_box("pages-chart",p,!1)),h.isset(h.global,"request_params","page")&&"visitors"===h.global.request_params.page&&(u=function(t,o){var r='<table class="widefat">',s={browsers:["agent","browsers"],country:["location","location"],platform:["platform","platform"],referrer:["referrer","referrer"],user:["user_id","users"]};Object.keys(s).forEach(function(e){r+="<tr><td>".concat(h._(e),"</td></tr>"),r+='<tr><td><select name="'.concat(s[e][0],'" class="select2 wps-width-100" data-type-show="select2">'),r+="<option value=''>".concat(h._("all"),"</option>");var a=h.getLinkParams(s[e][0]);Object.keys(o[s[e][1]]).forEach(function(t){r+="<option value='".concat(t,"' ").concat(null!=a&&a==t?"selected":"",">").concat(o[s[e][1]][t],"</option>")}),r+="</select></td></tr>"}),r+="<tr><td>".concat(h._("ip"),"</td></tr>"),r+='<tr><td><input name="ip" value="'.concat(null!=h.getLinkParams("ip")?h.getLinkParams("ip"):"",'" class="wps-width-100" placeholder=\'xxx.xxx.xxx.xxx\' autocomplete="off"></td></tr>'),r+="<tr><td>".concat(h._("date"),"</td></tr>");var e="width: calc(50% - 5px);display: inline-block;";r+='<tr><td><div style="'.concat(e,'">').concat(h._("from"),': <input name="date-from" data-wps-date-picker="from" value="').concat(null!=h.getLinkParams("from")?h.getLinkParams("from"):"",'" style="width: calc(100% - 5px);" placeholder="YYYY-MM-DD" autocomplete="off"></div><div style="').concat(e,'">').concat(h._("to"),': <input name="date-to" data-wps-date-picker="to" value="').concat(null!=h.getLinkParams("to")?h.getLinkParams("to"):"",'" style="width: 100%;" placeholder="YYYY-MM-DD" autocomplete="off"></div><input type="hidden" name="from" id="date-from" value="').concat(null!=h.getLinkParams("from")?h.getLinkParams("from"):"",'"><input type="hidden" name="to" id="date-to" value="').concat(null!=h.getLinkParams("to")?h.getLinkParams("to"):"",'"></td></tr>'),r+="<tr><td></td></tr>",r+='<tr><td><input type="submit" value="'.concat(h._("filter"),'" class="button-primary"> &nbsp; <span class="filter-loading"></span></td></tr>'),r+="</table>",jQuery(t).html(r),setTimeout(function(){h.date_picker(),h.select2()},200)},jQuery(document).on("click","div#visitors-filter",function(t){t.preventDefault(),tb_show("","#TB_inline?&width=430&height=668&inlineId=visitors-filter-popup"),setTimeout(function(){var t,e,a="#wps-visitors-filter-form";h.exist_tag(a+" input[type=submit]")||(jQuery(a).html('<div style="height: 50px;"></div>'+h.line_placeholder(5)),t=localStorage.getItem("wp-statistics-visitors-filter")?JSON.parse(localStorage.getItem("wp-statistics-visitors-filter")):{},!h.isset(t,"timestamp")||!h.isset(t,"value")||h.isset(t,"timestamp")&&h.isset(t,"value")&&(new Date).getTime().toString()>parseInt(t.timestamp)?(e={wps_nonce:h.global.rest_api_nonce,action:"wp_statistics_visitors_page_filters"},e=Object.assign(e,h.global.request_params),jQuery.ajax({url:h.global.admin_url+"admin-ajax.php",type:"GET",dataType:"json",data:e,timeout:3e4,success:function(t){localStorage.setItem("wp-statistics-visitors-filter",JSON.stringify({value:t,timestamp:(new Date).getTime()+216e5})),u(a,t)},error:function(t,e,a){jQuery("span.tb-close-icon").click()}})):u(a,t.value))},500)}),_="#wp_statistics_visitors_filter_form",jQuery(document).on("submit",_,function(){var t=jQuery(_+" input[name=date-from]"),e=jQuery(_+" input[name=date-to]");if(0<t.val().length&&e.val().length<1||t.val().length<1&&1<e.val().length)return alert(h._("er_datepicker")),!1;e=jQuery(_+" input[name=ip]").val();if(0<e.length&&!1===h.isIP(e))return alert(h._("er_valid_ip")),!1;jQuery("input[data-wps-date-picker]").prop("disabled",!0);var o={input:["date-from","date-to","ip"],select:["agent","platform","location","referrer","user_id"]};Object.keys(o).forEach(function(a){o[a].forEach(function(e){var t=jQuery(_+" "+a+"[name="+e+"]");t.val().length<1&&(t.prop("disabled",!0),["from","to"].forEach(function(t){e=="date-"+t&&jQuery(_+" input[name="+t+"]").prop("disabled",!0)}))})});e=h.getLinkParams("order");return null!=e&&jQuery(this).append('<input type="hidden" name="order" value="'+e+'" /> '),jQuery("span.filter-loading").html(h._("please_wait")),!0})),h.date_picker(),("index.php"===h.global.page.file||h.is_active("overview_page")||"post-new.php"===h.global.page.file||"post.php"===h.global.page.file&&h.isset(h.global,"page","ID"))&&h.run_meta_boxes()});
1
+ "use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}jQuery(document).ready(function(e){t=function(c){function a(t){return l.hasOwnProperty(t)&&0<l[t].length||d.hasOwnProperty(t)}var l={},d={};c.ajaxq=function(e,a){if(void 0===a)throw"AjaxQ: queue name is not provided";var t,o=c.Deferred(),r=o.promise(),s=(r.success=r.done,r.error=r.fail,r.complete=r.always,"function"==typeof a),n=s?null:c.extend(!0,{},a);return t=function(){var t=c.ajax.apply(window,[s?a():n]);return t.done(function(){o.resolve.apply(this,arguments)}),t.fail(function(){o.reject.apply(this,arguments)}),t.always(i),t},l[e]?l[e].push(t):(l[e]=[],t=t(),d[e]=t),r;function i(){var t;l[e]&&((t=l[e].shift())?(t=t(),d[e]=t):(delete l[e],delete d[e]))}},c.each(["getq","postq"],function(t,s){c[s]=function(t,e,a,o,r){return c.isFunction(a)&&(r=r||o,o=a,a=void 0),c.ajaxq(t,{type:"postq"===s?"post":"get",url:e,data:a,success:o,dataType:r})}});c.ajaxq.isRunning=function(t){if(t)return a(t);for(var e in l)if(a(e))return!0;return!1},c.ajaxq.getActiveRequest=function(t){if(t)return d[t];throw"AjaxQ: queue name is required"},c.ajaxq.abort=function(t){if(!t)throw"AjaxQ: queue name is required";var e=c.ajaxq.getActiveRequest(t);delete l[t],delete d[t],e&&e.abort()},c.ajaxq.clear=function(t){if(t)l[t]&&(l[t]=[]);else for(var e in l)l.hasOwnProperty(e)&&(l[e]=[])}},"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=t(require("jquery")):t(jQuery);var a,o,r,s,n,t,i,c,l,d={};function p(t){jQuery(".wp-statistics-settings ul.tabs li").removeClass("current"),jQuery(".wp-statistics-settings .tab-content").removeClass("current"),jQuery("[data-tab="+t+"]").addClass("current"),jQuery("#"+t).addClass("current"),jQuery("#wp-statistics-settings-form").length&&(t=jQuery(location).attr("href")+"&tab="+t,jQuery("#wp-statistics-settings-form").attr("action",t).submit())}function u(t,e){jQuery(document).on("change",t,function(t){t.preventDefault();t=jQuery(e);this.checked?t.show("slow"):(t.hide("slow"),t.find("input[type=checkbox]").prop("checked",!1))})}d.global="undefined"!=typeof wps_global?wps_global:[],d._=function(t){return t in this.global.i18n?this.global.i18n[t]:""},d.is_active=function(t){return 1===d.global.options[t]},d.ajax_queue={key:"wp-statistics",time:400},d.ajaxQ=function(o,r,e,s){var t=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"GET",n=!(5<arguments.length&&void 0!==arguments[5])||arguments[5],t={url:o=!1!==o&&"metabox"!==o?o:d.global.meta_box_api,type:t,dataType:"json",crossDomain:!0,cache:!1,data:r,success:function(t){o===d.global.meta_box_api&&!0===n?t.no_data?jQuery(d.meta_box_inner(r.name)).empty().html(d.no_meta_box_data()):(jQuery(d.meta_box_inner(r.name)).empty().html(d[e].view(t)),d[e].meta_box_init&&setTimeout(function(){d[e].meta_box_init(t)},150)):d[e](t)},error:function(t,e,a){o===d.global.meta_box_api&&!0===n?jQuery(d.meta_box_inner(r.name)).empty().html(d[s](t.responseText)):d[s](t.responseText)}};o===d.global.meta_box_api&&(t.beforeSend=function(t){t.setRequestHeader("X-WP-Nonce",d.global.rest_api_nonce),t.setRequestHeader("Access-Control-Allow-Origin","*")}),jQuery.ajaxq(d.ajax_queue.key,t)},d.placeholder=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return'<div class="wps-ph-item"><div class="wps-ph-col-12">'.concat(d.placeholder_content("picture"),"").concat(d.placeholder_content("line"),"</div>")+(!1!==t?t:"")+"</div>"},d.line_placeholder=function(){for(var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,e='<div class="wps-ph-item">',a=0;a<t;a++)e+='<div class="wps-ph-col-12"> <div class="wps-ph-row"><div class="wps-ph-col-6 big"></div><div class="wps-ph-col-4 empty big"></div><div class="wps-ph-col-4"></div><div class="wps-ph-col-8 empty"></div><div class="wps-ph-col-6"></div><div class="wps-ph-col-6 empty"></div><div class="wps-ph-col-12"></div> </div></div>';return e+="</div>"},d.circle_placeholder=function(){return'<div class="wps-ph-item"> '.concat(d.placeholder_content("circle"),"</div>")},d.rectangle_placeholder=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return'<div class="wps-ph-item'+(0<t.length?" "+t:"")+'"><div class="wps-ph-col-12">'.concat(d.placeholder_content("picture"),"</div></div>")},d.placeholder_content=function(){var t="";switch(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"line"){case"picture":t='<div class="wps-ph-picture"></div>';break;case"line":t='<div class="wps-ph-row"><div class="wps-ph-col-6 big"></div><div class="wps-ph-col-4 empty big"></div><div class="wps-ph-col-2 big"></div><div class="wps-ph-col-4"></div><div class="wps-ph-col-8 empty"></div><div class="wps-ph-col-6"></div><div class="wps-ph-col-6 empty"></div><div class="wps-ph-col-12"></div> </div>';break;case"circle":t='<div class="wps-ph-col-2"></div><div class="wps-ph-col-8"><div class="wps-ph-avatar"></div></div>'}return t},d.exist_tag=function(t){return jQuery(t).length},d.date_picker=function(){jQuery.fn.datepicker&&"undefined"!=typeof wps_i18n_jquery_datepicker&&jQuery("input[data-wps-date-picker]").datepicker({monthNames:wps_i18n_jquery_datepicker.monthNames,monthNamesShort:wps_i18n_jquery_datepicker.monthNamesShort,dayNames:wps_i18n_jquery_datepicker.dayNames,dayNamesShort:wps_i18n_jquery_datepicker.dayNamesShort,dayNamesMin:wps_i18n_jquery_datepicker.dayNamesMin,dateFormat:wps_i18n_jquery_datepicker.dateFormat,firstDay:wps_i18n_jquery_datepicker.firstDay,isRTL:wps_i18n_jquery_datepicker.isRTL,onSelect:function(t){var e=jQuery(this).attr("data-wps-date-picker");0<t.length&&jQuery("input[id=date-"+e+"]").val(t)}})},d.select2=function(){jQuery("select[data-type-show=select2]").select2()},d.redirect=function(t){window.location.replace(t)},d.line_chart=function(t,e,a,o){t=document.getElementById(t).getContext("2d");d.is_active("rtl")&&(Chart.defaults.global={defaultFontFamily:"Tahoma"}),new Chart(t,{type:"line",data:{labels:a,datasets:o},options:{responsive:!0,legend:{position:"bottom"},animation:{duration:1500},title:{display:!0,text:e},tooltips:{mode:"index",intersect:!1},interaction:{intersect:!1},scales:{yAxes:[{ticks:{beginAtZero:!0}}]}}})},d.pie_chart=function(t,e,a){var o=3<arguments.length&&void 0!==arguments[3]&&arguments[3],t=document.getElementById(t).getContext("2d");d.is_active("rtl")&&(Chart.defaults.global={defaultFontFamily:"Tahoma"}),!1===o&&(o=function(t,e){var a=e.datasets[t.datasetIndex],o=a.data.reduce(function(t,e,a,o){return t+e}),a=a.data[t.index];return Math.floor(a/o*100+.5)+"% - "+e.labels[t.index]}),new Chart(t,{type:"pie",data:{labels:e,datasets:a},options:{responsive:!0,legend:{position:"bottom"},animation:{duration:1500},tooltips:{callbacks:{label:o}}},plugins:[{afterDraw:function(t){var e,a,o;!0===t.data.datasets[0].data.every(function(t){return 0==t})&&(e=t.chart.ctx,a=t.chart.width,o=t.chart.height,t.clear(),e.save(),e.textAlign="center",e.textBaseline="middle",e.font="14px normal 'Tahoma'",e.fillText(d._("no_data"),a/2,o/2),e.restore())}}]})},d.chart_id=function(t){return"wp-statistics-"+t+"-meta-box-chart"},d.random_color=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=[[243,156,18,"#f39c12"],[52,152,219,"#3498db"],[192,57,43,"#c0392b"],[155,89,182,"#9b59b6"],[39,174,96,"#27ae60"],[230,126,34,"#e67e22"],[142,68,173,"#8e44ad"],[46,204,113,"#2ecc71"],[41,128,185,"#2980b9"],[22,160,133,"#16a085"],[211,84,0,"#d35400"],[44,62,80,"#2c3e50"],[241,196,15,"#f1c40f"],[231,76,60,"#e74c3c"],[26,188,156,"#1abc9c"],[46,204,113,"#2ecc71"],[52,152,219,"#3498db"],[155,89,182,"#9b59b6"],[52,73,94,"#34495e"],[22,160,133,"#16a085"],[39,174,96,"#27ae60"],[44,62,80,"#2c3e50"],[241,196,15,"#f1c40f"],[230,126,34,"#e67e22"],[231,76,60,"#e74c3c"],[236,240,241,"#9b9e9f"],[149,165,166,"#a65d20"]];return e[!1===t?Math.floor(Math.random()*e.length):t]},d.site_icon=function(t){return'<img src="https://www.google.com/s2/favicons?domain='.concat(t,'" width="16" height="16" alt="').concat(t,'" style="vertical-align: -3px;" />')},d.wordpress_postbox_ajax=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"enable",e=jQuery(".postbox .hndle, .postbox .handlediv");"enable"===t?e.on("click",window.postboxes.handle_click):e.off("click",window.postboxes.handle_click)},d.isset=function(t){for(var e=Array.prototype.slice.call(arguments,1),a=0;a<e.length;a++){if(!t||!t.hasOwnProperty(e[a]))return!1;t=t[e[a]]}return!0},d.number_format=function(t,e,a,o){if(null==t||!isFinite(t))throw new TypeError("number is not valid");e||(e=1<(r=t.toString().split(".").length)?r:0),a=a||".",o=o||",";var r=(t=(t=parseFloat(t).toFixed(e)).replace(".",a)).split(a);return r[0]=r[0].replace(/\B(?=(\d{3})+(?!\d))/g,o),t=r.join(a)},d.set_equal_height=function(t,e){var a=jQuery(t).height(),o=jQuery(e).height(),r=a;a<o&&(e=t,r=o),jQuery(e).css("height",r+"px")},d.Create_Half_PostBox=function(t,e){return'<div class="postbox-container wps-postbox-half '.concat(t,'"><div class="metabox-holder"><div class="meta-box-sortables"> <div class="postbox" id="').concat(e,'"> <div class="inside"></div></div></div></div></div>')},d.isIP=function(t){var e="(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)";return new RegExp("^".concat(e,"\\.").concat(e,"\\.").concat(e,"\\.").concat(e,"$")).test(t)},d.getLinkParams=function(t){t=(1<arguments.length&&void 0!==arguments[1]&&arguments[1]||window.location.href).match(new RegExp("(?:[?&]"+t+"=)([^&]+)"));return t?t[1]:null},d.sum=function(t){return t.reduce(function(t,e){return t+e},0)},d.sanitize_meta_box_name=function(t){return t.replace(new RegExp("-","g"),"_")},d.get_meta_box_method=function(t){return this.sanitize_meta_box_name(t)+"_meta_box"},d.getMetaBoxKey=function(t){return"wp-statistics-"+t+"-widget"},d.no_meta_box_data=function(){return d._("no_data")},d.error_meta_box_data=function(t){t=JSON.parse(t);return d.isset(t,"message")?t.message:d._("rest_connect")},d.get_meta_box_info=function(t){return t in d.global.meta_boxes?d.global.meta_boxes[t]:[]},d.meta_box_lang=function(t,e){return e in d.global.meta_boxes[t].lang?d.global.meta_boxes[t].lang[e]:""},d.meta_box_inner=function(t){return"#"+d.getMetaBoxKey(t)+" div.inside"},d.meta_box_name_by_id=function(t){return t.split("statistics-").pop().split("-widget")[0]},d.meta_box_button=function(t){var e="#"+d.getMetaBoxKey(t)+" .handle-actions button:first",a=d.get_meta_box_info(t),o="z-index: 9999;position: absolute;top: 1px;",r="right";d.is_active("rtl")&&(r="left"),jQuery("#"+d.getMetaBoxKey(t)+" button[class*=wps-refresh], #"+d.getMetaBoxKey(t)+" button[class*=wps-more]").remove(),d.is_active("more_btn")&&d.isset(a,"page_url")&&jQuery('<button class="handlediv wps-more"'+(d.is_active("gutenberg")?' style="'.concat(o).concat(r,': 3%;" '):'style="line-height: 28px;"')+' type="button" onclick="location.href = \''+d.global.admin_url+"admin.php?page="+a.page_url+'\';"><span class="screen-reader-text">'+d._("more_detail")+'</span> <span class="dashicons dashicons-external"></span></button>').insertBefore(e),d.is_active("more_btn")&&d.isset(a,"page_url")?jQuery('<button class="handlediv wps-refresh"'+(d.is_active("gutenberg")?' style="'.concat(o).concat(r,': 6%;" '):'style="line-height: 28px;"')+' type="button"><span class="screen-reader-text">'+d._("reload")+'</span> <span class="dashicons dashicons-update"></span> </button>').insertAfter("#"+d.getMetaBoxKey(t)+" button[class*=wps-more]"):jQuery('<button class="handlediv wps-refresh"'+(d.is_active("gutenberg")?' style="'.concat(o).concat(r,': 3%;" '):'style="line-height: 28px;"')+' type="button"><span class="screen-reader-text">'+d._("reload")+'</span> <span class="dashicons dashicons-update"></span> </button>').insertBefore(e)},d.run_meta_box=function(t){var e,a,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];d.exist_tag("#"+d.getMetaBoxKey(t))&&(d.is_active("gutenberg")||!d.is_active("gutenberg")&&jQuery("#"+d.getMetaBoxKey(t)).is(":visible"))&&(a=jQuery(d.meta_box_inner(t)),(e=d.get_meta_box_method(t))in d&&("placeholder"in d[e]?a.html(d[e].placeholder()):a.html(d.placeholder()),!0===r&&d.meta_box_button(t),!(a={name:t})!==o&&(a=Object.assign(o,a)),"params"in d[e]&&(a=Object.assign(a,d[e].params())),d.ajaxQ("metabox",a,e,"error_meta_box_data")))},d.run_meta_boxes=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];(t=!1===t?Object.keys(d.global.meta_boxes):t).forEach(function(t){d.run_meta_box(t)})},jQuery(document).on("mouseenter mouseleave",".wps-refresh, .wps-more",function(t){"mouseenter"===t.type?d.wordpress_postbox_ajax("disable"):d.wordpress_postbox_ajax("enable")}),jQuery(document).on("click",".wps-refresh",function(t){t.preventDefault();var e=jQuery(this).closest(".postbox").attr("id"),t=d.meta_box_name_by_id(e);d.run_meta_box(t,!1,!1),setTimeout(function(){jQuery("#"+e).find(".wps-refresh").blur()},1e3)}),jQuery(document).on("click",'input[type=checkbox][id^="wp-statistics-"][id$="-widget-hide"]',function(){var t;jQuery(this).is(":checked")&&(t=jQuery(this).attr("id"),t=d.meta_box_name_by_id(t),d.run_meta_box(t))}),d.btn_group_chart=function(e){var a,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o={7:d._("str_week"),30:d._("str_month"),365:d._("str_year")},r=("ago"==t.type&&(a=parseInt(t.days)),'<div class="wps-btn-group"><div class="btn-group" role="group">');return Object.keys(o).forEach(function(t){r+='<button type="button" class="btn '+(t==a?"btn-primary":"btn-default")+'" data-chart-time="'.concat(e,'" data-time="').concat(t,'">').concat(o[t],"</button>")}),r=(r=r+('<button type="button" class="btn '+("between"==t.type?"btn-primary":"btn-default")+'" data-custom-date-picker="'.concat(e,'">').concat(d._("custom"),"</button>"))+"</div></div>")+('<div data-chart-date-picker="'.concat(e,'"')+("ago"==t.type?' style="display:none;"':"")+'><input type="text" size="18" name="date-from" data-wps-date-picker="from" value="'.concat(t.from,'" placeholder="YYYY-MM-DD" autocomplete="off">')+d._("to")+'<input type="text" size="18" name="date-to" data-wps-date-picker="to" value="'.concat(t.to,'" placeholder="YYYY-MM-DD" autocomplete="off"><input type="submit" value="')+d._("go")+'" data-between-chart-show="'.concat(e,'" class="button-primary"><input type="hidden" name="" id="date-from" value="').concat(t.from,'"><input type="hidden" name="" id="date-to" value="').concat(t.to,'"></div>'))},jQuery(document).on("click",".wps-btn-group button",function(){jQuery(".wps-btn-group button").attr("class","btn btn-default"),jQuery(this).attr("class","btn btn-primary")}),jQuery(document).on("click","button[data-custom-date-picker]",function(){jQuery("div[data-chart-date-picker= "+jQuery(this).attr("data-custom-date-picker")+"]").slideDown()}),jQuery(document).on("click","button[data-chart-time]",function(){d.run_meta_box(jQuery(this).attr("data-chart-time"),{ago:jQuery(this).attr("data-time"),"no-data":"no"})}),jQuery(document).on("click","input[data-between-chart-show]",function(){var t=jQuery(this).attr("data-between-chart-show");d.run_meta_box(t,{from:jQuery("div[data-chart-date-picker="+t+"] input[id=date-from]").val(),to:jQuery("div[data-chart-date-picker="+t+"] input[id=date-to]").val(),"no-data":"no"})}),d.browsers_meta_box={placeholder:function(){return d.circle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return d.is_active("overview_page")&&(e+=d.btn_group_chart("browsers",t),setTimeout(function(){d.date_picker()},1e3)),e+='<canvas id="'+d.chart_id("browsers")+'" height="220"></canvas>'},meta_box_init:function(){for(var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o<=10;o++)t=d.random_color(o),a.push("rgba("+t[0]+","+t[1]+","+t[2]+",0.4)");var r=[{label:d._("browsers"),data:e.browsers_value,backgroundColor:a}];if(d.pie_chart(d.chart_id("browsers"),e.browsers_name,r),d.exist_tag("#"+d.getMetaBoxKey("browsers-table"))){["browsers-table","browsers"].forEach(function(t){jQuery("#"+d.getMetaBoxKey(t)+" .inside").removeAttr("style")});for(var s='<div class="title-center">'.concat(e.title,'</div><table width="100%" class="widefat table-stats"><tr><td class="wps-text-muted">').concat(d._("browser"),'</td><td class="wps-text-muted">').concat(d._("visitor_count"),'</td><td class="wps-text-muted">').concat(d._("percentage"),"</td></tr>"),n=0;n<e.browsers_name.length;n++)s+=" <tr><td>".concat(e.browsers_name[n],"</td><td>").concat(0<parseInt(e.browsers_value[n])?"".concat("other"!==e.info.agent[n]?'<a href="'+e.info.visitor_page+"&agent="+e.info.agent[n]+"&from="+e.from+"&to="+e.to+'" target="_blank">':""," ").concat(d.number_format(e.browsers_value[n])," ").concat("other"!==e.info.agent[n]?"</a>":""):e.browsers_value[n],"</td><td>").concat(d.number_format(e.browsers_value[n]/e.total*100),"%</td> </tr>");s=s+" <tr><td>".concat(d._("total"),"</td><td>").concat(d.number_format(e.total),"</td><td></td></tr>")+"</table>",jQuery("#"+d.getMetaBoxKey("browsers-table")+" .inside").html(s),d.set_equal_height(".postBox-table .inside",".postBox-chart .inside");for(var i="",c=0;c<e.browsers_name.length;c++)0<parseInt(e.browsers_value[c])&&e.info.agent[c]&&(i=(i=(i+='<div class="wps-title-group"><img src="'.concat(e.info.logo[c],'" alt="').concat(e.browsers_name[c],'" style="vertical-align: -3px;"> ').concat(e.browsers_name[c],'</div><div class="wp-clearfix"></div>'))+d.Create_Half_PostBox("postBox-chart-"+e.info.agent[c],"browser-"+e.info.agent[c]+"-chart"))+d.Create_Half_PostBox("postBox-table-"+e.info.agent[c],"browser-"+e.info.agent[c]+"-table")+'<div class="wp-clearfix"></div>');jQuery(i).insertAfter("#browsers-table");for(var l=0;l<e.browsers_name.length;l++)0<parseInt(e.browsers_value[l])&&e.info.agent[l]&&this.run_custom_browser(e.info.agent[l])}},run_custom_browser:function(t){["browser-"+t+"-chart","browser-"+t+"-table"].forEach(function(t){jQuery("#"+t+" .inside").css("height","430px")}),jQuery("#browser-"+t+"-table .inside").html(d.placeholder()),jQuery("#browser-"+t+"-chart .inside").html(d.circle_placeholder()),jQuery(".wps-ph-picture").attr("style","height: 310px;");var e={name:"browsers",browser:t};["from","to"].forEach(function(t){d.isset(d.global,"request_params",t)&&(e[t]=d.global.request_params[t])}),d.ajaxQ(d.global.meta_box_api,e,"show_custom_agent","error_custom_agent","GET",!1)}},d.show_custom_agent=function(n){var i=n.info.agent[0];jQuery("#browser-"+i+"-chart .inside").html('<canvas id="'+d.chart_id("browser-"+i)+'" height="220"></canvas>'),setTimeout(function(){for(var t,e=[],a=0;a<=10;a++)t=d.random_color(a),e.push("rgba("+t[0]+","+t[1]+","+t[2]+",0.4)");for(var o=[{label:d._("browsers"),data:n.browsers_value,backgroundColor:e}],r=(d.pie_chart(d.chart_id("browser-"+i),n.browsers_name,o),["browser-"+i+"-chart","browser-"+i+"-table"].forEach(function(t){jQuery("#"+t+" .inside").removeAttr("style")}),'<div class="title-center">'.concat(n.title,'</div><table width="100%" class="widefat table-stats"><tr><td class="wps-text-muted">').concat(d._("version_list"),'</td><td class="wps-text-muted">').concat(d._("visitor_count"),'</td><td class="wps-text-muted">').concat(d._("percentage"),"</td></tr>")),s=0;s<n.browsers_name.length;s++)r+=" <tr><td>".concat(n.browsers_name[s],"</td><td>").concat(0<parseInt(n.browsers_value[s])?d.number_format(n.browsers_value[s]):n.browsers_value[s],"</td><td>").concat(d.number_format(n.browsers_value[s]/n.total*100),"%</td></tr>");r=r+" <tr><td>".concat(d._("total"),"</td><td>").concat(d.number_format(n.total),"</td><td></td></tr>")+"</table>",o="#browser-"+i+"-table .inside";jQuery(o).html(r),d.set_equal_height(o,"#browser-"+i+"-chart .inside")},500)},d.error_custom_agent=function(t){},d.countries_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="",a=(e+='<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td width="10%" style=\'text-align: left\'>'.concat(d._("rank"),"</td><td width=\"10%\" style='text-align: left'>").concat(d._("flag"),"</td><td width=\"40%\" style='text-align: left'>").concat(d._("country"),"</td><td width=\"40%\" style='text-align: left'>").concat(d._("visitor_count"),"</td></tr>"),1);return t.forEach(function(t){e+="<tr><td style='text-align: left;'>".concat(a,"</td><td style='text-align: left;'><img src=\"").concat(t.flag,'" title="').concat(t.name,'" alt="').concat(t.name,"\"/></td><td style='text-align: left;'>").concat(t.name,"</td><td style='text-align: left;'><a href=\"").concat(t.link,'" title="').concat(t.name,'" target="_blank">').concat(d.number_format(t.number),"</a></td></tr>"),a++}),e+="</tbody></table>"}},d.devices_meta_box={placeholder:function(){return d.circle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return d.is_active("overview_page")&&(e+=d.btn_group_chart("devices",t),setTimeout(function(){d.date_picker()},1e3)),e+='<canvas id="'+d.chart_id("devices")+'" height="220"></canvas>'},meta_box_init:function(){for(var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o<=20;o++)t=d.random_color(),a.push("rgba("+t[0]+","+t[1]+","+t[2]+",0.4)");var r=[{label:d._("device"),data:e.device_value,backgroundColor:a,tension:.4}];if(d.pie_chart(d.chart_id("devices"),e.device_name,r),d.exist_tag("#"+d.getMetaBoxKey("devices-table"))){["devices-table","devices"].forEach(function(t){jQuery("#"+d.getMetaBoxKey(t)+" .inside").removeAttr("style")});for(var s='<div class="title-center">'.concat(e.title,'</div><table width="100%" class="widefat table-stats"><tr><td class="wps-text-muted">').concat(d._("device"),'</td><td class="wps-text-muted">').concat(d._("visitor_count"),'</td><td class="wps-text-muted">').concat(d._("percentage"),"</td></tr>"),n=0;n<e.device_name.length;n++)s+=" <tr><td>".concat(e.device_name[n],"</td><td>").concat(0<parseInt(e.device_value[n])?'<a href="'+e.info.visitor_page+"&device="+e.device_name[n]+"&from="+e.from+"&to="+e.to+'" target="_blank"> '.concat(d.number_format(e.device_value[n])," </a>"):d.number_format(e.device_value[n]),"</td><td>").concat(d.number_format(e.device_value[n]/e.total*100),"%</td> </tr>");s=s+" <tr><td>".concat(d._("total"),"</td><td>").concat(d.number_format(e.total),"</td><td></td></tr>")+"</table>",jQuery("#"+d.getMetaBoxKey("devices-table")+" .inside").html(s),d.set_equal_height(".postBox-table .inside",".postBox-chart .inside")}}},d.exclusions_meta_box={placeholder:function(){return d.rectangle_placeholder()},view:function(){var t=d.is_active("overview_page")?110:210,e=(d.isset(d.global,"request_params","page")&&"exclusions"===d.global.request_params.page&&(t=80),"");return e+='<canvas id="'+d.chart_id("exclusions")+'" height="'+t+'"></canvas>'},meta_box_init:function(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.show_chart(d.chart_id("exclusions"),e),d.isset(d.global,"request_params","page")&&"exclusions"===d.global.request_params.page&&d.exist_tag(t="span[id='number-total-chart-exclusions']")&&(e=d.sum(Object.values(e.total)),jQuery(t).html(d.number_format(e)))},show_chart:function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],s="",n=[],i=0;Object.keys(r.exclusions).forEach(function(t){var e,a,o=d.sum(Object.values(r.value[t]));0<o&&(e=r.exclusions[t],a=d.random_color(i),n.push({label:e,data:r.value[t],backgroundColor:"rgba("+a[0]+","+a[1]+","+a[2]+",0.3)",borderColor:"rgba("+a[0]+","+a[1]+","+a[2]+",1)",borderWidth:1,fill:!0,tension:.4}),s+="<tr><th>".concat(e,'</th> <th class="th-center"><span style="color: #9a9494 !important;">').concat(d.number_format(o),"</span></th></tr>"),i++)}),d.exist_tag("table[data-table=exclusions]")&&jQuery(s).insertAfter("table[data-table=exclusions] tr:first"),d.line_chart(t,r.title,r.date,n)}},d.hits_meta_box={placeholder:function(){return d.rectangle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=d.is_active("overview_page")?110:210,a=(d.isset(d.global,"request_params","page")&&"hits"===d.global.request_params.page&&(e=80),"");return d.is_active("overview_page")&&(a+=d.btn_group_chart("hits",t),setTimeout(function(){d.date_picker()},1e3)),a+='<canvas id="'+d.chart_id("hits")+'" height="'+e+'"></canvas>'},meta_box_init:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.hits_chart(d.chart_id("hits"),a),d.isset(d.global,"request_params","page")&&"hits"===d.global.request_params.page&&["visits","visitors"].forEach(function(t){var e="span[id^='number-total-chart-"+t+"']";d.exist_tag(e)&&jQuery(e).html(a.total[t])})},hits_chart:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],a=e,e=("hits-chart"in e&&(a=e["hits-chart"]),[]);d.is_active("visitors")&&e.push({label:d._("visitors"),data:a.visitors,backgroundColor:"rgba(255, 99, 132, 0.2)",borderColor:"rgba(255, 99, 132, 1)",borderWidth:1,fill:!0,tension:.4}),d.is_active("visits")&&e.push({label:d._("visits"),data:a.visits,backgroundColor:"rgba(54, 162, 235, 0.2)",borderColor:"rgba(54, 162, 235, 1)",borderWidth:1,fill:!0,tension:.4}),d.line_chart(t,a.title,a.date,e)}},d.hitsmap_meta_box={placeholder:function(){return d.rectangle_placeholder()},view:function(){return'<div id="wp-statistics-visitors-map"></div>'},meta_box_init:function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],r=Array();o.hasOwnProperty("country")&&Object.keys(o.country).forEach(function(e){var a="<div class='map-html-marker'><img src='".concat(o.country[e].flag,"' alt=\"").concat(o.country[e].name,"\" title='").concat(o.country[e].name,"' class='log-tools'/> ").concat(o.country[e].name," [").concat(o.total_country[e],"]<hr />");Object.keys(o.visitor[e]).forEach(function(t){a+="<p><img src='".concat(o.visitor[e][t].browser.logo,"' alt=\"").concat(o.visitor[e][t].browser.name,"\" class='log-tools' title='").concat(o.visitor[e][t].browser.name,"'/> ").concat(o.visitor[e][t].ip," ")+("Unknown"!==o.visitor[e][t].city?"- "+o.visitor[e][t].city:"")+"</p>"}),a+="</div>",r[e]=a}),jQuery("#wp-statistics-visitors-map").vectorMap({map:"world_en",backgroundColor:"#fff",borderColor:"#7e7e7e",borderOpacity:.6,color:"#e6e5e2",hoverColor:"#c3403c",colors:o.color,onLabelShow:function(t,e,a){void 0!==r[a]?e.html(r[a]):e.html(e.html()+" [0]<hr />")}})}},d.models_meta_box={placeholder:function(){return d.circle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return d.is_active("overview_page")&&(e+=d.btn_group_chart("models",t),setTimeout(function(){d.date_picker()},1e3)),e+='<canvas id="'+d.chart_id("models")+'" height="220"></canvas>'},meta_box_init:function(){for(var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o<=20;o++)t=d.random_color(),a.push("rgba("+t[0]+","+t[1]+","+t[2]+",0.4)");var r=[{label:d._("model"),data:e.model_value,backgroundColor:a,tension:.4}];if(d.pie_chart(d.chart_id("models"),e.model_name,r),d.exist_tag("#"+d.getMetaBoxKey("models-table"))){["models-table","models"].forEach(function(t){jQuery("#"+d.getMetaBoxKey(t)+" .inside").removeAttr("style")});for(var s='<div class="title-center">'.concat(e.title,'</div><table width="100%" class="widefat table-stats"><tr><td class="wps-text-muted">').concat(d._("model"),'</td><td class="wps-text-muted">').concat(d._("visitor_count"),'</td><td class="wps-text-muted">').concat(d._("percentage"),"</td></tr>"),n=0;n<e.model_name.length;n++)s+=" <tr><td>".concat(e.model_name[n],"</td><td>").concat(0<parseInt(e.model_value[n])?'<a href="'+e.info.visitor_page+"&model="+e.model_name[n]+"&from="+e.from+"&to="+e.to+'" target="_blank"> '.concat(d.number_format(e.model_value[n])," </a>"):d.number_format(e.model_value[n]),"</td><td>").concat(d.number_format(e.model_value[n]/e.total*100),"%</td> </tr>");s=s+" <tr><td>".concat(d._("total"),"</td><td>").concat(d.number_format(e.total),"</td><td></td></tr>")+"</table>",jQuery("#"+d.getMetaBoxKey("models-table")+" .inside").html(s),d.set_equal_height(".postBox-table .inside",".postBox-chart .inside")}}},d.pages_chart_meta_box={placeholder:function(){return d.rectangle_placeholder()},view:function(){return'<canvas id="'+d.chart_id("pages-chart")+'" height="80"></canvas>'},meta_box_init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.show_chart(d.chart_id("pages-chart"),t),d.exist_tag("span[id=number-total-visits]")&&jQuery("span[id=number-total-visits]").html(t.total),d.exist_tag("span[id=number-total-chart-visits]")&&jQuery("span[id=number-total-chart-visits]").html(t.total_dates)},show_chart:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];d.line_chart(t,e.title,e.date,[{label:d._("visits"),data:e.stat,backgroundColor:"rgba(54, 162, 235, 0.2)",borderColor:"rgba(54, 162, 235, 1)",borderWidth:1,fill:!0,tension:.4}])}},d.pages_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="",a=(e+='<table width="100%" class="widefat table-stats wps-report-table wps-table-fixed"><tbody><tr><td width=\'10%\'>'.concat(d._("id"),"</td><td width='40%'>").concat(d._("title"),"</td><td width='40%'>").concat(d._("link"),"</td><td width='10%'>").concat(d._("visits"),"</td></tr>"),1);return t.forEach(function(t){e+="<tr><td style='text-align: left;'>".concat(a,"</td><td style='text-align: left;'><span title='").concat(t.title,"' class='wps-cursor-default wps-text-wrap'>").concat(t.title,"</span></td><td style='text-align: left;'><a href=\"").concat(t.link,'" title="').concat(t.title,'" target="_blank">').concat(t.str_url,'</a></td><td style="text-align: left"><a href="').concat(t.hits_page,'" class="wps-text-muted">').concat(t.number,"</a></td></tr>"),a++}),e+="</tbody></table>"}},d.platforms_meta_box={placeholder:function(){return d.circle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return d.is_active("overview_page")&&(e+=d.btn_group_chart("platforms",t),setTimeout(function(){d.date_picker()},1e3)),e+='<canvas id="'+d.chart_id("platforms")+'" height="220"></canvas>'},meta_box_init:function(){for(var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o<=20;o++)t=d.random_color(),a.push("rgba("+t[0]+","+t[1]+","+t[2]+",0.4)");var r=[{label:d._("platform"),data:e.platform_value,backgroundColor:a,tension:.4}];if(d.pie_chart(d.chart_id("platforms"),e.platform_name,r),d.exist_tag("#"+d.getMetaBoxKey("platforms-table"))){["platforms-table","platforms"].forEach(function(t){jQuery("#"+d.getMetaBoxKey(t)+" .inside").removeAttr("style")});for(var s='<div class="title-center">'.concat(e.title,'</div><table width="100%" class="widefat table-stats"><tr><td class="wps-text-muted">').concat(d._("platform"),'</td><td class="wps-text-muted">').concat(d._("visitor_count"),'</td><td class="wps-text-muted">').concat(d._("percentage"),"</td></tr>"),n=0;n<e.platform_name.length;n++)s+=" <tr><td>".concat(e.platform_name[n],"</td><td>").concat(0<parseInt(e.platform_value[n])?'<a href="'+e.info.visitor_page+"&platform="+e.platform_name[n]+"&from="+e.from+"&to="+e.to+'" target="_blank"> '.concat(d.number_format(e.platform_value[n])," </a>"):d.number_format(e.platform_value[n]),"</td><td>").concat(d.number_format(e.platform_value[n]/e.total*100),"%</td> </tr>");s=s+" <tr><td>".concat(d._("total"),"</td><td>").concat(d.number_format(e.total),"</td><td></td></tr>")+"</table>",jQuery("#"+d.getMetaBoxKey("platforms-table")+" .inside").html(s),d.set_equal_height(".postBox-table .inside",".postBox-chart .inside")}}},d.post_meta_box={params:function(){return{ID:d.global.page.ID}},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];return(t.hasOwnProperty("content")?'<div class="wps-center" style="padding: 15px;"> '+t.content+"</div>":'<canvas id="'+d.chart_id("post")+'" height="85"></canvas>')+'<div class="wps-wrap wps-meta-box-footer">'+t.visitors+"</div>"},meta_box_init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];t.hasOwnProperty("content")?jQuery("#"+d.getMetaBoxKey("post")+" button[onclick]").remove():this.post_hits_chart(d.chart_id("post"),t)},post_hits_chart:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];d.line_chart(t,e.title,e.date,[{label:e.post_title,data:e.state,backgroundColor:"rgba(255, 99, 132, 0.2)",borderColor:"rgba(255, 99, 132, 1)",borderWidth:1,fill:!0,tension:.4}])}},d.quickstats_meta_box={view:function(){var t="";return(t+='<table width="100%" class="widefat table-stats wps-summary-stats"><tbody>')+d.summary_meta_box.summary_statistics(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[])+"</tbody></table>"+'<br><hr width="80%"/><br>'+('<canvas id="'+d.chart_id("quickstats")+'" height="210"></canvas>')},meta_box_init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];d.hits_meta_box.hits_chart(d.chart_id("quickstats"),t)}},d.recent_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="",e=(e+='<div class="wp-statistics-responsive-table">')+('<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td>'.concat(d._("browser"),"</td>")+(d.is_active("geo_ip")?"<td>".concat(d._("country"),"</td>"):"")+""+(d.is_active("geo_city")?"<td>".concat(d._("city"),"</td>"):"")+"<td>".concat(d._("date"),"</td><td>").concat(d._("hits"),"</td><td>").concat(d._("ip"),"</td><td>").concat(d._("referrer"),"</td></tr>"));return t.forEach(function(t){e+='<tr><td style="text-align: left"><a href="'.concat(t.browser.link,'" title="').concat(t.browser.name,'"><img src="').concat(t.browser.logo,'" alt="').concat(t.browser.name,"\" class='log-tools' title='").concat(t.browser.name,"'/></a></td>")+(d.is_active("geo_ip")?'<td style="text-align: left"><img src=\''.concat(t.country.flag,"' alt='").concat(t.country.name,"' title='").concat(t.country.name,"' class='log-tools'/></td>"):"")+""+(d.is_active("geo_city")?"<td>".concat(t.city,"</td>"):"")+'<td style="text-align: left">'.concat(t.date,'</td><td style="text-align: left">').concat(t.hits,'</td><td style="text-align: left">')+(t.hash_ip||"<a href='".concat(t.ip.link,"'>").concat(t.ip.value,"</a>"))+'</td><td style="text-align: left">'.concat(t.referred,"</td></tr>")}),e=e+"</tbody></table>"+"</div>"}},d.referring_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return e+='<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td width="80%">'.concat(d._("address"),'</td><td width="20%">').concat(d.meta_box_lang("referring","references"),"</td></tr>"),t.forEach(function(t){e+="<tr><td>"+d.site_icon(t.domain)+" <a href='//".concat(t.domain,"' title='").concat(t.title,'\' target="_blank">').concat(t.domain,"</a><span class='wps-cursor-default wps-referring-widget-ip'")+(2<t.country.length?' title="'.concat(t.country,'"'):"")+">".concat(t.ip,'</span></td><td class="wps-middle-vertical"><a href="').concat(t.page_link,'">').concat(t.number,"</a></td></tr>")}),e+="</tbody></table>"}},d.search_meta_box={placeholder:function(){return d.rectangle_placeholder()},view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=d.is_active("overview_page")?110:210,a=(d.isset(d.global,"request_params","page")&&"searches"===d.global.request_params.page&&(e=80),"");return d.is_active("overview_page")&&(a+=d.btn_group_chart("search",t),setTimeout(function(){d.date_picker()},1e3)),a+='<canvas id="'+d.chart_id("search")+'" height="'+e+'"></canvas>'},meta_box_init:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],o=[],r=0;Object.keys(a["search-engine"]).forEach(function(t){var t=a["search-engine"][t].name,e=d.random_color(r);o.push({label:t,data:a.stat[t],backgroundColor:"rgba("+e[0]+","+e[1]+","+e[2]+",0.3)",borderColor:"rgba("+e[0]+","+e[1]+","+e[2]+",1)",borderWidth:1,fill:!0,tension:.4}),r++}),1===a.total.active&&o.push({label:d._("total"),data:a.total.stat,backgroundColor:"rgba("+a.total.color+", 0.2)",borderColor:"rgba("+a.total.color+", 1)",borderWidth:1,fill:!0,tension:.4}),d.line_chart(d.chart_id("search"),a.title,a.date,o)}},d.summary_meta_box={summary_statistics:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],o="";if(a.user_online&&(o="<tr><th>".concat(d._("online_users"),':</th><th colspan="2" id="th-colspan"><span><a href="').concat(a.user_online.link,'">').concat(a.user_online.value,"</a></span></th></tr>")),d.is_active("visitors")||d.is_active("visits")){o+='<tr><th width="60%"></th>',["visitors","visits"].forEach(function(t){o+='<th class="th-center">'+(d.is_active(t)?d._(t):"")+"</th>"}),o+="</tr>";for(var r=["today","yesterday","week","month","year","total"],t=0;t<r.length;t++)!function(e){o+="<tr><th>".concat(d._(r[e]),": </th>"),["visitors","visits"].forEach(function(t){o+='<th class="th-center">'+(d.is_active(t)?'<a href="'.concat(a[t][r[e]].link,'"><span>').concat(a[t][r[e]].value,"</span></a>"):"")+"</th>"}),o+="</tr>"}(t)}return o},view:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a="",a=(a+='<table width="100%" class="widefat table-stats wps-summary-stats"><tbody>')+this.summary_statistics(e);return d.is_active("visitors")&&(a=(a+='<tr><th colspan="3"><br><hr></th></tr>')+'<tr><th colspan="3" style="text-align: center;">'.concat(d.meta_box_lang("summary","search_engine"),'</th></tr><tr><th width="60%"></th><th class="th-center">').concat(d._("today"),'</th><th class="th-center">').concat(d._("yesterday"),"</th></tr>"),Object.keys(e["search-engine"]).forEach(function(t){a+='<tr><th><img src="'.concat(e["search-engine"][t].logo,'" alt="').concat(e["search-engine"][t].name,'" class="wps-engine-logo"> ').concat(e["search-engine"][t].name,':</th><th class="th-center"><span>').concat(e["search-engine"][t].today,'</span></th><th class="th-center"><span>').concat(e["search-engine"][t].yesterday,"</span></th></tr>")}),a+="<tr><th>".concat(d._("daily_total"),':</th><td id="th-colspan" class="th-center"><span>').concat(e["search-engine-total"].today,'</span></td><td id="th-colspan" class="th-center"><span>').concat(e["search-engine-total"].yesterday,"</span></td></tr><tr><th>").concat(d._("total"),':</th><th colspan="2" id="th-colspan"><span>').concat(e["search-engine-total"].total,"</span></th></tr>")),a=a+' <tr><th colspan="3"><br><hr></th></tr><tr><th colspan="3" style="text-align: center;">'.concat(d.meta_box_lang("summary","current_time_date"),'<span id="time_zone"><a href="').concat(e.timezone["option-link"],'"> ').concat(d.meta_box_lang("summary","adjustment"),'</a></span></th></tr><tr><th colspan="3">').concat(d._("date"),': <code dir="ltr">').concat(e.timezone.date,'</code></th></tr><tr> <th colspan="3">').concat(d._("time"),': <code dir="ltr">').concat(e.timezone.time,"</code></th></tr>")+"</tbody></table>"}},d.top_pages_chart_meta_box={placeholder:function(){return d.rectangle_placeholder()},view:function(){var t="";return setTimeout(function(){d.date_picker()},1e3),t+='<canvas id="'+d.chart_id("top-pages-chart")+'" height="80"></canvas>'},meta_box_init:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];this.top_pages_chart(d.chart_id("top-pages-chart"),t)},top_pages_chart:function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=[],r=0;Object.keys(a.stat).forEach(function(t){var e=d.random_color(r);o.push({label:t,data:a.stat[t],backgroundColor:"rgba("+e[0]+","+e[1]+","+e[2]+",0.3)",borderColor:"rgba("+e[0]+","+e[1]+","+e[2]+",1)",borderWidth:1,fill:!0,tension:.4}),r++}),d.line_chart(t,a.title,a.date,o)}},d.top_visitors_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="",a=(e=(e+='<div class="wp-statistics-responsive-table">')+('<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td>'.concat(d._("rank"),"</td><td>").concat(d._("hits"),"</td>")+(d.is_active("geo_ip")?"<td>".concat(d._("flag"),"</td><td>").concat(d._("country"),"</td>"):"")+""+(d.is_active("geo_city")?"<td>".concat(d._("city"),"</td>"):"")+"<td>".concat(d._("ip"),"</td><td>").concat(d._("agent"),"</td><td>").concat(d._("platform"),"</td><td>").concat(d._("version"),"</td></tr>")),1);return t.forEach(function(t){e+="<tr><td>".concat(a,"</td><td>").concat(t.hits,"</td>")+(d.is_active("geo_ip")?"<td><img src='".concat(t.country.flag,"' alt='").concat(t.country.name,"' title='").concat(t.country.name,"' class='log-tools'/></td><td>").concat(t.country.name,"</td>"):"")+""+(d.is_active("geo_city")?"<td>".concat(t.city,"</td>"):"")+"<td>"+(t.hash_ip||"<a href='".concat(t.ip.link,"'>").concat(t.ip.value,"</a>"))+"</td><td>".concat(t.agent,"</td><td>").concat(t.platform,"</td><td>").concat(t.version,"</td></tr>"),a++}),e=e+"</tbody></table>"+"</div>"}},d.useronline_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";return e+='<table class="widefat table-stats wps-report-table wps-table-fixed"><tr>'+(d.is_active("geo_ip")?"<td style='text-align: left;'>".concat(d._("country"),"</td>"):"")+"<td style='text-align: left;'>".concat(d._("ip"),"</td><td width=\"35%\" style='text-align: left;'>").concat(d._("page"),"</td><td style='text-align: left;'>").concat(d._("referrer"),"</td></tr>"),t.forEach(function(t){e+="<tr>"+(d.is_active("geo_ip")?'<td style="text-align: left"><img src=\''.concat(t.country.flag,"' alt='").concat(t.country.name,"' title='").concat(t.country.name,"' class='log-tools'/></td>"):"")+"<td style='text-align: left !important'>"+(t.hash_ip||t.ip.value)+"</td><td style='text-align: left !important;'><span class=\"wps-text-wrap\">"+(2<t.page.link.length?'<a href="'.concat(t.page.link,'" title="').concat(t.page.title,'" target="_blank" class="wps-text-muted">'):"")+t.page.title+(2<t.page.link.length?"</a>":"")+'</span></td><td style="text-align: left !important">'.concat(t.referred,"</td></tr>")}),e+="</table>"}},d.words_meta_box={view:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e="";e=(e+='<div class="wp-statistics-responsive-table">')+('<table width="100%" class="widefat table-stats wps-report-table"><tbody><tr><td>'.concat(d._("word"),"</td><td>").concat(d._("browser"),"</td>")+(d.is_active("geo_ip")?"<td>".concat(d._("country"),"</td>"):""))+""+(d.is_active("geo_city")?"<td>".concat(d._("city"),"</td>"):"")+"<td>".concat(d._("date"),"</td><td>").concat(d._("ip"),"</td><td>").concat(d._("referrer"),"</td></tr>");return t.forEach(function(t){e+='<tr><td style="text-align: left"><span title=\''.concat(t.word,"' class='wps-cursor-default wps-text-wrap")+(d.is_active("overview_page")?" wps-200-px":"")+"'>".concat(t.word,'</span></td><td style="text-align: left"><a href="').concat(t.browser.link,'" title="').concat(t.browser.name,'"><img src="').concat(t.browser.logo,'" alt="').concat(t.browser.name,"\" class='log-tools' title='").concat(t.browser.name,"'/></a></td>")+(d.is_active("geo_ip")?'<td style="text-align: left"><img src=\''.concat(t.country.flag,"' alt='").concat(t.country.name,"' title='").concat(t.country.name,"' class='log-tools'/></td>"):"")+(d.is_active("geo_city")?'<td style="text-align: left">'.concat(t.city,"</td>"):"")+'<td style="text-align: left">'.concat(t.date,'</td><td style="text-align: left">')+(t.hash_ip||"<a href='".concat(t.ip.link,"'>").concat(t.ip.value,"</a>"))+'</td><td style="text-align: left">'.concat(t.referred,"</td></tr>"),0}),e=e+"</tbody></table>"+"</div>"}},d.isset(d.global,"request_params","page")&&"authors"===d.global.request_params.page&&(a={ago:30,type:"author",ID:0},["from","to","ID"].forEach(function(t){d.isset(d.global,"request_params",t)&&(a[t]=d.global.request_params[t])}),jQuery("span[id^='number-total-']").html(d.rectangle_placeholder("wps-text-placeholder")),d.run_meta_box("pages-chart",a,!1)),d.isset(d.global,"request_params","page")&&"browser"===d.global.request_params.page&&(o={},["from","to"].forEach(function(t){d.isset(d.global,"request_params",t)&&(o[t]=d.global.request_params[t])}),["browsers-table","browsers"].forEach(function(t){jQuery("#"+d.getMetaBoxKey(t)+" .inside").css("height","430px")}),jQuery("#wp-statistics-browsers-table-widget .inside").html(d.placeholder()),jQuery(".wps-ph-picture").attr("style","height: 310px;"),d.run_meta_box("browsers",o,!1)),d.isset(d.global,"request_params","page")&&"categories"===d.global.request_params.page&&(r={ago:30,type:"category",ID:0},["from","to","ID"].forEach(function(t){d.isset(d.global,"request_params",t)&&(r[t]=d.global.request_params[t])}),jQuery("span[id^='number-total-']").html(d.rectangle_placeholder("wps-text-placeholder")),d.run_meta_box("pages-chart",r,!1)),d.isset(d.global,"request_params","page")&&"countries"===d.global.request_params.page&&(s={limit:0},["from","to"].forEach(function(t){d.isset(d.global,"request_params",t)&&(s[t]=d.global.request_params[t])}),d.run_meta_box("countries",s,!1)),d.isset(d.global,"request_params","page")&&"exclusions"===d.global.request_params.page&&(t=d.isset(d.global,"request_params","from")&&d.isset(d.global,"request_params","to")?{from:d.global.request_params.from,to:d.global.request_params.to}:{ago:30},jQuery("span[id^='number-total-chart-']").html(d.rectangle_placeholder("wps-text-placeholder")),d.run_meta_box("exclusions",t,!1)),d.isset(d.global,"request_params","page")&&"hits"===d.global.request_params.page&&(t={},t=d.isset(d.global,"request_params","from")&&d.isset(d.global,"request_params","to")?{from:d.global.request_params.from,to:d.global.request_params.to}:{ago:30},jQuery("span[id^='number-total-chart-']").html(d.rectangle_placeholder("wps-text-placeholder")),d.run_meta_box("hits",t,!1)),d.isset(d.global,"request_params","page")&&"overview"===d.global.request_params.page&&d.isset(d.global,"overview","ads")&&d.is_active("overview_ads")&&(t='<div id="wps_overview_ads_postbox" class="postbox"><div class="inside"><div class="close-overview-ads"><span class="dashicons dashicons-dismiss"></span></div><a href="'.concat(d.global.overview.ads.link,'" title="').concat(d.global.overview.ads.title,'" ').concat("yes"==d.global.overview.ads._target?' target="_blank"':"",'><img src="').concat(d.global.overview.ads.image,'" id="wps_overview_ads_image" alt="').concat(d.global.overview.ads.title,'"></a></div></div>'),jQuery(t).insertAfter("#wps-postbox-container-2 #normal-sortables div.postbox:first"),jQuery(document).on("click",".close-overview-ads",function(){jQuery("#wps_overview_ads_postbox").fadeOut("normal"),jQuery.ajax({url:d.global.admin_url+"admin-ajax.php",type:"get",data:{action:"wp_statistics_close_overview_ads",ads_id:""+d.global.overview.ads.ID,wps_nonce:""+d.global.rest_api_nonce},datatype:"json"})}),jQuery("#wps-donate-notice").on("click",".notice-dismiss",function(){jQuery.ajax({url:d.global.admin_url+"admin-ajax.php",type:"get",data:{action:"wp_statistics_close_notice",notice:"donate",wps_nonce:""+d.global.rest_api_nonce},datatype:"json"})}),jQuery("#wps_overview_ads_image").on("error",function(){jQuery("#wps_overview_ads_postbox").remove()})),d.isset(d.global,"request_params","page")&&"pages"===d.global.request_params.page&&(d.isset(d.global,"request_params","ID")&&d.isset(d.global,"request_params","type")?(t=d.isset(d.global,"request_params","from")&&d.isset(d.global,"request_params","to")?{from:d.global.request_params.from,to:d.global.request_params.to}:{ago:30},t=Object.assign(t,{ID:d.global.request_params.ID,type:d.global.request_params.type}),d.run_meta_box("pages-chart",t,!1),d.exist_tag("form#wp-statistics-select-pages")&&d.select2(),jQuery(document).on("change","select[name=ID]",function(){jQuery("span.submit-form").html(d._("please_wait")),jQuery(this).closest("form").trigger("submit")})):(t={},d.isset(d.global,"request_params","pagination-page")&&(t.paged=d.global.request_params["pagination-page"]),d.isset(d.global,"request_params","from")&&d.isset(d.global,"request_params","to")?(t.from=d.global.request_params.from,t.to=d.global.request_params.to):t.ago=30,d.run_meta_box("top-pages-chart",t,!1))),d.isset(d.global,"request_params","page")&&"platform"===d.global.request_params.page&&(n={},["from","to"].forEach(function(t){d.isset(d.global,"request_params",t)&&(n[t]=d.global.request_params[t])}),["platforms-table","platforms"].forEach(function(t){jQuery("#"+d.getMetaBoxKey(t)+" .inside").css("height","430px")}),jQuery("#wp-statistics-platforms-table-widget .inside").html(d.placeholder()),jQuery(".wps-ph-picture").attr("style","height: 310px;"),d.run_meta_box("platforms",n,!1)),d.isset(d.global,"request_params","page")&&"searches"===d.global.request_params.page&&(t=d.isset(d.global,"request_params","from")&&d.isset(d.global,"request_params","to")?{from:d.global.request_params.from,to:d.global.request_params.to}:{ago:30},d.run_meta_box("search",t,!1)),jQuery(".wp-statistics-settings").length&&((t=function(t){if(t=new RegExp("[?&]"+t+"=([^&#]*)").exec(window.location.href))return t[1]}("tab"))&&p(t),jQuery(".wp-statistics-settings ul.tabs li").click(function(){p(jQuery(this).attr("data-tab"))})),u("input[name=wps_visitors]","tr[data-view=visitors_log_tr]"),u("input[name=wps_referrerspam]","tr.referrerspam_field"),d.isset(d.global,"request_params","page")&&"settings"===d.global.request_params.page&&(jQuery("#wp-statistics-settings-form ul.tabs li").click(function(t){t.preventDefault();t=e(this).attr("data-tab");"undefined"!=typeof localStorage&&localStorage.setItem("wp-statistics-settings-active-tab",t)}),"undefined"!=typeof localStorage&&d.isset(d.global,"request_params","save_setting")&&"yes"===d.global.request_params.save_setting&&(t=localStorage.getItem("wp-statistics-settings-active-tab"))&&0<t.length&&e("#wp-statistics-settings-form ul.tabs li[data-tab="+t+"]").click()),d.isset(d.global,"request_params","page")&&"tags"===d.global.request_params.page&&(i={ago:30,type:"post_tag",ID:0},["from","to","ID"].forEach(function(t){d.isset(d.global,"request_params",t)&&(i[t]=d.global.request_params[t])}),jQuery("span[id^='number-total-']").html(d.rectangle_placeholder("wps-text-placeholder")),d.run_meta_box("pages-chart",i,!1)),d.isset(d.global,"request_params","page")&&"visitors"===d.global.request_params.page&&(c=function(t,o){var r='<table class="widefat">',s={browsers:["agent","browsers"],country:["location","location"],platform:["platform","platform"],referrer:["referrer","referrer"],user:["user_id","users"]},e=(Object.keys(s).forEach(function(e){r=(r=(r+="<tr><td>".concat(d._(e),"</td></tr>"))+'<tr><td><select name="'.concat(s[e][0],'" class="select2 wps-width-100" data-type-show="select2">'))+"<option value=''>".concat(d._("all"),"</option>");var a=d.getLinkParams(s[e][0]);Object.keys(o[s[e][1]]).forEach(function(t){r+="<option value='".concat(t,"' ").concat(null!=a&&a==t?"selected":"",">").concat(o[s[e][1]][t],"</option>")}),r+="</select></td></tr>"}),"width: calc(50% - 5px);display: inline-block;"),r=(r=(r=(r=(r+="<tr><td>".concat(d._("ip"),"</td></tr>"))+'<tr><td><input name="ip" value="'.concat(null!=d.getLinkParams("ip")?d.getLinkParams("ip"):"",'" class="wps-width-100" placeholder=\'xxx.xxx.xxx.xxx\' autocomplete="off"></td></tr>'))+"<tr><td>".concat(d._("date"),"</td></tr>"))+'<tr><td><div style="'.concat(e,'">').concat(d._("from"),': <input name="date-from" data-wps-date-picker="from" value="').concat(null!=d.getLinkParams("from")?d.getLinkParams("from"):"",'" style="width: calc(100% - 5px);" placeholder="YYYY-MM-DD" autocomplete="off"></div><div style="').concat(e,'">').concat(d._("to"),': <input name="date-to" data-wps-date-picker="to" value="').concat(null!=d.getLinkParams("to")?d.getLinkParams("to"):"",'" style="width: 100%;" placeholder="YYYY-MM-DD" autocomplete="off"></div><input type="hidden" name="from" id="date-from" value="').concat(null!=d.getLinkParams("from")?d.getLinkParams("from"):"",'"><input type="hidden" name="to" id="date-to" value="').concat(null!=d.getLinkParams("to")?d.getLinkParams("to"):"",'"></td></tr>')+"<tr><td></td></tr>")+'<tr><td><input type="submit" value="'.concat(d._("filter"),'" class="button-primary"> &nbsp; <span class="filter-loading"></span></td></tr>')+"</table>";jQuery(t).html(r),setTimeout(function(){d.date_picker(),d.select2()},200)},jQuery(document).on("click","div#visitors-filter",function(t){t.preventDefault(),tb_show("","#TB_inline?&width=430&height=668&inlineId=visitors-filter-popup"),setTimeout(function(){var t,e,a="#wps-visitors-filter-form";d.exist_tag(a+" input[type=submit]")||(jQuery(a).html('<div style="height: 50px;"></div>'+d.line_placeholder(5)),t=localStorage.getItem("wp-statistics-visitors-filter")?JSON.parse(localStorage.getItem("wp-statistics-visitors-filter")):{},!d.isset(t,"timestamp")||!d.isset(t,"value")||d.isset(t,"timestamp")&&d.isset(t,"value")&&(new Date).getTime().toString()>parseInt(t.timestamp)?(e={wps_nonce:d.global.rest_api_nonce,action:"wp_statistics_visitors_page_filters"},e=Object.assign(e,d.global.request_params),jQuery.ajax({url:d.global.admin_url+"admin-ajax.php",type:"GET",dataType:"json",data:e,timeout:3e4,success:function(t){localStorage.setItem("wp-statistics-visitors-filter",JSON.stringify({value:t,timestamp:(new Date).getTime()+216e5})),c(a,t)},error:function(t,e,a){jQuery("span.tb-close-icon").click()}})):c(a,t.value))},500)}),l="#wp_statistics_visitors_filter_form",jQuery(document).on("submit",l,function(){var t=jQuery(l+" input[name=date-from]"),e=jQuery(l+" input[name=date-to]");if(0<t.val().length&&e.val().length<1||t.val().length<1&&1<e.val().length)return alert(d._("er_datepicker")),!1;t=jQuery(l+" input[name=ip]").val();if(0<t.length&&!1===d.isIP(t))return alert(d._("er_valid_ip")),!1;jQuery("input[data-wps-date-picker]").prop("disabled",!0);var o={input:["date-from","date-to","ip"],select:["agent","platform","location","referrer","user_id"]},e=(Object.keys(o).forEach(function(a){o[a].forEach(function(e){var t=jQuery(l+" "+a+"[name="+e+"]");t.val().length<1&&(t.prop("disabled",!0),["from","to"].forEach(function(t){e=="date-"+t&&jQuery(l+" input[name="+t+"]").prop("disabled",!0)}))})}),d.getLinkParams("order"));return null!=e&&jQuery(this).append('<input type="hidden" name="order" value="'+e+'" /> '),jQuery("span.filter-loading").html(d._("please_wait")),!0})),d.date_picker(),("index.php"===d.global.page.file||d.is_active("overview_page")||"post-new.php"===d.global.page.file||"post.php"===d.global.page.file&&d.isset(d.global,"page","ID"))&&d.run_meta_boxes()});
includes/admin/class-wp-statistics-admin-notices.php CHANGED
@@ -50,9 +50,17 @@ class Admin_Notices
50
  if (Option::get('use_cache_plugin') and false === ($check_rest_api = get_transient('check-wp-statistics-rest'))) {
51
 
52
  // Check Connect To WordPress Rest API
53
- $status = true;
54
  $message = '';
55
- $request = wp_remote_get(get_rest_url(null, RestAPI::$namespace . '/check'), array('timeout' => 30, 'sslverify' => false));
 
 
 
 
 
 
 
 
56
 
57
  if (is_wp_error($request)) {
58
  $status = false;
@@ -60,8 +68,8 @@ class Admin_Notices
60
  } else {
61
  $body = wp_remote_retrieve_body($request);
62
  $data = json_decode($body, true);
63
- if (isset($data['error'])) {
64
- $status = false;
65
  }
66
  }
67
 
50
  if (Option::get('use_cache_plugin') and false === ($check_rest_api = get_transient('check-wp-statistics-rest'))) {
51
 
52
  // Check Connect To WordPress Rest API
53
+ $status = false;
54
  $message = '';
55
+
56
+ $params = array_merge(array(
57
+ '_' => time(),
58
+ '_wpnonce' => null,
59
+ Hits::$rest_hits_key => 'yes',
60
+ ), Helper::getHitsDefaultParams());
61
+
62
+ $requestUrl = add_query_arg($params, get_rest_url(null, RestAPI::$namespace . '/' . Api\v2\Hit::$endpoint));
63
+ $request = wp_remote_get($requestUrl, array('timeout' => 30, 'sslverify' => false));
64
 
65
  if (is_wp_error($request)) {
66
  $status = false;
68
  } else {
69
  $body = wp_remote_retrieve_body($request);
70
  $data = json_decode($body, true);
71
+ if (isset($data['status']) && $data['status'] == true) {
72
+ $status = true;
73
  }
74
  }
75
 
includes/admin/meta-box/wp-statistics-meta-box-devices.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WP_STATISTICS\MetaBox;
4
+
5
+ use WP_STATISTICS\DB;
6
+ use WP_STATISTICS\Helper;
7
+ use WP_STATISTICS\Menus;
8
+ use WP_STATISTICS\TimeZone;
9
+
10
+ class devices
11
+ {
12
+ /**
13
+ * Get Devices Chart
14
+ *
15
+ * @param array $arg
16
+ * @return array
17
+ * @throws \Exception
18
+ */
19
+ public static function get($arg = array())
20
+ {
21
+ global $wpdb;
22
+
23
+ // Set Default Params
24
+ $defaults = array(
25
+ 'ago' => 0,
26
+ 'from' => '',
27
+ 'to' => '',
28
+ 'order' => '',
29
+ 'number' => 10 // Get Max number of platform
30
+ );
31
+ $args = wp_parse_args($arg, $defaults);
32
+
33
+ // Check Default
34
+ if (empty($args['from']) and empty($args['to']) and $args['ago'] < 1) {
35
+ $args['ago'] = 'all';
36
+ }
37
+
38
+ // Prepare Count Day
39
+ if (!empty($args['from']) and !empty($args['to'])) {
40
+ $count_day = TimeZone::getNumberDayBetween($args['from'], $args['to']);
41
+ } else {
42
+ if (is_numeric($args['ago']) and $args['ago'] > 0) {
43
+ $count_day = $args['ago'];
44
+ } else {
45
+ $first_day = Helper::get_date_install_plugin();
46
+ $count_day = (int)TimeZone::getNumberDayBetween($first_day);
47
+ }
48
+ }
49
+
50
+ // Get time ago Days Or Between Two Days
51
+ if (!empty($args['from']) and !empty($args['to'])) {
52
+ $days_list = TimeZone::getListDays(array('from' => $args['from'], 'to' => $args['to']));
53
+ } else {
54
+ if (is_numeric($args['ago']) and $args['ago'] > 0) {
55
+ $days_list = TimeZone::getListDays(array('from' => TimeZone::getTimeAgo($args['ago'])));
56
+ } else {
57
+ $days_list = TimeZone::getListDays(array('from' => TimeZone::getTimeAgo($count_day)));
58
+ }
59
+ }
60
+
61
+ // Get List Of Days
62
+ $days_time_list = array_keys($days_list);
63
+ foreach ($days_list as $k => $v) {
64
+ $date[] = $v['format'];
65
+ $total_daily[$k] = 0;
66
+ }
67
+
68
+ // Set Default Value
69
+ $total = $count = 0;
70
+ $lists_value = $lists_name = array();
71
+
72
+ // Get List All Platforms
73
+ $list = $wpdb->get_results("SELECT device, COUNT(*) as count FROM " . DB::table('visitor') . " WHERE `last_counter` BETWEEN '" . reset($days_time_list) . "' AND '" . end($days_time_list) . "' GROUP BY device " . ($args['order'] != "" ? 'ORDER BY `count` ' . $args['order'] : ''), ARRAY_A);
74
+
75
+ // Sort By Count
76
+ Helper::SortByKeyValue($list, 'count');
77
+
78
+ // Get Last 10 Version that Max number
79
+ $devices = array_slice($list, 0, $args['number']);
80
+
81
+ // Push to array
82
+ foreach ($devices as $l) {
83
+
84
+ if (trim($l['device']) != "") {
85
+
86
+ // Sanitize Version name
87
+ $lists_name[] = sanitize_text_field($l['device']);
88
+
89
+ // Get List Count
90
+ $lists_value[] = (int)$l['count'];
91
+
92
+ // Add to Total
93
+ $total += $l['count'];
94
+ }
95
+ }
96
+
97
+ // Set Title
98
+ if (end($days_time_list) == TimeZone::getCurrentDate("Y-m-d")) {
99
+ $title = sprintf(__('%s Statistics in the last %s days', 'wp-statistics'), __('Devices', 'wp-statistics'), $count_day);
100
+ } else {
101
+ $title = sprintf(__('%s Statistics from %s to %s', 'wp-statistics'), __('Devices', 'wp-statistics'), $args['from'], $args['to']);
102
+ }
103
+
104
+ // Prepare Response
105
+ $response = array(
106
+ 'days' => $count_day,
107
+ 'from' => reset($days_time_list),
108
+ 'to' => end($days_time_list),
109
+ 'type' => (($args['from'] != "" and $args['to'] != "") ? 'between' : 'ago'),
110
+ 'title' => $title,
111
+ 'device_name' => $lists_name,
112
+ 'device_value' => $lists_value,
113
+ 'info' => array(
114
+ 'visitor_page' => Menus::admin_url('visitors')
115
+ ),
116
+ 'total' => $total
117
+ );
118
+
119
+ // Check For No Data Meta Box
120
+ if (count(array_filter($lists_value)) < 1 and !isset($args['no-data'])) {
121
+ $response['no_data'] = 1;
122
+ }
123
+
124
+ // Response
125
+ return $response;
126
+ }
127
+
128
+ }
includes/admin/meta-box/wp-statistics-meta-box-models.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace WP_STATISTICS\MetaBox;
4
+
5
+ use WP_STATISTICS\DB;
6
+ use WP_STATISTICS\Helper;
7
+ use WP_STATISTICS\Menus;
8
+ use WP_STATISTICS\TimeZone;
9
+
10
+ class models
11
+ {
12
+ /**
13
+ * Get Manufacturers Chart
14
+ *
15
+ * @param array $arg
16
+ * @return array
17
+ * @throws \Exception
18
+ */
19
+ public static function get($arg = array())
20
+ {
21
+ global $wpdb;
22
+
23
+ // Set Default Params
24
+ $defaults = array(
25
+ 'ago' => 0,
26
+ 'from' => '',
27
+ 'to' => '',
28
+ 'order' => '',
29
+ 'number' => 10 // Get Max number of platform
30
+ );
31
+ $args = wp_parse_args($arg, $defaults);
32
+
33
+ // Check Default
34
+ if (empty($args['from']) and empty($args['to']) and $args['ago'] < 1) {
35
+ $args['ago'] = 'all';
36
+ }
37
+
38
+ // Prepare Count Day
39
+ if (!empty($args['from']) and !empty($args['to'])) {
40
+ $count_day = TimeZone::getNumberDayBetween($args['from'], $args['to']);
41
+ } else {
42
+ if (is_numeric($args['ago']) and $args['ago'] > 0) {
43
+ $count_day = $args['ago'];
44
+ } else {
45
+ $first_day = Helper::get_date_install_plugin();
46
+ $count_day = (int)TimeZone::getNumberDayBetween($first_day);
47
+ }
48
+ }
49
+
50
+ // Get time ago Days Or Between Two Days
51
+ if (!empty($args['from']) and !empty($args['to'])) {
52
+ $days_list = TimeZone::getListDays(array('from' => $args['from'], 'to' => $args['to']));
53
+ } else {
54
+ if (is_numeric($args['ago']) and $args['ago'] > 0) {
55
+ $days_list = TimeZone::getListDays(array('from' => TimeZone::getTimeAgo($args['ago'])));
56
+ } else {
57
+ $days_list = TimeZone::getListDays(array('from' => TimeZone::getTimeAgo($count_day)));
58
+ }
59
+ }
60
+
61
+ // Get List Of Days
62
+ $days_time_list = array_keys($days_list);
63
+ foreach ($days_list as $k => $v) {
64
+ $date[] = $v['format'];
65
+ $total_daily[$k] = 0;
66
+ }
67
+
68
+ // Set Default Value
69
+ $total = $count = 0;
70
+ $lists_value = $lists_name = array();
71
+
72
+ // Get List All Platforms
73
+ $list = $wpdb->get_results("SELECT model, COUNT(*) as count FROM " . DB::table('visitor') . " WHERE `last_counter` BETWEEN '" . reset($days_time_list) . "' AND '" . end($days_time_list) . "' GROUP BY model " . ($args['order'] != "" ? 'ORDER BY `count` ' . $args['order'] : ''), ARRAY_A);
74
+
75
+ // Sort By Count
76
+ Helper::SortByKeyValue($list, 'count');
77
+
78
+ // Get Last 10 Version that Max number
79
+ $models = array_slice($list, 0, $args['number']);
80
+
81
+ // Push to array
82
+ foreach ($models as $l) {
83
+
84
+ if (trim($l['model']) != "") {
85
+
86
+ // Sanitize Version name
87
+ $lists_name[] = sanitize_text_field($l['model']);
88
+
89
+ // Get List Count
90
+ $lists_value[] = (int)$l['count'];
91
+
92
+ // Add to Total
93
+ $total += $l['count'];
94
+ }
95
+ }
96
+
97
+ // Set Title
98
+ if (end($days_time_list) == TimeZone::getCurrentDate("Y-m-d")) {
99
+ $title = sprintf(__('%s Statistics in the last %s days', 'wp-statistics'), __('Manufacturers', 'wp-statistics'), $count_day);
100
+ } else {
101
+ $title = sprintf(__('%s Statistics from %s to %s', 'wp-statistics'), __('Manufacturers', 'wp-statistics'), $args['from'], $args['to']);
102
+ }
103
+
104
+ // Prepare Response
105
+ $response = array(
106
+ 'days' => $count_day,
107
+ 'from' => reset($days_time_list),
108
+ 'to' => end($days_time_list),
109
+ 'type' => (($args['from'] != "" and $args['to'] != "") ? 'between' : 'ago'),
110
+ 'title' => $title,
111
+ 'model_name' => $lists_name,
112
+ 'model_value' => $lists_value,
113
+ 'info' => array(
114
+ 'visitor_page' => Menus::admin_url('visitors')
115
+ ),
116
+ 'total' => $total
117
+ );
118
+
119
+ // Check For No Data Meta Box
120
+ if (count(array_filter($lists_value)) < 1 and !isset($args['no-data'])) {
121
+ $response['no_data'] = 1;
122
+ }
123
+
124
+ // Response
125
+ return $response;
126
+ }
127
+
128
+ }
includes/admin/pages/class-wp-statistics-admin-page-optimization.php CHANGED
@@ -7,17 +7,8 @@ class optimization_page
7
 
8
  public function __construct()
9
  {
10
-
11
- // Add Notice Save
12
- add_action('admin_notices', array($this, 'save'));
13
-
14
- // Check Access Level
15
- if (Menus::in_page('optimization') and !User::Access('manage')) {
16
- wp_die(__('You do not have sufficient permissions to access this page.'));
17
- }
18
-
19
  // Optimize and Repair Database MySQL
20
- add_action('admin_notices', array($this, 'optimize_table'));
21
  }
22
 
23
  /**
@@ -36,69 +27,47 @@ class optimization_page
36
  Admin_Template::get_template(array('layout/header', 'layout/tabs-optimization', 'layout/title-after', 'optimization', 'layout/footer'), $args);
37
  }
38
 
39
- /**
40
- * Save Setting
41
- */
42
- public function save()
43
  {
44
  global $wpdb;
45
 
46
- // Check Hash IP Update
47
- if (isset($_GET['hash-ips']) and intval($_GET['hash-ips']) == 1) {
48
- IP::Update_HashIP_Visitor();
49
- Helper::wp_admin_notice(__('IP Addresses replaced with hash values.', "wp-statistics"), "success");
 
 
 
 
50
  }
51
 
52
  // Update All GEO IP Country
53
- if (isset($_GET['populate']) and intval($_GET['populate']) == 1) {
54
  $result = GeoIP::Update_GeoIP_Visitor();
55
- Helper::wp_admin_notice($result['data'], ($result['status'] === false ? "error" : "success"));
56
- }
57
 
58
- // Re-install All DB Table
59
- if (isset($_GET['install']) and intval($_GET['install']) == 1) {
60
- Install::create_table(false);
61
- Helper::wp_admin_notice(__('Install routine complete.', "wp-statistics"), "success");
62
  }
63
 
64
- // Update Historical Value
65
- if (isset($_POST['historical-submit'])) {
66
- $historical_table = DB::table('historical');
67
-
68
- // Historical Visitors
69
- if (isset($_POST['wps_historical_visitors'])) {
70
-
71
- // Update DB
72
- $result = $wpdb->update($historical_table, array('value' => sanitize_text_field($_POST['wps_historical_visitors'])), array('category' => 'visitors'));
73
- if ($result == 0) {
74
- $result = $wpdb->insert($historical_table, array('value' => sanitize_text_field($_POST['wps_historical_visitors']), 'category' => 'visitors', 'page_id' => -1, 'uri' => '-1'));
75
- }
76
- }
77
 
78
- // Historical Visits
79
- if (isset($_POST['wps_historical_visits'])) {
80
- // Update DB
81
- $result = $wpdb->update($historical_table, array('value' => sanitize_text_field($_POST['wps_historical_visits'])), array('category' => 'visits'));
82
 
83
- if ($result == 0) {
84
- $result = $wpdb->insert($historical_table, array('value' => sanitize_text_field($_POST['wps_historical_visits']), 'category' => 'visits', 'page_id' => -2, 'uri' => '-2'));
85
- }
86
- }
87
 
88
  // Show Notice
89
- Helper::wp_admin_notice(__('Updated Historical Values.', "wp-statistics"), "success");
90
  }
91
- }
92
-
93
- /**
94
- * Optimize MySQL Table
95
- */
96
- public function optimize_table()
97
- {
98
- global $wpdb;
99
 
100
- if (Menus::in_page('optimization') and isset($_GET['optimize-table']) and !empty($_GET['optimize-table'])) {
101
- $tbl = trim(sanitize_text_field($_GET['optimize-table']));
 
102
  if ($tbl == "all") {
103
  $tables = array_filter(array_values(DB::table('all')));
104
  } else {
@@ -149,9 +118,38 @@ class optimization_page
149
  }
150
  }
151
 
152
- Helper::wp_admin_notice($notice, "info", $close_button = true, $id = false, $echo = true, $style_extra = 'padding:12px; line-height: 25px;');
 
153
  }
154
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  }
156
  }
157
 
7
 
8
  public function __construct()
9
  {
 
 
 
 
 
 
 
 
 
10
  // Optimize and Repair Database MySQL
11
+ add_action('admin_init', array($this, 'processForms'));
12
  }
13
 
14
  /**
27
  Admin_Template::get_template(array('layout/header', 'layout/tabs-optimization', 'layout/title-after', 'optimization', 'layout/footer'), $args);
28
  }
29
 
30
+ public function processForms()
 
 
 
31
  {
32
  global $wpdb;
33
 
34
+ // Check Access Level
35
+ if (Menus::in_page('optimization') and !User::Access('manage')) {
36
+ wp_die(__('You do not have sufficient permissions to access this page.'));
37
+ }
38
+
39
+ // Check Wp Nonce and Require Field
40
+ if (isset($_POST['submit']) && (!isset($_POST['_wpnonce']) || !wp_verify_nonce($_POST['_wpnonce'], 'wps_optimization_nonce'))) {
41
+ return;
42
  }
43
 
44
  // Update All GEO IP Country
45
+ if (isset($_POST['submit'], $_POST['populate-submit']) && intval($_POST['populate-submit']) == 1) {
46
  $result = GeoIP::Update_GeoIP_Visitor();
 
 
47
 
48
+ // Show Notice
49
+ Helper::addAdminNotice($result['data'], ($result['status'] === false ? "error" : "success"));
 
 
50
  }
51
 
52
+ // Check Hash IP Update
53
+ if (isset($_POST['submit'], $_POST['hash-ips-submit']) and intval($_POST['hash-ips-submit']) == 1) {
54
+ IP::Update_HashIP_Visitor();
 
 
 
 
 
 
 
 
 
 
55
 
56
+ // Show Notice
57
+ Helper::addAdminNotice(__('IP Addresses replaced with hash values.', "wp-statistics"), "success");
58
+ }
 
59
 
60
+ // Re-install All DB Table
61
+ if (isset($_POST['submit'], $_POST['install-submit']) and intval($_POST['install-submit']) == 1) {
62
+ Install::create_table(false);
 
63
 
64
  // Show Notice
65
+ Helper::addAdminNotice(__('Install routine complete.', "wp-statistics"), "success");
66
  }
 
 
 
 
 
 
 
 
67
 
68
+ // Optimize Tables
69
+ if (isset($_POST['submit'], $_POST['optimize-database-submit']) and !empty($_POST['optimize-table'])) {
70
+ $tbl = trim(sanitize_text_field($_POST['optimize-table']));
71
  if ($tbl == "all") {
72
  $tables = array_filter(array_values(DB::table('all')));
73
  } else {
118
  }
119
  }
120
 
121
+ // Show Notice
122
+ Helper::addAdminNotice($notice, "info");
123
  }
124
  }
125
+
126
+ // Update Historical Value
127
+ if (isset($_POST['submit'], $_POST['historical-submit']) and intval($_POST['historical-submit']) == 1) {
128
+ $historical_table = DB::table('historical');
129
+
130
+ // Historical Visitors
131
+ if (isset($_POST['wps_historical_visitors'])) {
132
+
133
+ // Update DB
134
+ $result = $wpdb->update($historical_table, array('value' => sanitize_text_field($_POST['wps_historical_visitors'])), array('category' => 'visitors'));
135
+ if ($result == 0) {
136
+ $result = $wpdb->insert($historical_table, array('value' => sanitize_text_field($_POST['wps_historical_visitors']), 'category' => 'visitors', 'page_id' => -1, 'uri' => '-1'));
137
+ }
138
+ }
139
+
140
+ // Historical Visits
141
+ if (isset($_POST['wps_historical_visits'])) {
142
+ // Update DB
143
+ $result = $wpdb->update($historical_table, array('value' => sanitize_text_field($_POST['wps_historical_visits'])), array('category' => 'visits'));
144
+
145
+ if ($result == 0) {
146
+ $result = $wpdb->insert($historical_table, array('value' => sanitize_text_field($_POST['wps_historical_visits']), 'category' => 'visits', 'page_id' => -2, 'uri' => '-2'));
147
+ }
148
+ }
149
+
150
+ // Show Notice
151
+ Helper::addAdminNotice(__('Updated Historical Values.', "wp-statistics"), "success");
152
+ }
153
  }
154
  }
155
 
includes/admin/pages/class-wp-statistics-admin-page-settings.php CHANGED
@@ -11,9 +11,6 @@ class settings_page
11
  // Save Setting Action
12
  add_action('admin_init', array($this, 'save'));
13
 
14
- // Admin Notice
15
- add_action('admin_notices', array($this, 'notice'));
16
-
17
  // Check Access Level
18
  if (Menus::in_page('settings') and !User::Access('manage')) {
19
  wp_die(__('You do not have sufficient permissions to access this page.'));
@@ -83,7 +80,6 @@ class settings_page
83
  'access_level',
84
  'exclusion',
85
  'external',
86
- 'wp_cli',
87
  'maintenance',
88
  'notification',
89
  'dashboard',
@@ -99,14 +95,53 @@ class settings_page
99
  // Get tab name for redirect to the current tab
100
  $tab = isset($_POST['tab']) && $_POST['tab'] ? sanitize_text_field($_POST['tab']) : 'general-settings';
101
 
102
- // Redirect User To Save Setting
103
- wp_redirect(add_query_arg(array(
104
- 'save_setting' => 'yes',
105
- 'tab' => $tab,
106
- ), Menus::admin_url('settings')));
107
 
108
- // die
109
- exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  }
111
  }
112
 
@@ -296,30 +331,6 @@ class settings_page
296
  return $wp_statistics_options;
297
  }
298
 
299
- /**
300
- * Save WP CLI Option
301
- *
302
- * @param $wp_statistics_options
303
- * @return mixed
304
- */
305
- public static function save_wp_cli_option($wp_statistics_options)
306
- {
307
-
308
- // Save Exclusion
309
- $wps_option_list = array(
310
- 'wps_wp_cli',
311
- 'wps_wp_cli_summary',
312
- 'wps_wp_cli_user_online',
313
- 'wps_wp_cli_visitors'
314
- );
315
-
316
- foreach ($wps_option_list as $option) {
317
- $wp_statistics_options[self::input_name_to_option($option)] = (isset($_POST[$option]) ? $_POST[$option] : '');
318
- }
319
-
320
- return $wp_statistics_options;
321
- }
322
-
323
  /**
324
  * Save Exclude Option
325
  *
@@ -339,8 +350,8 @@ class settings_page
339
  if (isset($_POST['wps_create_honeypot'])) {
340
  $my_post = array(
341
  'post_type' => 'page',
342
- 'post_title' => __('WP-Statistics Honey Pot Page', 'wp-statistics') . ' [' . TimeZone::getCurrentDate() . ']',
343
- 'post_content' => __('This is the Honey Pot for WP-Statistics to use, do not delete.', 'wp-statistics'),
344
  'post_status' => 'publish',
345
  'post_author' => 1,
346
  );
@@ -509,7 +520,7 @@ class settings_page
509
  }
510
 
511
  /**
512
- * Reset WP-Statistics Option
513
  */
514
  public static function reset_option()
515
  {
@@ -527,50 +538,6 @@ class settings_page
527
  // Update Option
528
  update_option(Option::$opt_name, $default_options);
529
  }
530
-
531
- /**
532
- * Admin Notice
533
- */
534
- public function notice()
535
- {
536
-
537
- // Update Referrer Spam
538
- if (isset($_GET['update-referrer-spam'])) {
539
- $status = Referred::download_referrer_spam();
540
- if (is_bool($status)) {
541
- if ($status === false) {
542
- Helper::wp_admin_notice(__("Error Updating Referrer Spam Blacklist.", "wp-statistics"), "error");
543
- } else {
544
- Helper::wp_admin_notice(__("Updated Referrer Spam Blacklist.", "wp-statistics"), "success");
545
- }
546
- return;
547
- }
548
- }
549
-
550
- // Update GEO IP
551
- if (Option::get('geoip') and isset($_POST['update_geoip']) and isset($_POST['geoip_name'])) {
552
-
553
- //Check Geo ip Exist in Database
554
- if (isset(GeoIP::$library[$_POST['geoip_name']])) {
555
- $result = GeoIP::download($_POST['geoip_name'], "update");
556
- if (is_array($result) and isset($result['status'])) {
557
- Helper::wp_admin_notice($result['notice'], ($result['status'] === false ? "error" : "success"));
558
- return;
559
- }
560
- }
561
- }
562
-
563
- // Save Setting
564
- if (isset($_GET['save_setting'])) {
565
- Helper::wp_admin_notice(__("Saved Settings.", "wp-statistics"), "success");
566
- }
567
-
568
- // Reset Setting
569
- if (isset($_GET['reset_settings'])) {
570
- Helper::wp_admin_notice(__("All settings reset.", "wp-statistics"), "success");
571
- }
572
-
573
- }
574
  }
575
 
576
  new settings_page;
11
  // Save Setting Action
12
  add_action('admin_init', array($this, 'save'));
13
 
 
 
 
14
  // Check Access Level
15
  if (Menus::in_page('settings') and !User::Access('manage')) {
16
  wp_die(__('You do not have sufficient permissions to access this page.'));
80
  'access_level',
81
  'exclusion',
82
  'external',
 
83
  'maintenance',
84
  'notification',
85
  'dashboard',
95
  // Get tab name for redirect to the current tab
96
  $tab = isset($_POST['tab']) && $_POST['tab'] ? sanitize_text_field($_POST['tab']) : 'general-settings';
97
 
98
+ $redirectAfterSave = true;
 
 
 
 
99
 
100
+ // Update Referrer Spam
101
+ if (isset($_POST['update-referrer-spam'])) {
102
+ $status = Referred::download_referrer_spam();
103
+ if (is_bool($status)) {
104
+ if ($status === false) {
105
+ Helper::addAdminNotice(__("Error Updating Referrer Spam Blacklist.", "wp-statistics"), "error");
106
+ } else {
107
+ Helper::addAdminNotice(__("Updated Referrer Spam Blacklist.", "wp-statistics"), "success");
108
+ }
109
+ $redirectAfterSave = false;
110
+ }
111
+ }
112
+
113
+ // Update GEO IP
114
+ if (Option::get('geoip') and isset($_POST['update_geoip']) and isset($_POST['geoip_name'])) {
115
+ //Check Geo ip Exist in Database
116
+ if (isset(GeoIP::$library[$_POST['geoip_name']])) {
117
+ $result = GeoIP::download($_POST['geoip_name'], "update");
118
+ if (is_array($result) and isset($result['status'])) {
119
+ Helper::addAdminNotice($result['notice'], ($result['status'] === false ? "error" : "success"));
120
+ $redirectAfterSave = false;
121
+ }
122
+ }
123
+ }
124
+
125
+ if ($redirectAfterSave) {
126
+ // Redirect User To Save Setting
127
+ wp_redirect(add_query_arg(array(
128
+ 'save_setting' => 'yes',
129
+ 'tab' => $tab,
130
+ ), Menus::admin_url('settings')));
131
+
132
+ // die
133
+ exit;
134
+ }
135
+ }
136
+
137
+ // Save Setting
138
+ if (isset($_GET['save_setting'])) {
139
+ Helper::addAdminNotice(__("Saved Settings.", "wp-statistics"), "success");
140
+ }
141
+
142
+ // Reset Setting
143
+ if (isset($_GET['reset_settings'])) {
144
+ Helper::addAdminNotice(__("All settings reset.", "wp-statistics"), "success");
145
  }
146
  }
147
 
331
  return $wp_statistics_options;
332
  }
333
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  /**
335
  * Save Exclude Option
336
  *
350
  if (isset($_POST['wps_create_honeypot'])) {
351
  $my_post = array(
352
  'post_type' => 'page',
353
+ 'post_title' => __('WP Statistics Honey Pot Page', 'wp-statistics') . ' [' . TimeZone::getCurrentDate() . ']',
354
+ 'post_content' => __('This is the Honey Pot for WP Statistics to use, do not delete.', 'wp-statistics'),
355
  'post_status' => 'publish',
356
  'post_author' => 1,
357
  );
520
  }
521
 
522
  /**
523
+ * Reset WP Statistics Option
524
  */
525
  public static function reset_option()
526
  {
538
  // Update Option
539
  update_option(Option::$opt_name, $default_options);
540
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
541
  }
542
 
543
  new settings_page;
includes/admin/templates/layout/tabs-settings.php CHANGED
@@ -7,7 +7,6 @@
7
  <li class="tab-link" data-tab="overview-display-settings"><?php _e('Dashboard', 'wp-statistics'); ?></li>
8
  <li class="tab-link" data-tab="access-settings"><?php _e('Roles', 'wp-statistics'); ?></li>
9
  <li class="tab-link" data-tab="exclusions-settings"><?php _e('Exclusions', 'wp-statistics'); ?></li>
10
- <li class="tab-link" data-tab="wp-cli-settings"><?php _e('CLI', 'wp-statistics'); ?></li>
11
  <li class="tab-link" data-tab="externals-settings"><?php _e('Externals', 'wp-statistics'); ?></li>
12
  <li class="tab-link" data-tab="maintenance-settings"><?php _e('Maintenance', 'wp-statistics'); ?></li>
13
  <li class="tab-link" data-tab="reset-settings"><?php _e('Reset', 'wp-statistics'); ?></li>
7
  <li class="tab-link" data-tab="overview-display-settings"><?php _e('Dashboard', 'wp-statistics'); ?></li>
8
  <li class="tab-link" data-tab="access-settings"><?php _e('Roles', 'wp-statistics'); ?></li>
9
  <li class="tab-link" data-tab="exclusions-settings"><?php _e('Exclusions', 'wp-statistics'); ?></li>
 
10
  <li class="tab-link" data-tab="externals-settings"><?php _e('Externals', 'wp-statistics'); ?></li>
11
  <li class="tab-link" data-tab="maintenance-settings"><?php _e('Maintenance', 'wp-statistics'); ?></li>
12
  <li class="tab-link" data-tab="reset-settings"><?php _e('Reset', 'wp-statistics'); ?></li>
includes/admin/templates/optimization/database.php CHANGED
@@ -1,67 +1,73 @@
1
  <div class="wrap wps-wrap">
2
  <div class="postbox">
3
- <table class="form-table">
4
- <tbody>
5
- <tr valign="top">
6
- <th scope="row" colspan="2"><h3><?php _e('Database Setup', 'wp-statistics'); ?></h3></th>
7
- </tr>
 
 
8
 
9
- <tr valign="top">
10
- <th scope="row">
11
- <label for="index-submit"><?php _e('Re-run Install:', 'wp-statistics'); ?></label>
12
- </th>
13
- <td>
14
- <input id="install-submit" class="button button-primary" type="button" value="<?php _e('Install Now!', 'wp-statistics'); ?>" name="install-submit" onclick="location.href=document.URL+'&install=1&tab=database'">
15
- <p class="description"><?php _e('If for some reason your installation of WP-Statistics is missing the database tables or other core items, this will re-execute the install process.',
16
- 'wp-statistics'); ?></p>
17
- </td>
18
- </tr>
19
- </tbody>
20
- </table>
 
 
21
  </div>
22
  <div class="postbox">
23
- <table class="form-table">
24
- <tbody>
25
- <tr valign="top">
26
- <th scope="row" colspan="2">
27
- <h3><?php _e('Repair and Optimization Database Tables', 'wp-statistics'); ?></h3></th>
28
- </tr>
 
 
29
 
30
- <tr valign="top">
31
- <th scope="row">
32
- <label for="index-submit"><?php _e('Optimize Table:', 'wp-statistics'); ?></label>
33
- </th>
34
- <td>
35
- <script type="text/javascript">
36
- jQuery(document).ready(function () {
37
- jQuery("#wp-statistics-run-optimize-database-table").click(function () {
38
- var tbl = jQuery('#optimize-table').val();
39
- if (tbl == "0") {
40
- alert('<?php _e("Please select database table", "wp-statistics"); ?>');
41
- return;
42
- }
43
- window.location.href = document.URL + '&optimize-table=' + tbl + '&tab=database';
44
- });
45
- });
46
- </script>
47
 
48
- <select dir="<?php echo(is_rtl() ? 'rtl' : 'ltr'); ?>" id="optimize-table" name="optimize-table">
49
- <option value="0"><?php _e('Please select', 'wp-statistics'); ?></option>
50
- <?php
51
- foreach (WP_STATISTICS\DB::table('all') as $tbl_key => $tbl_name) {
52
- echo '<option value="' . esc_attr($tbl_key) . '">' . esc_attr($tbl_name) . '</option>';
53
- }
54
- ?>
55
- <option value="all"><?php echo __('All', 'wp-statistics'); ?></option>
56
- </select>
57
- <p class="description"><?php _e('Please select the table you would like to optimize and repair',
58
- 'wp-statistics'); ?></p>
59
 
60
- <input id="wp-statistics-run-optimize-database-table" class="button button-primary" type="button" value="<?php _e('Run Now!', 'wp-statistics'); ?>" name="wp-statistics-run-optimize-database-table" style="margin-top:5px;">
61
- </td>
62
- </tr>
63
-
64
- </tbody>
65
- </table>
66
  </div>
67
  </div>
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="wrap wps-wrap">
2
  <div class="postbox">
3
+ <form action="<?php echo admin_url('admin.php?page=wps_optimization_page&tab=database') ?>" method="post">
4
+ <?php wp_nonce_field('wps_optimization_nonce'); ?>
5
+ <table class="form-table">
6
+ <tbody>
7
+ <tr valign="top">
8
+ <th scope="row" colspan="2"><h3><?php _e('Database Setup', 'wp-statistics'); ?></h3></th>
9
+ </tr>
10
 
11
+ <tr valign="top">
12
+ <th scope="row">
13
+ <label for="index-submit"><?php _e('Re-run Install:', 'wp-statistics'); ?></label>
14
+ </th>
15
+ <td>
16
+ <input type="hidden" name="submit" value="1"/>
17
+ <button id="install-submit" class="button button-primary" type="submit" value="1" name="install-submit"><?php _e('Install Now!', 'wp-statistics'); ?></button>
18
+ <p class="description"><?php _e('If for some reason your installation of WP-Statistics is missing the database tables or other core items, this will re-execute the install process.',
19
+ 'wp-statistics'); ?></p>
20
+ </td>
21
+ </tr>
22
+ </tbody>
23
+ </table>
24
+ </form>
25
  </div>
26
  <div class="postbox">
27
+ <form action="<?php echo admin_url('admin.php?page=wps_optimization_page&tab=database') ?>" method="post" id="wps-run-optimize-database-form">
28
+ <?php wp_nonce_field('wps_optimization_nonce'); ?>
29
+ <table class="form-table">
30
+ <tbody>
31
+ <tr valign="top">
32
+ <th scope="row" colspan="2">
33
+ <h3><?php _e('Repair and Optimization Database Tables', 'wp-statistics'); ?></h3></th>
34
+ </tr>
35
 
36
+ <tr valign="top">
37
+ <th scope="row">
38
+ <label for="index-submit"><?php _e('Optimize Table:', 'wp-statistics'); ?></label>
39
+ </th>
40
+ <td>
41
+ <select dir="<?php echo(is_rtl() ? 'rtl' : 'ltr'); ?>" id="optimize-table" name="optimize-table">
42
+ <option value="0"><?php _e('Please select', 'wp-statistics'); ?></option>
43
+ <?php
44
+ foreach (WP_STATISTICS\DB::table('all') as $tbl_key => $tbl_name) {
45
+ echo '<option value="' . esc_attr($tbl_key) . '">' . esc_attr($tbl_name) . '</option>';
46
+ }
47
+ ?>
48
+ <option value="all"><?php echo __('All', 'wp-statistics'); ?></option>
49
+ </select>
50
+ <p class="description"><?php _e('Please select the table you would like to optimize and repair',
51
+ 'wp-statistics'); ?></p>
 
52
 
53
+ <input type="hidden" name="submit" value="1"/>
54
+ <button class="button button-primary" type="submit" value="1" name="optimize-database-submit" style="margin-top:5px;"><?php _e('Run Now!', 'wp-statistics'); ?></button>
55
+ </td>
56
+ </tr>
 
 
 
 
 
 
 
57
 
58
+ </tbody>
59
+ </table>
60
+ </form>
 
 
 
61
  </div>
62
  </div>
63
+ <script type="text/javascript">
64
+ jQuery(document).ready(function () {
65
+ jQuery("#wps-run-optimize-database-form").submit(function (e) {
66
+ var tbl = jQuery('#optimize-table').val();
67
+ if (tbl == "0") {
68
+ alert('<?php _e("Please select database table", "wp-statistics"); ?>');
69
+ e.preventDefault();
70
+ }
71
+ });
72
+ });
73
+ </script>
includes/admin/templates/optimization/historical.php CHANGED
@@ -8,8 +8,8 @@ $historical_visits = WP_STATISTICS\Historical::get('visits');
8
  ?>
9
  <div class="wrap wps-wrap">
10
  <div class="postbox">
11
- <form id="wps_historical_form" method="post">
12
- <?php wp_nonce_field('historical_form', 'wp-statistics-nonce'); ?>
13
  <table class="form-table">
14
  <tbody>
15
  <tr valign="top">
@@ -44,7 +44,8 @@ $historical_visits = WP_STATISTICS\Historical::get('visits');
44
 
45
  <tr valign="top">
46
  <td colspan=2>
47
- <input id="historical-submit" class="button button-primary" type="submit" value="<?php _e('Update Now!', 'wp-statistics'); ?>" name="historical-submit"/>
 
48
  </td>
49
  </tr>
50
  </tbody>
8
  ?>
9
  <div class="wrap wps-wrap">
10
  <div class="postbox">
11
+ <form action="<?php echo admin_url('admin.php?page=wps_optimization_page&tab=historical') ?>" id="wps_historical_form" method="post">
12
+ <?php wp_nonce_field('wps_optimization_nonce'); ?>
13
  <table class="form-table">
14
  <tbody>
15
  <tr valign="top">
44
 
45
  <tr valign="top">
46
  <td colspan=2>
47
+ <input type="hidden" name="submit" value="1" />
48
+ <button id="historical-submit" class="button button-primary" type="submit" value="1" name="historical-submit"><?php _e('Update Now!', 'wp-statistics'); ?></button>
49
  </td>
50
  </tr>
51
  </tbody>
includes/admin/templates/optimization/updates.php CHANGED
@@ -1,51 +1,45 @@
1
- <script type="text/javascript">
2
- jQuery(document).ready(function () {
3
- jQuery("#hash-ips-submit").click(function () {
4
- var agree = confirm('<?php _e('This will replace all IP addresses in the database with hash values and cannot be undo, are you sure?', 'wp-statistics'); ?>');
5
-
6
- if (agree)
7
- location.href = document.URL + '&tab=updates&hash-ips=1';
8
-
9
- });
10
- });
11
- </script>
12
  <div class="wrap wps-wrap">
13
  <div class="postbox">
14
- <table class="form-table">
15
- <tbody>
16
- <?php if (\WP_STATISTICS\GeoIP::active()) { ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  <tr valign="top">
18
- <th scope="row" colspan="2"><h3><?php _e('GeoIP Options', 'wp-statistics'); ?></h3></th>
19
  </tr>
20
 
21
  <tr valign="top">
22
  <th scope="row">
23
- <label for="populate-submit"><?php _e('Countries:', 'wp-statistics'); ?></label>
24
  </th>
25
 
26
  <td>
27
- <input id="populate-submit" class="button button-primary" type="button" value="<?php _e('Update Now!', 'wp-statistics'); ?>" name="populate-submit" onclick="location.href=document.URL+'&tab=updates&populate=1'">
28
- <p class="description"><?php _e('Updates any unknown location data in the database, this may take a while', 'wp-statistics'); ?></p>
 
29
  </td>
30
  </tr>
31
- <?php } ?>
32
-
33
- <tr valign="top">
34
- <th scope="row" colspan="2"><h3><?php _e('IP Addresses', 'wp-statistics'); ?></h3></th>
35
- </tr>
36
-
37
- <tr valign="top">
38
- <th scope="row">
39
- <label for="populate-submit"><?php _e('Hash IP Addresses:', 'wp-statistics'); ?></label>
40
- </th>
41
-
42
- <td>
43
- <input id="hash-ips-submit" class="button button-primary" type="button" value="<?php _e('Update Now!', 'wp-statistics'); ?>" name="hash-ips-submit">
44
- <p class="description"><?php _e('Replace IP addresses in the database with hash values, you will not be able to recover the IP addresses in the future to populate location information afterwards and this may take a while', 'wp-statistics'); ?></p>
45
- </td>
46
- </tr>
47
 
48
- </tbody>
49
- </table>
 
50
  </div>
51
  </div>
 
 
 
 
 
 
 
 
 
 
 
1
  <div class="wrap wps-wrap">
2
  <div class="postbox">
3
+ <form action="<?php echo admin_url('admin.php?page=wps_optimization_page&tab=updates') ?>" method="post">
4
+ <?php wp_nonce_field('wps_optimization_nonce'); ?>
5
+ <table class="form-table">
6
+ <tbody>
7
+ <?php if (\WP_STATISTICS\GeoIP::active()) { ?>
8
+ <tr valign="top">
9
+ <th scope="row" colspan="2"><h3><?php _e('GeoIP Options', 'wp-statistics'); ?></h3></th>
10
+ </tr>
11
+
12
+ <tr valign="top">
13
+ <th scope="row">
14
+ <label for="populate-submit"><?php _e('Countries:', 'wp-statistics'); ?></label>
15
+ </th>
16
+
17
+ <td>
18
+ <input type="hidden" name="submit" value="1"/>
19
+ <button id="populate-submit" class="button button-primary" type="submit" value="1" name="populate-submit"><?php _e('Update Now!', 'wp-statistics'); ?></button>
20
+ <p class="description"><?php _e('Updates any unknown location data in the database, this may take a while', 'wp-statistics'); ?></p>
21
+ </td>
22
+ </tr>
23
+ <?php } ?>
24
+
25
  <tr valign="top">
26
+ <th scope="row" colspan="2"><h3><?php _e('IP Addresses', 'wp-statistics'); ?></h3></th>
27
  </tr>
28
 
29
  <tr valign="top">
30
  <th scope="row">
31
+ <label for="populate-submit"><?php _e('Hash IP Addresses:', 'wp-statistics'); ?></label>
32
  </th>
33
 
34
  <td>
35
+ <input type="hidden" name="submit" value="1"/>
36
+ <button id="hash-ips-submit" class="button button-primary" type="submit" value="1" name="hash-ips-submit" onclick="return confirm('<?php _e('This will replace all IP addresses in the database with hash values and cannot be undo, are you sure?', 'wp-statistics'); ?>')"><?php _e('Update Now!', 'wp-statistics'); ?></button>
37
+ <p class="description"><?php _e('Replace IP addresses in the database with hash values, you will not be able to recover the IP addresses in the future to populate location information afterwards and this may take a while', 'wp-statistics'); ?></p>
38
  </td>
39
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
+ </tbody>
42
+ </table>
43
+ </form>
44
  </div>
45
  </div>
includes/admin/templates/settings.php CHANGED
@@ -27,9 +27,6 @@
27
  <div id="exclusions-settings" class="tab-content">
28
  <?php include WP_STATISTICS_DIR . 'includes/admin/templates/settings/exclusions.php'; ?>
29
  </div>
30
- <div id="wp-cli-settings" class="tab-content">
31
- <?php include WP_STATISTICS_DIR . 'includes/admin/templates/settings/wp-cli.php'; ?>
32
- </div>
33
  <div id="externals-settings" class="tab-content">
34
  <?php include WP_STATISTICS_DIR . 'includes/admin/templates/settings/externals.php'; ?>
35
  </div>
27
  <div id="exclusions-settings" class="tab-content">
28
  <?php include WP_STATISTICS_DIR . 'includes/admin/templates/settings/exclusions.php'; ?>
29
  </div>
 
 
 
30
  <div id="externals-settings" class="tab-content">
31
  <?php include WP_STATISTICS_DIR . 'includes/admin/templates/settings/externals.php'; ?>
32
  </div>
includes/admin/templates/settings/externals.php CHANGED
@@ -22,10 +22,8 @@
22
  <input id="geoip-enable" type="checkbox" name="wps_geoip" <?php echo(WP_STATISTICS\Option::get('geoip') === 'on' ? "checked='checked'" : ''); ?>>
23
  <label for="geoip-enable">
24
  <?php _e('Enable', 'wp-statistics'); ?>
25
- <form action="" method="post" style="display: inline;">
26
- <input type="hidden" name="geoip_name" value="country">
27
- <?php submit_button(__("Update Database", 'wp-statistics'), "secondary", "update_geoip", false); ?>
28
- </form>
29
  </label>
30
 
31
  <p class="description"><?php _e('Enable this option to get more information and location (country) from a visitor.', 'wp-statistics'); ?></p>
@@ -41,10 +39,8 @@
41
  <input id="geoip-city" type="checkbox" name="wps_geoip_city" <?php echo(WP_STATISTICS\Option::get('geoip_city') == 'on' ? "checked='checked'" : ''); ?>>
42
  <label for="geoip-city">
43
  <?php _e('Enable', 'wp-statistics'); ?>
44
- <form action="" method="post" style="display: inline;">
45
- <input type="hidden" name="geoip_name" value="city">
46
- <?php submit_button(__("Update Database", 'wp-statistics'), "secondary", "update_geoip", false); ?>
47
- </form>
48
  </label>
49
  <p class="description"><?php _e('Enable this option to see visitors\'city name', 'wp-statistics'); ?></p>
50
  </td>
@@ -179,7 +175,8 @@
179
  </th>
180
 
181
  <td>
182
- <a href="<?php echo WP_STATISTICS\Menus::admin_url('settings', array('tab' => 'externals-settings', 'update-referrer-spam' => 'yes')) ?>" class="button"><?php _e('Update', 'wp-staitsitcs'); ?></a>
 
183
  <p class="description"><?php _e('Click button to download the update.', 'wp-statistics'); ?></p>
184
  </td>
185
  </tr>
22
  <input id="geoip-enable" type="checkbox" name="wps_geoip" <?php echo(WP_STATISTICS\Option::get('geoip') === 'on' ? "checked='checked'" : ''); ?>>
23
  <label for="geoip-enable">
24
  <?php _e('Enable', 'wp-statistics'); ?>
25
+ <input type="hidden" name="geoip_name" value="country">
26
+ <?php submit_button(__("Update Database", 'wp-statistics'), "secondary", "update_geoip", false); ?>
 
 
27
  </label>
28
 
29
  <p class="description"><?php _e('Enable this option to get more information and location (country) from a visitor.', 'wp-statistics'); ?></p>
39
  <input id="geoip-city" type="checkbox" name="wps_geoip_city" <?php echo(WP_STATISTICS\Option::get('geoip_city') == 'on' ? "checked='checked'" : ''); ?>>
40
  <label for="geoip-city">
41
  <?php _e('Enable', 'wp-statistics'); ?>
42
+ <input type="hidden" name="geoip_name" value="city">
43
+ <?php submit_button(__("Update Database", 'wp-statistics'), "secondary", "update_geoip", false); ?>
 
 
44
  </label>
45
  <p class="description"><?php _e('Enable this option to see visitors\'city name', 'wp-statistics'); ?></p>
46
  </td>
175
  </th>
176
 
177
  <td>
178
+ <button type="submit" name="update-referrer-spam" value="1" class="button"><?php _e('Update', 'wp-staitsitcs'); ?></button>
179
+ <!-- <a href="--><?php //echo WP_STATISTICS\Menus::admin_url('settings', array('tab' => 'externals-settings', 'update-referrer-spam' => 'yes')) ?><!--" class="button">--><?php //_e('Update', 'wp-staitsitcs'); ?><!--</a>-->
180
  <p class="description"><?php _e('Click button to download the update.', 'wp-statistics'); ?></p>
181
  </td>
182
  </tr>
includes/admin/templates/settings/general.php CHANGED
@@ -255,7 +255,7 @@
255
  <input id="use_cache_plugin" type="checkbox" value="1" name="wps_use_cache_plugin" <?php echo WP_STATISTICS\Option::get('use_cache_plugin') == true ? "checked='checked'" : ''; ?>>
256
  <label for="use_cache_plugin"><?php _e('Enable', 'wp-statistics'); ?></label>
257
  <p class="description"><?php _e('Enable this option if the Cache is enabled in your WordPress', 'wp-statistics'); ?></p>
258
- <p class="description"><?php echo sprintf(__('To register WP-Statistics REST API endpoint ( %s ) , go to the <a href="%s">Permalink page</a> and update the permalink by pressing Save Changes and then clear the cache.', 'wp-statistics'), WP_STATISTICS\RestAPI::$namespace, admin_url('options-permalink.php')); ?></p>
259
  </td>
260
  </tr>
261
  </tbody>
@@ -290,7 +290,7 @@
290
  <td>
291
  <input id="hide_notices" type="checkbox" value="1" name="wps_hide_notices" <?php echo WP_STATISTICS\Option::get('hide_notices') == true ? "checked='checked'" : ''; ?>>
292
  <label for="hide_notices"><?php _e('Enable', 'wp-statistics'); ?></label>
293
- <p class="description"><?php _e('WP-Statistics displays an alert if any of the core features are disabled. To hide these notices, enable this option.', 'wp-statistics'); ?></p>
294
  </td>
295
  </tr>
296
  </tbody>
255
  <input id="use_cache_plugin" type="checkbox" value="1" name="wps_use_cache_plugin" <?php echo WP_STATISTICS\Option::get('use_cache_plugin') == true ? "checked='checked'" : ''; ?>>
256
  <label for="use_cache_plugin"><?php _e('Enable', 'wp-statistics'); ?></label>
257
  <p class="description"><?php _e('Enable this option if the Cache is enabled in your WordPress', 'wp-statistics'); ?></p>
258
+ <p class="description"><?php echo sprintf(__('To register WP Statistics REST API endpoint ( %s ) , go to the <a href="%s">Permalink page</a> and update the permalink by pressing Save Changes and then clear the cache.', 'wp-statistics'), WP_STATISTICS\RestAPI::$namespace, admin_url('options-permalink.php')); ?></p>
259
  </td>
260
  </tr>
261
  </tbody>
290
  <td>
291
  <input id="hide_notices" type="checkbox" value="1" name="wps_hide_notices" <?php echo WP_STATISTICS\Option::get('hide_notices') == true ? "checked='checked'" : ''; ?>>
292
  <label for="hide_notices"><?php _e('Enable', 'wp-statistics'); ?></label>
293
+ <p class="description"><?php _e('WP Statistics displays an alert if any of the core features are disabled. To hide these notices, enable this option.', 'wp-statistics'); ?></p>
294
  </td>
295
  </tr>
296
  </tbody>
includes/admin/templates/settings/notifications.php CHANGED
@@ -149,7 +149,7 @@
149
  <p class="description"><?php _e('Enter the contents of the report.', 'wp-statistics'); ?></p>
150
 
151
  <p class="description data">
152
- <?php _e('Any shortcode supported by your installation of WordPress, include all shortcodes for WP-Statistics (see the documentation for a list of codes available) are supported in the body of the message. Here are some examples:', 'wp-statistics'); ?>
153
  <br><br>
154
  <?php _e('Online User', 'wp-statistics'); ?>:
155
  <code>[wpstatistics stat=usersonline]</code><br>
@@ -188,7 +188,7 @@
188
  <td>
189
  <input id="admin-notices" type="checkbox" value="1" name="wps_admin_notices" <?php echo WP_STATISTICS\Option::get('admin_notices') == true ? "checked='checked'" : ''; ?>>
190
  <label for="admin-notices"><?php _e('Enable', 'wp-statistics'); ?></label>
191
- <p class="description"><?php _e('Enable this option to show all notices and suggestions from WP-Statistics in the admin.', 'wp-statistics'); ?></p>
192
  </td>
193
  </tr>
194
  </tbody>
149
  <p class="description"><?php _e('Enter the contents of the report.', 'wp-statistics'); ?></p>
150
 
151
  <p class="description data">
152
+ <?php _e('Any shortcode supported by your installation of WordPress, include all shortcodes for WP Statistics (see the documentation for a list of codes available) are supported in the body of the message. Here are some examples:', 'wp-statistics'); ?>
153
  <br><br>
154
  <?php _e('Online User', 'wp-statistics'); ?>:
155
  <code>[wpstatistics stat=usersonline]</code><br>
188
  <td>
189
  <input id="admin-notices" type="checkbox" value="1" name="wps_admin_notices" <?php echo WP_STATISTICS\Option::get('admin_notices') == true ? "checked='checked'" : ''; ?>>
190
  <label for="admin-notices"><?php _e('Enable', 'wp-statistics'); ?></label>
191
+ <p class="description"><?php _e('Enable this option to show all notices and suggestions from WP Statistics in the admin.', 'wp-statistics'); ?></p>
192
  </td>
193
  </tr>
194
  </tbody>
includes/admin/templates/settings/wp-cli.php DELETED
@@ -1,64 +0,0 @@
1
- <div class="postbox">
2
- <table class="form-table">
3
- <tbody>
4
- <tr valign="top">
5
- <th scope="row" colspan="2"><h3><?php _e('WP-CLI', 'wp-statistics'); ?></h3></th>
6
- </tr>
7
-
8
- <tr valign="top">
9
- <th scope="row"><label for="wps-wp_cli"><?php _e('Enable WP-CLI:', 'wp-statistics'); ?></label>
10
- </th>
11
- <td>
12
- <input id="wps-wp_cli" type="checkbox" value="1" name="wps_wp_cli" <?php echo WP_STATISTICS\Option::get('wp_cli') == true ? "checked='checked'" : ''; ?>>
13
- <label for="wps-wp_cli"><?php _e('Enable', 'wp-statistics'); ?></label>
14
- <p class="description"><?php echo __('This feature enables you to get WP-Statistics reporting in the WP-CLI.', 'wp-statistics'); ?></p>
15
- </td>
16
- </tr>
17
- </tbody>
18
- </table>
19
- </div>
20
- <div class="postbox">
21
- <table class="form-table">
22
- <tbody>
23
- <tr valign="top">
24
- <th scope="row" colspan="2"><h3><?php _e('Commands', 'wp-statistics'); ?></h3></th>
25
- </tr>
26
-
27
- <tr valign="top">
28
- <th scope="row"><label for="wps-wp_cli_summary"><?php _e('Summary:', 'wp-statistics'); ?></label></th>
29
- <td>
30
- <input id="wps-wp_cli_summary" type="checkbox" value="1" name="wps_wp_cli_summary" <?php echo WP_STATISTICS\Option::get('wp_cli_summary') == true ? "checked='checked'" : ''; ?>>
31
- <label for="wps-wp_cli_summary"><?php _e('Enable', 'wp-statistics'); ?></label>
32
- <p class="description">
33
- <?php echo __('Show a summary of statistics.', 'wp-statistics'); ?><br/>
34
- <?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr"> WP-Statistics summary </span></p>
35
- </td>
36
- </tr>
37
-
38
- <tr valign="top">
39
- <th scope="row"><label for="wps-wp_cli_user_online"><?php _e('User Online:', 'wp-statistics'); ?></label>
40
- </th>
41
- <td>
42
- <input id="wps-wp_cli_user_online" type="checkbox" value="1" name="wps_wp_cli_user_online" <?php echo WP_STATISTICS\Option::get('wp_cli_user_online') == true ? "checked='checked'" : ''; ?>>
43
- <label for="wps-wp_cli_user_online"><?php _e('Enable', 'wp-statistics'); ?></label>
44
- <p class="description"><?php echo __('Show Users Online List.', 'wp-statistics'); ?><br/>
45
- <?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr"> WP-Statistics online --number=[integer] </span></p>
46
- </td>
47
- </tr>
48
-
49
- <tr valign="top">
50
- <th scope="row"><label for="wps-wp_cli_visitors"><?php _e('Visitors:', 'wp-statistics'); ?></label>
51
- </th>
52
- <td>
53
- <input id="wps-wp_cli_visitors" type="checkbox" value="1" name="wps_wp_cli_visitors" <?php echo WP_STATISTICS\Option::get('wp_cli_visitors') == true ? "checked='checked'" : ''; ?>>
54
- <label for="wps-wp_cli_visitors"><?php _e('Enable', 'wp-statistics'); ?></label>
55
- <p class="description"><?php echo __('Show list of Visitors.', 'wp-statistics'); ?><br/>
56
- <?php echo __('Usage: ', 'wp-statistics'); ?> <span dir="ltr"> WP-Statistics visitors --number=[integer] </span></p>
57
- </td>
58
- </tr>
59
-
60
- </tbody>
61
- </table>
62
- </div>
63
-
64
- <?php submit_button(__('Update', 'wp-statistics'), 'primary', 'submit', '', array('OnClick' => "var wpsCurrentTab = getElementById('wps_current_tab'); wpsCurrentTab.value='wp-cli-settings'")); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/api/v2/class-wp-statistics-api-hit.php CHANGED
@@ -43,7 +43,7 @@ class Hit extends \WP_STATISTICS\RestAPI
43
  'timestamp' => array('required' => true, 'type' => 'integer'),
44
  'page_uri' => array('required' => true, 'type' => 'string'),
45
  'user_id' => array('required' => true, 'type' => 'integer'),
46
- '_wpnonce' => array('required' => true, 'type' => 'string')
47
  );
48
  }
49
 
@@ -65,17 +65,6 @@ class Hit extends \WP_STATISTICS\RestAPI
65
  }
66
  )
67
  ));
68
-
69
- // Check WP-Statistics Rest API Not disabled
70
- register_rest_route(self::$namespace, '/check', array(
71
- array(
72
- 'methods' => \WP_REST_Server::READABLE,
73
- 'callback' => array($this, 'check_enable_callback'),
74
- 'permission_callback' => function () {
75
- return true;
76
- }
77
- )
78
- ));
79
  }
80
 
81
  /**
@@ -87,8 +76,10 @@ class Hit extends \WP_STATISTICS\RestAPI
87
  */
88
  public function hit_callback(\WP_REST_Request $request)
89
  {
90
- // Start Record
91
- Hits::record();
 
 
92
 
93
  $response = new \WP_REST_Response(array(
94
  'status' => true,
@@ -112,17 +103,6 @@ class Hit extends \WP_STATISTICS\RestAPI
112
  // Return response
113
  return $response;
114
  }
115
-
116
- /**
117
- * Check WP-Statistics Rest API Not disabled
118
- *
119
- * @param \WP_REST_Request $request
120
- * @return \WP_REST_Response
121
- */
122
- public function check_enable_callback(\WP_REST_Request $request)
123
- {
124
- return new \WP_REST_Response(array('status' => true, 'message' => __('WP-Statistics has no problem establishing a connection to the WordPress REST API.', 'wp-statistics')), 200);
125
- }
126
  }
127
 
128
  new Hit();
43
  'timestamp' => array('required' => true, 'type' => 'integer'),
44
  'page_uri' => array('required' => true, 'type' => 'string'),
45
  'user_id' => array('required' => true, 'type' => 'integer'),
46
+ '_wpnonce' => array('required' => false, 'type' => 'string')
47
  );
48
  }
49
 
65
  }
66
  )
67
  ));
 
 
 
 
 
 
 
 
 
 
 
68
  }
69
 
70
  /**
76
  */
77
  public function hit_callback(\WP_REST_Request $request)
78
  {
79
+ if (!empty($_GET['_wpnonce'])) {
80
+ // Start Record
81
+ Hits::record();
82
+ }
83
 
84
  $response = new \WP_REST_Response(array(
85
  'status' => true,
103
  // Return response
104
  return $response;
105
  }
 
 
 
 
 
 
 
 
 
 
 
106
  }
107
 
108
  new Hit();
includes/class-wp-statistics-admin-bar.php CHANGED
@@ -15,7 +15,7 @@ class AdminBar
15
  }
16
 
17
  /**
18
- * Check Show WP-Statistics Admin Bar
19
  */
20
  public static function show_admin_bar()
21
  {
@@ -114,7 +114,7 @@ class AdminBar
114
  );
115
 
116
  /**
117
- * WP-Statistics Admin Bar List
118
  */
119
  $admin_bar_list = apply_filters('wp_statistics_admin_bar', $admin_bar_list, $object_id, $view_type);
120
 
15
  }
16
 
17
  /**
18
+ * Check Show WP Statistics Admin Bar
19
  */
20
  public static function show_admin_bar()
21
  {
114
  );
115
 
116
  /**
117
+ * WP Statistics Admin Bar List
118
  */
119
  $admin_bar_list = apply_filters('wp_statistics_admin_bar', $admin_bar_list, $object_id, $view_type);
120
 
includes/class-wp-statistics-cli.php CHANGED
@@ -3,7 +3,7 @@
3
  namespace WP_STATISTICS;
4
 
5
  /**
6
- * WordPress Statistics
7
  *
8
  * ## EXAMPLES
9
  *
@@ -48,22 +48,19 @@ class WP_STATISTICS_CLI extends \WP_CLI_Command
48
  */
49
  function summary($args, $assoc_args)
50
  {
51
-
52
- // Check Enable Command
53
- if (Option::get('wp_cli_summary') == false) {
54
- \WP_CLI::error("The `summary` command is not active.");
55
- }
56
-
57
  // Prepare Item
58
  \WP_CLI::line("Users Online: " . number_format(wp_statistics_useronline()));
59
  $items = array();
 
60
  foreach (array("Today", "Yesterday", "Week", "Month", "Year", "Total") as $time) {
61
  $item = array(
62
  'Time' => $time
63
  );
 
64
  foreach (array("Visitors", "Visits") as $state) {
65
  $item[$state] = number_format((strtolower($state) == "visitors" ? wp_statistics_visitor(strtolower($time), null, true) : wp_statistics_visit(strtolower($time))));
66
  }
 
67
  $items[] = $item;
68
  }
69
 
@@ -102,12 +99,6 @@ class WP_STATISTICS_CLI extends \WP_CLI_Command
102
  */
103
  public function online($args, $assoc_args)
104
  {
105
-
106
- // Check Enable Command
107
- if (Option::get('wp_cli_user_online') == false) {
108
- \WP_CLI::error("The `online` command is not active.");
109
- }
110
-
111
  // Get Number Of result
112
  $number = \WP_CLI\Utils\get_flag_value($assoc_args, 'number', 15);
113
 
@@ -134,9 +125,11 @@ class WP_STATISTICS_CLI extends \WP_CLI_Command
134
  'Page' => $row['page']['title'],
135
  'User ID' => ((isset($row['user']) and isset($row['user']['ID']) and $row['user']['ID'] > 0) ? $row['user']['ID'] : '-')
136
  );
 
137
  if (GeoIP::active() === true) {
138
  $item['Country'] = $row['country']['name'];
139
  }
 
140
  $items[] = $item;
141
  }
142
 
@@ -176,12 +169,6 @@ class WP_STATISTICS_CLI extends \WP_CLI_Command
176
  */
177
  public function visitors($args, $assoc_args)
178
  {
179
-
180
- // Check Enable Command
181
- if (Option::get('wp_cli_visitors') == false) {
182
- \WP_CLI::error("The `visitors` command is not active.");
183
- }
184
-
185
  // Get Number Of result
186
  $number = \WP_CLI\Utils\get_flag_value($assoc_args, 'number', 15);
187
 
@@ -208,9 +195,11 @@ class WP_STATISTICS_CLI extends \WP_CLI_Command
208
  'Platform' => $row['platform'],
209
  'User ID' => ((isset($row['user']) and isset($row['user']['ID']) and $row['user']['ID'] > 0) ? $row['user']['ID'] : '-')
210
  );
 
211
  if (GeoIP::active() === true) {
212
  $item['Country'] = $row['country']['name'];
213
  }
 
214
  $items[] = $item;
215
  }
216
 
3
  namespace WP_STATISTICS;
4
 
5
  /**
6
+ * WP Statistics
7
  *
8
  * ## EXAMPLES
9
  *
48
  */
49
  function summary($args, $assoc_args)
50
  {
 
 
 
 
 
 
51
  // Prepare Item
52
  \WP_CLI::line("Users Online: " . number_format(wp_statistics_useronline()));
53
  $items = array();
54
+
55
  foreach (array("Today", "Yesterday", "Week", "Month", "Year", "Total") as $time) {
56
  $item = array(
57
  'Time' => $time
58
  );
59
+
60
  foreach (array("Visitors", "Visits") as $state) {
61
  $item[$state] = number_format((strtolower($state) == "visitors" ? wp_statistics_visitor(strtolower($time), null, true) : wp_statistics_visit(strtolower($time))));
62
  }
63
+
64
  $items[] = $item;
65
  }
66
 
99
  */
100
  public function online($args, $assoc_args)
101
  {
 
 
 
 
 
 
102
  // Get Number Of result
103
  $number = \WP_CLI\Utils\get_flag_value($assoc_args, 'number', 15);
104
 
125
  'Page' => $row['page']['title'],
126
  'User ID' => ((isset($row['user']) and isset($row['user']['ID']) and $row['user']['ID'] > 0) ? $row['user']['ID'] : '-')
127
  );
128
+
129
  if (GeoIP::active() === true) {
130
  $item['Country'] = $row['country']['name'];
131
  }
132
+
133
  $items[] = $item;
134
  }
135
 
169
  */
170
  public function visitors($args, $assoc_args)
171
  {
 
 
 
 
 
 
172
  // Get Number Of result
173
  $number = \WP_CLI\Utils\get_flag_value($assoc_args, 'number', 15);
174
 
195
  'Platform' => $row['platform'],
196
  'User ID' => ((isset($row['user']) and isset($row['user']['ID']) and $row['user']['ID'] > 0) ? $row['user']['ID'] : '-')
197
  );
198
+
199
  if (GeoIP::active() === true) {
200
  $item['Country'] = $row['country']['name'];
201
  }
202
+
203
  $items[] = $item;
204
  }
205
 
includes/class-wp-statistics-exclusion.php CHANGED
@@ -54,7 +54,7 @@ class Exclusion
54
  // Create Default Object
55
  $exclude = array('exclusion_match' => false, 'exclusion_reason' => '');
56
 
57
- // Get List Of Exclusion WP-Statistics
58
  $exclusion_list = apply_filters('wp_statistics_exclusion_list', array_keys(Exclusion::exclusion_list()));
59
 
60
  // Check Exclusion
@@ -71,7 +71,7 @@ class Exclusion
71
  }
72
 
73
  /**
74
- * Record Exclusion in WP-Statistics DB.
75
  *
76
  * @param array $exclusion
77
  */
54
  // Create Default Object
55
  $exclude = array('exclusion_match' => false, 'exclusion_reason' => '');
56
 
57
+ // Get List Of Exclusion WP Statistics
58
  $exclusion_list = apply_filters('wp_statistics_exclusion_list', array_keys(Exclusion::exclusion_list()));
59
 
60
  // Check Exclusion
71
  }
72
 
73
  /**
74
+ * Record Exclusion in WP Statistics DB.
75
  *
76
  * @param array $exclusion
77
  */
includes/class-wp-statistics-frontend.php CHANGED
@@ -35,7 +35,7 @@ class Frontend
35
  */
36
  public function html_comment()
37
  {
38
- echo '<!-- Analytics by WP-Statistics v' . WP_STATISTICS_VERSION . ' - ' . WP_STATISTICS_SITE . ' -->' . "\n";
39
  }
40
 
41
  /**
@@ -88,47 +88,7 @@ class Frontend
88
  */
89
  public static function set_default_params()
90
  {
91
-
92
- // Create Empty Params Object
93
- $params = array();
94
-
95
- //Set UserAgent [browser|platform|version]
96
- $params = wp_parse_args($params, UserAgent::getUserAgent());
97
-
98
- //Set Referred
99
- $params['referred'] = urlencode(Referred::get());
100
-
101
- //Set IP
102
- $params['ip'] = esc_html(IP::getIP());
103
-
104
- //exclude
105
- $exclude = Exclusion::check();
106
- $params['exclusion_match'] = ($exclude['exclusion_match'] === true ? 'yes' : 'no');
107
- $params['exclusion_reason'] = (string)$exclude['exclusion_reason'];
108
-
109
- //User Agent String
110
- $params['ua'] = urlencode(esc_html(UserAgent::getHttpUserAgent()));
111
-
112
- //track all page
113
- $params['track_all'] = (Pages::is_track_all_page() === true ? 1 : 0);
114
-
115
- //timestamp
116
- $params['timestamp'] = Timezone::getCurrentTimestamp();
117
-
118
- //Set Page Type
119
- $get_page_type = Pages::get_page_type();
120
- $params['current_page_type'] = $get_page_type['type'];
121
- $params['current_page_id'] = $get_page_type['id'];
122
- $params['search_query'] = (isset($get_page_type['search_query']) ? esc_html($get_page_type['search_query']) : '');
123
-
124
- //page url
125
- $params['page_uri'] = Pages::get_page_uri();
126
-
127
- //Get User id
128
- $params['user_id'] = User::get_user_id();
129
-
130
- //return Json Data
131
- return $params;
132
  }
133
 
134
  /**
35
  */
36
  public function html_comment()
37
  {
38
+ echo '<!-- Analytics by WP Statistics v' . WP_STATISTICS_VERSION . ' - ' . WP_STATISTICS_SITE . ' -->' . "\n";
39
  }
40
 
41
  /**
88
  */
89
  public static function set_default_params()
90
  {
91
+ return Helper::getHitsDefaultParams();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  }
93
 
94
  /**
includes/class-wp-statistics-helper.php CHANGED
@@ -8,8 +8,10 @@ use WP_Statistics_Mail;
8
 
9
  class Helper
10
  {
 
 
11
  /**
12
- * WP-Statistics WordPress Log
13
  *
14
  * @param $function
15
  * @param $message
@@ -121,7 +123,7 @@ class Helper
121
  * @param string $style_extra
122
  * @return string
123
  */
124
- public static function wp_admin_notice($text, $model = "info", $close_button = true, $id = false, $echo = true, $style_extra = 'padding:10px 0')
125
  {
126
  $text = '
127
  <div class="notice notice-' . $model . '' . ($close_button === true ? " is-dismissible" : "") . '"' . ($id != false ? ' id="' . $id . '"' : '') . '>
@@ -211,7 +213,7 @@ class Helper
211
  *
212
  * @param string $path
213
  * @return mixed
214
- * @default For WP-Statistics Plugin is 'wp-statistics' dir
215
  */
216
  public static function get_uploads_dir($path = '')
217
  {
@@ -732,7 +734,7 @@ class Helper
732
  }
733
 
734
  /**
735
- * Send SMS With WP-SMS Plugin
736
  *
737
  * @param $to
738
  * @param $text
@@ -1041,4 +1043,92 @@ class Helper
1041
  return round($get_total_user / $days_spend, 2);
1042
  }
1043
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1044
  }
8
 
9
  class Helper
10
  {
11
+ protected static $admin_notices = [];
12
+
13
  /**
14
+ * WP Statistics WordPress Log
15
  *
16
  * @param $function
17
  * @param $message
123
  * @param string $style_extra
124
  * @return string
125
  */
126
+ public static function wp_admin_notice($text, $model = "info", $close_button = true, $id = false, $echo = true, $style_extra = 'padding:6px 0')
127
  {
128
  $text = '
129
  <div class="notice notice-' . $model . '' . ($close_button === true ? " is-dismissible" : "") . '"' . ($id != false ? ' id="' . $id . '"' : '') . '>
213
  *
214
  * @param string $path
215
  * @return mixed
216
+ * @default For WP Statistics Plugin is 'wp-statistics' dir
217
  */
218
  public static function get_uploads_dir($path = '')
219
  {
734
  }
735
 
736
  /**
737
+ * Send SMS With WP SMS Plugin
738
  *
739
  * @param $to
740
  * @param $text
1043
  return round($get_total_user / $days_spend, 2);
1044
  }
1045
  }
1046
+
1047
+ /**
1048
+ * Add notice to display in the admin area
1049
+ *
1050
+ * @param $message
1051
+ * @param string $class
1052
+ * @param bool $is_dismissible
1053
+ * @since 13.2.5
1054
+ */
1055
+ public static function addAdminNotice($message, $class = 'info', $is_dismissible = true)
1056
+ {
1057
+ self::$admin_notices[] = array(
1058
+ 'message' => $message,
1059
+ 'class' => $class,
1060
+ 'is_dismissible' => (bool)$is_dismissible,
1061
+ );
1062
+ }
1063
+
1064
+ /**
1065
+ * Display all notices in the admin area
1066
+ *
1067
+ * @return void
1068
+ * @since 13.2.5
1069
+ */
1070
+ public static function displayAdminNotices()
1071
+ {
1072
+ foreach ((array)self::$admin_notices as $notice) :
1073
+ $dismissible = $notice['is_dismissible'] ? 'is-dismissible' : '';
1074
+ ?>
1075
+
1076
+ <div class="notice notice-<?php echo esc_attr($notice['class']); ?> <?php echo esc_attr($dismissible); ?>">
1077
+ <p>
1078
+ <?php echo wp_kses_post($notice['message']); ?>
1079
+ </p>
1080
+ </div>
1081
+
1082
+ <?php
1083
+ endforeach;
1084
+ }
1085
+
1086
+ /**
1087
+ * Returns default parameters for hits request
1088
+ *
1089
+ * @return array
1090
+ */
1091
+ public static function getHitsDefaultParams()
1092
+ {
1093
+ // Create Empty Params Object
1094
+ $params = array();
1095
+
1096
+ //Set UserAgent [browser|platform|version]
1097
+ $params = wp_parse_args($params, UserAgent::getUserAgent());
1098
+
1099
+ //Set Referred
1100
+ $params['referred'] = urlencode(Referred::get());
1101
+
1102
+ //Set IP
1103
+ $params['ip'] = esc_html(IP::getIP());
1104
+
1105
+ //exclude
1106
+ $exclude = Exclusion::check();
1107
+ $params['exclusion_match'] = ($exclude['exclusion_match'] === true ? 'yes' : 'no');
1108
+ $params['exclusion_reason'] = (string)$exclude['exclusion_reason'];
1109
+
1110
+ //User Agent String
1111
+ $params['ua'] = urlencode(esc_html(UserAgent::getHttpUserAgent()));
1112
+
1113
+ //track all page
1114
+ $params['track_all'] = (Pages::is_track_all_page() === true ? 1 : 0);
1115
+
1116
+ //timestamp
1117
+ $params['timestamp'] = TimeZone::getCurrentTimestamp();
1118
+
1119
+ //Set Page Type
1120
+ $get_page_type = Pages::get_page_type();
1121
+ $params['current_page_type'] = $get_page_type['type'];
1122
+ $params['current_page_id'] = $get_page_type['id'];
1123
+ $params['search_query'] = (isset($get_page_type['search_query']) ? esc_html($get_page_type['search_query']) : '');
1124
+
1125
+ //page url
1126
+ $params['page_uri'] = Pages::get_page_uri();
1127
+
1128
+ //Get User id
1129
+ $params['user_id'] = User::get_user_id();
1130
+
1131
+ //return Json Data
1132
+ return $params;
1133
+ }
1134
  }
includes/class-wp-statistics-hits.php CHANGED
@@ -64,11 +64,13 @@ class Hits
64
  public function set_user_agent($agent)
65
  {
66
 
67
- if (isset($this->rest_hits->browser) and isset($this->rest_hits->platform) and isset($this->rest_hits->version)) {
68
  return array(
69
  'browser' => esc_sql(sanitize_text_field($this->rest_hits->browser)),
70
  'platform' => esc_sql(sanitize_text_field($this->rest_hits->platform)),
71
  'version' => esc_sql(sanitize_text_field($this->rest_hits->version)),
 
 
72
  );
73
  }
74
 
64
  public function set_user_agent($agent)
65
  {
66
 
67
+ if (isset($this->rest_hits->browser, $this->rest_hits->platform, $this->rest_hits->version, $this->rest_hits->device, $this->rest_hits->model)) {
68
  return array(
69
  'browser' => esc_sql(sanitize_text_field($this->rest_hits->browser)),
70
  'platform' => esc_sql(sanitize_text_field($this->rest_hits->platform)),
71
  'version' => esc_sql(sanitize_text_field($this->rest_hits->version)),
72
+ 'device' => esc_sql(sanitize_text_field($this->rest_hits->device)),
73
+ 'model' => esc_sql(sanitize_text_field($this->rest_hits->model)),
74
  );
75
  }
76
 
includes/class-wp-statistics-install.php CHANGED
@@ -334,6 +334,26 @@ class Install
334
  return;
335
  }
336
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  /**
338
  * Set to BigINT Fields (AUTO_INCREMENT)
339
  *
@@ -460,7 +480,7 @@ class Install
460
  add_action('admin_notices', function () {
461
  echo '<div class="notice notice-info is-dismissible" id="wp-statistics-update-page-area" style="display: none;">';
462
  echo '<p style="margin-top: 17px; float:' . (is_rtl() ? 'right' : 'left') . '">';
463
- echo __('WP-Statistics database requires upgrade.', 'wp-statistics');
464
  echo '</p>';
465
  echo '<div style="float:' . (is_rtl() ? 'left' : 'right') . '">';
466
  echo '<button type="button" id="wps-upgrade-db" class="button button-primary" style="padding: 20px;line-height: 0px;box-shadow: none !important;border: 0px !important;margin: 10px 0;"/>' . __('Upgrade Database', 'wp-statistics') . '</button>';
334
  return;
335
  }
336
 
337
+ /**
338
+ * Add visitor device type
339
+ *
340
+ * @version 13.2.4
341
+ */
342
+ $result = $wpdb->query("SHOW COLUMNS FROM " . DB::table('visitor') . " LIKE 'device'");
343
+ if ($result == 0) {
344
+ $wpdb->query("ALTER TABLE " . DB::table('visitor') . " ADD `device` VARCHAR(180) NULL AFTER `version`, ADD INDEX `device` (`device`);");
345
+ }
346
+
347
+ /**
348
+ * Add visitor device model
349
+ *
350
+ * @version 13.2.4
351
+ */
352
+ $result = $wpdb->query("SHOW COLUMNS FROM " . DB::table('visitor') . " LIKE 'model'");
353
+ if ($result == 0) {
354
+ $wpdb->query("ALTER TABLE " . DB::table('visitor') . " ADD `model` VARCHAR(180) NULL AFTER `device`, ADD INDEX `model` (`model`);");
355
+ }
356
+
357
  /**
358
  * Set to BigINT Fields (AUTO_INCREMENT)
359
  *
480
  add_action('admin_notices', function () {
481
  echo '<div class="notice notice-info is-dismissible" id="wp-statistics-update-page-area" style="display: none;">';
482
  echo '<p style="margin-top: 17px; float:' . (is_rtl() ? 'right' : 'left') . '">';
483
+ echo __('WP Statistics database requires upgrade.', 'wp-statistics');
484
  echo '</p>';
485
  echo '<div style="float:' . (is_rtl() ? 'left' : 'right') . '">';
486
  echo '<button type="button" id="wps-upgrade-db" class="button button-primary" style="padding: 20px;line-height: 0px;box-shadow: none !important;border: 0px !important;margin: 10px 0;"/>' . __('Upgrade Database', 'wp-statistics') . '</button>';
includes/class-wp-statistics-meta-box.php CHANGED
@@ -31,6 +31,8 @@ class Meta_Box
31
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-summary.php';
32
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-browsers.php';
33
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-platforms.php';
 
 
34
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-countries.php';
35
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-hits.php';
36
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-pages.php';
@@ -57,7 +59,7 @@ class Meta_Box
57
  public static function getList($meta_box = false)
58
  {
59
  /**
60
- * List of WP-Statistics Admin Meta Box
61
  *
62
  * --- Array Arg -----
63
  * page_url : link of Widget Page @see WP_Statistics::$page
@@ -102,29 +104,27 @@ class Meta_Box
102
  'show_on_dashboard' => true,
103
  'place' => 'side'
104
  ),
105
- 'countries' => array(
106
- 'page_url' => 'countries',
107
- 'name' => __('Top 10 Countries', 'wp-statistics'),
108
- 'require' => array('geoip' => true, 'visitors' => true),
109
  'hidden' => true,
110
  'show_on_dashboard' => true,
111
  'place' => 'side'
112
  ),
113
- 'hits' => array(
114
- 'page_url' => 'hits',
115
- 'name' => __('Hit Statistics', 'wp-statistics'),
116
- 'require' => array('visits' => true),
117
  'hidden' => true,
118
  'show_on_dashboard' => true,
119
- 'place' => 'normal'
120
  ),
121
- 'pages' => array(
122
- 'page_url' => 'pages',
123
- 'name' => __('Top 10 Pages', 'wp-statistics'),
124
- 'require' => array('pages' => true),
125
  'hidden' => true,
126
  'show_on_dashboard' => true,
127
- 'place' => 'normal'
128
  ),
129
  'referring' => array(
130
  'page_url' => 'referrers',
@@ -134,6 +134,14 @@ class Meta_Box
134
  'show_on_dashboard' => true,
135
  'place' => 'side'
136
  ),
 
 
 
 
 
 
 
 
137
  'search' => array(
138
  'page_url' => 'searches',
139
  'name' => __('Search Engine Referrals', 'wp-statistics'),
@@ -142,14 +150,13 @@ class Meta_Box
142
  'show_on_dashboard' => true,
143
  'place' => 'normal'
144
  ),
145
- 'words' => array(
146
- 'page_url' => 'words',
147
- 'name' => __('Latest Search Words', 'wp-statistics'),
148
- 'require' => array('visitors' => true),
149
  'hidden' => true,
150
  'show_on_dashboard' => true,
151
- 'place' => 'normal',
152
- 'hidden_overview' => true
153
  ),
154
  'top-visitors' => array(
155
  'page_url' => 'top-visitors',
@@ -180,10 +187,19 @@ class Meta_Box
180
  'require' => array('useronline' => true),
181
  'hidden' => true,
182
  'show_on_dashboard' => true,
183
- 'place' => 'side'
 
 
 
 
 
 
 
 
 
184
  ),
185
  'about' => array(
186
- 'name' => apply_filters('wp_statistics_about_widget_title', sprintf(__('WP-Statistics - v%s', 'wp-statistics'), WP_STATISTICS_VERSION)),
187
  'show_on_dashboard' => false,
188
  'js' => false,
189
  'place' => 'side',
31
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-summary.php';
32
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-browsers.php';
33
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-platforms.php';
34
+ require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-devices.php';
35
+ require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-models.php';
36
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-countries.php';
37
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-hits.php';
38
  require_once WP_STATISTICS_DIR . 'includes/admin/meta-box/wp-statistics-meta-box-pages.php';
59
  public static function getList($meta_box = false)
60
  {
61
  /**
62
+ * List of WP Statistics Admin Meta Box
63
  *
64
  * --- Array Arg -----
65
  * page_url : link of Widget Page @see WP_Statistics::$page
104
  'show_on_dashboard' => true,
105
  'place' => 'side'
106
  ),
107
+ 'devices' => array(
108
+ 'name' => __('Top Devices', 'wp-statistics'),
109
+ 'require' => array('visitors' => true),
 
110
  'hidden' => true,
111
  'show_on_dashboard' => true,
112
  'place' => 'side'
113
  ),
114
+ 'models' => array(
115
+ 'name' => __('Top Device Models', 'wp-statistics'),
116
+ 'require' => array('visitors' => true),
 
117
  'hidden' => true,
118
  'show_on_dashboard' => true,
119
+ 'place' => 'side'
120
  ),
121
+ 'countries' => array(
122
+ 'page_url' => 'countries',
123
+ 'name' => __('Top 10 Countries', 'wp-statistics'),
124
+ 'require' => array('geoip' => true, 'visitors' => true),
125
  'hidden' => true,
126
  'show_on_dashboard' => true,
127
+ 'place' => 'side'
128
  ),
129
  'referring' => array(
130
  'page_url' => 'referrers',
134
  'show_on_dashboard' => true,
135
  'place' => 'side'
136
  ),
137
+ 'hits' => array(
138
+ 'page_url' => 'hits',
139
+ 'name' => __('Hit Statistics', 'wp-statistics'),
140
+ 'require' => array('visits' => true),
141
+ 'hidden' => true,
142
+ 'show_on_dashboard' => true,
143
+ 'place' => 'normal'
144
+ ),
145
  'search' => array(
146
  'page_url' => 'searches',
147
  'name' => __('Search Engine Referrals', 'wp-statistics'),
150
  'show_on_dashboard' => true,
151
  'place' => 'normal'
152
  ),
153
+ 'pages' => array(
154
+ 'page_url' => 'pages',
155
+ 'name' => __('Top 10 Pages', 'wp-statistics'),
156
+ 'require' => array('pages' => true),
157
  'hidden' => true,
158
  'show_on_dashboard' => true,
159
+ 'place' => 'normal'
 
160
  ),
161
  'top-visitors' => array(
162
  'page_url' => 'top-visitors',
187
  'require' => array('useronline' => true),
188
  'hidden' => true,
189
  'show_on_dashboard' => true,
190
+ 'place' => 'normal'
191
+ ),
192
+ 'words' => array(
193
+ 'page_url' => 'words',
194
+ 'name' => __('Latest Search Words', 'wp-statistics'),
195
+ 'require' => array('visitors' => true),
196
+ 'hidden' => true,
197
+ 'show_on_dashboard' => true,
198
+ 'place' => 'normal',
199
+ 'hidden_overview' => true
200
  ),
201
  'about' => array(
202
+ 'name' => apply_filters('wp_statistics_about_widget_title', sprintf(__('WP Statistics - v%s', 'wp-statistics'), WP_STATISTICS_VERSION)),
203
  'show_on_dashboard' => false,
204
  'js' => false,
205
  'place' => 'side',
includes/class-wp-statistics-option.php CHANGED
@@ -5,21 +5,21 @@ namespace WP_STATISTICS;
5
  class Option
6
  {
7
  /**
8
- * Get WP-Statistics Basic Option name
9
  *
10
  * @var string
11
  */
12
  public static $opt_name = 'wp_statistics';
13
 
14
  /**
15
- * WP-Statistics Option name Prefix
16
  *
17
  * @var string
18
  */
19
  public static $opt_prefix = 'wps_';
20
 
21
  /**
22
- * Get Complete Option name with WP-Statistics Prefix
23
  *
24
  * @param $name
25
  * @return mixed
@@ -30,7 +30,7 @@ class Option
30
  }
31
 
32
  /**
33
- * WP-Statistics Default Option
34
  *
35
  * @return array
36
  */
5
  class Option
6
  {
7
  /**
8
+ * Get WP Statistics Basic Option name
9
  *
10
  * @var string
11
  */
12
  public static $opt_name = 'wp_statistics';
13
 
14
  /**
15
+ * WP Statistics Option name Prefix
16
  *
17
  * @var string
18
  */
19
  public static $opt_prefix = 'wps_';
20
 
21
  /**
22
+ * Get Complete Option name with WP Statistics Prefix
23
  *
24
  * @param $name
25
  * @return mixed
30
  }
31
 
32
  /**
33
+ * WP Statistics Default Option
34
  *
35
  * @return array
36
  */
includes/class-wp-statistics-pages.php CHANGED
@@ -106,7 +106,7 @@ class Pages
106
  }
107
 
108
  /**
109
- * Check Track All Page WP-Statistics
110
  *
111
  * @return bool
112
  */
106
  }
107
 
108
  /**
109
+ * Check Track All Page WP Statistics
110
  *
111
  * @return bool
112
  */
includes/class-wp-statistics-rest-api.php CHANGED
@@ -5,14 +5,14 @@ namespace WP_STATISTICS;
5
  class RestAPI
6
  {
7
  /**
8
- * WP-Statistics Rest API namespace
9
  *
10
  * @var string
11
  */
12
  public static $namespace = 'wp-statistics/v2';
13
 
14
  /**
15
- * Get WP-Statistics Options
16
  *
17
  * @var array
18
  */
5
  class RestAPI
6
  {
7
  /**
8
+ * WP Statistics Rest API namespace
9
  *
10
  * @var string
11
  */
12
  public static $namespace = 'wp-statistics/v2';
13
 
14
  /**
15
+ * Get WP Statistics Options
16
  *
17
  * @var array
18
  */
includes/class-wp-statistics-search-engine.php CHANGED
@@ -22,7 +22,7 @@ class SearchEngine
22
  }
23
 
24
  /**
25
- * Get List Of Search engine in WP-Statistics
26
  *
27
  * @param bool $all
28
  * @return array
22
  }
23
 
24
  /**
25
+ * Get List Of Search engine in WP Statistics
26
  *
27
  * @param bool $all
28
  * @return array
includes/class-wp-statistics-user-agent.php CHANGED
@@ -32,6 +32,8 @@ class UserAgent
32
  'browser' => (isset($result->browser->name)) ? $result->browser->name : _x('Unknown', 'Browser', 'wp-statistics'),
33
  'platform' => (isset($result->os->name)) ? $result->os->name : _x('Unknown', 'Platform', 'wp-statistics'),
34
  'version' => (isset($result->browser->version->value)) ? $result->browser->version->value : _x('Unknown', 'Version', 'wp-statistics'),
 
 
35
  );
36
  } else {
37
  $agent = self::getBrowserInfo($user_agent);
@@ -50,7 +52,7 @@ class UserAgent
50
  public static function BrowserList($all = true)
51
  {
52
 
53
- //List Of Detect Browser in WP-Statistics
54
  $list = array(
55
  "chrome" => __("Chrome", 'wp-statistics'),
56
  "firefox" => __("Firefox", 'wp-statistics'),
@@ -95,7 +97,8 @@ class UserAgent
95
 
96
  public static function getBrowserInfo($userAgent = null)
97
  {
98
- $version = '';
 
99
 
100
  if (preg_match('/linux|ubuntu/i', $userAgent)) {
101
  $platform = 'linux';
@@ -152,10 +155,19 @@ class UserAgent
152
  $version = end($matches['version']);
153
  }
154
 
 
 
 
 
 
 
 
155
  return array(
156
  'browser' => $browser,
157
  'version' => $version,
158
- 'platform' => $platform
 
 
159
  );
160
  }
161
 
32
  'browser' => (isset($result->browser->name)) ? $result->browser->name : _x('Unknown', 'Browser', 'wp-statistics'),
33
  'platform' => (isset($result->os->name)) ? $result->os->name : _x('Unknown', 'Platform', 'wp-statistics'),
34
  'version' => (isset($result->browser->version->value)) ? $result->browser->version->value : _x('Unknown', 'Version', 'wp-statistics'),
35
+ 'device' => isset($result->device->type) ? $result->getType() : _x('Unknown', 'Device', 'wp-statistics'),
36
+ 'model' => isset($result->device->manufacturer) ? $result->device->getModel() : _x('Unknown', 'Model', 'wp-statistics'),
37
  );
38
  } else {
39
  $agent = self::getBrowserInfo($user_agent);
52
  public static function BrowserList($all = true)
53
  {
54
 
55
+ //List Of Detect Browser in WP Statistics
56
  $list = array(
57
  "chrome" => __("Chrome", 'wp-statistics'),
58
  "firefox" => __("Firefox", 'wp-statistics'),
97
 
98
  public static function getBrowserInfo($userAgent = null)
99
  {
100
+ $version = '';
101
+ $model = _x('Unknown', 'Device Model', 'wp-statistics');
102
 
103
  if (preg_match('/linux|ubuntu/i', $userAgent)) {
104
  $platform = 'linux';
155
  $version = end($matches['version']);
156
  }
157
 
158
+ if (preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo
159
+ |fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $userAgent)) {
160
+ $device = 'mobile';
161
+ } else {
162
+ $device = 'desktop';
163
+ }
164
+
165
  return array(
166
  'browser' => $browser,
167
  'version' => $version,
168
+ 'platform' => $platform,
169
+ 'device' => $device,
170
+ 'model' => $model,
171
  );
172
  }
173
 
includes/class-wp-statistics-user.php CHANGED
@@ -145,7 +145,7 @@ class User
145
  }
146
 
147
  /**
148
- * Check User Access To WP-Statistics Admin
149
  *
150
  * @param string $type [manage | read ]
151
  * @param string|boolean $export
145
  }
146
 
147
  /**
148
+ * Check User Access To WP Statistics Admin
149
  *
150
  * @param string $type [manage | read ]
151
  * @param string|boolean $export
includes/class-wp-statistics-visitor.php CHANGED
@@ -121,6 +121,8 @@ class Visitor
121
  'agent' => $user_agent['browser'],
122
  'platform' => $user_agent['platform'],
123
  'version' => $user_agent['version'],
 
 
124
  'ip' => $user_ip,
125
  'location' => GeoIP::getCountry(IP::getIP()),
126
  'user_id' => User::get_user_id(),
121
  'agent' => $user_agent['browser'],
122
  'platform' => $user_agent['platform'],
123
  'version' => $user_agent['version'],
124
+ 'device' => $user_agent['device'],
125
+ 'model' => $user_agent['model'],
126
  'ip' => $user_ip,
127
  'location' => GeoIP::getCountry(IP::getIP()),
128
  'user_id' => User::get_user_id(),
includes/class-wp-statistics-widget.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  /**
4
- * WP-Statistics Widget
5
  */
6
  class WP_Statistics_Widget extends \WP_Widget
7
  {
1
  <?php
2
 
3
  /**
4
+ * WP Statistics Widget
5
  */
6
  class WP_Statistics_Widget extends \WP_Widget
7
  {
includes/class-wp-statistics.php CHANGED
@@ -111,6 +111,11 @@ final class WP_Statistics
111
  */
112
  $this->includes();
113
 
 
 
 
 
 
114
  /**
115
  * instantiate Plugin
116
  */
@@ -219,8 +224,8 @@ final class WP_Statistics
219
  require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics-frontend.php';
220
  }
221
 
222
- // WP-CLI
223
- if (defined('WP_CLI') && WP_CLI && WP_STATISTICS\Option::get('wp_cli') == true) {
224
  require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics-cli.php';
225
  }
226
 
111
  */
112
  $this->includes();
113
 
114
+ /**
115
+ * Display Admin Notices
116
+ */
117
+ add_action('admin_notices', array('\\WP_STATISTICS\\Helper', 'displayAdminNotices'));
118
+
119
  /**
120
  * instantiate Plugin
121
  */
224
  require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics-frontend.php';
225
  }
226
 
227
+ // WP-CLI Class.
228
+ if (defined('WP_CLI') && WP_CLI) {
229
  require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics-cli.php';
230
  }
231
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mostafa.s1990, kashani, veronalabs, mehrshaddarzi, GregRoss
3
  Donate link: https://wp-statistics.com/donate/
4
  Tags: analytics, wordpress analytics, stats, statistics, visit, visitors, hits, chart, browser, today, yesterday, week, month, year, total, post, page, sidebar, google, live visit, search word, agent, google analytics, webmasters, google webmasters, geoip, location
5
  Requires at least: 4.4
6
- Tested up to: 5.9
7
- Stable tag: 13.2.3
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -12,10 +12,10 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
  This plugin gives you the complete information on your website's visitors.
13
 
14
  == Description ==
15
- = WP-Statistics: THE #1 WORDPRESS STATISTICS PLUGIN =
16
- Do you need a simple tool to know your website statistics? Do you need to represent these statistics? Are you caring about your users’ privacy while analyzing who are interested in your business or website? With WP-Statistics you can know your website statistics without any need to send your users’ data anywhere. You can know how many people visit your personal or business website, where they’re coming from, what browsers and search engines they use, and which of your contents, categories, tags and users get more visits.
17
 
18
- All these data are recorded in your server, and YES! WP-Statistics is [GDPR compliant](http://bit.ly/2x0AFgT).
19
 
20
  [Checkout Demo!](https://wp-statistics.com/demo)
21
 
@@ -50,14 +50,14 @@ If you encounter any bug, please create an issue on [GitHub](https://github.com/
50
 
51
  == Frequently Asked Questions ==
52
  = GDPR Compliant? =
53
- The greatest advantage of WP-Statistics is that all the data is saved locally in WordPress.
54
- This helps a lot while implementing the new GDPR restrictions; because it’s not necessary to create a data processing contract with an external company! [Read more about WP-Statistics compliance with GDPR](http://bit.ly/2x0AFgT).
55
 
56
- = Does WP-Statistics support Multisite? =
57
- WP-Statistics doesn't officially support the multisite feature; however, it does have limited functionally associated with it and should function without any issue. However, no support is provided at this time.
58
- Version 8.8 is the first release that can be installed, upgraded and removed correctly on multi-site. It also has some basic support for the network admin menu. This should not be taken as an indication that WP-Statistics fully supports the multisite, but only should be considered as a very first step.
59
 
60
- = Does WP-Statistics work with caching plugins? =
61
  Yes, the cache support added in v12.5.1
62
 
63
  If you're using a plugin cache:
@@ -85,17 +85,17 @@ Probably, each plugin/service is going to give you different statistics on visit
85
  * Detection methods (Javascript vs. Server Side PHP)
86
  * Centralized exclusions
87
 
88
- Services that use centralized databases for spam and robot detections , such as Google Analytics, have better detection than WP-Statistics.
89
 
90
  = Not all referrals are showing up in the search words list, why? =
91
  Search Engine Referrals and Words are highly dependent on the search engines providing the information to us. Unfortunately, we can’t do anything about it; we report everything we receive.
92
 
93
  = PHP 7 Support? =
94
- WP-Statistics is PHP 7 compliant; however, some versions of PHP 7 have bugs that can cause issues. One known issue is that PHP 7.0.4 cause memory exhaustion errors. Newer versions of PHP 7 do not have this issue.
95
- At this time (September 2018) WP-Statistics seems to run fine with PHP 7.2.6. But you may experience issues that we haven’t found yet. If you do, feel free to report it after you make sure it is not a problem with PHP.
96
 
97
  = IPv6 Support? =
98
- WP-Statistics supports IPv6 as of version 11.0; however, PHP must be compiled with IPv6 support enabled; otherwise you may see warnings when a visitor from an IPv6 address hits your site.
99
 
100
  You can check if IPv6 support is enabled in PHP by visiting the Optimization > Resources/Information->Version Info > PHP IPv6 Enabled section.
101
 
@@ -124,13 +124,20 @@ Referrer spam blacklist is provided by Matomo, available from https://github.com
124
 
125
  = 13.0 =
126
  **IMPORTANT NOTE**
127
- Welcome to WP-Statistics v13.0, our biggest update!
128
- Thank you for being part of our community. We’ve been working hard for one year to develop this version and make WP-Statistics better for you.
129
  Before updating, make sure you disabled all your add-ons, then after that, try to update add-ons.
130
 
131
  If you encounter any bug, please create an issue on [GitHub](https://github.com/wp-statistics/wp-statistics/issues/new) where we can act upon them more efficiently. Since [GitHub](https://github.com/wp-statistics/wp-statistics) is not a support forum, just bugs are welcomed, and any other request will be closed.
132
 
133
  == Changelog ==
 
 
 
 
 
 
 
134
  = v13.2.3 - 12.05.2022 =
135
  * Bugfix: Rendering the email reporting with HTML tags has been fixed
136
  * Bugfix: The browser version issue has been fixed
@@ -260,7 +267,7 @@ If you encounter any bug, please create an issue on [GitHub](https://github.com/
260
  **We're very sorry regarding the previous update because we had a lot of changes on v13.0, we worked almost 1 year for this update and considered all situations and many tests, anyway try to update and enjoy the new features!**
261
 
262
  - Fixed critical issue when some PHP modules such as bcmath are not enabled. it caused a fatal error, the purpose flag `platform-check` from Composer has been disabled.
263
- - Fixed the "Connect to WordPress RestAPI" message while loading the admin statistics' widgets, the uBlock browser extension was blocking the WP-Statistics's requests.
264
  - Fixed the upgrade process issue, one of the previous action was calling and that caused the issue, that's now disabled.
265
  - Disabled some repair and optimization table queries during the initial request.
266
  - Minor Improvements.
3
  Donate link: https://wp-statistics.com/donate/
4
  Tags: analytics, wordpress analytics, stats, statistics, visit, visitors, hits, chart, browser, today, yesterday, week, month, year, total, post, page, sidebar, google, live visit, search word, agent, google analytics, webmasters, google webmasters, geoip, location
5
  Requires at least: 4.4
6
+ Tested up to: 6.0
7
+ Stable tag: 13.2.4
8
  Requires PHP: 5.6
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
  This plugin gives you the complete information on your website's visitors.
13
 
14
  == Description ==
15
+ = WP Statistics: THE #1 WORDPRESS STATISTICS PLUGIN =
16
+ Do you need a simple tool to know your website statistics? Do you need to represent these statistics? Are you caring about your users’ privacy while analyzing who are interested in your business or website? With WP Statistics you can know your website statistics without any need to send your users’ data anywhere. You can know how many people visit your personal or business website, where they’re coming from, what browsers and search engines they use, and which of your contents, categories, tags and users get more visits.
17
 
18
+ All these data are recorded in your server, and YES! WP Statistics is [GDPR compliant](http://bit.ly/2x0AFgT).
19
 
20
  [Checkout Demo!](https://wp-statistics.com/demo)
21
 
50
 
51
  == Frequently Asked Questions ==
52
  = GDPR Compliant? =
53
+ The greatest advantage of WP Statistics is that all the data is saved locally in WordPress.
54
+ This helps a lot while implementing the new GDPR restrictions; because it’s not necessary to create a data processing contract with an external company! [Read more about WP Statistics compliance with GDPR](http://bit.ly/2x0AFgT).
55
 
56
+ = Does WP Statistics support Multisite? =
57
+ WP Statistics doesn't officially support the multisite feature; however, it does have limited functionally associated with it and should function without any issue. However, no support is provided at this time.
58
+ Version 8.8 is the first release that can be installed, upgraded and removed correctly on multi-site. It also has some basic support for the network admin menu. This should not be taken as an indication that WP Statistics fully supports the multisite, but only should be considered as a very first step.
59
 
60
+ = Does WP Statistics work with caching plugins? =
61
  Yes, the cache support added in v12.5.1
62
 
63
  If you're using a plugin cache:
85
  * Detection methods (Javascript vs. Server Side PHP)
86
  * Centralized exclusions
87
 
88
+ Services that use centralized databases for spam and robot detections , such as Google Analytics, have better detection than WP Statistics.
89
 
90
  = Not all referrals are showing up in the search words list, why? =
91
  Search Engine Referrals and Words are highly dependent on the search engines providing the information to us. Unfortunately, we can’t do anything about it; we report everything we receive.
92
 
93
  = PHP 7 Support? =
94
+ WP Statistics is PHP 7 compliant; however, some versions of PHP 7 have bugs that can cause issues. One known issue is that PHP 7.0.4 cause memory exhaustion errors. Newer versions of PHP 7 do not have this issue.
95
+ At this time (September 2018) WP Statistics seems to run fine with PHP 7.2.6. But you may experience issues that we haven’t found yet. If you do, feel free to report it after you make sure it is not a problem with PHP.
96
 
97
  = IPv6 Support? =
98
+ WP Statistics supports IPv6 as of version 11.0; however, PHP must be compiled with IPv6 support enabled; otherwise you may see warnings when a visitor from an IPv6 address hits your site.
99
 
100
  You can check if IPv6 support is enabled in PHP by visiting the Optimization > Resources/Information->Version Info > PHP IPv6 Enabled section.
101
 
124
 
125
  = 13.0 =
126
  **IMPORTANT NOTE**
127
+ Welcome to WP Statistics v13.0, our biggest update!
128
+ Thank you for being part of our community. We’ve been working hard for one year to develop this version and make WP Statistics better for you.
129
  Before updating, make sure you disabled all your add-ons, then after that, try to update add-ons.
130
 
131
  If you encounter any bug, please create an issue on [GitHub](https://github.com/wp-statistics/wp-statistics/issues/new) where we can act upon them more efficiently. Since [GitHub](https://github.com/wp-statistics/wp-statistics) is not a support forum, just bugs are welcomed, and any other request will be closed.
132
 
133
  == Changelog ==
134
+ = v13.2.4 - 11.06.2022 =
135
+ * Feature: The new device type & device model meta boxes has been added in Overview!
136
+ * Bugfix: Enhancements and CSRF protection added to the settings and optimization pages
137
+ * Improvement: REST API status checking
138
+ * Improvement: The WP-CLI commands is enabled by default and remove Its tab from Settings page
139
+ * Improvement: Moved out "Top Referring" & "Online Users" from Overview side to right column
140
+
141
  = v13.2.3 - 12.05.2022 =
142
  * Bugfix: Rendering the email reporting with HTML tags has been fixed
143
  * Bugfix: The browser version issue has been fixed
267
  **We're very sorry regarding the previous update because we had a lot of changes on v13.0, we worked almost 1 year for this update and considered all situations and many tests, anyway try to update and enjoy the new features!**
268
 
269
  - Fixed critical issue when some PHP modules such as bcmath are not enabled. it caused a fatal error, the purpose flag `platform-check` from Composer has been disabled.
270
+ - Fixed the "Connect to WordPress RestAPI" message while loading the admin statistics' widgets, the uBlock browser extension was blocking the WP Statistics's requests.
271
  - Fixed the upgrade process issue, one of the previous action was calling and that caused the issue, that's now disabled.
272
  - Disabled some repair and optimization table queries during the initial request.
273
  - Minor Improvements.
wp-statistics.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: https://wp-statistics.com/
5
  * Description: This plugin gives you the complete information on your website's visitors.
6
- * Version: 13.2.3
7
  * Author: VeronaLabs
8
  * Author URI: https://veronalabs.com/
9
  * Text Domain: wp-statistics
@@ -25,7 +25,7 @@ if (!class_exists('WP_Statistics')) {
25
  require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics.php';
26
  }
27
 
28
- # Returns the main instance of WP-Statistics.
29
  function WP_Statistics()
30
  {
31
  return WP_Statistics::instance();
3
  * Plugin Name: WP Statistics
4
  * Plugin URI: https://wp-statistics.com/
5
  * Description: This plugin gives you the complete information on your website's visitors.
6
+ * Version: 13.2.4
7
  * Author: VeronaLabs
8
  * Author URI: https://veronalabs.com/
9
  * Text Domain: wp-statistics
25
  require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics.php';
26
  }
27
 
28
+ # Returns the main instance of WP Statistics.
29
  function WP_Statistics()
30
  {
31
  return WP_Statistics::instance();