Yasr – Yet Another Stars Rating - Version 2.6.6

Version Description

  • TWEAKED: settings page revamped. I'd like to heard your feedback in the forum.
  • NEW FEATURE: it is now possible to add the %rating% variable when customizing the text for an user that has already rated.
  • TWEAKED: added many filters (docs in the official website) and code cleanup.
Download this release

Release Info

Developer Dudo
Plugin Icon 128x128 Yasr – Yet Another Stars Rating
Version 2.6.6
Comparing to
See all releases

Code changes from version 2.6.5 to 2.6.6

Files changed (37) hide show
  1. admin/classes/YasrOnInstall.php +4 -2
  2. admin/css/yasr-admin.css +77 -7
  3. admin/js/src/guten/yasr-guten-blocks.js +0 -2
  4. admin/js/src/guten/yasr-guten-panel.js +0 -1
  5. admin/js/src/yasr-editor-screen.js +0 -2
  6. admin/js/src/yasr-settings-page.js +22 -33
  7. admin/js/src/yasr-settings-rankings.js +6 -1
  8. admin/js/yasr-editor-screen.js +1 -3
  9. admin/js/yasr-gutenberg.js +1 -3
  10. admin/js/yasr-settings.js +1 -32
  11. admin/settings/aspect_style/yasr-settings-style-actions.php +122 -0
  12. admin/settings/aspect_style/{yasr-settings-functions-style.php → yasr-settings-style-functions.php} +11 -9
  13. admin/settings/classes/YasrSettings.php +472 -558
  14. admin/settings/yasr-settings-functions-misc.php +121 -8
  15. admin/yasr-admin-actions.php +0 -101
  16. admin/yasr-admin-functions.php +3 -3
  17. admin/yasr-update-functions.php +12 -15
  18. includes/classes/YasrIncludesFilters.php +154 -0
  19. includes/classes/YasrPhpFieldsHelper.php +4 -1
  20. includes/img/yasr-settings-stats.png +0 -0
  21. includes/img/yasr_settings_stats_disabled.png +0 -0
  22. includes/img/yasr_settings_stats_enabled.png +0 -0
  23. includes/js/rater-js.min.js +1 -0
  24. includes/js/src/ranking.js +3 -4
  25. includes/js/src/{rater-js.js → rater-js-src.js} +0 -0
  26. includes/js/src/yasr-front.js +1 -2
  27. includes/js/yasr-front.js +1 -32
  28. includes/shortcodes/classes/YasrOverallRating.php +8 -10
  29. includes/shortcodes/classes/YasrVisitorMultiSet.php +4 -8
  30. includes/shortcodes/classes/YasrVisitorVotes.php +41 -86
  31. includes/shortcodes/yasr-shortcode-ajax.php +2 -2
  32. includes/yasr-includes-functions.php +9 -0
  33. includes/yasr-includes-init.php +10 -24
  34. public/classes/YasrPublicFilters.php +0 -1
  35. public/yasr-public-actions.php +1 -1
  36. readme.txt +7 -2
  37. yet-another-stars-rating.php +2 -2
admin/classes/YasrOnInstall.php CHANGED
@@ -153,8 +153,10 @@ class YasrOnInstall {
153
  __('[Total: %s Average: %s]', 'yet-another-stars-rating'),
154
  '%total_count%', '%average%'
155
  );
156
- $option['custom_text_user_voted'] = __('You must sign in to vote', 'yet-another-stars-rating');
157
- $option['custom_text_must_sign_in'] = __('You have already voted for this article', 'yet-another-stars-rating');
 
 
158
  $option['enable_ip'] = 'no';
159
  $option['snippet_itemtype'] = 'Product';
160
  $option['publisher'] = 'Organization';
153
  __('[Total: %s Average: %s]', 'yet-another-stars-rating'),
154
  '%total_count%', '%average%'
155
  );
156
+ $option['custom_text_user_voted'] = __('You have already voted for this article with rating ',
157
+ 'yet-another-stars-rating') . '%rating%';
158
+ $option['custom_text_must_sign_in'] = __('You must sign in to vote', 'yet-another-stars-rating');
159
+
160
  $option['enable_ip'] = 'no';
161
  $option['snippet_itemtype'] = 'Product';
162
  $option['publisher'] = 'Organization';
admin/css/yasr-admin.css CHANGED
@@ -114,7 +114,7 @@
114
  }
115
 
116
  .yasr-element-row-container-description {
117
- color: #928b8b;
118
  margin-top: 5px;
119
  margin-left: 10px;
120
  margin-bottom: 15px;
@@ -164,6 +164,10 @@
164
  background-color: white;
165
  }
166
 
 
 
 
 
167
  /*** End top navigation ***/
168
 
169
 
@@ -288,6 +292,12 @@
288
 
289
  /*** End on of switch ***/
290
 
 
 
 
 
 
 
291
 
292
  /*This is the div with the created shortcode*/
293
 
@@ -490,6 +500,63 @@
490
  clear: both;
491
  }
492
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  .yasr-indented-answer {
494
  margin-top: 3px;
495
  margin-left: 10px;
@@ -628,24 +695,27 @@
628
 
629
  /**** Yasr Aspect & Styles tab ***/
630
 
631
- .yasr_choose_stars {
632
  display: inline-block;
633
- text-align: center;
634
  padding-left: 15px;
635
  }
636
 
 
 
 
637
 
638
- #yasr-settings-stylish-image {
 
 
 
639
 
 
640
  max-width: 100%;
641
  height: auto;
642
-
643
  }
644
 
645
  #yasr-settings-stylish-image:hover {
646
-
647
  opacity: 0.4;
648
-
649
  }
650
 
651
  @media (max-width: 575px) {
114
  }
115
 
116
  .yasr-element-row-container-description {
117
+ color: #737272;
118
  margin-top: 5px;
119
  margin-left: 10px;
120
  margin-bottom: 15px;
164
  background-color: white;
165
  }
166
 
167
+ .form-table th {
168
+ border-right: 1px solid #ddd;
169
+ }
170
+
171
  /*** End top navigation ***/
172
 
173
 
292
 
293
  /*** End on of switch ***/
294
 
295
+ .yasr-settings-description {
296
+ color: #3c434a;
297
+ font-weight: 400;
298
+ padding-left: 5px;
299
+ padding-top: 5px;
300
+ }
301
 
302
  /*This is the div with the created shortcode*/
303
 
500
  clear: both;
501
  }
502
 
503
+ .yasr-settings-row-35 {
504
+ padding-left: 10px;
505
+ display: flex;
506
+ flex-wrap: wrap;
507
+ }
508
+
509
+ .yasr-settings-row-35 > div {
510
+ /*It is 35 and applyed space between*/
511
+ flex: 0 0 35%;
512
+ padding-top: 20px;
513
+ }
514
+
515
+ .yasr-settings-row-45 {
516
+ padding-left: 10px;
517
+ display: flex;
518
+ flex-wrap: wrap;
519
+ justify-content: space-between;
520
+ }
521
+
522
+ .yasr-settings-row-45 > div {
523
+ /*It is 45 and applyed space between*/
524
+ flex: 0 0 45%;
525
+ }
526
+
527
+ .yasr-settings-row {
528
+ display: flex;
529
+ justify-content: space-between;
530
+ }
531
+
532
+ .yasr-settings-col-20 {
533
+ flex: 0 0 30%;
534
+ }
535
+
536
+ .yasr-settings-col-30 {
537
+ flex: 0 0 30%;
538
+ }
539
+
540
+ .yasr-settings-col-40 {
541
+ flex: 0 0 40%;
542
+ }
543
+
544
+ .yasr-settings-col-50 {
545
+ flex: 0 0 50%;
546
+ }
547
+
548
+ .yasr-settings-col-60 {
549
+ flex: 0 0 60%;
550
+ }
551
+
552
+ .yasr-settings-col-70 {
553
+ flex: 0 0 60%;
554
+ }
555
+
556
+ .yasr-settings-padding-left {
557
+ padding-left: 10px;
558
+ }
559
+
560
  .yasr-indented-answer {
561
  margin-top: 3px;
562
  margin-left: 10px;
695
 
696
  /**** Yasr Aspect & Styles tab ***/
697
 
698
+ .yasr-select-img-container > div {
699
  display: inline-block;
 
700
  padding-left: 15px;
701
  }
702
 
703
+ .yasr-select-img-container > span {
704
+ padding-top: 10px;
705
+ }
706
 
707
+ div.yasr-select-img-container input {
708
+ display: block;
709
+ margin: 10px 0 5px 8px !important;
710
+ }
711
 
712
+ #yasr-settings-stylish-image {
713
  max-width: 100%;
714
  height: auto;
 
715
  }
716
 
717
  #yasr-settings-stylish-image:hover {
 
718
  opacity: 0.4;
 
719
  }
720
 
721
  @media (max-width: 575px) {
admin/js/src/guten/yasr-guten-blocks.js CHANGED
@@ -1,5 +1,3 @@
1
- import raterJs from '../../../../includes/js/src/rater-js';
2
-
3
  //setting costants
4
  const { __ } = wp.i18n; // Import __() from wp.i18n
5
  const {registerBlockType} = wp.blocks; // Import from wp.blocks
 
 
1
  //setting costants
2
  const { __ } = wp.i18n; // Import __() from wp.i18n
3
  const {registerBlockType} = wp.blocks; // Import from wp.blocks
admin/js/src/guten/yasr-guten-panel.js CHANGED
@@ -1,6 +1,5 @@
1
  //import ReviewsInComments from '../../../../yasr_pro/js/src/guten/yasr-pro-guten-panel'
2
  import {createHooks} from '@wordpress/hooks';
3
- import raterJs from '../../../../includes/js/src/rater-js';
4
 
5
  const {__} = wp.i18n; // Import __() from wp.i18n
6
  const {registerPlugin} = wp.plugins;
1
  //import ReviewsInComments from '../../../../yasr_pro/js/src/guten/yasr-pro-guten-panel'
2
  import {createHooks} from '@wordpress/hooks';
 
3
 
4
  const {__} = wp.i18n; // Import __() from wp.i18n
5
  const {registerPlugin} = wp.plugins;
admin/js/src/yasr-editor-screen.js CHANGED
@@ -1,5 +1,3 @@
1
- import raterJs from '../../../includes/js/src/rater-js';
2
-
3
  // executes this when the DOM is ready
4
  document.addEventListener('DOMContentLoaded', function(event) {
5
 
 
 
1
  // executes this when the DOM is ready
2
  document.addEventListener('DOMContentLoaded', function(event) {
3
 
admin/js/src/yasr-settings-page.js CHANGED
@@ -1,7 +1,7 @@
1
  /****** Yasr Settings Page ******/
2
 
3
  //get active Tab
4
- export let activeTab;
5
  let tabClass = document.getElementsByClassName('nav-tab-active');
6
 
7
  if(tabClass.length > 0){
@@ -10,7 +10,6 @@ if(tabClass.length > 0){
10
 
11
  //-------------------General Settings Code---------------------
12
  if (activeTab === 'general_settings') {
13
-
14
  let autoInsertEnabled = document.getElementById('yasr_auto_insert_switch').checked;
15
  let starsTitleEnabled = document.getElementById('yasr-general-options-stars-title-switch').checked;
16
  let textBeforeStars = document.getElementById('yasr-general-options-text-before-stars-switch').checked;
@@ -24,8 +23,8 @@ if (activeTab === 'general_settings') {
24
  }
25
 
26
  //First Div, for auto insert
27
- jQuery('#yasr_auto_insert_switch').change(function () {
28
- if (jQuery(this).is(':checked')) {
29
  jQuery('.yasr-auto-insert-options-class').prop('disabled', false);
30
  } else {
31
  jQuery('.yasr-auto-insert-options-class').prop('disabled', true);
@@ -33,8 +32,8 @@ if (activeTab === 'general_settings') {
33
  });
34
 
35
  //Second Div, for stars title
36
- jQuery('#yasr-general-options-stars-title-switch').change(function () {
37
- if (jQuery(this).is(':checked')) {
38
  jQuery('.yasr-stars-title-options-class').prop('disabled', false);
39
  } else {
40
  jQuery('.yasr-stars-title-options-class').prop('disabled', true);
@@ -46,37 +45,40 @@ if (activeTab === 'general_settings') {
46
  jQuery(".yasr-general-options-text-before").find(':input').prop('disabled', true);
47
  }
48
 
49
- jQuery('#yasr-general-options-text-before-stars-switch').change(function () {
50
- if (jQuery(this).is(':checked')) {
51
-
52
  jQuery(".yasr-general-options-text-before").find(':input').prop('disabled', false);
53
  jQuery('#yasr-general-options-custom-text-before-overall').val('Our Score');
54
  jQuery('#yasr-general-options-custom-text-before-visitor').val('Click to rate this post!');
55
  jQuery('#yasr-general-options-custom-text-after-visitor').val('[Total: %total_count% Average: %average%]');
56
  jQuery('#yasr-general-options-custom-text-must-sign-in').val('You must sign in to vote');
57
- jQuery('#yasr-general-options-custom-text-already-rated').val('You have already voted for this article');
58
-
59
  } else {
60
  jQuery(".yasr-general-options-text-before").find(':input').prop('disabled', true);
61
  }
62
 
63
  });
64
 
65
- jQuery('#yasr-doc-custom-text-link').on('click', function () {
66
- jQuery('#yasr-doc-custom-text-div').toggle('slow');
67
- return false;
68
- });
69
 
70
- jQuery('#yasr-stats-explained-link').on('click', function () {
71
- jQuery('#yasr-stats-explained').toggle('slow');
72
- return false;
 
 
 
 
 
 
 
 
73
  });
74
 
75
- } //End if general settings
 
 
76
 
77
  //--------------Multi Sets Page ------------------
78
  if (activeTab === 'manage_multi') {
79
-
80
  let nMultiSet = parseInt(document.getElementById('n-multiset').value);
81
 
82
  jQuery('#yasr-multi-set-doc-link').on('click', function () {
@@ -149,19 +151,6 @@ if (activeTab === 'manage_multi') {
149
 
150
  } //end if active_tab=='manage_multi'
151
 
152
- if (activeTab === 'style_options') {
153
- wp.codeEditor.initialize(
154
- document.getElementById('yasr_style_options_textarea'),
155
- yasr_cm_settings
156
- );
157
-
158
- jQuery('#yasr-color-scheme-preview-link').on('click', function () {
159
- jQuery('#yasr-color-scheme-preview').toggle('slow');
160
- return false; // prevent default click action from happening!
161
- });
162
-
163
- }
164
-
165
  if (activeTab === 'migration_tools') {
166
  jQuery('#yasr-import-ratemypost-submit').on('click', function () {
167
 
1
  /****** Yasr Settings Page ******/
2
 
3
  //get active Tab
4
+ let activeTab;
5
  let tabClass = document.getElementsByClassName('nav-tab-active');
6
 
7
  if(tabClass.length > 0){
10
 
11
  //-------------------General Settings Code---------------------
12
  if (activeTab === 'general_settings') {
 
13
  let autoInsertEnabled = document.getElementById('yasr_auto_insert_switch').checked;
14
  let starsTitleEnabled = document.getElementById('yasr-general-options-stars-title-switch').checked;
15
  let textBeforeStars = document.getElementById('yasr-general-options-text-before-stars-switch').checked;
23
  }
24
 
25
  //First Div, for auto insert
26
+ document.getElementById('yasr_auto_insert_switch').addEventListener('change', function() {
27
+ if (this.checked) {
28
  jQuery('.yasr-auto-insert-options-class').prop('disabled', false);
29
  } else {
30
  jQuery('.yasr-auto-insert-options-class').prop('disabled', true);
32
  });
33
 
34
  //Second Div, for stars title
35
+ document.getElementById('yasr-general-options-stars-title-switch').addEventListener('change', function() {
36
+ if (this.checked) {
37
  jQuery('.yasr-stars-title-options-class').prop('disabled', false);
38
  } else {
39
  jQuery('.yasr-stars-title-options-class').prop('disabled', true);
45
  jQuery(".yasr-general-options-text-before").find(':input').prop('disabled', true);
46
  }
47
 
48
+ document.getElementById('yasr-general-options-text-before-stars-switch').addEventListener('change', function() {
49
+ if (this.checked) {
 
50
  jQuery(".yasr-general-options-text-before").find(':input').prop('disabled', false);
51
  jQuery('#yasr-general-options-custom-text-before-overall').val('Our Score');
52
  jQuery('#yasr-general-options-custom-text-before-visitor').val('Click to rate this post!');
53
  jQuery('#yasr-general-options-custom-text-after-visitor').val('[Total: %total_count% Average: %average%]');
54
  jQuery('#yasr-general-options-custom-text-must-sign-in').val('You must sign in to vote');
55
+ jQuery('#yasr-general-options-custom-text-already-rated').val('You have already voted for this article with %rating%');
 
56
  } else {
57
  jQuery(".yasr-general-options-text-before").find(':input').prop('disabled', true);
58
  }
59
 
60
  });
61
 
 
 
 
 
62
 
63
+ } //End if general settings
64
+
65
+ if (activeTab === 'style_options') {
66
+ wp.codeEditor.initialize(
67
+ document.getElementById('yasr_style_options_textarea'),
68
+ yasr_cm_settings
69
+ );
70
+
71
+ jQuery('#yasr-color-scheme-preview-link').on('click', function () {
72
+ jQuery('#yasr-color-scheme-preview').toggle('slow');
73
+ return false; // prevent default click action from happening!
74
  });
75
 
76
+ wp.hooks.doAction('yasrStyleOptions');
77
+
78
+ }
79
 
80
  //--------------Multi Sets Page ------------------
81
  if (activeTab === 'manage_multi') {
 
82
  let nMultiSet = parseInt(document.getElementById('n-multiset').value);
83
 
84
  jQuery('#yasr-multi-set-doc-link').on('click', function () {
151
 
152
  } //end if active_tab=='manage_multi'
153
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  if (activeTab === 'migration_tools') {
155
  jQuery('#yasr-import-ratemypost-submit').on('click', function () {
156
 
admin/js/src/yasr-settings-rankings.js CHANGED
@@ -1,7 +1,12 @@
1
- import {activeTab} from "./yasr-settings-page";
2
  import {yasrDrawRankings} from "../../../includes/js/src/ranking";
3
  const { __ } = wp.i18n; // Import __() from wp.i18n
4
 
 
 
 
 
 
 
5
 
6
  if (activeTab === 'rankings') {
7
 
 
1
  import {yasrDrawRankings} from "../../../includes/js/src/ranking";
2
  const { __ } = wp.i18n; // Import __() from wp.i18n
3
 
4
+ let activeTab;
5
+ let tabClass = document.getElementsByClassName('nav-tab-active');
6
+
7
+ if(tabClass.length > 0){
8
+ activeTab = document.getElementsByClassName('nav-tab-active')[0].id;
9
+ }
10
 
11
  if (activeTab === 'rankings') {
12
 
admin/js/yasr-editor-screen.js CHANGED
@@ -1,3 +1 @@
1
- !function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){
2
- /*! Based on rater-js. [c] 2018 by Fredrik Olsson. MIT License */
3
- e.exports=function(e){let t=!0;if(void 0===e.element||null===e.element)throw new Error("element required");if(void 0!==e.showToolTip&&(t=!!e.showToolTip),void 0!==e.step&&(e.step<=0||e.step>1))throw new Error("step must be a number between 0 and 1");let n,a,o=e.starSize||16,i=e.step||1,s=e.onHover,r=e.onLeave,l=JSON.parse(yasrCommonData.isRtl),d=e.element;d.classList.add("yasr-star-rating");let y=document.createElement("div");y.classList.add("yasr-star-value"),y.style.backgroundSize=o+"px",d.appendChild(y),d.style.width=5*o+"px",d.style.height=o+"px",d.style.backgroundSize=o+"px";let c,u,m,p=e.rateCallback,b=!!e.readOnly,f=!1,g=e.isBusyText;if(c=void 0!==e.disableText?e.disableText:"{rating}/{maxRating}",b||(d.style.cursor="pointer"),m=void 0!==e.ratingText?e.ratingText:"{rating}/{maxRating}",e.rating)B(e.rating);else{var v=d.dataset.rating;v&&B(+v)}function x(e){if(!0===b||!0===f)return;let a;if(!0===l){let t=this.getBoundingClientRect(),n=e.pageX-t.left,o=d.offsetWidth;a=(o-n)/(o/100)}else{a=e.offsetX/d.offsetWidth*100}if(a<101){if(1===i)u=Math.ceil(a/100*5);else{let e=a/100*5;for(let t=0;;t+=i)if(t>=e){u=t;break}}if(u>5&&(u=5),d.querySelector(".yasr-star-value").style.width=u/5*100+"%",t){let e=m.replace("{rating}",u);e=e.replace("{maxRating}",5),d.setAttribute("data-title",e)}"function"==typeof s&&s(u,n)}}function E(e){void 0!==n?(d.querySelector(".yasr-star-value").style.width=n/5*100+"%",d.setAttribute("data-rating",n)):(d.querySelector(".yasr-star-value").style.width="0%",d.removeAttribute("data-rating")),"function"==typeof r&&r(u,n)}function I(e){!0!==b&&!0!==f&&(void 0===p&&!1===typeof p||(f=!0,a=u,void 0===g?d.removeAttribute("data-title"):d.setAttribute("data-title",g),p.call(this,a,(function(){!1===b&&d.removeAttribute("data-title"),f=!1}))))}function h(){if(b=!0,t&&c){let e=c.replace("{rating}",n);e=e.replace("{maxRating}",5),d.setAttribute("data-title",e)}else d.removeAttribute("data-title")}function B(e){if(-1===e&&(e=void 0),"number"!=typeof e&&void 0!==e)throw new Error("Value must be a number or undefined.");e<0&&(e=0),e>5&&(e=5),n=e,d.querySelector(".yasr-star-value").style.width=e/5*100+"%",d.setAttribute("data-rating",e)}void 0===n&&(d.querySelector(".yasr-star-value").style.width="0px"),b&&h(),d.addEventListener("mousemove",x),d.addEventListener("mouseleave",E);let w={setRating:B,getRating:function(){return n},disable:h,enable:function(){b=!1,d.removeAttribute("data-title")},dispose:function(){d.removeEventListener("mousemove",x),d.removeEventListener("mouseleave",E),d.removeEventListener("click",I)}};return d.addEventListener("click",I.bind(w)),w}},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";n.r(t);var a=n(0),o=n.n(a);function i(e){"Product"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"LocalBusiness"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"Recipe"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"SoftwareApplication"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"Book"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"Movie"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none"):document.getElementById("yasr-metabox-info-snippet-container").style.display="none"}function s(e,t,n){const a={action:"yasr_send_id_nameset",set_id:e,post_id:t};return jQuery.post(ajaxurl,a,(function(t){n>1&&(document.getElementById("yasr-loader-select-multi-set").style.display="none");for(var a=JSON.parse(t),i="",s=0;s<a.length;s++){var r=a[s].name,l=a[s].average_rating,d=a[s].id;i+="<tr>",i+="<td>"+r+"</td>",i+='<td><div class="yasr-multiset-admin" id="yasr-multiset-admin-'+d+'" data-rating="'+l+'" data-multi-idfield="'+d+'"></div>',i+='<span id="yasr-loader-multi-set-field-'+d+'" style="display: none">',i+='<img src="'+yasrCommonData.loaderHtml+'" alt="yasr-loader"></span>',i+="</span>",i+="</td>",i+="</tr>",document.getElementById("yasr-table-multi-set-admin").innerHTML=i}document.getElementById("yasr-multi-set-admin-choose-text").style.display="block",function(e){document.getElementById("yasr-multiset-id").value=e;for(var t=document.getElementsByClassName("yasr-multiset-admin"),n=[],a=!1,i=0;i<t.length;i++)!function(e){var i=t.item(e).id,s=document.getElementById(i),r=parseInt(s.getAttribute("data-multi-idfield")),l=parseInt(s.getAttribute("data-rating")),d={field:r,rating:l};n.push(d),o()({starSize:32,step:.5,showToolTip:!1,readOnly:!1,element:s,rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),this.setRating(e);var o={field:r,rating:e};n.push(o),a=JSON.stringify(n),document.getElementById("yasr-multiset-author-votes").value=a,t()}})}(i)}(e),document.getElementById("yasr-multi-set-admin-explain").style.display="block",document.getElementById("yasr-multi-set-admin-explain-with-id-readonly").innerHTML="<strong>[yasr_multiset setid="+e+"]</strong>",document.getElementById("yasr-multi-set-admin-explain-with-id-visitor").innerHTML="<strong>[yasr_visitor_multiset setid="+e+"]</strong>"})),!1}document.addEventListener("DOMContentLoaded",(function(e){!0!==document.body.classList.contains("block-editor-page")&&(!function(){let e=parseFloat(document.getElementById("yasr-overall-rating-value").value);o()({starSize:32,step:.1,showToolTip:!1,rating:e,readOnly:!1,element:document.getElementById("yasr-rater-overall"),rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),document.getElementById("yasr-overall-rating-value").value=e,this.setRating(e);document.getElementById("yasr_overall_text").textContent="You've rated "+e,t()}})}(),jQuery.get(ajaxurl,{action:"yasr_create_shortcode"},(function(e){jQuery(e).appendTo("body").hide(),function(){let e=!1;null!==document.getElementById("yasr-editor-multiset-container")&&(e=!0);const t=document.getElementById("yasr-tinypopup-link-doc");jQuery("#yasr-link-tab-main").on("click",(function(){jQuery(".yasr-nav-tab").removeClass("nav-tab-active"),jQuery("#yasr-link-tab-main").addClass("nav-tab-active"),jQuery(".yasr-content-tab-tinymce").hide(),jQuery("#yasr-content-tab-main").show(),t.setAttribute("href","https://yetanotherstarsrating.com/yasr-basics-shortcode/?utm_source=wp-plugin&utm_medium=tinymce-popup&utm_campaign=yasr_editor_screen")})),jQuery("#yasr-link-tab-charts").on("click",(function(){jQuery(".yasr-nav-tab").removeClass("nav-tab-active"),jQuery("#yasr-link-tab-charts").addClass("nav-tab-active"),jQuery(".yasr-content-tab-tinymce").hide(),jQuery("#yasr-content-tab-charts").show(),t.setAttribute("href","https://yetanotherstarsrating.com/yasr-rankings/?utm_source=wp-plugin&utm_medium=tinymce-popup&utm_campaign=yasr_editor_screen")})),jQuery("#yasr-overall").on("click",(function(){jQuery("#yasr-overall-choose-size").toggle("slow")})),jQuery("#yasr-visitor-votes").on("click",(function(){jQuery("#yasr-visitor-choose-size").toggle("slow")})),jQuery(".yasr-tinymce-shortcode-buttons").on("click",(function(){let e=this.getAttribute("data-shortcode");null==tinyMCE.activeEditor?jQuery("#content").append(e):tinyMCE.activeEditor.execCommand("mceInsertContent",0,e),tb_remove()})),!0===e&&jQuery("#yasr-insert-multiset-select").on("click",(function(){var e=jQuery("input:radio[name=yasr_tinymce_pick_set]:checked").val();let t;t=jQuery("#yasr-allow-vote-multiset").is(":checked")?"[yasr_multiset setid=":"[yasr_visitor_multiset setid=",t+=e,jQuery("#yasr-hide-average-multiset").is(":checked")&&(t+=" show_average='no'"),t+="]",null==tinyMCE.activeEditor?jQuery("#content").append(t):tinyMCE.activeEditor.execCommand("mceInsertContent",0,t),tb_remove()}))}()}))),function(){jQuery("#yasr-metabox-below-editor-structured-data-tab").on("click",(function(e){e.preventDefault(),jQuery(".yasr-nav-tab").removeClass("nav-tab-active"),jQuery("#yasr-metabox-below-editor-structured-data-tab").addClass("nav-tab-active"),jQuery(".yasr-metabox-below-editor-content").hide(),jQuery("#yasr-metabox-below-editor-structured-data").show()})),jQuery("#yasr-metabox-below-editor-multiset-tab").on("click",(function(e){e.preventDefault(),jQuery(".yasr-nav-tab").removeClass("nav-tab-active"),jQuery("#yasr-metabox-below-editor-multiset-tab").addClass("nav-tab-active"),jQuery(".yasr-metabox-below-editor-content").hide(),jQuery("#yasr-metabox-below-editor-multiset").show()}));let e=document.getElementById("yasr-metabox-below-editor-select-schema").value;null!==document.getElementById("yasr-editor-multiset-container")&&function(){let e=document.getElementById("yasr-editor-multiset-container"),t=parseInt(e.getAttribute("data-nmultiset")),n=parseInt(e.getAttribute("data-setid")),a=parseInt(e.getAttribute("data-postid"));s(n,a,t),t>1&&jQuery("#yasr-button-select-set").on("click",(function(){return n=jQuery("#select_set").val(),jQuery("#yasr-loader-select-multi-set").show(),s(n,a,t),!1}))}();i(e)}()})),document.getElementById("yasr-metabox-below-editor-select-schema").addEventListener("change",(function(){i(this.value)}))}]);
1
+ !function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(a,o,function(t){return e[t]}.bind(null,o));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t){function n(e){"Product"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"LocalBusiness"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"Recipe"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"SoftwareApplication"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"Book"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="none"):"Movie"===e?(document.getElementById("yasr-metabox-info-snippet-container").style.display="",document.getElementById("yasr-metabox-info-snippet-container-movie").style.display="",document.getElementById("yasr-metabox-info-snippet-container-recipe").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-localbusiness").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-product").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-software").style.display="none",document.getElementById("yasr-metabox-info-snippet-container-book").style.display="none"):document.getElementById("yasr-metabox-info-snippet-container").style.display="none"}function a(e,t,n){const a={action:"yasr_send_id_nameset",set_id:e,post_id:t};return jQuery.post(ajaxurl,a,(function(t){n>1&&(document.getElementById("yasr-loader-select-multi-set").style.display="none");for(var a=JSON.parse(t),o="",i=0;i<a.length;i++){var s=a[i].name,r=a[i].average_rating,l=a[i].id;o+="<tr>",o+="<td>"+s+"</td>",o+='<td><div class="yasr-multiset-admin" id="yasr-multiset-admin-'+l+'" data-rating="'+r+'" data-multi-idfield="'+l+'"></div>',o+='<span id="yasr-loader-multi-set-field-'+l+'" style="display: none">',o+='<img src="'+yasrCommonData.loaderHtml+'" alt="yasr-loader"></span>',o+="</span>",o+="</td>",o+="</tr>",document.getElementById("yasr-table-multi-set-admin").innerHTML=o}document.getElementById("yasr-multi-set-admin-choose-text").style.display="block",function(e){document.getElementById("yasr-multiset-id").value=e;for(var t=document.getElementsByClassName("yasr-multiset-admin"),n=[],a=!1,o=0;o<t.length;o++)!function(e){var o=t.item(e).id,i=document.getElementById(o),s=parseInt(i.getAttribute("data-multi-idfield")),r=parseInt(i.getAttribute("data-rating")),l={field:s,rating:r};n.push(l),raterJs({starSize:32,step:.5,showToolTip:!1,readOnly:!1,element:i,rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),this.setRating(e);var o={field:s,rating:e};n.push(o),a=JSON.stringify(n),document.getElementById("yasr-multiset-author-votes").value=a,t()}})}(o)}(e),document.getElementById("yasr-multi-set-admin-explain").style.display="block",document.getElementById("yasr-multi-set-admin-explain-with-id-readonly").innerHTML="<strong>[yasr_multiset setid="+e+"]</strong>",document.getElementById("yasr-multi-set-admin-explain-with-id-visitor").innerHTML="<strong>[yasr_visitor_multiset setid="+e+"]</strong>"})),!1}document.addEventListener("DOMContentLoaded",(function(e){!0!==document.body.classList.contains("block-editor-page")&&(!function(){let e=parseFloat(document.getElementById("yasr-overall-rating-value").value);raterJs({starSize:32,step:.1,showToolTip:!1,rating:e,readOnly:!1,element:document.getElementById("yasr-rater-overall"),rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),document.getElementById("yasr-overall-rating-value").value=e,this.setRating(e);document.getElementById("yasr_overall_text").textContent="You've rated "+e,t()}})}(),jQuery.get(ajaxurl,{action:"yasr_create_shortcode"},(function(e){jQuery(e).appendTo("body").hide(),function(){let e=!1;null!==document.getElementById("yasr-editor-multiset-container")&&(e=!0);const t=document.getElementById("yasr-tinypopup-link-doc");jQuery("#yasr-link-tab-main").on("click",(function(){jQuery(".yasr-nav-tab").removeClass("nav-tab-active"),jQuery("#yasr-link-tab-main").addClass("nav-tab-active"),jQuery(".yasr-content-tab-tinymce").hide(),jQuery("#yasr-content-tab-main").show(),t.setAttribute("href","https://yetanotherstarsrating.com/yasr-basics-shortcode/?utm_source=wp-plugin&utm_medium=tinymce-popup&utm_campaign=yasr_editor_screen")})),jQuery("#yasr-link-tab-charts").on("click",(function(){jQuery(".yasr-nav-tab").removeClass("nav-tab-active"),jQuery("#yasr-link-tab-charts").addClass("nav-tab-active"),jQuery(".yasr-content-tab-tinymce").hide(),jQuery("#yasr-content-tab-charts").show(),t.setAttribute("href","https://yetanotherstarsrating.com/yasr-rankings/?utm_source=wp-plugin&utm_medium=tinymce-popup&utm_campaign=yasr_editor_screen")})),jQuery("#yasr-overall").on("click",(function(){jQuery("#yasr-overall-choose-size").toggle("slow")})),jQuery("#yasr-visitor-votes").on("click",(function(){jQuery("#yasr-visitor-choose-size").toggle("slow")})),jQuery(".yasr-tinymce-shortcode-buttons").on("click",(function(){let e=this.getAttribute("data-shortcode");null==tinyMCE.activeEditor?jQuery("#content").append(e):tinyMCE.activeEditor.execCommand("mceInsertContent",0,e),tb_remove()})),!0===e&&jQuery("#yasr-insert-multiset-select").on("click",(function(){var e=jQuery("input:radio[name=yasr_tinymce_pick_set]:checked").val();let t;t=jQuery("#yasr-allow-vote-multiset").is(":checked")?"[yasr_multiset setid=":"[yasr_visitor_multiset setid=",t+=e,jQuery("#yasr-hide-average-multiset").is(":checked")&&(t+=" show_average='no'"),t+="]",null==tinyMCE.activeEditor?jQuery("#content").append(t):tinyMCE.activeEditor.execCommand("mceInsertContent",0,t),tb_remove()}))}()}))),function(){jQuery("#yasr-metabox-below-editor-structured-data-tab").on("click",(function(e){e.preventDefault(),jQuery(".yasr-nav-tab").removeClass("nav-tab-active"),jQuery("#yasr-metabox-below-editor-structured-data-tab").addClass("nav-tab-active"),jQuery(".yasr-metabox-below-editor-content").hide(),jQuery("#yasr-metabox-below-editor-structured-data").show()})),jQuery("#yasr-metabox-below-editor-multiset-tab").on("click",(function(e){e.preventDefault(),jQuery(".yasr-nav-tab").removeClass("nav-tab-active"),jQuery("#yasr-metabox-below-editor-multiset-tab").addClass("nav-tab-active"),jQuery(".yasr-metabox-below-editor-content").hide(),jQuery("#yasr-metabox-below-editor-multiset").show()}));let e=document.getElementById("yasr-metabox-below-editor-select-schema").value;null!==document.getElementById("yasr-editor-multiset-container")&&function(){let e=document.getElementById("yasr-editor-multiset-container"),t=parseInt(e.getAttribute("data-nmultiset")),n=parseInt(e.getAttribute("data-setid")),o=parseInt(e.getAttribute("data-postid"));a(n,o,t),t>1&&jQuery("#yasr-button-select-set").on("click",(function(){return n=jQuery("#select_set").val(),jQuery("#yasr-loader-select-multi-set").show(),a(n,o,t),!1}))}();n(e)}()})),document.getElementById("yasr-metabox-below-editor-select-schema").addEventListener("change",(function(){n(this.value)}))}]);
 
 
admin/js/yasr-gutenberg.js CHANGED
@@ -1,3 +1 @@
1
- !function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t){
2
- /*! Based on rater-js. [c] 2018 by Fredrik Olsson. MIT License */
3
- e.exports=function(e){var t=!0;if(void 0===e.element||null===e.element)throw new Error("element required");if(void 0!==e.showToolTip&&(t=!!e.showToolTip),void 0!==e.step&&(e.step<=0||e.step>1))throw new Error("step must be a number between 0 and 1");var r,n,a=e.starSize||16,o=e.step||1,s=e.onHover,i=e.onLeave,l=JSON.parse(yasrCommonData.isRtl),c=e.element;c.classList.add("yasr-star-rating");var u=document.createElement("div");u.classList.add("yasr-star-value"),u.style.backgroundSize=a+"px",c.appendChild(u),c.style.width=5*a+"px",c.style.height=a+"px",c.style.backgroundSize=a+"px";var d,y,m,f=e.rateCallback,h=!!e.readOnly,p=!1,v=e.isBusyText;if(d=void 0!==e.disableText?e.disableText:"{rating}/{maxRating}",h||(c.style.cursor="pointer"),m=void 0!==e.ratingText?e.ratingText:"{rating}/{maxRating}",e.rating)k(e.rating);else{var g=c.dataset.rating;g&&k(+g)}function b(e){if(!0!==h&&!0!==p){var n;if(!0===l){var a=this.getBoundingClientRect(),i=e.pageX-a.left,u=c.offsetWidth;n=(u-i)/(u/100)}else{n=e.offsetX/c.offsetWidth*100}if(n<101){if(1===o)y=Math.ceil(n/100*5);else for(var d=n/100*5,f=0;;f+=o)if(f>=d){y=f;break}if(y>5&&(y=5),c.querySelector(".yasr-star-value").style.width=y/5*100+"%",t){var v=m.replace("{rating}",y);v=v.replace("{maxRating}",5),c.setAttribute("data-title",v)}"function"==typeof s&&s(y,r)}}}function R(e){void 0!==r?(c.querySelector(".yasr-star-value").style.width=r/5*100+"%",c.setAttribute("data-rating",r)):(c.querySelector(".yasr-star-value").style.width="0%",c.removeAttribute("data-rating")),"function"==typeof i&&i(y,r)}function E(e){!0!==h&&!0!==p&&(void 0===f&&!1===typeof f||(p=!0,n=y,void 0===v?c.removeAttribute("data-title"):c.setAttribute("data-title",v),f.call(this,n,(function(){!1===h&&c.removeAttribute("data-title"),p=!1}))))}function _(){if(h=!0,t&&d){var e=d.replace("{rating}",r);e=e.replace("{maxRating}",5),c.setAttribute("data-title",e)}else c.removeAttribute("data-title")}function k(e){if(-1===e&&(e=void 0),"number"!=typeof e&&void 0!==e)throw new Error("Value must be a number or undefined.");e<0&&(e=0),e>5&&(e=5),r=e,c.querySelector(".yasr-star-value").style.width=e/5*100+"%",c.setAttribute("data-rating",e)}void 0===r&&(c.querySelector(".yasr-star-value").style.width="0px"),h&&_(),c.addEventListener("mousemove",b),c.addEventListener("mouseleave",R);var w={setRating:k,getRating:function(){return r},disable:_,enable:function(){h=!1,c.removeAttribute("data-title")},dispose:function(){c.removeEventListener("mousemove",b),c.removeEventListener("mouseleave",R),c.removeEventListener("click",E)}};return c.addEventListener("click",E.bind(w)),w}},function(e,t,r){r(2),e.exports=r(3)},function(e,t,r){"use strict";r.r(t);var n=r(0),a=r.n(n);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=u(e);if(t){var a=u(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return c(this,r)}}function c(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=wp.i18n.__,y=wp.blocks.registerBlockType,m=wp.components,f=m.PanelBody,h=(m.PanelRow,wp.element.Fragment),p=wp.editor,v=(p.BlockControls,p.InspectorControls),g=d("All these settings are optional","yet-another-stars-rating"),b=d("Choose Size","yet-another-stars-rating"),R=d("Choose stars size","yet-another-stars-rating"),E=d("Small","yet-another-stars-rating"),_=d("Medium","yet-another-stars-rating"),k=d("Large","yet-another-stars-rating"),w=d("Leave this blank if you don't know what you're doing.","yet-another-stars-rating"),A=d("Remember: only the post author can rate here.","yet-another-stars-rating"),S=d("This is the star set where your users will be able to vote","yet-another-stars-rating");function x(){var e=d("To be able to customize this ranking, you need","yet-another-stars-rating"),t=d("You can buy the plugin, including support, updates and upgrades, on","yet-another-stars-rating");return React.createElement("h3",null,e," ",React.createElement("a",{href:"https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings#yasr-pro"},"Yasr Pro."),React.createElement("br",null),t," ",React.createElement("a",{href:"https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings"},"yetanotherstarsrating.com"))}function O(e){return React.createElement("div",null,React.createElement(x,null))}y("yet-another-stars-rating/yasr-overall-rating",{title:d("Yasr: Overall Rating","yet-another-stars-rating"),description:d("Insert the author rating","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[d("rating","yet-another-stars-rating"),d("author","yet-another-stars-rating"),d("overall","yet-another-stars-rating")],attributes:{overallRatingMeta:{type:"number",source:"meta",meta:"yasr_overall_rating"},size:{type:"string",default:"--"},postId:{type:"string",default:"--"}},edit:function(e){var t,r=e.attributes,n=r.overallRatingMeta,o=r.size,c=r.postId,u=e.setAttributes,y=e.isSelected,m=n,p=null,S=null;"--"!==o&&(p=' size="'+o+'"'),t=/^\d+$/.test(c),"--"!==c&&!0===t&&(S=' postid="'+c+'"');var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(c,React.Component);var t,r,n,o=l(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=o.call(this,e)).yasrOverallRateThis=d("Rate this article / item","yet-another-stars-rating"),t}return t=c,(r=[{key:"render",value:function(){return React.createElement("div",null,this.yasrOverallRateThis,React.createElement("div",null,React.createElement("div",{id:"overall-rater",ref:function(){return a()({starSize:32,step:.1,showToolTip:!1,rating:m,readOnly:!1,element:document.querySelector("#overall-rater"),rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),u({overallRatingMeta:e}),this.setRating(e),t()}})}})))}}])&&s(t.prototype,r),n&&s(t,n),c}();function O(){return React.createElement("form",null,React.createElement("select",{value:o,onChange:P},React.createElement("option",{value:"--"},R),React.createElement("option",{value:"small"},E),React.createElement("option",{value:"medium"},_),React.createElement("option",{value:"large"},k)))}function P(e){var t=e.target.querySelector("option:checked");u({size:t.value}),e.preventDefault()}function T(){return React.createElement("div",null,React.createElement("input",{type:"text",size:"4",onKeyPress:I}))}function I(e){if("Enter"===e.key){var t=e.target.value;!0!==/^\d+$/.test(t)&&""!==t||u({postId:t}),e.preventDefault()}}function N(e){return React.createElement(v,null,React.createElement("div",{class:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement(x,null)),React.createElement(f,{title:"Settings"},React.createElement("h3",null,g),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,b),React.createElement("div",null,React.createElement(O,null))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(T,null),React.createElement("div",{className:"yasr-guten-block-explain"},w)),React.createElement("div",{className:"yasr-guten-block-panel"},A)))}return React.createElement(h,null,React.createElement(N,null),React.createElement("div",{className:e.className},"[yasr_overall_rating",p,S,"]",y&&React.createElement(O,null)))},save:function(e){var t=e.attributes,r=t.size,n=t.postId,a="",o=n;return r&&(a+='size="'+r+'"'),n&&("--"===n&&(o=wp.data.select("core/editor").getCurrentPostId()),a+=' postid="'+o+'"'),React.createElement("div",null,"[yasr_overall_rating ",a,"]")}}),y("yet-another-stars-rating/yasr-visitor-votes",{title:d("Yasr: Visitor Votes","yet-another-stars-rating"),description:d("Insert the ability for your visitors to vote","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[d("rating","yet-another-stars-rating"),d("visitor","yet-another-stars-rating"),d("votes","yet-another-stars-rating")],attributes:{size:{type:"string",default:"--"},postId:{type:"string",default:"--"}},edit:function(e){var t,r=e.attributes,n=r.size,a=r.postId,o=e.setAttributes,s=e.isSelected,i=null,l=null;function c(){return React.createElement("form",null,React.createElement("select",{value:n,onChange:u},React.createElement("option",{value:"--"},R),React.createElement("option",{value:"small"},E),React.createElement("option",{value:"medium"},_),React.createElement("option",{value:"large"},k)))}function u(e){var t=e.target.querySelector("option:checked");o({size:t.value}),e.preventDefault()}function d(){return React.createElement("div",null,React.createElement("input",{type:"text",size:"4",onKeyPress:y}))}function y(e){if("Enter"===e.key){var t=e.target.value;!0!==/^\d+$/.test(t)&&""!==t||o({postId:t}),e.preventDefault()}}function m(e){return React.createElement(v,null,React.createElement(f,{title:"Settings"},React.createElement("h3",null,g),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,b),React.createElement("div",null,React.createElement(c,null))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(d,null),React.createElement("div",{className:"yasr-guten-block-explain"},w)),React.createElement("div",{className:"yasr-guten-block-panel"},S)))}return t=/^\d+$/.test(a),"--"!==n&&(i=' size="'+n+'"'),"--"!==a&&!0===t&&(l=' postid="'+a+'"'),React.createElement(h,null,React.createElement(m,null),React.createElement("div",{className:e.className},"[yasr_visitor_votes",i,l,"]",s&&React.createElement(c,null)))},save:function(e){var t=e.attributes,r=t.size,n=t.postId,a="",o=n;return r&&(a+='size="'+r+'"'),n&&("--"===n&&(o=wp.data.select("core/editor").getCurrentPostId()),a+=' postid="'+o+'"'),React.createElement("div",null,"[yasr_visitor_votes ",a,"]")}}),y("yet-another-stars-rating/overall-rating-ranking",{title:d("Yasr: Ranking by overall rating","yet-another-stars-rating"),description:d("This ranking shows the highest rated posts rated through the overall_rating shortcode.","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[d("ranking","yet-another-stars-rating"),d("highest","yet-another-stars-rating"),d("chart","yet-another-stars-rating")],edit:function(e){var t=[React.createElement(O,{key:0})];function r(e){return React.createElement(v,null,React.createElement(f,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,t))))}return wp.hooks.doAction("yasr_overall_rating_rankings",t),React.createElement(h,null,React.createElement(r,null),React.createElement("div",{className:e.className},"[yasr_ov_ranking]"))},save:function(e){return React.createElement("div",null,"[yasr_ov_ranking]")}}),y("yet-another-stars-rating/visitor-votes-ranking",{title:d("Yasr: Ranking by visitors votes","yet-another-stars-rating"),description:d("This ranking shows both the highest and most rated posts rated through the yasr_visitor_votes shortcode. For an item to appear in this chart, it has to be rated at least twice. ","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[d("ranking","yet-another-stars-rating"),d("highest","yet-another-stars-rating"),d("most","yet-another-stars-rating"),d("chart","yet-another-stars-rating")],edit:function(e){var t=[React.createElement(O,{key:0})];function r(e){return React.createElement(v,null,React.createElement(f,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,t))))}return wp.hooks.doAction("yasr_visitor_votes_rankings",t),React.createElement(h,null,React.createElement(r,null),React.createElement("div",{className:e.className},"[yasr_most_or_highest_rated_posts]"))},save:function(e){return React.createElement("div",null,"[yasr_most_or_highest_rated_posts]")}}),y("yet-another-stars-rating/most-active-reviewers",{title:d("Yasr: Most Active Authors","yet-another-stars-rating"),description:d("This ranking shows the most active reviewers on your site.","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[d("ranking","yet-another-stars-rating"),d("highest","yet-another-stars-rating"),d("most","yet-another-stars-rating"),d("chart","yet-another-stars-rating"),d("authors","yet-another-stars-rating")],edit:function(e){var t=[React.createElement(O,{key:0})];function r(e){return React.createElement(v,null,React.createElement(f,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,t))))}return wp.hooks.doAction("yasr_top_reviewers_setting",t),React.createElement(h,null,React.createElement(r,null),React.createElement("div",{className:e.className},"[yasr_top_reviewers]"))},save:function(e){return React.createElement("div",null,"[yasr_top_reviewers]")}}),y("yet-another-stars-rating/most-active-users",{title:d("Yasr: Most Active Visitors","yet-another-stars-rating"),description:d("This ranking shows the most active users, displaying the login name if logged in or “Anonymous” if not.","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[d("ranking","yet-another-stars-rating"),d("highest","yet-another-stars-rating"),d("most","yet-another-stars-rating"),d("chart","yet-another-stars-rating"),d("visitors","yet-another-stars-rating")],edit:function(e){var t=[React.createElement(O,{key:0})];function r(e){return React.createElement(v,null,React.createElement(f,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,t))))}return wp.hooks.doAction("yasr_top_visitor_setting",t),React.createElement(h,null,React.createElement(r,null),React.createElement("div",{className:e.className},"[yasr_most_active_users]"))},save:function(e){return React.createElement("div",null,"[yasr_most_active_users]")}})},function(e,t,r){"use strict";r.r(t);var n=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var a=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(e){return function(t,r,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(a(t)&&n(r))if("function"==typeof o)if("number"==typeof s){var i={callback:o,priority:s,namespace:r};if(e[t]){var l,c=e[t].handlers;for(l=c.length;l>0&&!(s>=c[l-1].priority);l--);l===c.length?c[l]=i:c.splice(l,0,i),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=l&&e.currentIndex++}))}else e[t]={handlers:[i],runs:0};"hookAdded"!==t&&m("hookAdded",t,r,o,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var s=function(e,t){return function(r,o){if(a(r)&&(t||n(o))){if(!e[r])return 0;var s=0;if(t)s=e[r].handlers.length,e[r]={runs:e[r].runs,handlers:[]};else for(var i=e[r].handlers,l=function(t){i[t].namespace===o&&(i.splice(t,1),s++,(e.__current||[]).forEach((function(e){e.name===r&&e.currentIndex>=t&&e.currentIndex--})))},c=i.length-1;c>=0;c--)l(c);return"hookRemoved"!==r&&m("hookRemoved",r,o),s}}};var i=function(e){return function(t,r){return void 0!==r?t in e&&e[t].handlers.some((function(e){return e.namespace===r})):t in e}};var l=function(e,t){return function(r){e[r]||(e[r]={handlers:[],runs:0}),e[r].runs++;var n=e[r].handlers;for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];if(!n||!n.length)return t?o[0]:void 0;var i={name:r,currentIndex:0};for(e.__current.push(i);i.currentIndex<n.length;){var l=n[i.currentIndex],c=l.callback.apply(null,o);t&&(o[0]=c),i.currentIndex++}return e.__current.pop(),t?o[0]:void 0}};var c=function(e){return function(){return e.__current&&e.__current.length?e.__current[e.__current.length-1].name:null}};var u=function(e){return function(t){return void 0===t?void 0!==e.__current[0]:!!e.__current[0]&&t===e.__current[0].name}};var d=function(e){return function(t){if(a(t))return e[t]&&e[t].runs?e[t].runs:0}};var y=function(){var e=Object.create(null),t=Object.create(null);return e.__current=[],t.__current=[],{addAction:o(e),addFilter:o(t),removeAction:s(e),removeFilter:s(t),hasAction:i(e),hasFilter:i(t),removeAllActions:s(e,!0),removeAllFilters:s(t,!0),doAction:l(e),applyFilters:l(t,!0),currentAction:c(e),currentFilter:c(t),doingAction:u(e),doingFilter:u(t),didAction:d(e),didFilter:d(t),actions:e,filters:t}}(),m=(y.addAction,y.addFilter,y.removeAction,y.removeFilter,y.hasAction,y.hasFilter,y.removeAllActions,y.removeAllFilters,y.doAction),f=(y.applyFilters,y.currentAction,y.currentFilter,y.doingAction,y.doingFilter,y.didAction,y.didFilter,y.actions,y.filters,r(0)),h=r.n(f);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function b(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),e}function R(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=A(e);if(t){var a=A(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return k(this,r)}}function k(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=wp.i18n.__,x=wp.plugins.registerPlugin,O=wp.editPost,P=O.PluginSidebar,T=O.PluginSidebarMoreMenuItem,I=wp.components,N=(I.TextControl,I.PanelBody),C=(I.PanelRow,wp.editor),z=(C.BlockControls,C.InspectorControls,wp.element.Fragment),F=S("Disable auto insert for this post or page?","yet-another-stars-rating"),j=(S("Rich snippet options","yet-another-stars-rating"),S("Is this a review?","yet-another-stars-rating"),S("Select ItemType ","yet-another-stars-rating"),function(){return React.createElement("div",null)}),M=function(e){R(r,React.Component);var t=_(r);function r(e){var n;return v(this,r),(n=t.call(this,e)).yasrOverallRateThis=S("Rate this article / item","yet-another-stars-rating"),n.yasrOverallMoreInfo=S('This is the same value that you find the "Yasr: Overall Rating" block.',"yet-another-stars-rating"),n}return b(r,[{key:"shouldComponentUpdate",value:function(e,t){return!1}}]),b(r,[{key:"printDivOverallRater",value:function(){return React.createElement("div",null,React.createElement("div",{id:"overall-rater-panel",ref:function(){return h()({starSize:32,step:.1,showToolTip:!1,rating:wp.data.select("core/editor").getCurrentPost().meta.yasr_overall_rating,readOnly:!1,element:document.querySelector("#overall-rater-panel"),rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),wp.data.dispatch("core/editor").editPost({meta:{yasr_overall_rating:e}}),this.setRating(e),t()}})}}),React.createElement("br",null),this.yasrOverallMoreInfo)}},{key:"render",value:function(){return React.createElement("div",null,this.yasrOverallRateThis,React.createElement("div",null,this.printDivOverallRater()))}}]),r}(),D=function(e){R(r,React.Component);var t=_(r);function r(e){var n;v(this,r),n=t.call(this,e);var a=!1;return"yes"===wp.data.select("core/editor").getCurrentPost().meta.yasr_auto_insert_disabled&&(a=!0),n.state={postExcluded:a},n.yasrUpdatePostMetaAutoInsert=n.yasrUpdatePostMetaAutoInsert.bind(w(n)),n}return b(r,[{key:"yasrUpdatePostMetaAutoInsert",value:function(e){var t=e.target,r="checkbox"===t.type?t.checked:t.value;this.setState({postExcluded:r}),!0===r?wp.data.dispatch("core/editor").editPost({meta:{yasr_auto_insert_disabled:"yes"}}):wp.data.dispatch("core/editor").editPost({meta:{yasr_auto_insert_disabled:"no"}})}},{key:"render",value:function(){return React.createElement("div",{className:"yasr-guten-block-panel-center"},React.createElement("hr",null),React.createElement("label",null,React.createElement("span",null,F)),React.createElement("div",{className:"yasr-onoffswitch-big yasr-onoffswitch-big-center",id:"yasr-switcher-disable-auto-insert"},React.createElement("input",{type:"checkbox",name:"yasr_auto_insert_disabled",className:"yasr-onoffswitch-checkbox",value:"yes",id:"yasr-auto-insert-disabled-switch",defaultChecked:this.state.postExcluded,onChange:this.yasrUpdatePostMetaAutoInsert}),React.createElement("label",{className:"yasr-onoffswitch-label",htmlFor:"yasr-auto-insert-disabled-switch"},React.createElement("span",{className:"yasr-onoffswitch-inner"}),React.createElement("span",{className:"yasr-onoffswitch-switch"}))))}}]),r}(),Y=function(e){R(r,React.Component);var t=_(r);function r(e){var n;v(this,r),n=t.call(this,e);var a=!1;return"disabled"!==yasrConstantGutenberg.autoInsert&&(a=!0),n.state={yasrAutoInsertEnabled:a},n}return b(r,[{key:"render",value:function(){var e=[React.createElement(j,{key:0})];return wp.hooks.doAction("yasr_below_panel",e),React.createElement(z,null,React.createElement(T,{name:"yasr-sidebar",type:"sidebar",target:"yasr-guten-sidebar"},S("YASR post settings","yet-another-stars-rating")),React.createElement(P,{name:"yasr-guten-sidebar",title:"YASR Settings"},React.createElement(N,null,React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement(M,null),this.state.yasrAutoInsertEnabled&&React.createElement(D,null),e))))}}]),r}();x("yasr-sidebar",{icon:"star-half",title:S("Yasr: Page Settings","yet-another-stars-rating"),render:Y})}]);
1
+ !function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){r(1),e.exports=r(2)},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=i(e);if(t){var a=i(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return s(this,r)}}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=wp.i18n.__,c=wp.blocks.registerBlockType,u=wp.components,y=u.PanelBody,d=(u.PanelRow,wp.element.Fragment),m=wp.editor,h=(m.BlockControls,m.InspectorControls),f=l("All these settings are optional","yet-another-stars-rating"),p=l("Choose Size","yet-another-stars-rating"),g=l("Choose stars size","yet-another-stars-rating"),v=l("Small","yet-another-stars-rating"),R=l("Medium","yet-another-stars-rating"),b=l("Large","yet-another-stars-rating"),_=l("Leave this blank if you don't know what you're doing.","yet-another-stars-rating"),E=l("Remember: only the post author can rate here.","yet-another-stars-rating"),k=l("This is the star set where your users will be able to vote","yet-another-stars-rating");function w(){var e=l("To be able to customize this ranking, you need","yet-another-stars-rating"),t=l("You can buy the plugin, including support, updates and upgrades, on","yet-another-stars-rating");return React.createElement("h3",null,e," ",React.createElement("a",{href:"https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings#yasr-pro"},"Yasr Pro."),React.createElement("br",null),t," ",React.createElement("a",{href:"https://yetanotherstarsrating.com/?utm_source=wp-plugin&utm_medium=gutenberg_panel&utm_campaign=yasr_editor_screen&utm_content=rankings"},"yetanotherstarsrating.com"))}function A(e){return React.createElement("div",null,React.createElement(w,null))}c("yet-another-stars-rating/yasr-overall-rating",{title:l("Yasr: Overall Rating","yet-another-stars-rating"),description:l("Insert the author rating","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[l("rating","yet-another-stars-rating"),l("author","yet-another-stars-rating"),l("overall","yet-another-stars-rating")],attributes:{overallRatingMeta:{type:"number",source:"meta",meta:"yasr_overall_rating"},size:{type:"string",default:"--"},postId:{type:"string",default:"--"}},edit:function(e){var t,r=e.attributes,s=r.overallRatingMeta,i=r.size,c=r.postId,u=e.setAttributes,m=e.isSelected,k=s,w=null,A=null;"--"!==i&&(w=' size="'+i+'"'),t=/^\d+$/.test(c),"--"!==c&&!0===t&&(A=' postid="'+c+'"');var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(c,React.Component);var t,r,s,i=o(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,e)).yasrOverallRateThis=l("Rate this article / item","yet-another-stars-rating"),t}return t=c,(r=[{key:"render",value:function(){return React.createElement("div",null,this.yasrOverallRateThis,React.createElement("div",null,React.createElement("div",{id:"overall-rater",ref:function(){return raterJs({starSize:32,step:.1,showToolTip:!1,rating:k,readOnly:!1,element:document.querySelector("#overall-rater"),rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),u({overallRatingMeta:e}),this.setRating(e),t()}})}})))}}])&&n(t.prototype,r),s&&n(t,s),c}();function P(){return React.createElement("form",null,React.createElement("select",{value:i,onChange:O},React.createElement("option",{value:"--"},g),React.createElement("option",{value:"small"},v),React.createElement("option",{value:"medium"},R),React.createElement("option",{value:"large"},b)))}function O(e){var t=e.target.querySelector("option:checked");u({size:t.value}),e.preventDefault()}function I(){return React.createElement("div",null,React.createElement("input",{type:"text",size:"4",onKeyPress:x}))}function x(e){if("Enter"===e.key){var t=e.target.value;!0!==/^\d+$/.test(t)&&""!==t||u({postId:t}),e.preventDefault()}}function N(e){return React.createElement(h,null,React.createElement("div",{class:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement(S,null)),React.createElement(y,{title:"Settings"},React.createElement("h3",null,f),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,p),React.createElement("div",null,React.createElement(P,null))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(I,null),React.createElement("div",{className:"yasr-guten-block-explain"},_)),React.createElement("div",{className:"yasr-guten-block-panel"},E)))}return React.createElement(d,null,React.createElement(N,null),React.createElement("div",{className:e.className},"[yasr_overall_rating",w,A,"]",m&&React.createElement(P,null)))},save:function(e){var t=e.attributes,r=t.size,n=t.postId,a="",o=n;return r&&(a+='size="'+r+'"'),n&&("--"===n&&(o=wp.data.select("core/editor").getCurrentPostId()),a+=' postid="'+o+'"'),React.createElement("div",null,"[yasr_overall_rating ",a,"]")}}),c("yet-another-stars-rating/yasr-visitor-votes",{title:l("Yasr: Visitor Votes","yet-another-stars-rating"),description:l("Insert the ability for your visitors to vote","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[l("rating","yet-another-stars-rating"),l("visitor","yet-another-stars-rating"),l("votes","yet-another-stars-rating")],attributes:{size:{type:"string",default:"--"},postId:{type:"string",default:"--"}},edit:function(e){var t,r=e.attributes,n=r.size,a=r.postId,o=e.setAttributes,s=e.isSelected,i=null,l=null;function c(){return React.createElement("form",null,React.createElement("select",{value:n,onChange:u},React.createElement("option",{value:"--"},g),React.createElement("option",{value:"small"},v),React.createElement("option",{value:"medium"},R),React.createElement("option",{value:"large"},b)))}function u(e){var t=e.target.querySelector("option:checked");o({size:t.value}),e.preventDefault()}function m(){return React.createElement("div",null,React.createElement("input",{type:"text",size:"4",onKeyPress:E}))}function E(e){if("Enter"===e.key){var t=e.target.value;!0!==/^\d+$/.test(t)&&""!==t||o({postId:t}),e.preventDefault()}}function w(e){return React.createElement(h,null,React.createElement(y,{title:"Settings"},React.createElement("h3",null,f),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,p),React.createElement("div",null,React.createElement(c,null))),React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("label",null,"Post ID"),React.createElement(m,null),React.createElement("div",{className:"yasr-guten-block-explain"},_)),React.createElement("div",{className:"yasr-guten-block-panel"},k)))}return t=/^\d+$/.test(a),"--"!==n&&(i=' size="'+n+'"'),"--"!==a&&!0===t&&(l=' postid="'+a+'"'),React.createElement(d,null,React.createElement(w,null),React.createElement("div",{className:e.className},"[yasr_visitor_votes",i,l,"]",s&&React.createElement(c,null)))},save:function(e){var t=e.attributes,r=t.size,n=t.postId,a="",o=n;return r&&(a+='size="'+r+'"'),n&&("--"===n&&(o=wp.data.select("core/editor").getCurrentPostId()),a+=' postid="'+o+'"'),React.createElement("div",null,"[yasr_visitor_votes ",a,"]")}}),c("yet-another-stars-rating/overall-rating-ranking",{title:l("Yasr: Ranking by overall rating","yet-another-stars-rating"),description:l("This ranking shows the highest rated posts rated through the overall_rating shortcode.","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[l("ranking","yet-another-stars-rating"),l("highest","yet-another-stars-rating"),l("chart","yet-another-stars-rating")],edit:function(e){var t=[React.createElement(A,{key:0})];function r(e){return React.createElement(h,null,React.createElement(y,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,t))))}return wp.hooks.doAction("yasr_overall_rating_rankings",t),React.createElement(d,null,React.createElement(r,null),React.createElement("div",{className:e.className},"[yasr_ov_ranking]"))},save:function(e){return React.createElement("div",null,"[yasr_ov_ranking]")}}),c("yet-another-stars-rating/visitor-votes-ranking",{title:l("Yasr: Ranking by visitors votes","yet-another-stars-rating"),description:l("This ranking shows both the highest and most rated posts rated through the yasr_visitor_votes shortcode. For an item to appear in this chart, it has to be rated at least twice. ","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[l("ranking","yet-another-stars-rating"),l("highest","yet-another-stars-rating"),l("most","yet-another-stars-rating"),l("chart","yet-another-stars-rating")],edit:function(e){var t=[React.createElement(A,{key:0})];function r(e){return React.createElement(h,null,React.createElement(y,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,t))))}return wp.hooks.doAction("yasr_visitor_votes_rankings",t),React.createElement(d,null,React.createElement(r,null),React.createElement("div",{className:e.className},"[yasr_most_or_highest_rated_posts]"))},save:function(e){return React.createElement("div",null,"[yasr_most_or_highest_rated_posts]")}}),c("yet-another-stars-rating/most-active-reviewers",{title:l("Yasr: Most Active Authors","yet-another-stars-rating"),description:l("This ranking shows the most active reviewers on your site.","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[l("ranking","yet-another-stars-rating"),l("highest","yet-another-stars-rating"),l("most","yet-another-stars-rating"),l("chart","yet-another-stars-rating"),l("authors","yet-another-stars-rating")],edit:function(e){var t=[React.createElement(A,{key:0})];function r(e){return React.createElement(h,null,React.createElement(y,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,t))))}return wp.hooks.doAction("yasr_top_reviewers_setting",t),React.createElement(d,null,React.createElement(r,null),React.createElement("div",{className:e.className},"[yasr_top_reviewers]"))},save:function(e){return React.createElement("div",null,"[yasr_top_reviewers]")}}),c("yet-another-stars-rating/most-active-users",{title:l("Yasr: Most Active Visitors","yet-another-stars-rating"),description:l("This ranking shows the most active users, displaying the login name if logged in or “Anonymous” if not.","yet-another-stars-rating"),icon:"star-half",category:"yet-another-stars-rating",keywords:[l("ranking","yet-another-stars-rating"),l("highest","yet-another-stars-rating"),l("most","yet-another-stars-rating"),l("chart","yet-another-stars-rating"),l("visitors","yet-another-stars-rating")],edit:function(e){var t=[React.createElement(A,{key:0})];function r(e){return React.createElement(h,null,React.createElement(y,{title:"Settings"},React.createElement("div",{className:"yasr-guten-block-panel"},React.createElement("div",null,t))))}return wp.hooks.doAction("yasr_top_visitor_setting",t),React.createElement(d,null,React.createElement(r,null),React.createElement("div",{className:e.className},"[yasr_most_active_users]"))},save:function(e){return React.createElement("div",null,"[yasr_most_active_users]")}})},function(e,t,r){"use strict";r.r(t);var n=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var a=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var o=function(e){return function(t,r,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(a(t)&&n(r))if("function"==typeof o)if("number"==typeof s){var i={callback:o,priority:s,namespace:r};if(e[t]){var l,c=e[t].handlers;for(l=c.length;l>0&&!(s>=c[l-1].priority);l--);l===c.length?c[l]=i:c.splice(l,0,i),(e.__current||[]).forEach((function(e){e.name===t&&e.currentIndex>=l&&e.currentIndex++}))}else e[t]={handlers:[i],runs:0};"hookAdded"!==t&&m("hookAdded",t,r,o,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var s=function(e,t){return function(r,o){if(a(r)&&(t||n(o))){if(!e[r])return 0;var s=0;if(t)s=e[r].handlers.length,e[r]={runs:e[r].runs,handlers:[]};else for(var i=e[r].handlers,l=function(t){i[t].namespace===o&&(i.splice(t,1),s++,(e.__current||[]).forEach((function(e){e.name===r&&e.currentIndex>=t&&e.currentIndex--})))},c=i.length-1;c>=0;c--)l(c);return"hookRemoved"!==r&&m("hookRemoved",r,o),s}}};var i=function(e){return function(t,r){return void 0!==r?t in e&&e[t].handlers.some((function(e){return e.namespace===r})):t in e}};var l=function(e,t){return function(r){e[r]||(e[r]={handlers:[],runs:0}),e[r].runs++;var n=e[r].handlers;for(var a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];if(!n||!n.length)return t?o[0]:void 0;var i={name:r,currentIndex:0};for(e.__current.push(i);i.currentIndex<n.length;){var l=n[i.currentIndex],c=l.callback.apply(null,o);t&&(o[0]=c),i.currentIndex++}return e.__current.pop(),t?o[0]:void 0}};var c=function(e){return function(){return e.__current&&e.__current.length?e.__current[e.__current.length-1].name:null}};var u=function(e){return function(t){return void 0===t?void 0!==e.__current[0]:!!e.__current[0]&&t===e.__current[0].name}};var y=function(e){return function(t){if(a(t))return e[t]&&e[t].runs?e[t].runs:0}};var d=function(){var e=Object.create(null),t=Object.create(null);return e.__current=[],t.__current=[],{addAction:o(e),addFilter:o(t),removeAction:s(e),removeFilter:s(t),hasAction:i(e),hasFilter:i(t),removeAllActions:s(e,!0),removeAllFilters:s(t,!0),doAction:l(e),applyFilters:l(t,!0),currentAction:c(e),currentFilter:c(t),doingAction:u(e),doingFilter:u(t),didAction:y(e),didFilter:y(t),actions:e,filters:t}}(),m=(d.addAction,d.addFilter,d.removeAction,d.removeFilter,d.hasAction,d.hasFilter,d.removeAllActions,d.removeAllFilters,d.doAction);d.applyFilters,d.currentAction,d.currentFilter,d.doingAction,d.doingFilter,d.didAction,d.didFilter,d.actions,d.filters;function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function g(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),e}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var a=k(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=wp.i18n.__,A=wp.plugins.registerPlugin,S=wp.editPost,P=S.PluginSidebar,O=S.PluginSidebarMoreMenuItem,I=wp.components,x=(I.TextControl,I.PanelBody),N=(I.PanelRow,wp.editor),T=(N.BlockControls,N.InspectorControls,wp.element.Fragment),C=w("Disable auto insert for this post or page?","yet-another-stars-rating"),F=(w("Rich snippet options","yet-another-stars-rating"),w("Is this a review?","yet-another-stars-rating"),w("Select ItemType ","yet-another-stars-rating"),function(){return React.createElement("div",null)}),j=function(e){v(r,React.Component);var t=b(r);function r(e){var n;return f(this,r),(n=t.call(this,e)).yasrOverallRateThis=w("Rate this article / item","yet-another-stars-rating"),n.yasrOverallMoreInfo=w('This is the same value that you find the "Yasr: Overall Rating" block.',"yet-another-stars-rating"),n}return g(r,[{key:"shouldComponentUpdate",value:function(e,t){return!1}}]),g(r,[{key:"printDivOverallRater",value:function(){return React.createElement("div",null,React.createElement("div",{id:"overall-rater-panel",ref:function(){return raterJs({starSize:32,step:.1,showToolTip:!1,rating:wp.data.select("core/editor").getCurrentPost().meta.yasr_overall_rating,readOnly:!1,element:document.querySelector("#overall-rater-panel"),rateCallback:function(e,t){e=e.toFixed(1),e=parseFloat(e),wp.data.dispatch("core/editor").editPost({meta:{yasr_overall_rating:e}}),this.setRating(e),t()}})}}),React.createElement("br",null),this.yasrOverallMoreInfo)}},{key:"render",value:function(){return React.createElement("div",null,this.yasrOverallRateThis,React.createElement("div",null,this.printDivOverallRater()))}}]),r}(),z=function(e){v(r,React.Component);var t=b(r);function r(e){var n;f(this,r),n=t.call(this,e);var a=!1;return"yes"===wp.data.select("core/editor").getCurrentPost().meta.yasr_auto_insert_disabled&&(a=!0),n.state={postExcluded:a},n.yasrUpdatePostMetaAutoInsert=n.yasrUpdatePostMetaAutoInsert.bind(E(n)),n}return g(r,[{key:"yasrUpdatePostMetaAutoInsert",value:function(e){var t=e.target,r="checkbox"===t.type?t.checked:t.value;this.setState({postExcluded:r}),!0===r?wp.data.dispatch("core/editor").editPost({meta:{yasr_auto_insert_disabled:"yes"}}):wp.data.dispatch("core/editor").editPost({meta:{yasr_auto_insert_disabled:"no"}})}},{key:"render",value:function(){return React.createElement("div",{className:"yasr-guten-block-panel-center"},React.createElement("hr",null),React.createElement("label",null,React.createElement("span",null,C)),React.createElement("div",{className:"yasr-onoffswitch-big yasr-onoffswitch-big-center",id:"yasr-switcher-disable-auto-insert"},React.createElement("input",{type:"checkbox",name:"yasr_auto_insert_disabled",className:"yasr-onoffswitch-checkbox",value:"yes",id:"yasr-auto-insert-disabled-switch",defaultChecked:this.state.postExcluded,onChange:this.yasrUpdatePostMetaAutoInsert}),React.createElement("label",{className:"yasr-onoffswitch-label",htmlFor:"yasr-auto-insert-disabled-switch"},React.createElement("span",{className:"yasr-onoffswitch-inner"}),React.createElement("span",{className:"yasr-onoffswitch-switch"}))))}}]),r}(),M=function(e){v(r,React.Component);var t=b(r);function r(e){var n;f(this,r),n=t.call(this,e);var a=!1;return"disabled"!==yasrConstantGutenberg.autoInsert&&(a=!0),n.state={yasrAutoInsertEnabled:a},n}return g(r,[{key:"render",value:function(){var e=[React.createElement(F,{key:0})];return wp.hooks.doAction("yasr_below_panel",e),React.createElement(T,null,React.createElement(O,{name:"yasr-sidebar",type:"sidebar",target:"yasr-guten-sidebar"},w("YASR post settings","yet-another-stars-rating")),React.createElement(P,{name:"yasr-guten-sidebar",title:"YASR Settings"},React.createElement(x,null,React.createElement("div",{className:"yasr-guten-block-panel yasr-guten-block-panel-center"},React.createElement(j,null),this.state.yasrAutoInsertEnabled&&React.createElement(z,null),e))))}}]),r}();A("yasr-sidebar",{icon:"star-half",title:w("Yasr: Page Settings","yet-another-stars-rating"),render:M})}]);
 
 
admin/js/yasr-settings.js CHANGED
@@ -1,32 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";e.exports=n(6)},function(e,t,n){"use strict";var r;if(n.r(t),n.d(t,"activeTab",(function(){return r})),document.getElementsByClassName("nav-tab-active").length>0&&(r=document.getElementsByClassName("nav-tab-active")[0].id),"general_settings"===r){var a=document.getElementById("yasr_auto_insert_switch").checked,l=document.getElementById("yasr-general-options-stars-title-switch").checked,o=document.getElementById("yasr-general-options-text-before-stars-switch").checked;!1===a&&jQuery(".yasr-auto-insert-options-class").prop("disabled",!0),!1===l&&jQuery(".yasr-stars-title-options-class").prop("disabled",!0),jQuery("#yasr_auto_insert_switch").change((function(){jQuery(this).is(":checked")?jQuery(".yasr-auto-insert-options-class").prop("disabled",!1):jQuery(".yasr-auto-insert-options-class").prop("disabled",!0)})),jQuery("#yasr-general-options-stars-title-switch").change((function(){jQuery(this).is(":checked")?jQuery(".yasr-stars-title-options-class").prop("disabled",!1):jQuery(".yasr-stars-title-options-class").prop("disabled",!0)})),!1===o&&jQuery(".yasr-general-options-text-before").find(":input").prop("disabled",!0),jQuery("#yasr-general-options-text-before-stars-switch").change((function(){jQuery(this).is(":checked")?(jQuery(".yasr-general-options-text-before").find(":input").prop("disabled",!1),jQuery("#yasr-general-options-custom-text-before-overall").val("Our Score"),jQuery("#yasr-general-options-custom-text-before-visitor").val("Click to rate this post!"),jQuery("#yasr-general-options-custom-text-after-visitor").val("[Total: %total_count% Average: %average%]"),jQuery("#yasr-general-options-custom-text-must-sign-in").val("You must sign in to vote"),jQuery("#yasr-general-options-custom-text-already-rated").val("You have already voted for this article")):jQuery(".yasr-general-options-text-before").find(":input").prop("disabled",!0)})),jQuery("#yasr-doc-custom-text-link").on("click",(function(){return jQuery("#yasr-doc-custom-text-div").toggle("slow"),!1})),jQuery("#yasr-stats-explained-link").on("click",(function(){return jQuery("#yasr-stats-explained").toggle("slow"),!1}))}if("manage_multi"===r){var i=parseInt(document.getElementById("n-multiset").value);if(jQuery("#yasr-multi-set-doc-link").on("click",(function(){jQuery("#yasr-multi-set-doc-box").toggle("slow")})),jQuery("#yasr-multi-set-doc-link-hide").on("click",(function(){jQuery("#yasr-multi-set-doc-box").toggle("slow")})),1===i){var u=jQuery("#yasr-edit-form-number-elements").attr("value");u++,jQuery("#yasr-add-field-edit-multiset").on("click",(function(){if(u>9)return jQuery("#yasr-element-limit").show(),jQuery("#yasr-add-field-edit-multiset").hide(),!1;var e=jQuery(document.createElement("tr"));e.html('<td colspan="2">Element #'+u+' <input type="text" name="edit-multi-set-element-'+u+'" value="" ></td>'),e.appendTo("#yasr-table-form-edit-multi-set"),u++}))}else i>1&&(jQuery("#yasr-button-select-set-edit-form").on("click",(function(){var e={action:"yasr_get_multi_set",set_id:jQuery("#yasr_select_edit_set").val()};return jQuery.post(ajaxurl,e,(function(e){jQuery("#yasr-multi-set-response").show(),jQuery("#yasr-multi-set-response").html(e)})),!1})),jQuery(document).ajaxComplete((function(){var e=jQuery("#yasr-edit-form-number-elements").attr("value");e++,jQuery("#yasr-add-field-edit-multiset").on("click",(function(){if(e>9)return jQuery("#yasr-element-limit").show(),jQuery("#yasr-add-field-edit-multiset").hide(),!1;var t=jQuery(document.createElement("tr"));t.html('<td colspan="2">Element #'+e+' <input type="text" name="edit-multi-set-element-'+e+'" value="" ></td>'),t.appendTo("#yasr-table-form-edit-multi-set"),e++}))})))}"style_options"===r&&(wp.codeEditor.initialize(document.getElementById("yasr_style_options_textarea"),yasr_cm_settings),jQuery("#yasr-color-scheme-preview-link").on("click",(function(){return jQuery("#yasr-color-scheme-preview").toggle("slow"),!1}))),"migration_tools"===r&&(jQuery("#yasr-import-ratemypost-submit").on("click",(function(){document.getElementById("yasr-import-ratemypost-answer").innerHTML='<img src="'+yasrCommonData.loaderHtml+'"</img>';var e={action:"yasr_import_ratemypost",nonce:document.getElementById("yasr-import-rmp-nonce").value};jQuery.post(ajaxurl,e,(function(e){e=JSON.parse(e),document.getElementById("yasr-import-ratemypost-answer").innerHTML=e}))})),jQuery("#yasr-import-wppr-submit").on("click",(function(){document.getElementById("yasr-import-wppr-answer").innerHTML='<img src="'+yasrCommonData.loaderHtml+'"</img>';var e={action:"yasr_import_wppr",nonce:document.getElementById("yasr-import-wppr-nonce").value};jQuery.post(ajaxurl,e,(function(e){document.getElementById("yasr-import-wppr-answer").innerHTML=e}))})),jQuery("#yasr-import-kksr-submit").on("click",(function(){document.getElementById("yasr-import-kksr-answer").innerHTML='<img src="'+yasrCommonData.loaderHtml+'"</img>';var e={action:"yasr_import_kksr",nonce:document.getElementById("yasr-import-kksr-nonce").value};jQuery.post(ajaxurl,e,(function(e){document.getElementById("yasr-import-kksr-answer").innerHTML=e}))})),jQuery("#yasr-import-mr-submit").on("click",(function(){document.getElementById("yasr-import-mr-answer").innerHTML='<img src="'+yasrCommonData.loaderHtml+'"</img>';var e={action:"yasr_import_mr",nonce:document.getElementById("yasr-import-mr-nonce").value};jQuery.post(ajaxurl,e,(function(e){document.getElementById("yasr-import-mr-answer").innerHTML=e}))})))},function(e,t,n){"use strict";
2
- /*
3
- object-assign
4
- (c) Sindre Sorhus
5
- @license MIT
6
- */var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,u=o(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))a.call(n,c)&&(u[c]=n[c]);if(r){i=r(n);for(var f=0;f<i.length;f++)l.call(n,i[f])&&(u[i[f]]=n[i[f]])}}return u}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(7)},function(e,t){
7
- /*! Based on rater-js. [c] 2018 by Fredrik Olsson. MIT License */
8
- e.exports=function(e){var t=!0;if(void 0===e.element||null===e.element)throw new Error("element required");if(void 0!==e.showToolTip&&(t=!!e.showToolTip),void 0!==e.step&&(e.step<=0||e.step>1))throw new Error("step must be a number between 0 and 1");var n,r,a=e.starSize||16,l=e.step||1,o=e.onHover,i=e.onLeave,u=JSON.parse(yasrCommonData.isRtl),s=e.element;s.classList.add("yasr-star-rating");var c=document.createElement("div");c.classList.add("yasr-star-value"),c.style.backgroundSize=a+"px",s.appendChild(c),s.style.width=5*a+"px",s.style.height=a+"px",s.style.backgroundSize=a+"px";var f,d,p,m=e.rateCallback,y=!!e.readOnly,h=!1,g=e.isBusyText;if(f=void 0!==e.disableText?e.disableText:"{rating}/{maxRating}",y||(s.style.cursor="pointer"),p=void 0!==e.ratingText?e.ratingText:"{rating}/{maxRating}",e.rating)_(e.rating);else{var v=s.dataset.rating;v&&_(+v)}function b(e){if(!0!==y&&!0!==h){var r;if(!0===u){var a=this.getBoundingClientRect(),i=e.pageX-a.left,c=s.offsetWidth;r=(c-i)/(c/100)}else{r=e.offsetX/s.offsetWidth*100}if(r<101){if(1===l)d=Math.ceil(r/100*5);else for(var f=r/100*5,m=0;;m+=l)if(m>=f){d=m;break}if(d>5&&(d=5),s.querySelector(".yasr-star-value").style.width=d/5*100+"%",t){var g=p.replace("{rating}",d);g=g.replace("{maxRating}",5),s.setAttribute("data-title",g)}"function"==typeof o&&o(d,n)}}}function w(e){void 0!==n?(s.querySelector(".yasr-star-value").style.width=n/5*100+"%",s.setAttribute("data-rating",n)):(s.querySelector(".yasr-star-value").style.width="0%",s.removeAttribute("data-rating")),"function"==typeof i&&i(d,n)}function k(e){!0!==y&&!0!==h&&(void 0===m&&!1===typeof m||(h=!0,r=d,void 0===g?s.removeAttribute("data-title"):s.setAttribute("data-title",g),m.call(this,r,(function(){!1===y&&s.removeAttribute("data-title"),h=!1}))))}function E(){if(y=!0,t&&f){var e=f.replace("{rating}",n);e=e.replace("{maxRating}",5),s.setAttribute("data-title",e)}else s.removeAttribute("data-title")}function _(e){if(-1===e&&(e=void 0),"number"!=typeof e&&void 0!==e)throw new Error("Value must be a number or undefined.");e<0&&(e=0),e>5&&(e=5),n=e,s.querySelector(".yasr-star-value").style.width=e/5*100+"%",s.setAttribute("data-rating",e)}void 0===n&&(s.querySelector(".yasr-star-value").style.width="0px"),y&&E(),s.addEventListener("mousemove",b),s.addEventListener("mouseleave",w);var S={setRating:_,getRating:function(){return n},disable:E,enable:function(){y=!1,s.removeAttribute("data-title")},dispose:function(){s.removeEventListener("mousemove",b),s.removeEventListener("mouseleave",w),s.removeEventListener("click",k)}};return s.addEventListener("click",k.bind(S)),S}},function(e,t,n){n(1),e.exports=n(10)},function(e,t,n){"use strict";
9
- /** @license React v17.0.1
10
- * react.production.min.js
11
- *
12
- * Copyright (c) Facebook, Inc. and its affiliates.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */var r=n(2),a=60103,l=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,i=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;a=f("react.element"),l=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),i=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function h(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=h.prototype;var b=v.prototype=new g;b.constructor=v,r(b,h.prototype),b.isPureReactComponent=!0;var w={current:null},k=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,l={},o=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,r)&&!E.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(1===u)l.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===l[r]&&(l[r]=u[r]);return{$$typeof:a,type:e,key:o,ref:i,props:l,_owner:w.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var x=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case a:case l:u=!0}}if(u)return o=o(u=e),e=""===r?"."+C(u,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),P(o,t,n,"",(function(e){return e}))):null!=o&&(S(o)&&(o=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+C(i=e[s],s);u+=P(i,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(i=e.next()).done;)u+=P(i=i.value,t,n,c=r+C(i,s++),o);else if("object"===i)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function T(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function L(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function I(){var e=N.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=h,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var l=r({},e.props),o=e.key,i=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,u=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(l[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)l.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];l.children=s}return{$$typeof:a,type:e.type,key:o,ref:i,props:l,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return I().useCallback(e,t)},t.useContext=function(e,t){return I().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return I().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return I().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return I().useLayoutEffect(e,t)},t.useMemo=function(e,t){return I().useMemo(e,t)},t.useReducer=function(e,t,n){return I().useReducer(e,t,n)},t.useRef=function(e){return I().useRef(e)},t.useState=function(e){return I().useState(e)},t.version="17.0.1"},function(e,t,n){"use strict";
17
- /** @license React v17.0.1
18
- * react-dom.production.min.js
19
- *
20
- * Copyright (c) Facebook, Inc. and its affiliates.
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE file in the root directory of this source tree.
24
- */var r=n(0),a=n(2),l=n(8);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var i=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)i.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,m={},y={};function h(e,t,n,r,a,l,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!p.call(y,e)||!p.call(m,e)&&(d.test(e)?y[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,_=60106,S=60107,x=60108,C=60114,P=60109,T=60110,L=60112,N=60113,I=60120,z=60115,O=60116,M=60121,R=60128,j=60129,D=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;E=F("react.element"),_=F("react.portal"),S=F("react.fragment"),x=F("react.strict_mode"),C=F("react.profiler"),P=F("react.provider"),T=F("react.context"),L=F("react.forward_ref"),N=F("react.suspense"),I=F("react.suspense_list"),z=F("react.memo"),O=F("react.lazy"),M=F("react.block"),F("react.scope"),R=F("react.opaque.id"),j=F("react.debug_trace_mode"),D=F("react.offscreen"),B=F("react.legacy_hidden")}var A,Q="function"==typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Q&&e[Q]||e["@@iterator"])?e:null}function H(e){if(void 0===A)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);A=t&&t[1]||""}return"\n"+A+e}var V=!1;function W(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var a=e.stack.split("\n"),l=r.stack.split("\n"),o=a.length-1,i=l.length-1;1<=o&&0<=i&&a[o]!==l[i];)i--;for(;1<=o&&0<=i;o--,i--)if(a[o]!==l[i]){if(1!==o||1!==i)do{if(o--,0>--i||a[o]!==l[i])return"\n"+a[o].replace(" at new "," at ")}while(1<=o&&0<=i);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function $(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case _:return"Portal";case C:return"Profiler";case x:return"StrictMode";case N:return"Suspense";case I:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return q(e.type);case M:return q(e._render);case O:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,l.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function le(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function se(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ye,he=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ye=ye||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ye.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ve).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var Ee=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(Ee[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Pe=null,Te=null;function Le(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=ea(t),Ce(e.stateNode,e.type,t))}}function Ne(e){Pe?Te?Te.push(e):Te=[e]:Pe=e}function Ie(){if(Pe){var e=Pe,t=Te;if(Te=Pe=null,Le(e),t)for(e=0;e<t.length;e++)Le(t[e])}}function ze(e,t){return e(t)}function Oe(e,t,n,r,a){return e(t,n,r,a)}function Me(){}var Re=ze,je=!1,De=!1;function Be(){null===Pe&&null===Te||(Me(),Ie())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ea(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ae=!1;if(f)try{var Qe={};Object.defineProperty(Qe,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Qe,Qe),window.removeEventListener("test",Qe,Qe)}catch(e){Ae=!1}function Ue(e,t,n,r,a,l,o,i,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var He=!1,Ve=null,We=!1,$e=null,qe={onError:function(e){He=!0,Ve=e}};function Ke(e,t,n,r,a,l,o,i,u){He=!1,Ve=null,Ue.apply(qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(Ye(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var l=a.alternate;if(null===l){if(null!==(r=a.return)){n=r;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===n)return Ge(a),e;if(l===r)return Ge(a),t;l=l.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=l;else{for(var i=!1,u=a.child;u;){if(u===n){i=!0,n=a,r=l;break}if(u===r){i=!0,r=a,n=l;break}u=u.sibling}if(!i){for(u=l.child;u;){if(u===n){i=!0,n=l,r=a;break}if(u===r){i=!0,r=l,n=a;break}u=u.sibling}if(!i)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,at=!1,lt=[],ot=null,it=null,ut=null,st=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function yt(e,t,n,r,a,l){return null===e||e.nativeEvent!==l?(e=pt(t,n,r,a,l),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function ht(e){var t=Gr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){l.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(at=!1;0<lt.length;){var e=lt[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&lt.shift()}null!==ot&&gt(ot)&&(ot=null),null!==it&&gt(it)&&(it=null),null!==ut&&gt(ut)&&(ut=null),st.forEach(vt),ct.forEach(vt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,bt)))}function kt(e){function t(t){return wt(t,e)}if(0<lt.length){wt(lt[0],e);for(var n=1;n<lt.length;n++){var r=lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&wt(ot,e),null!==it&&wt(it,e),null!==ut&&wt(ut,e),st.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)ht(n),null===n.blockedOn&&ft.shift()}function Et(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:Et("Animation","AnimationEnd"),animationiteration:Et("Animation","AnimationIteration"),animationstart:Et("Animation","AnimationStart"),transitionend:Et("Transition","TransitionEnd")},St={},xt={};function Ct(e){if(St[e])return St[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Pt=Ct("animationend"),Tt=Ct("animationiteration"),Lt=Ct("animationstart"),Nt=Ct("transitionend"),It=new Map,zt=new Map,Ot=["abort","abort",Pt,"animationEnd",Tt,"animationIteration",Lt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Nt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),zt.set(r,t),It.set(r,a),s(a,[r])}}(0,l.unstable_now)();var Rt=8;function jt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Dt(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,a=0,l=e.expiredLanes,o=e.suspendedLanes,i=e.pingedLanes;if(0!==l)r=l,a=Rt=15;else if(0!==(l=134217727&n)){var u=l&~o;0!==u?(r=jt(u),a=Rt):0!==(i&=l)&&(r=jt(i),a=Rt)}else 0!==(l=n&~o)?(r=jt(l),a=Rt):0!==i&&(r=jt(i),a=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(jt(t),a<=Rt)return t;Rt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ht(t)),r|=e[n],t&=~a;return r}function Bt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=At(24&~t))?Ft(10,t):e;case 10:return 0===(e=At(192&~t))?Ft(8,t):e;case 8:return 0===(e=At(3584&~t))&&(0===(e=At(4186112&~t))&&(e=512)),e;case 2:return 0===(t=At(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function At(e){return e&-e}function Qt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/Wt|0)|0},Vt=Math.log,Wt=Math.LN2;var $t=l.unstable_UserBlockingPriority,qt=l.unstable_runWithPriority,Kt=!0;function Yt(e,t,n,r){je||Me();var a=Gt,l=je;je=!0;try{Oe(a,e,t,n,r)}finally{(je=l)||Be()}}function Xt(e,t,n,r){qt($t,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){var a;if(Kt)if((a=0==(4&t))&&0<lt.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),lt.push(e);else{var l=Jt(e,t,n,r);if(null===l)a&&mt(e,r);else{if(a){if(-1<dt.indexOf(e))return e=pt(l,e,t,n,r),void lt.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return ot=yt(ot,e,t,n,r,a),!0;case"dragenter":return it=yt(it,e,t,n,r,a),!0;case"mouseover":return ut=yt(ut,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return st.set(l,yt(st.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,ct.set(l,yt(ct.get(l)||null,e,t,n,r,a)),!0}return!1}(l,e,t,n,r))return;mt(e,r)}Nr(e,t,r,null,n)}}}function Jt(e,t,n,r){var a=xe(r);if(null!==(a=Gr(a))){var l=Ye(a);if(null===l)a=null;else{var o=l.tag;if(13===o){if(null!==(a=Xe(l)))return a;a=null}else if(3===o){if(l.stateNode.hydrate)return 3===l.tag?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return Nr(e,t,r,a,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a="value"in Zt?Zt.value:Zt.textContent,l=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[l-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function ln(){return!1}function on(e){function t(t,n,r,a,l){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=l,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:ln,this.isPropagationStopped=ln,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var un,sn,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=on(fn),pn=a({},fn,{view:0,detail:0}),mn=on(pn),yn=a({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(yn),gn=on(a({},yn,{dataTransfer:0})),vn=on(a({},pn,{relatedTarget:0})),bn=on(a({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=on(a({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=on(a({},fn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return xn}var Pn=on(a({},pn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=on(a({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=on(a({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Nn=on(a({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=on(a({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],On=f&&"CompositionEvent"in window,Mn=null;f&&"documentMode"in document&&(Mn=document.documentMode);var Rn=f&&"TextEvent"in window&&!Mn,jn=f&&(!On||Mn&&8<Mn&&11>=Mn),Dn=String.fromCharCode(32),Bn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function An(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Qn=!1;var Un={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Vn(e,t,n,r){Ne(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,$n=null;function qn(e){Sr(e,0)}function Kn(e){if(G(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Gn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Gn=Jn}else Gn=!1;Xn=Gn&&(!document.documentMode||9<document.documentMode)}function er(){Wn&&(Wn.detachEvent("onpropertychange",tr),$n=Wn=null)}function tr(e){if("value"===e.propertyName&&Kn($n)){var t=[];if(Vn(t,$n,e,xe(e)),e=qn,je)e(t);else{je=!0;try{ze(e,t)}finally{je=!1,Be()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Wn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn($n)}function ar(e,t){if("click"===e)return Kn(t)}function lr(e,t){if("input"===e||"change"===e)return Kn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ir=Object.prototype.hasOwnProperty;function ur(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ir.call(t,n[r])||!or(e[n[r]],t[n[r]]))return!1;return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,hr=null,gr=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==mr||mr!==J(r)||("selectionStart"in(r=mr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},hr&&ur(hr,r)||(hr=r,0<(r=zr(yr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Ot,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<br.length;wr++)zt.set(br[wr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function _r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,l,i,u,s){if(Ke.apply(this,arguments),He){if(!He)throw Error(o(198));var c=Ve;He=!1,Ve=null,We||(We=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==l&&a.isPropagationStopped())break e;_r(a,i,s),l=u}else for(o=0;o<r.length;o++){if(u=(i=r[o]).instance,s=i.currentTarget,i=i.listener,u!==l&&a.isPropagationStopped())break e;_r(a,i,s),l=u}}}if(We)throw e=$e,We=!1,$e=null,e}function xr(e,t){var n=ta(t),r=e+"__bubble";n.has(r)||(Lr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Cr]||(e[Cr]=!0,i.forEach((function(t){Er.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,l=n;if("selectionchange"===e&&9!==n.nodeType&&(l=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;a|=2,l=r}var o=ta(l),i=e+"__"+(t?"capture":"bubble");o.has(i)||(t&&(a|=4),Lr(l,e,a,t),o.add(i))}function Lr(e,t,n,r){var a=zt.get(t);switch(void 0===a?2:a){case 0:a=Yt;break;case 1:a=Xt;break;default:a=Gt}n=a.bind(null,t,n,e),a=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,a){var l=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===a||8===u.nodeType&&u.parentNode===a))return;o=o.return}for(;null!==i;){if(null===(o=Gr(i)))return;if(5===(u=o.tag)||6===u){r=l=o;continue e}i=i.parentNode}}r=r.return}!function(e,t,n){if(De)return e(t,n);De=!0;try{Re(e,t,n)}finally{De=!1,Be()}}((function(){var r=l,a=xe(n),o=[];e:{var i=It.get(e);if(void 0!==i){var u=dn,s=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":s="focus",u=vn;break;case"focusout":s="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Ln;break;case Pt:case Tt:case Lt:u=bn;break;case Nt:u=Nn;break;case"scroll":u=mn;break;case"wheel":u=In;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==i?i+"Capture":null:i;c=[];for(var p,m=r;null!==m;){var y=(p=m).stateNode;if(5===p.tag&&null!==y&&(p=y,null!==d&&(null!=(y=Fe(m,d))&&c.push(Ir(m,y,p)))),f)break;m=m.return}0<c.length&&(i=new u(i,s,null,n,a),o.push({event:i,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Gr(s)&&!s[Yr])&&(u||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Gr(s):null)&&(s!==(f=Ye(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,y="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,y="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?i:Zr(u),p=null==s?i:Zr(s),(i=new c(y,m+"leave",u,n,a)).target=f,i.relatedTarget=p,y=null,Gr(a)===r&&((c=new c(d,m+"enter",s,n,a)).target=p,c.relatedTarget=f,y=c),f=y,u&&s)e:{for(d=s,m=0,p=c=u;p;p=Or(p))m++;for(p=0,y=d;y;y=Or(y))p++;for(;0<m-p;)c=Or(c),m--;for(;0<p-m;)d=Or(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=Or(c),d=Or(d)}c=null}else c=null;null!==u&&Mr(o,i,u,c,!1),null!==s&&null!==f&&Mr(o,f,s,c,!0)}if("select"===(u=(i=r?Zr(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var h=Yn;else if(Hn(i))if(Xn)h=lr;else{h=rr;var g=nr}else(u=i.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(h=ar);switch(h&&(h=h(e,r))?Vn(o,h,n,a):(g&&g(e,i,r),"focusout"===e&&(g=i._wrapperState)&&g.controlled&&"number"===i.type&&ae(i,"number",i.value)),g=r?Zr(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(mr=g,yr=r,hr=null);break;case"focusout":hr=yr=mr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,vr(o,n,a);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":vr(o,n,a)}var v;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Qn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(Qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Qn&&(v=nn()):(en="value"in(Zt=a)?Zt.value:Zt.textContent,Qn=!0)),0<(g=zr(r,b)).length&&(b=new kn(b,e,null,n,a),o.push({event:b,listeners:g}),v?b.data=v:null!==(v=An(n))&&(b.data=v))),(v=Rn?function(e,t){switch(e){case"compositionend":return An(t);case"keypress":return 32!==t.which?null:(Bn=!0,Dn);case"textInput":return(e=t.data)===Dn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Qn)return"compositionend"===e||!On&&Fn(e,t)?(e=nn(),tn=en=Zt=null,Qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(a=new kn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=v))}Sr(o,t)}))}function Ir(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,l=a.stateNode;5===a.tag&&null!==l&&(a=l,null!=(l=Fe(e,n))&&r.unshift(Ir(e,l,a)),null!=(l=Fe(e,t))&&r.push(Ir(e,l,a))),e=e.return}return r}function Or(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Mr(e,t,n,r,a){for(var l=t._reactName,o=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(null!==u&&u===r)break;5===i.tag&&null!==s&&(i=s,a?null!=(u=Fe(n,l))&&o.unshift(Ir(n,u,i)):a||null!=(u=Fe(n,l))&&o.push(Ir(n,u,i))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Rr(){}var jr=null,Dr=null;function Br(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Fr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ar="function"==typeof setTimeout?setTimeout:void 0,Qr="function"==typeof clearTimeout?clearTimeout:void 0;function Ur(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Vr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Wr=0;var $r=Math.random().toString(36).slice(2),qr="__reactFiber$"+$r,Kr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Xr="__reactEvents$"+$r;function Gr(e){var t=e[qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Vr(e);null!==e;){if(n=e[qr])return n;e=Vr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ea(e){return e[Kr]||null}function ta(e){var t=e[Xr];return void 0===t&&(t=e[Xr]=new Set),t}var na=[],ra=-1;function aa(e){return{current:e}}function la(e){0>ra||(e.current=na[ra],na[ra]=null,ra--)}function oa(e,t){ra++,na[ra]=e.current,e.current=t}var ia={},ua=aa(ia),sa=aa(!1),ca=ia;function fa(e,t){var n=e.type.contextTypes;if(!n)return ia;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,l={};for(a in n)l[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function da(e){return null!=(e=e.childContextTypes)}function pa(){la(sa),la(ua)}function ma(e,t,n){if(ua.current!==ia)throw Error(o(168));oa(ua,t),oa(sa,n)}function ya(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var l in r=r.getChildContext())if(!(l in e))throw Error(o(108,q(t)||"Unknown",l));return a({},n,r)}function ha(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ia,ca=ua.current,oa(ua,e),oa(sa,sa.current),!0}function ga(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ya(e,t,ca),r.__reactInternalMemoizedMergedChildContext=e,la(sa),la(ua),oa(ua,e)):la(sa),oa(sa,n)}var va=null,ba=null,wa=l.unstable_runWithPriority,ka=l.unstable_scheduleCallback,Ea=l.unstable_cancelCallback,_a=l.unstable_shouldYield,Sa=l.unstable_requestPaint,xa=l.unstable_now,Ca=l.unstable_getCurrentPriorityLevel,Pa=l.unstable_ImmediatePriority,Ta=l.unstable_UserBlockingPriority,La=l.unstable_NormalPriority,Na=l.unstable_LowPriority,Ia=l.unstable_IdlePriority,za={},Oa=void 0!==Sa?Sa:function(){},Ma=null,Ra=null,ja=!1,Da=xa(),Ba=1e4>Da?xa:function(){return xa()-Da};function Fa(){switch(Ca()){case Pa:return 99;case Ta:return 98;case La:return 97;case Na:return 96;case Ia:return 95;default:throw Error(o(332))}}function Aa(e){switch(e){case 99:return Pa;case 98:return Ta;case 97:return La;case 96:return Na;case 95:return Ia;default:throw Error(o(332))}}function Qa(e,t){return e=Aa(e),wa(e,t)}function Ua(e,t,n){return e=Aa(e),ka(e,t,n)}function Ha(){if(null!==Ra){var e=Ra;Ra=null,Ea(e)}Va()}function Va(){if(!ja&&null!==Ma){ja=!0;var e=0;try{var t=Ma;Qa(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ma=null}catch(t){throw null!==Ma&&(Ma=Ma.slice(e+1)),ka(Pa,Ha),t}finally{ja=!1}}}var Wa=k.ReactCurrentBatchConfig;function $a(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var qa=aa(null),Ka=null,Ya=null,Xa=null;function Ga(){Xa=Ya=Ka=null}function Ja(e){var t=qa.current;la(qa),e.type._context._currentValue=t}function Za(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function el(e,t){Ka=e,Xa=Ya=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(zo=!0),e.firstContext=null)}function tl(e,t){if(Xa!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Xa=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ya){if(null===Ka)throw Error(o(308));Ya=t,Ka.dependencies={lanes:0,firstContext:t,responders:null}}else Ya=Ya.next=t;return e._currentValue}var nl=!1;function rl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function al(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ll(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ol(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function il(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,l=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===l?a=l=o:l=l.next=o,n=n.next}while(null!==n);null===l?a=l=t:l=l.next=t}else a=l=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ul(e,t,n,r){var l=e.updateQueue;nl=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(null!==u){l.shared.pending=null;var s=u,c=s.next;s.next=null,null===i?o=c:i.next=c,i=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==i&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==o){for(d=l.baseState,i=0,f=c=s=null;;){u=o.lane;var p=o.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,y=o;switch(u=t,p=n,y.tag){case 1:if("function"==typeof(m=y.payload)){d=m.call(p,d,u);break e}d=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(u="function"==typeof(m=y.payload)?m.call(p,d,u):m))break e;d=a({},d,u);break e;case 2:nl=!0}}null!==o.callback&&(e.flags|=32,null===(u=l.effects)?l.effects=[o]:u.push(o))}else p={eventTime:p,lane:u,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,i|=u;if(null===(o=o.next)){if(null===(u=l.shared.pending))break;o=u.next,u.next=null,l.lastBaseUpdate=u,l.shared.pending=null}}null===f&&(s=d),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=f,Mi|=i,e.lanes=i,e.memoizedState=d}}function sl(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var cl=(new r.Component).refs;function fl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var dl={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lu(),a=ou(e),l=ll(r,a);l.payload=t,null!=n&&(l.callback=n),ol(e,l),iu(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lu(),a=ou(e),l=ll(r,a);l.tag=1,l.payload=t,null!=n&&(l.callback=n),ol(e,l),iu(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lu(),r=ou(e),a=ll(n,r);a.tag=2,null!=t&&(a.callback=t),ol(e,a),iu(e,r,n)}};function pl(e,t,n,r,a,l,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,l,o):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(a,l))}function ml(e,t,n){var r=!1,a=ia,l=t.contextType;return"object"==typeof l&&null!==l?l=tl(l):(a=da(t)?ca:ua.current,l=(r=null!=(r=t.contextTypes))?fa(e,a):ia),t=new t(n,l),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=dl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),t}function yl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&dl.enqueueReplaceState(t,t.state,null)}function hl(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=cl,rl(e);var l=t.contextType;"object"==typeof l&&null!==l?a.context=tl(l):(l=da(t)?ca:ua.current,a.context=fa(e,l)),ul(e,n,a,r),a.state=e.memoizedState,"function"==typeof(l=t.getDerivedStateFromProps)&&(fl(e,t,l,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&dl.enqueueReplaceState(a,a.state,null),ul(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var gl=Array.isArray;function vl(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===cl&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function bl(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wl(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Fu(e,t)).index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function i(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Hu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=vl(e,t,n),r.return=e,r):((r=Au(n.type,n.key,n.props,null,e.mode,r)).ref=vl(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vu(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,l){return null===t||7!==t.tag?((t=Qu(n,e.mode,r,l)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Hu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Au(t.type,t.key,t.props,null,e.mode,n)).ref=vl(e,null,t),n.return=e,n;case _:return(t=Vu(t,e.mode,n)).return=e,t}if(gl(t)||U(t))return(t=Qu(t,e.mode,n,null)).return=e,t;bl(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===a?n.type===S?f(e,t,n.props.children,r,a):s(e,t,n,r):null;case _:return n.key===a?c(e,t,n,r):null}if(gl(n)||U(n))return null!==a?null:f(e,t,n,r,null);bl(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,a,r.key):s(t,e,r,a);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(gl(r)||U(r))return f(t,e=e.get(n)||null,r,a,null);bl(t,r)}return null}function y(a,o,i,u){for(var s=null,c=null,f=o,y=o=0,h=null;null!==f&&y<i.length;y++){f.index>y?(h=f,f=null):h=f.sibling;var g=p(a,f,i[y],u);if(null===g){null===f&&(f=h);break}e&&f&&null===g.alternate&&t(a,f),o=l(g,o,y),null===c?s=g:c.sibling=g,c=g,f=h}if(y===i.length)return n(a,f),s;if(null===f){for(;y<i.length;y++)null!==(f=d(a,i[y],u))&&(o=l(f,o,y),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(a,f);y<i.length;y++)null!==(h=m(f,a,y,i[y],u))&&(e&&null!==h.alternate&&f.delete(null===h.key?y:h.key),o=l(h,o,y),null===c?s=h:c.sibling=h,c=h);return e&&f.forEach((function(e){return t(a,e)})),s}function h(a,i,u,s){var c=U(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,y=i,h=i=0,g=null,v=u.next();null!==y&&!v.done;h++,v=u.next()){y.index>h?(g=y,y=null):g=y.sibling;var b=p(a,y,v.value,s);if(null===b){null===y&&(y=g);break}e&&y&&null===b.alternate&&t(a,y),i=l(b,i,h),null===f?c=b:f.sibling=b,f=b,y=g}if(v.done)return n(a,y),c;if(null===y){for(;!v.done;h++,v=u.next())null!==(v=d(a,v.value,s))&&(i=l(v,i,h),null===f?c=v:f.sibling=v,f=v);return c}for(y=r(a,y);!v.done;h++,v=u.next())null!==(v=m(y,a,h,v.value,s))&&(e&&null!==v.alternate&&y.delete(null===v.key?h:v.key),i=l(v,i,h),null===f?c=v:f.sibling=v,f=v);return e&&y.forEach((function(e){return t(a,e)})),c}return function(e,r,l,u){var s="object"==typeof l&&null!==l&&l.type===S&&null===l.key;s&&(l=l.props.children);var c="object"==typeof l&&null!==l;if(c)switch(l.$$typeof){case E:e:{for(c=l.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(l.type===S){n(e,s.sibling),(r=a(s,l.props.children)).return=e,e=r;break e}break;default:if(s.elementType===l.type){n(e,s.sibling),(r=a(s,l.props)).ref=vl(e,s,l),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}l.type===S?((r=Qu(l.props.children,e.mode,u,l.key)).return=e,e=r):((u=Au(l.type,l.key,l.props,null,e.mode,u)).ref=vl(e,r,l),u.return=e,e=u)}return i(e);case _:e:{for(s=l.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===l.containerInfo&&r.stateNode.implementation===l.implementation){n(e,r.sibling),(r=a(r,l.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Vu(l,e.mode,u)).return=e,e=r}return i(e)}if("string"==typeof l||"number"==typeof l)return l=""+l,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,l)).return=e,e=r):(n(e,r),(r=Hu(l,e.mode,u)).return=e,e=r),i(e);if(gl(l))return y(e,r,l,u);if(U(l))return h(e,r,l,u);if(c&&bl(e,l),void 0===l&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var kl=wl(!0),El=wl(!1),_l={},Sl=aa(_l),xl=aa(_l),Cl=aa(_l);function Pl(e){if(e===_l)throw Error(o(174));return e}function Tl(e,t){switch(oa(Cl,t),oa(xl,e),oa(Sl,_l),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}la(Sl),oa(Sl,t)}function Ll(){la(Sl),la(xl),la(Cl)}function Nl(e){Pl(Cl.current);var t=Pl(Sl.current),n=me(t,e.type);t!==n&&(oa(xl,e),oa(Sl,n))}function Il(e){xl.current===e&&(la(Sl),la(xl))}var zl=aa(0);function Ol(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ml=null,Rl=null,jl=!1;function Dl(e,t){var n=Du(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Bl(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Fl(e){if(jl){var t=Rl;if(t){var n=t;if(!Bl(e,t)){if(!(t=Hr(n.nextSibling))||!Bl(e,t))return e.flags=-1025&e.flags|2,jl=!1,void(Ml=e);Dl(Ml,n)}Ml=e,Rl=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,jl=!1,Ml=e}}function Al(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ml=e}function Ql(e){if(e!==Ml)return!1;if(!jl)return Al(e),jl=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Fr(t,e.memoizedProps))for(t=Rl;t;)Dl(e,t),t=Hr(t.nextSibling);if(Al(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Rl=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Rl=null}}else Rl=Ml?Hr(e.stateNode.nextSibling):null;return!0}function Ul(){Rl=Ml=null,jl=!1}var Hl=[];function Vl(){for(var e=0;e<Hl.length;e++)Hl[e]._workInProgressVersionPrimary=null;Hl.length=0}var Wl=k.ReactCurrentDispatcher,$l=k.ReactCurrentBatchConfig,ql=0,Kl=null,Yl=null,Xl=null,Gl=!1,Jl=!1;function Zl(){throw Error(o(321))}function eo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function to(e,t,n,r,a,l){if(ql=l,Kl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wl.current=null===e||null===e.memoizedState?To:Lo,e=n(r,a),Jl){l=0;do{if(Jl=!1,!(25>l))throw Error(o(301));l+=1,Xl=Yl=null,t.updateQueue=null,Wl.current=No,e=n(r,a)}while(Jl)}if(Wl.current=Po,t=null!==Yl&&null!==Yl.next,ql=0,Xl=Yl=Kl=null,Gl=!1,t)throw Error(o(300));return e}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xl?Kl.memoizedState=Xl=e:Xl=Xl.next=e,Xl}function ro(){if(null===Yl){var e=Kl.alternate;e=null!==e?e.memoizedState:null}else e=Yl.next;var t=null===Xl?Kl.memoizedState:Xl.next;if(null!==t)Xl=t,Yl=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Yl=e).memoizedState,baseState:Yl.baseState,baseQueue:Yl.baseQueue,queue:Yl.queue,next:null},null===Xl?Kl.memoizedState=Xl=e:Xl=Xl.next=e}return Xl}function ao(e,t){return"function"==typeof t?t(e):t}function lo(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Yl,a=r.baseQueue,l=n.pending;if(null!==l){if(null!==a){var i=a.next;a.next=l.next,l.next=i}r.baseQueue=a=l,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var u=i=l=null,s=a;do{var c=s.lane;if((ql&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(i=u=f,l=r):u=u.next=f,Kl.lanes|=c,Mi|=c}s=s.next}while(null!==s&&s!==a);null===u?l=r:u.next=i,or(r,t.memoizedState)||(zo=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function oo(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,l=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{l=e(l,i.action),i=i.next}while(i!==a);or(l,t.memoizedState)||(zo=!0),t.memoizedState=l,null===t.baseQueue&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function io(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(ql&e)===e)&&(t._workInProgressVersionPrimary=r,Hl.push(t))),e)return n(t._source);throw Hl.push(t),Error(o(350))}function uo(e,t,n,r){var a=Ci;if(null===a)throw Error(o(349));var l=t._getVersion,i=l(t._source),u=Wl.current,s=u.useState((function(){return io(a,t,n)})),c=s[1],f=s[0];s=Xl;var d=e.memoizedState,p=d.refs,m=p.getSnapshot,y=d.source;d=d.subscribe;var h=Kl;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=l(t._source);if(!or(i,e)){e=n(t._source),or(f,e)||(c(e),e=ou(h),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,o=e;0<o;){var u=31-Ht(o),s=1<<u;r[u]|=e,o&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ou(h);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),or(m,n)&&or(y,t)&&or(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ao,lastRenderedState:f}).dispatch=c=Co.bind(null,Kl,e),s.queue=e,s.baseQueue=null,f=io(a,t,n),s.memoizedState=s.baseState=f),f}function so(e,t,n){return uo(ro(),e,t,n)}function co(e){var t=no();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ao,lastRenderedState:e}).dispatch=Co.bind(null,Kl,e),[t.memoizedState,e]}function fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Kl.updateQueue)?(t={lastEffect:null},Kl.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function po(e){return e={current:e},no().memoizedState=e}function mo(){return ro().memoizedState}function yo(e,t,n,r){var a=no();Kl.flags|=e,a.memoizedState=fo(1|t,n,void 0,void 0===r?null:r)}function ho(e,t,n,r){var a=ro();r=void 0===r?null:r;var l=void 0;if(null!==Yl){var o=Yl.memoizedState;if(l=o.destroy,null!==r&&eo(r,o.deps))return void fo(t,n,l,r)}Kl.flags|=e,a.memoizedState=fo(1|t,n,l,r)}function go(e,t){return yo(516,4,e,t)}function vo(e,t){return ho(516,4,e,t)}function bo(e,t){return ho(4,2,e,t)}function wo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ko(e,t,n){return n=null!=n?n.concat([e]):null,ho(4,2,wo.bind(null,t,e),n)}function Eo(){}function _o(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function So(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xo(e,t){var n=Fa();Qa(98>n?98:n,(function(){e(!0)})),Qa(97<n?97:n,(function(){var n=$l.transition;$l.transition=1;try{e(!1),t()}finally{$l.transition=n}}))}function Co(e,t,n){var r=lu(),a=ou(e),l={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?l.next=l:(l.next=o.next,o.next=l),t.pending=l,o=e.alternate,e===Kl||null!==o&&o===Kl)Jl=Gl=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,u=o(i,n);if(l.eagerReducer=o,l.eagerState=u,or(u,i))return}catch(e){}iu(e,a,r)}}var Po={readContext:tl,useCallback:Zl,useContext:Zl,useEffect:Zl,useImperativeHandle:Zl,useLayoutEffect:Zl,useMemo:Zl,useReducer:Zl,useRef:Zl,useState:Zl,useDebugValue:Zl,useDeferredValue:Zl,useTransition:Zl,useMutableSource:Zl,useOpaqueIdentifier:Zl,unstable_isNewReconciler:!1},To={readContext:tl,useCallback:function(e,t){return no().memoizedState=[e,void 0===t?null:t],e},useContext:tl,useEffect:go,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,yo(4,2,wo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=no();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=no();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Co.bind(null,Kl,e),[r.memoizedState,e]},useRef:po,useState:co,useDebugValue:Eo,useDeferredValue:function(e){var t=co(e),n=t[0],r=t[1];return go((function(){var t=$l.transition;$l.transition=1;try{r(e)}finally{$l.transition=t}}),[e]),n},useTransition:function(){var e=co(!1),t=e[0];return po(e=xo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=no();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},uo(r,e,t,n)},useOpaqueIdentifier:function(){if(jl){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Wr++).toString(36))),Error(o(355))})),n=co(t)[1];return 0==(2&Kl.mode)&&(Kl.flags|=516,fo(5,(function(){n("r:"+(Wr++).toString(36))}),void 0,null)),t}return co(t="r:"+(Wr++).toString(36)),t},unstable_isNewReconciler:!1},Lo={readContext:tl,useCallback:_o,useContext:tl,useEffect:vo,useImperativeHandle:ko,useLayoutEffect:bo,useMemo:So,useReducer:lo,useRef:mo,useState:function(){return lo(ao)},useDebugValue:Eo,useDeferredValue:function(e){var t=lo(ao),n=t[0],r=t[1];return vo((function(){var t=$l.transition;$l.transition=1;try{r(e)}finally{$l.transition=t}}),[e]),n},useTransition:function(){var e=lo(ao)[0];return[mo().current,e]},useMutableSource:so,useOpaqueIdentifier:function(){return lo(ao)[0]},unstable_isNewReconciler:!1},No={readContext:tl,useCallback:_o,useContext:tl,useEffect:vo,useImperativeHandle:ko,useLayoutEffect:bo,useMemo:So,useReducer:oo,useRef:mo,useState:function(){return oo(ao)},useDebugValue:Eo,useDeferredValue:function(e){var t=oo(ao),n=t[0],r=t[1];return vo((function(){var t=$l.transition;$l.transition=1;try{r(e)}finally{$l.transition=t}}),[e]),n},useTransition:function(){var e=oo(ao)[0];return[mo().current,e]},useMutableSource:so,useOpaqueIdentifier:function(){return oo(ao)[0]},unstable_isNewReconciler:!1},Io=k.ReactCurrentOwner,zo=!1;function Oo(e,t,n,r){t.child=null===e?El(t,null,n,r):kl(t,e.child,n,r)}function Mo(e,t,n,r,a){n=n.render;var l=t.ref;return el(t,a),r=to(e,t,n,r,l,a),null===e||zo?(t.flags|=1,Oo(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,ei(e,t,a))}function Ro(e,t,n,r,a,l){if(null===e){var o=n.type;return"function"!=typeof o||Bu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Au(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,jo(e,t,o,r,a,l))}return o=e.child,0==(a&l)&&(a=o.memoizedProps,(n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)?ei(e,t,l):(t.flags|=1,(e=Fu(o,r)).ref=t.ref,e.return=t,t.child=e)}function jo(e,t,n,r,a,l){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(zo=!1,0==(l&a))return t.lanes=e.lanes,ei(e,t,l);0!=(16384&e.flags)&&(zo=!0)}return Fo(e,t,n,r,l)}function Do(e,t,n){var r=t.pendingProps,a=r.children,l=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},yu(t,n);else{if(0==(1073741824&n))return e=null!==l?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yu(t,e),null;t.memoizedState={baseLanes:0},yu(t,null!==l?l.baseLanes:n)}else null!==l?(r=l.baseLanes|n,t.memoizedState=null):r=n,yu(t,r);return Oo(e,t,a,n),t.child}function Bo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Fo(e,t,n,r,a){var l=da(n)?ca:ua.current;return l=fa(t,l),el(t,a),n=to(e,t,n,r,l,a),null===e||zo?(t.flags|=1,Oo(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,ei(e,t,a))}function Ao(e,t,n,r,a){if(da(n)){var l=!0;ha(t)}else l=!1;if(el(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ml(t,n,r),hl(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;"object"==typeof s&&null!==s?s=tl(s):s=fa(t,s=da(n)?ca:ua.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&yl(t,o,r,s),nl=!1;var d=t.memoizedState;o.state=d,ul(t,r,o,a),u=t.memoizedState,i!==r||d!==u||sa.current||nl?("function"==typeof c&&(fl(t,n,c,r),u=t.memoizedState),(i=nl||pl(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,al(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:$a(t.type,i),o.props=s,f=t.pendingProps,d=o.context,"object"==typeof(u=n.contextType)&&null!==u?u=tl(u):u=fa(t,u=da(n)?ca:ua.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&yl(t,o,r,u),nl=!1,d=t.memoizedState,o.state=d,ul(t,r,o,a);var m=t.memoizedState;i!==f||d!==m||sa.current||nl?("function"==typeof p&&(fl(t,n,p,r),m=t.memoizedState),(s=nl||pl(t,n,s,r,d,m,u))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Qo(e,t,n,r,l,a)}function Qo(e,t,n,r,a,l){Bo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return a&&ga(t,n,!1),ei(e,t,l);r=t.stateNode,Io.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=kl(t,e.child,null,l),t.child=kl(t,null,i,l)):Oo(e,t,i,l),t.memoizedState=r.state,a&&ga(t,n,!0),t.child}function Uo(e){var t=e.stateNode;t.pendingContext?ma(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(0,t.context,!1),Tl(e,t.containerInfo)}var Ho,Vo,Wo,$o={dehydrated:null,retryLane:0};function qo(e,t,n){var r,a=t.pendingProps,l=zl.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&l)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(l|=1),oa(zl,1&l),null===e?(void 0!==a.fallback&&Fl(t),e=a.children,l=a.fallback,o?(e=Ko(t,e,l,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,e):"number"==typeof a.unstable_expectedLoadTime?(e=Ko(t,e,l,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,t.lanes=33554432,e):((n=Uu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(a=Xo(e,t,a.children,a.fallback,n),o=t.child,l=e.child.memoizedState,o.memoizedState=null===l?{baseLanes:n}:{baseLanes:l.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=$o,a):(n=Yo(e,t,a.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var a=e.mode,l=e.child;return t={mode:"hidden",children:t},0==(2&a)&&null!==l?(l.childLanes=0,l.pendingProps=t):l=Uu(t,a,0,null),n=Qu(n,a,r,null),l.return=e,n.return=e,l.sibling=n,e.child=l,n}function Yo(e,t,n,r){var a=e.child;return e=a.sibling,n=Fu(a,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Xo(e,t,n,r,a){var l=t.mode,o=e.child;e=o.sibling;var i={mode:"hidden",children:n};return 0==(2&l)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=i,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Fu(o,i),null!==e?r=Fu(e,r):(r=Qu(r,l,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Go(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Za(e.return,t)}function Jo(e,t,n,r,a,l){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.lastEffect=l)}function Zo(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;if(Oo(e,t,r.children,n),0!=(2&(r=zl.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Go(e,n);else if(19===e.tag)Go(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(oa(zl,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Ol(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Jo(t,!1,a,n,l,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Ol(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Jo(t,!0,n,null,l,t.lastEffect);break;case"together":Jo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ei(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mi|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Fu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ti(e,t){if(!jl)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ni(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return da(t.type)&&pa(),null;case 3:return Ll(),la(sa),la(ua),Vl(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ql(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Il(t);var l=Pl(Cl.current);if(n=t.type,null!==e&&null!=t.stateNode)Vo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Pl(Sl.current),Ql(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[qr]=t,r[Kr]=i,n){case"dialog":xr("cancel",r),xr("close",r);break;case"iframe":case"object":case"embed":xr("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)xr(kr[e],r);break;case"source":xr("error",r);break;case"img":case"image":case"link":xr("error",r),xr("load",r);break;case"details":xr("toggle",r);break;case"input":ee(r,i),xr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},xr("invalid",r);break;case"textarea":ue(r,i),xr("invalid",r)}for(var s in _e(n,i),e=null,i)i.hasOwnProperty(s)&&(l=i[s],"children"===s?"string"==typeof l?r.textContent!==l&&(e=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(e=["children",""+l]):u.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&xr("scroll",r));switch(n){case"input":X(r),re(r,i,!0);break;case"textarea":X(r),ce(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===l.nodeType?l:l.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[qr]=t,e[Kr]=r,Ho(e,t),t.stateNode=e,s=Se(n,r),n){case"dialog":xr("cancel",e),xr("close",e),l=r;break;case"iframe":case"object":case"embed":xr("load",e),l=r;break;case"video":case"audio":for(l=0;l<kr.length;l++)xr(kr[l],e);l=r;break;case"source":xr("error",e),l=r;break;case"img":case"image":case"link":xr("error",e),xr("load",e),l=r;break;case"details":xr("toggle",e),l=r;break;case"input":ee(e,r),l=Z(e,r),xr("invalid",e);break;case"option":l=le(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=a({},r,{value:void 0}),xr("invalid",e);break;case"textarea":ue(e,r),l=ie(e,r),xr("invalid",e);break;default:l=r}_e(n,l);var c=l;for(i in c)if(c.hasOwnProperty(i)){var f=c[i];"style"===i?ke(e,f):"dangerouslySetInnerHTML"===i?null!=(f=f?f.__html:void 0)&&he(e,f):"children"===i?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(u.hasOwnProperty(i)?null!=f&&"onScroll"===i&&xr("scroll",e):null!=f&&w(e,i,f,s))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?oe(e,!!r.multiple,i,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=Rr)}Br(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Wo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Pl(Cl.current),Pl(Sl.current),Ql(t)?(r=t.stateNode,n=t.memoizedProps,r[qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[qr]=t,t.stateNode=r)}return null;case 13:return la(zl),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ql(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&zl.current)?0===Ii&&(Ii=3):(0!==Ii&&3!==Ii||(Ii=4),null===Ci||0==(134217727&Mi)&&0==(134217727&Ri)||fu(Ci,Ti))),(r||n)&&(t.flags|=4),null);case 4:return Ll(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return Ja(t),null;case 17:return da(t.type)&&pa(),null;case 19:if(la(zl),null===(r=t.memoizedState))return null;if(i=0!=(64&t.flags),null===(s=r.rendering))if(i)ti(r,!1);else{if(0!==Ii||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Ol(e))){for(t.flags|=64,ti(r,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oa(zl,1&zl.current|2),t.child}e=e.sibling}null!==r.tail&&Ba()>Fi&&(t.flags|=64,i=!0,ti(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Ol(s))){if(t.flags|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ti(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!jl)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ba()-r.renderingStartTime>Fi&&1073741824!==n&&(t.flags|=64,i=!0,ti(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ba(),n.sibling=null,t=zl.current,oa(zl,i?1&t|2:1&t),n):null;case 23:case 24:return hu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function ri(e){switch(e.tag){case 1:da(e.type)&&pa();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ll(),la(sa),la(ua),Vl(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Il(e),null;case 13:return la(zl),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return la(zl),null;case 4:return Ll(),null;case 10:return Ja(e),null;case 23:case 24:return hu(),null;default:return null}}function ai(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a}}function li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Vo=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Pl(Sl.current);var o,i=null;switch(n){case"input":l=Z(e,l),r=Z(e,r),i=[];break;case"option":l=le(e,l),r=le(e,r),i=[];break;case"select":l=a({},l,{value:void 0}),r=a({},r,{value:void 0}),i=[];break;case"textarea":l=ie(e,l),r=ie(e,r),i=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in _e(n,r),n=null,l)if(!r.hasOwnProperty(f)&&l.hasOwnProperty(f)&&null!=l[f])if("style"===f){var s=l[f];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=l?l[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(i=i||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),i||s===c||(i=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}},Wo=function(e,t,n,r){n!==r&&(t.flags|=4)};var oi="function"==typeof WeakMap?WeakMap:Map;function ii(e,t,n){(n=ll(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hi||(Hi=!0,Vi=r),li(0,t)},n}function ui(e,t,n){(n=ll(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return li(0,t),r(a)}}var l=e.stateNode;return null!==l&&"function"==typeof l.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Wi?Wi=new Set([this]):Wi.add(this),li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var si="function"==typeof WeakSet?WeakSet:Set;function ci(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ou(e,t)}else t.current=null}function fi(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$a(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Ur(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function di(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!=(4&(a=a.tag))&&0!=(1&a)&&(Nu(n,e),Lu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$a(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&sl(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}sl(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Br(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function pi(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=we("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function mi(e,t){if(ba&&"function"==typeof ba.onCommitFiberUnmount)try{ba.onCommitFiberUnmount(va,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!=(4&r))Nu(t,n);else{r=t;try{a()}catch(e){Ou(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ci(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ou(t,e)}break;case 5:ci(t);break;case 4:vi(e,t)}}function yi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function hi(e){return 5===e.tag||3===e.tag||4===e.tag}function gi(e){e:{for(var t=e.return;null!==t;){if(hi(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||hi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var a=t.tag,l=5===a||6===a;if(l)t=l?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var a=t.tag,l=5===a||6===a;if(l)t=l?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function vi(e,t){for(var n,r,a=t,l=!1;;){if(!l){l=a.return;e:for(;;){if(null===l)throw Error(o(160));switch(n=l.stateNode,l.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}l=l.return}l=!0}if(5===a.tag||6===a.tag){e:for(var i=e,u=a,s=u;;)if(mi(i,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(i=n,u=a.stateNode,8===i.nodeType?i.parentNode.removeChild(u):i.removeChild(u)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(mi(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(l=!1)}a.sibling.return=a.return,a=a.sibling}}function bi(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var l=t.updateQueue;if(t.updateQueue=null,null!==l){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,a),t=Se(e,r),a=0;a<l.length;a+=2){var i=l[a],u=l[a+1];"style"===i?ke(n,u):"dangerouslySetInnerHTML"===i?he(n,u):"children"===i?ge(n,u):w(n,i,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(l=r.value)?oe(n,!!r.multiple,l,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Bi=Ba(),pi(t.child,!0)),void wi(t);case 19:return void wi(t);case 17:return;case 23:case 24:return void pi(t,null!==t.memoizedState)}throw Error(o(163))}function wi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new si),t.forEach((function(t){var r=Ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ei=Math.ceil,_i=k.ReactCurrentDispatcher,Si=k.ReactCurrentOwner,xi=0,Ci=null,Pi=null,Ti=0,Li=0,Ni=aa(0),Ii=0,zi=null,Oi=0,Mi=0,Ri=0,ji=0,Di=null,Bi=0,Fi=1/0;function Ai(){Fi=Ba()+500}var Qi,Ui=null,Hi=!1,Vi=null,Wi=null,$i=!1,qi=null,Ki=90,Yi=[],Xi=[],Gi=null,Ji=0,Zi=null,eu=-1,tu=0,nu=0,ru=null,au=!1;function lu(){return 0!=(48&xi)?Ba():-1!==eu?eu:eu=Ba()}function ou(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Fa()?1:2;if(0===tu&&(tu=Oi),0!==Wa.transition){0!==nu&&(nu=null!==Di?Di.pendingLanes:0),e=tu;var t=4186112&~nu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Fa(),0!=(4&xi)&&98===e?e=Ft(12,tu):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),tu),e}function iu(e,t,n){if(50<Ji)throw Ji=0,Zi=null,Error(o(185));if(null===(e=uu(e,t)))return null;Ut(e,t,n),e===Ci&&(Ri|=t,4===Ii&&fu(e,Ti));var r=Fa();1===t?0!=(8&xi)&&0==(48&xi)?du(e):(su(e,n),0===xi&&(Ai(),Ha())):(0==(4&xi)||98!==r&&99!==r||(null===Gi?Gi=new Set([e]):Gi.add(e)),su(e,n)),Di=e}function uu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function su(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var u=31-Ht(i),s=1<<u,c=l[u];if(-1===c){if(0==(s&r)||0!=(s&a)){c=t,jt(s);var f=Rt;l[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);i&=~s}if(r=Dt(e,e===Ci?Ti:0),t=Rt,0===r)null!==n&&(n!==za&&Ea(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==za&&Ea(n)}15===t?(n=du.bind(null,e),null===Ma?(Ma=[n],Ra=ka(Pa,Va)):Ma.push(n),n=za):14===t?n=Ua(99,du.bind(null,e)):n=Ua(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),cu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cu(e){if(eu=-1,nu=tu=0,0!=(48&xi))throw Error(o(327));var t=e.callbackNode;if(Tu()&&e.callbackNode!==t)return null;var n=Dt(e,e===Ci?Ti:0);if(0===n)return null;var r=n,a=xi;xi|=16;var l=bu();for(Ci===e&&Ti===r||(Ai(),gu(e,r));;)try{Eu();break}catch(t){vu(e,t)}if(Ga(),_i.current=l,xi=a,null!==Pi?r=0:(Ci=null,Ti=0,r=Ii),0!=(Oi&Ri))gu(e,0);else if(0!==r){if(2===r&&(xi|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(n=Bt(e))&&(r=wu(e,n))),1===r)throw t=zi,gu(e,0),fu(e,n),su(e,Ba()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:xu(e);break;case 3:if(fu(e,n),(62914560&n)===n&&10<(r=Bi+500-Ba())){if(0!==Dt(e,0))break;if(((a=e.suspendedLanes)&n)!==n){lu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ar(xu.bind(null,e),r);break}xu(e);break;case 4:if(fu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var i=31-Ht(n);l=1<<i,(i=r[i])>a&&(a=i),n&=~l}if(n=a,10<(n=(120>(n=Ba()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ei(n/1960))-n)){e.timeoutHandle=Ar(xu.bind(null,e),n);break}xu(e);break;case 5:xu(e);break;default:throw Error(o(329))}}return su(e,Ba()),e.callbackNode===t?cu.bind(null,e):null}function fu(e,t){for(t&=~ji,t&=~Ri,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function du(e){if(0!=(48&xi))throw Error(o(327));if(Tu(),e===Ci&&0!=(e.expiredLanes&Ti)){var t=Ti,n=wu(e,t);0!=(Oi&Ri)&&(n=wu(e,t=Dt(e,t)))}else n=wu(e,t=Dt(e,0));if(0!==e.tag&&2===n&&(xi|=64,e.hydrate&&(e.hydrate=!1,Ur(e.containerInfo)),0!==(t=Bt(e))&&(n=wu(e,t))),1===n)throw n=zi,gu(e,0),fu(e,t),su(e,Ba()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e),su(e,Ba()),null}function pu(e,t){var n=xi;xi|=1;try{return e(t)}finally{0===(xi=n)&&(Ai(),Ha())}}function mu(e,t){var n=xi;xi&=-2,xi|=8;try{return e(t)}finally{0===(xi=n)&&(Ai(),Ha())}}function yu(e,t){oa(Ni,Li),Li|=t,Oi|=t}function hu(){Li=Ni.current,la(Ni)}function gu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Qr(n)),null!==Pi)for(n=Pi.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pa();break;case 3:Ll(),la(sa),la(ua),Vl();break;case 5:Il(r);break;case 4:Ll();break;case 13:case 19:la(zl);break;case 10:Ja(r);break;case 23:case 24:hu()}n=n.return}Ci=e,Pi=Fu(e.current,null),Ti=Li=Oi=t,Ii=0,zi=null,ji=Ri=Mi=0}function vu(e,t){for(;;){var n=Pi;try{if(Ga(),Wl.current=Po,Gl){for(var r=Kl.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}Gl=!1}if(ql=0,Xl=Yl=Kl=null,Jl=!1,Si.current=null,null===n||null===n.return){Ii=1,zi=t,Pi=null;break}e:{var l=e,o=n.return,i=n,u=t;if(t=Ti,i.flags|=2048,i.firstEffect=i.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&i.mode)){var c=i.alternate;c?(i.updateQueue=c.updateQueue,i.memoizedState=c.memoizedState,i.lanes=c.lanes):(i.updateQueue=null,i.memoizedState=null)}var f=0!=(1&zl.current),d=o;do{var p;if(p=13===d.tag){var m=d.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var y=d.memoizedProps;p=void 0!==y.fallback&&(!0!==y.unstable_avoidThisFallback||!f)}}if(p){var h=d.updateQueue;if(null===h){var g=new Set;g.add(s),d.updateQueue=g}else h.add(s);if(0==(2&d.mode)){if(d.flags|=64,i.flags|=16384,i.flags&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var v=ll(-1,1);v.tag=2,ol(i,v)}i.lanes|=1;break e}u=void 0,i=t;var b=l.pingCache;if(null===b?(b=l.pingCache=new oi,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(i)){u.add(i);var w=Mu.bind(null,l,s,i);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((q(i.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ii&&(Ii=2),u=ai(u,i),d=o;do{switch(d.tag){case 3:l=u,d.flags|=4096,t&=-t,d.lanes|=t,il(d,ii(0,l,t));break e;case 1:l=u;var k=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Wi||!Wi.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,il(d,ui(d,l,t));break e}}d=d.return}while(null!==d)}Su(n)}catch(e){t=e,Pi===n&&null!==n&&(Pi=n=n.return);continue}break}}function bu(){var e=_i.current;return _i.current=Po,null===e?Po:e}function wu(e,t){var n=xi;xi|=16;var r=bu();for(Ci===e&&Ti===t||gu(e,t);;)try{ku();break}catch(t){vu(e,t)}if(Ga(),xi=n,_i.current=r,null!==Pi)throw Error(o(261));return Ci=null,Ti=0,Ii}function ku(){for(;null!==Pi;)_u(Pi)}function Eu(){for(;null!==Pi&&!_a();)_u(Pi)}function _u(e){var t=Qi(e.alternate,e,Li);e.memoizedProps=e.pendingProps,null===t?Su(e):Pi=t,Si.current=null}function Su(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ni(n,t,Li)))return void(Pi=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Li)||0==(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ri(t)))return n.flags&=2047,void(Pi=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Pi=t);Pi=t=e}while(null!==t);0===Ii&&(Ii=5)}function xu(e){var t=Fa();return Qa(99,Cu.bind(null,e,t)),null}function Cu(e,t){do{Tu()}while(null!==qi);if(0!=(48&xi))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,l=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var i=e.eventTimes,u=e.expirationTimes;0<l;){var s=31-Ht(l),c=1<<s;a[s]=0,i[s]=-1,u[s]=-1,l&=~c}if(null!==Gi&&0==(24&r)&&Gi.has(e)&&Gi.delete(e),e===Ci&&(Pi=Ci=null,Ti=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=xi,xi|=32,Si.current=null,jr=Kt,dr(i=fr())){if("selectionStart"in i)u={start:i.selectionStart,end:i.selectionEnd};else e:if(u=(u=i.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,l=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,m=0,y=0,h=i,g=null;t:for(;;){for(var v;h!==u||0!==l&&3!==h.nodeType||(d=f+l),h!==s||0!==c&&3!==h.nodeType||(p=f+c),3===h.nodeType&&(f+=h.nodeValue.length),null!==(v=h.firstChild);)g=h,h=v;for(;;){if(h===i)break t;if(g===u&&++m===l&&(d=f),g===s&&++y===c&&(p=f),null!==(v=h.nextSibling))break;g=(h=g).parentNode}h=v}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Dr={focusedElem:i,selectionRange:u},Kt=!1,ru=null,au=!1,Ui=r;do{try{Pu()}catch(e){if(null===Ui)throw Error(o(330));Ou(Ui,e),Ui=Ui.nextEffect}}while(null!==Ui);ru=null,Ui=r;do{try{for(i=e;null!==Ui;){var b=Ui.flags;if(16&b&&ge(Ui.stateNode,""),128&b){var w=Ui.alternate;if(null!==w){var k=w.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&b){case 2:gi(Ui),Ui.flags&=-3;break;case 6:gi(Ui),Ui.flags&=-3,bi(Ui.alternate,Ui);break;case 1024:Ui.flags&=-1025;break;case 1028:Ui.flags&=-1025,bi(Ui.alternate,Ui);break;case 4:bi(Ui.alternate,Ui);break;case 8:vi(i,u=Ui);var E=u.alternate;yi(u),null!==E&&yi(E)}Ui=Ui.nextEffect}}catch(e){if(null===Ui)throw Error(o(330));Ou(Ui,e),Ui=Ui.nextEffect}}while(null!==Ui);if(k=Dr,w=fr(),b=k.focusedElem,i=k.selectionRange,w!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==i&&dr(b)&&(w=i.start,void 0===(k=i.end)&&(k=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(k,b.value.length)):(k=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),u=b.textContent.length,E=Math.min(i.start,u),i=void 0===i.end?E:Math.min(i.end,u),!k.extend&&E>i&&(u=i,i=E,E=u),u=cr(b,E),l=cr(b,i),u&&l&&(1!==k.rangeCount||k.anchorNode!==u.node||k.anchorOffset!==u.offset||k.focusNode!==l.node||k.focusOffset!==l.offset)&&((w=w.createRange()).setStart(u.node,u.offset),k.removeAllRanges(),E>i?(k.addRange(w),k.extend(l.node,l.offset)):(w.setEnd(l.node,l.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(k=w[b]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Kt=!!jr,Dr=jr=null,e.current=n,Ui=r;do{try{for(b=e;null!==Ui;){var _=Ui.flags;if(36&_&&di(b,Ui.alternate,Ui),128&_){w=void 0;var S=Ui.ref;if(null!==S){var x=Ui.stateNode;switch(Ui.tag){case 5:w=x;break;default:w=x}"function"==typeof S?S(w):S.current=w}}Ui=Ui.nextEffect}}catch(e){if(null===Ui)throw Error(o(330));Ou(Ui,e),Ui=Ui.nextEffect}}while(null!==Ui);Ui=null,Oa(),xi=a}else e.current=n;if($i)$i=!1,qi=e,Ki=t;else for(Ui=r;null!==Ui;)t=Ui.nextEffect,Ui.nextEffect=null,8&Ui.flags&&((_=Ui).sibling=null,_.stateNode=null),Ui=t;if(0===(r=e.pendingLanes)&&(Wi=null),1===r?e===Zi?Ji++:(Ji=0,Zi=e):Ji=0,n=n.stateNode,ba&&"function"==typeof ba.onCommitFiberRoot)try{ba.onCommitFiberRoot(va,n,void 0,64==(64&n.current.flags))}catch(e){}if(su(e,Ba()),Hi)throw Hi=!1,e=Vi,Vi=null,e;return 0!=(8&xi)||Ha(),null}function Pu(){for(;null!==Ui;){var e=Ui.alternate;au||null===ru||(0!=(8&Ui.flags)?Ze(Ui,ru)&&(au=!0):13===Ui.tag&&ki(e,Ui)&&Ze(Ui,ru)&&(au=!0));var t=Ui.flags;0!=(256&t)&&fi(e,Ui),0==(512&t)||$i||($i=!0,Ua(97,(function(){return Tu(),null}))),Ui=Ui.nextEffect}}function Tu(){if(90!==Ki){var e=97<Ki?97:Ki;return Ki=90,Qa(e,Iu)}return!1}function Lu(e,t){Yi.push(t,e),$i||($i=!0,Ua(97,(function(){return Tu(),null})))}function Nu(e,t){Xi.push(t,e),$i||($i=!0,Ua(97,(function(){return Tu(),null})))}function Iu(){if(null===qi)return!1;var e=qi;if(qi=null,0!=(48&xi))throw Error(o(331));var t=xi;xi|=32;var n=Xi;Xi=[];for(var r=0;r<n.length;r+=2){var a=n[r],l=n[r+1],i=a.destroy;if(a.destroy=void 0,"function"==typeof i)try{i()}catch(e){if(null===l)throw Error(o(330));Ou(l,e)}}for(n=Yi,Yi=[],r=0;r<n.length;r+=2){a=n[r],l=n[r+1];try{var u=a.create;a.destroy=u()}catch(e){if(null===l)throw Error(o(330));Ou(l,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return xi=t,Ha(),!0}function zu(e,t,n){ol(e,t=ii(0,t=ai(n,t),1)),t=lu(),null!==(e=uu(e,1))&&(Ut(e,1,t),su(e,t))}function Ou(e,t){if(3===e.tag)zu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wi||!Wi.has(r))){var a=ui(n,e=ai(t,e),1);if(ol(n,a),a=lu(),null!==(n=uu(n,1)))Ut(n,1,a),su(n,a);else if("function"==typeof r.componentDidCatch&&(null===Wi||!Wi.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=lu(),e.pingedLanes|=e.suspendedLanes&n,Ci===e&&(Ti&n)===n&&(4===Ii||3===Ii&&(62914560&Ti)===Ti&&500>Ba()-Bi?gu(e,0):ji|=n),su(e,t)}function Ru(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Fa()?1:2:(0===tu&&(tu=Oi),0===(t=At(62914560&~tu))&&(t=4194304))),n=lu(),null!==(e=uu(e,t))&&(Ut(e,t,n),su(e,n))}function ju(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(e,t,n,r){return new ju(e,t,n,r)}function Bu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fu(e,t){var n=e.alternate;return null===n?((n=Du(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Au(e,t,n,r,a,l){var i=2;if(r=e,"function"==typeof e)Bu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case S:return Qu(n.children,a,l,t);case j:i=8,a|=16;break;case x:i=8,a|=1;break;case C:return(e=Du(12,n,t,8|a)).elementType=C,e.type=C,e.lanes=l,e;case N:return(e=Du(13,n,t,a)).type=N,e.elementType=N,e.lanes=l,e;case I:return(e=Du(19,n,t,a)).elementType=I,e.lanes=l,e;case D:return Uu(n,a,l,t);case B:return(e=Du(24,n,t,a)).elementType=B,e.lanes=l,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:i=10;break e;case T:i=9;break e;case L:i=11;break e;case z:i=14;break e;case O:i=16,r=null;break e;case M:i=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Du(i,n,t,a)).elementType=e,t.type=r,t.lanes=l,t}function Qu(e,t,n,r){return(e=Du(7,e,r,t)).lanes=n,e}function Uu(e,t,n,r){return(e=Du(23,e,r,t)).elementType=D,e.lanes=n,e}function Hu(e,t,n){return(e=Du(6,e,null,t)).lanes=n,e}function Vu(e,t,n){return(t=Du(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Qt(0),this.expirationTimes=Qt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qt(0),this.mutableSourceEagerHydrationData=null}function $u(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function qu(e,t,n,r){var a=t.current,l=lu(),i=ou(a);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(da(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var s=n.type;if(da(s)){n=ya(n,s,u);break e}}n=u}else n=ia;return null===t.context?t.context=n:t.pendingContext=n,(t=ll(l,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ol(a,t),iu(a,i,l),i}function Ku(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function Gu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Wu(e,t,null!=n&&!0===n.hydrate),t=Du(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,rl(t),e[Yr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(e,t,n,r,a){var l=n._reactRootContainer;if(l){var o=l._internalRoot;if("function"==typeof a){var i=a;a=function(){var e=Ku(o);i.call(e)}}qu(t,o,e,a)}else{if(l=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Gu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=l._internalRoot,"function"==typeof a){var u=a;a=function(){var e=Ku(o);u.call(e)}}mu((function(){qu(t,o,e,a)}))}return Ku(o)}function es(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(o(200));return $u(e,t,null,n)}Qi=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||sa.current)zo=!0;else{if(0==(n&r)){switch(zo=!1,t.tag){case 3:Uo(t),Ul();break;case 5:Nl(t);break;case 1:da(t.type)&&ha(t);break;case 4:Tl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;oa(qa,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?qo(e,t,n):(oa(zl,1&zl.current),null!==(t=ei(e,t,n))?t.sibling:null);oa(zl,1&zl.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Zo(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),oa(zl,zl.current),r)break;return null;case 23:case 24:return t.lanes=0,Do(e,t,n)}return ei(e,t,n)}zo=0!=(16384&e.flags)}else zo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=fa(t,ua.current),el(t,n),a=to(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,da(r)){var l=!0;ha(t)}else l=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,rl(t);var i=r.getDerivedStateFromProps;"function"==typeof i&&fl(t,r,i,e),a.updater=dl,t.stateNode=a,a._reactInternals=t,hl(t,r,e,n),t=Qo(null,t,r,!0,l,n)}else t.tag=0,Oo(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(l=a._init)(a._payload),t.type=a,l=t.tag=function(e){if("function"==typeof e)return Bu(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===z)return 14}return 2}(a),e=$a(a,e),l){case 0:t=Fo(null,t,a,e,n);break e;case 1:t=Ao(null,t,a,e,n);break e;case 11:t=Mo(null,t,a,e,n);break e;case 14:t=Ro(null,t,a,$a(a.type,e),r,n);break e}throw Error(o(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Fo(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ao(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 3:if(Uo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,al(e,t),ul(t,r,null,n),(r=t.memoizedState.element)===a)Ul(),t=ei(e,t,n);else{if((l=(a=t.stateNode).hydrate)&&(Rl=Hr(t.stateNode.containerInfo.firstChild),Ml=t,l=jl=!0),l){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(l=e[a])._workInProgressVersionPrimary=e[a+1],Hl.push(l);for(n=El(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Oo(e,t,r,n),Ul();t=t.child}return t;case 5:return Nl(t),null===e&&Fl(t),r=t.type,a=t.pendingProps,l=null!==e?e.memoizedProps:null,i=a.children,Fr(r,a)?i=null:null!==l&&Fr(r,l)&&(t.flags|=16),Bo(e,t),Oo(e,t,i,n),t.child;case 6:return null===e&&Fl(t),null;case 13:return qo(e,t,n);case 4:return Tl(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=kl(t,null,r,n):Oo(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Mo(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 7:return Oo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Oo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value;var u=t.type._context;if(oa(qa,u._currentValue),u._currentValue=l,null!==i)if(u=i.value,0===(l=or(u,l)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,l):1073741823))){if(i.children===a.children&&!sa.current){t=ei(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){i=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&l)){1===u.tag&&((c=ll(-1,n&-n)).tag=2,ol(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),Za(u.return,n),s.lanes|=n;break}c=c.next}}else i=10===u.tag&&u.type===t.type?null:u.child;if(null!==i)i.return=u;else for(i=u;null!==i;){if(i===t){i=null;break}if(null!==(u=i.sibling)){u.return=i.return,i=u;break}i=i.return}u=i}Oo(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(l=t.pendingProps).children,el(t,n),r=r(a=tl(a,l.unstable_observedBits)),t.flags|=1,Oo(e,t,r,n),t.child;case 14:return l=$a(a=t.type,t.pendingProps),Ro(e,t,a,l=$a(a.type,l),r,n);case 15:return jo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$a(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,da(r)?(e=!0,ha(t)):e=!1,el(t,n),ml(t,r,a),hl(t,r,a,n),Qo(null,t,r,!0,e,n);case 19:return Zo(e,t,n);case 23:case 24:return Do(e,t,n)}throw Error(o(156,t.tag))},Gu.prototype.render=function(e){qu(e,this._internalRoot,null,null)},Gu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qu(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(iu(e,4,lu()),Xu(e,4))},tt=function(e){13===e.tag&&(iu(e,67108864,lu()),Xu(e,67108864))},nt=function(e){if(13===e.tag){var t=lu(),n=ou(e);iu(e,n,t),Xu(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=ea(r);if(!a)throw Error(o(90));G(r),ne(r,a)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},ze=pu,Oe=function(e,t,n,r,a){var l=xi;xi|=4;try{return Qa(98,e.bind(null,t,n,r,a))}finally{0===(xi=l)&&(Ai(),Ha())}},Me=function(){0==(49&xi)&&(function(){if(null!==Gi){var e=Gi;Gi=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,su(e,Ba())}))}Ha()}(),Tu())},Re=function(e,t){var n=xi;xi|=2;try{return e(t)}finally{0===(xi=n)&&(Ai(),Ha())}};var ts={Events:[Jr,Zr,ea,Ne,Ie,Tu,{current:!1}]},ns={findFiberByHostInstance:Gr,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},rs={bundleType:ns.bundleType,version:ns.version,rendererPackageName:ns.rendererPackageName,rendererConfig:ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ns.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var as=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!as.isDisabled&&as.supportsFiber)try{va=as.inject(rs),ba=as}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ts,t.createPortal=es,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=xi;if(0!=(48&n))return e(t);xi|=1;try{if(e)return Qa(99,e.bind(null,t))}finally{xi=n,Ha()}},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(o(200));return Zu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ju(t))throw Error(o(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(o(40));return!!e._reactRootContainer&&(mu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=pu,t.unstable_createPortal=function(e,t){return es(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zu(e,t,n,!1,r)},t.version="17.0.1"},function(e,t,n){"use strict";e.exports=n(9)},function(e,t,n){"use strict";
25
- /** @license React v0.20.1
26
- * scheduler.production.min.js
27
- *
28
- * Copyright (c) Facebook, Inc. and its affiliates.
29
- *
30
- * This source code is licensed under the MIT license found in the
31
- * LICENSE file in the root directory of this source tree.
32
- */var r,a,l,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},a=function(e,t){f=setTimeout(e,t)},l=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var y=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,g=null,v=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,E=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();w=e+b;try{g(!0,e)?E.postMessage(null):(h=!1,g=null)}catch(e){throw E.postMessage(null),e}}else h=!1},r=function(e){g=e,h||(h=!0,E.postMessage(null))},a=function(e,n){v=p((function(){e(t.unstable_now())}),n)},l=function(){m(v),v=-1}}function _(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<C(a,t)))break e;e[r]=t,e[n]=a,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var l=2*(r+1)-1,o=e[l],i=l+1,u=e[i];if(void 0!==o&&0>C(o,n))void 0!==u&&0>C(u,o)?(e[r]=u,e[i]=n,r=i):(e[r]=o,e[l]=n,r=l);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[i]=n,r=i}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],T=[],L=1,N=null,I=3,z=!1,O=!1,M=!1;function R(e){for(var t=S(T);null!==t;){if(null===t.callback)x(T);else{if(!(t.startTime<=e))break;x(T),t.sortIndex=t.expirationTime,_(P,t)}t=S(T)}}function j(e){if(M=!1,R(e),!O)if(null!==S(P))O=!0,r(D);else{var t=S(T);null!==t&&a(j,t.startTime-e)}}function D(e,n){O=!1,M&&(M=!1,l()),z=!0;var r=I;try{for(R(n),N=S(P);null!==N&&(!(N.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=N.callback;if("function"==typeof o){N.callback=null,I=N.priorityLevel;var i=o(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?N.callback=i:N===S(P)&&x(P),R(n)}else x(P);N=S(P)}if(null!==N)var u=!0;else{var s=S(T);null!==s&&a(j,s.startTime-n),u=!1}return u}finally{N=null,I=r,z=!1}}var B=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||z||(O=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return S(P)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,n,o){var i=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:L++,callback:n,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>i?(e.sortIndex=o,_(T,e),null===S(P)&&e===S(T)&&(M?l():M=!0,a(j,o-i))):(e.sortIndex=u,_(P,e),O||z||(O=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},function(e,t,n){"use strict";n.r(t);var r,a=n(1),l=n(0),o=n.n(l),i=n(3),u=n.n(i);var s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),c=new Uint8Array(16);function f(){if(!s)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(c)}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=function(e){return"string"==typeof e&&d.test(e)},m=[],y=0;y<256;++y)m.push((y+256).toString(16).substr(1));var h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase();if(!p(n))throw TypeError("Stringified UUID is invalid");return n};for(var g=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return h(r)},v=n(4),b=n.n(v),w=wp.i18n.__,k=["yasr-rater-stars","yasr-rater-stars-vv","yasr-multiset-visitors-rater"],E=0;E<k.length;E++)_(k[E]);function _(e){var t=document.getElementsByClassName(e);if(t.length>0){if("yasr-rater-stars"!==e&&"yasr-ranking-stars"!==e||function(e){for(var t=0;t<e.length;t++)if(!1===e.item(t).classList.contains("yasr-star-rating")){var n=e.item(t),r=n.id;S(n.getAttribute("data-rater-starsize"),r,n)}}(t),"yasr-rater-stars-vv"===e&&(function(e){for(var t=0;t<e.length;t++)!function(t){if(!1===e.item(t).classList.contains("yasr-star-rating")){var n=e.item(t),r=n.getAttribute("data-rating"),a=n.getAttribute("data-readonly-attribute"),l=n.getAttribute("data-rater-readonly");null===a&&(a=!1),a=C(a),l=C(l),!0===a&&(l=!0);var o=n.getAttribute("data-rater-postid"),i=n.id,u=i.replace("yasr-visitor-votes-rater-",""),s=parseInt(n.getAttribute("data-rater-starsize")),c=n.getAttribute("data-rater-nonce"),f=n.getAttribute("data-issingular"),d="yasr-vv-votes-number-container-"+u,p="yasr-vv-average-container-"+u,m=document.getElementById(d),y=document.getElementById(p),h="yasr-vv-loader-"+u,g=!1;if("yes"===yasrCommonData.ajaxEnabled){var v=n.getAttribute("data-cpt");""===v&&(v="posts");var b="wp/v2/"+v+"/"+o+"?_fields=yasr_visitor_votes&_wpnonce="+yasrCommonData.nonce;jQuery.get(yasrCommonData.restEndpoint+b).done((function(e){var t;(t=!0===a||e.yasr_visitor_votes.stars_attributes.read_only,r=(r=e.yasr_visitor_votes.number_of_votes>0?e.yasr_visitor_votes.sum_votes/e.yasr_visitor_votes.number_of_votes:0).toFixed(1),r=parseFloat(r),x(s,r,o,t,i,u,c,f,m,y,h),!0!==a)&&(null!==m&&(m.innerHTML=e.yasr_visitor_votes.number_of_votes),null!==y&&(y.innerHTML=r),!1!==e.yasr_visitor_votes.stars_attributes.span_bottom&&(g=e.yasr_visitor_votes.stars_attributes.span_bottom,document.getElementById(h).innerHTML=g))})).fail((function(e,t,n,d){console.info(w("YASR ajax call failed. Showing ratings from html","yet-another-stars-rating")),x(s,r,o,l,i,u,c,f,m,y,h),!0!==a&&(document.getElementById("yasr-below-stars-hidden-"+u).style.display="")}))}else x(s,r,o,l,i,u,c,f,m,y,h)}}(t)}(t),"yes"===yasrCommonData.visitorStatsEnabled)){var n=document.getElementsByClassName("yasr-dashicons-visitor-stats");n&&function(e){for(var t=!1,n=0;n<e.length;n++)!function(n){var r="#"+e.item(n).id,a={action:"yasr_stats_visitors_votes",post_id:e.item(n).getAttribute("data-postid")};tippy(r,{content:'<span style="color: #0a0a0a">Loading...</span>',theme:"yasr",arrow:"true",arrowType:"round",onShow:function(e){r!==t&&jQuery.post(yasrCommonData.ajaxurl,a,(function(t){t=JSON.parse(t),e.setContent(t)}))},onHidden:function(){t=r}})}(n)}(n)}"yasr-multiset-visitors-rater"===e&&function(e){for(var t="",n=[],r=0;r<e.length;r++)!function(r){if(!1===e.item(r).classList.contains("yasr-star-rating")){var a=e.item(r),l=a.id,o=a.getAttribute("data-rater-readonly");o=C(o);S(16,l,a,1,o,!1,(function(e,r){var l=a.getAttribute("data-rater-postid"),o=a.getAttribute("data-rater-setid"),i=a.getAttribute("data-rater-set-field-id");e=e.toFixed(1);var u=parseInt(e);this.setRating(u),t={postid:l,setid:o,field:i,rating:u},n.push(t),r()}))}}(r);jQuery(".yasr-send-visitor-multiset").on("click",(function(){var e=this.getAttribute("data-postid"),t=this.getAttribute("data-setid"),r=this.getAttribute("data-nonce");jQuery("#yasr-send-visitor-multiset-"+e+"-"+t).hide(),jQuery("#yasr-loader-multiset-visitor-"+e+"-"+t).show();var a={action:"yasr_visitor_multiset_field_vote",nonce:r,post_id:e,rating:n,set_type:t};jQuery.post(yasrCommonData.ajaxurl,a,(function(n){jQuery("#yasr-loader-multiset-visitor-"+e+"-"+t).text(n)}))}))}(t)}}function S(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.1,l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6&&void 0!==arguments[6]&&arguments[6];n=r||document.getElementById(t),e=parseInt(e),b()({starSize:e,showToolTip:!1,element:n,step:a,readOnly:l,rating:o,rateCallback:i})}function x(e,t,n,r,a,l,o,i,u,s,c){t=parseFloat(t),r=C(r);S(e,a,document.getElementById(a),1,r,t,(function(e,t){document.getElementById(c).innerHTML=yasrCommonData.loaderHtml;var r={action:"yasr_send_visitor_rating",rating:e,post_id:n,nonce_visitor:o,is_singular:i};this.setRating(e),this.disable(),jQuery.post(yasrCommonData.ajaxurl,r,(function(e){e=JSON.parse(e),null!==u&&(u.innerHTML=e.number_of_votes),null!==s&&(s.innerHTML=e.average_rating),document.getElementById(c).innerHTML=e.rating_saved_text})),t()}))}function C(e){return null!=e&&""!==e||(e=!0),"true"!==e&&"1"!==e||(e=!0),"false"!==e&&"0"!==e||(e=!1),e}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=z(e);if(t){var a=z(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Q();var O=wp.i18n.__;function M(e){var t="yasr-ranking-element-"+g(),n=document.getElementById(e.tableId).dataset.rankingSize;return o.a.createElement("div",{id:t,ref:function(){return S(n,t,!1,.1,!0,e.rating)}})}function R(e){if(void 0!==e.post.number_of_votes)return o.a.createElement("span",{className:"yasr-most-rated-text"},"[",O("Total:","yet-another-stars-rating")," ",e.post.number_of_votes,"  ",O("Average:","yet-another-stars-rating")," ",e.post.rating,"]");var t=e.text;return o.a.createElement("span",{className:"yasr-highest-rated-text"},t," ",e.post.rating)}function j(e){return o.a.createElement("td",{className:e.colClass},o.a.createElement("a",{href:e.post.link},function(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===r&&(r=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),r.innerHTML=e;var t=r.textContent;return r.innerHTML="",t}(e.post.title)))}function D(e){var t="after",n=O("Rating:","yet-another-stars-rating"),r=new URLSearchParams(e.rankingParams);return null!==r.get("text_position")&&(t=r.get("text_position")),null!==r.get("custom_txt")&&(n=r.get("custom_txt")),"before"===t?o.a.createElement("td",{className:e.colClass},o.a.createElement(R,{post:e.post,tableId:e.tableId,text:n}),o.a.createElement(M,{rating:e.post.rating,tableId:e.tableId})):o.a.createElement("td",{className:e.colClass},o.a.createElement(M,{rating:e.post.rating,tableId:e.tableId}),o.a.createElement(R,{post:e.post,tableId:e.tableId,text:n}))}function B(e){var t="",n="";return"overall_rating"===e.source?(t="yasr-top-10-overall-left",n="yasr-top-10-overall-right"):"visitor_votes"===e.source&&(t="yasr-top-10-most-highest-left",n="yasr-top-10-most-highest-right"),o.a.createElement("tr",{className:e.trClass},o.a.createElement(j,{colClass:t,post:e.post}),o.a.createElement(D,{colClass:n,post:e.post,tableId:e.tableId,rankingParams:e.rankingParams}))}function F(e){return o.a.createElement("tbody",{id:e.tBodyId,style:{display:e.show}},e.data.map((function(t,n){var r="yasr-rankings-td-colored";return"overall_rating"===e.source&&(r="yasr-rankings-td-white"),n%2==0&&(r="yasr-rankings-td-white","overall_rating"===e.source&&(r="yasr-rankings-td-colored")),o.a.createElement(B,{key:t.post_id,source:e.source,tableId:e.tableId,rankingParams:e.rankingParams,post:t,trClass:r})})))}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}(l,e);var t,n,r,a=N(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={error:null,isLoaded:!1,data:[],tableId:e.tableId,source:e.source,rankingParams:e.params},t}return t=l,(n=[{key:"componentDidMount",value:function(){var e=this,t=JSON.parse(document.getElementById(this.state.tableId).dataset.rankingData),n={};if("yes"!==yasrCommonData.ajaxEnabled)console.info(O("Ajax Disabled, getting data from source","yet-another-stars-rating")),this.setState({isLoaded:!0,data:t});else if(!1!==this.state.source){var r=this.returnRestUrl();Promise.all(r.map((function(e){return fetch(e).then((function(e){return!0===e.ok?e.json():(console.info(O("Ajax Call Failed. Getting data from source")),"KO")})).then((function(e){"KO"===e?n=t:("overall_rating"===e.source&&(n=e),"visitor_votes"===e.source&&(n[e.show]=e.data_vv))})).catch((function(e){n=t,console.info(O(e))}))}))).then((function(t){e.setState({isLoaded:!0,data:n})})).catch((function(t){console.info(O(t)),e.setState({isLoaded:!0,data:n})}))}else this.setState({error:O("Invalid Data Source","yet-another-stars-rating")})}},{key:"returnRestUrl",value:function(){var e=""!==this.state.rankingParams?this.state.rankingParams:"",t=this.state.source,n=!1,r="yet-another-stars-rating/v1/yasr-rankings/",a="";if(""!==e&&!1!==e){var l=new URLSearchParams(e);null!==l.get("order_by")&&(a+="order_by="+l.get("order_by")),null!==l.get("limit")&&(a+="&limit="+l.get("limit")),null!==l.get("ctg")?a+="&ctg="+l.get("ctg"):null!==l.get("cpt")&&(a+="&cpt="+l.get("cpt")),""!==a&&(a="&"+(a=a.replace(/\s+/g,"")))}else a="";if("overall_rating"===t&&(n=[yasrCommonData.restEndpoint+r+"?source="+t+a]),"visitor_votes"===t){var o="",i="";if(""!==e){var u=new URLSearchParams(e);null!==u.get("required_votes[most]")&&(o="&required_votes="+u.get("required_votes[most]")),null!==u.get("required_votes[highest]")&&(i="&required_votes="+u.get("required_votes[highest]"))}n=[yasrCommonData.restEndpoint+r+"?show=most&source="+t+a+o,yasrCommonData.restEndpoint+r+"?show=highest&source="+t+a+i]}return n}},{key:"rankingTableHead",value:function(e,t){var n=this.state.tableId,r="link-most-rated-posts-"+n,a="link-highest-rated-posts-"+n;if("visitor_votes"===e){var l=o.a.createElement("span",null,o.a.createElement("span",{id:r},O("Most Rated","yet-another-stars-rating"))," | ",o.a.createElement("a",{href:"#",id:a,onClick:this.switchTBody.bind(this)},O("Highest Rated","yet-another-stars-rating")));return"highest"===t&&(l=o.a.createElement("span",null,o.a.createElement("span",{id:a},O("Highest Rated","yet-another-stars-rating"))," | ",o.a.createElement("a",{href:"#",id:r,onClick:this.switchTBody.bind(this)},O("Most Rated","yet-another-stars-rating")))),o.a.createElement("thead",null,o.a.createElement("tr",{className:"yasr-rankings-td-colored yasr-rankings-heading"},o.a.createElement("th",null,"Post"),o.a.createElement("th",null,O("Order By","yet-another-stars-rating-pro"),":  ",l)))}return o.a.createElement(o.a.Fragment,null)}},{key:"switchTBody",value:function(e){e.preventDefault();var t=e.target.id,n=this.state.tableId,r="link-most-rated-posts-"+n,a="link-highest-rated-posts-"+n,l="most-rated-posts-"+n,o="highest-rated-posts-"+n,i=document.getElementById(t),u=document.createElement("span");u.innerHTML=i.innerHTML,u.id=i.id,i.parentNode.replaceChild(u,i),t===r&&(document.getElementById(o).style.display="none",document.getElementById(l).style.display="",u=document.getElementById(a),i.innerHTML=u.innerHTML,i.id=u.id,u.parentNode.replaceChild(i,u)),t===a&&(document.getElementById(l).style.display="none",document.getElementById(o).style.display="",u=document.getElementById(r),i.innerHTML=u.innerHTML,i.id=u.id,u.parentNode.replaceChild(i,u))}},{key:"rankingTableBody",value:function(){var e=this.state,t=e.data,n=e.source,r=e.rankingParams;if("overall_rating"===n)return o.a.createElement(F,{data:t.data_overall,tableId:this.state.tableId,tBodyId:"overall_"+this.state.tableId,rankingParams:r,show:"table-row-group",source:n});if("visitor_votes"===n){var a=t.most,l=t.highest,i="most",u="table-row-group",s="none",c=new URLSearchParams(r);return null!==c.get("view")&&(i=c.get("view")),"highest"===i&&(u="none",s="table-row-group"),o.a.createElement(o.a.Fragment,null,this.rankingTableHead(n,i),o.a.createElement(F,{data:a,tableId:this.state.tableId,tBodyId:"most-rated-posts-"+this.state.tableId,rankingParams:r,show:u,source:n}),o.a.createElement(F,{data:l,tableId:this.state.tableId,tBodyId:"highest-rated-posts-"+this.state.tableId,rankingParams:r,show:s,source:n}))}}},{key:"render",value:function(){var e=this.state,t=e.error,n=e.isLoaded;return t?o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("td",null,console.log(t),"Error"))):!1===n?o.a.createElement("tbody",null,o.a.createElement("tr",null,o.a.createElement("td",null,O("Loading Charts","yet-another-stars-rating")))):o.a.createElement(o.a.Fragment,null,this.rankingTableBody())}}])&&T(t.prototype,n),r&&T(t,r),l}(o.a.Component);function Q(){var e=document.getElementsByClassName("yasr-stars-rankings");if(e.length>0)for(var t=0;t<e.length;t++){var n=e.item(t).id,r=e.item(t).dataset.rankingSource,a=JSON.parse(e.item(t).dataset.rankingParams),l=document.getElementById(n),i=!1;"overall_rating"!==r&&"visitor_votes"!==r||(i=r),u.a.render(o.a.createElement(A,{source:i,tableId:n,params:a}),l)}}var U=wp.i18n.__;if("rankings"===a.activeTab){var H,V=function(e){var t=J.value,n=document.getElementById("yasr-builder-shortcode").textContent;fetch(ajaxurl+"?action=yasr_rankings_preview_shortcode&shortcode="+t+"&full_shortcode="+n).then((function(e){return!0===e.ok?e.json():(console.info(U("Ajax Call Failed. Shortcode preview can't be done","yet-another-stars-rating")),"KO")})).catch((function(e){console.info(e)})).then((function(e){if("KO"!==e){var t=document.createElement("div");t.innerHTML=e,G.childNodes.length>0?G.replaceChild(t,G.childNodes[0]):G.appendChild(t)}})).then((function(e){"yasr_ov_ranking"!==t&&"yasr_most_or_highest_rated_posts"!==t||Q()}))},W=function(e,t,n,r,a,l,o){e.style.display="",t.style.display="",l.style.display="",n.style.display="none",r.style.display="none",a.style.display="none",null!==o&&(o.style.display="")},$=function(e,t,n,r,a,l,o){a.style.display="",e.style.display="none",n.style.display="none",r.style.display="none",t.style.display="none",l.style.display="none",null!==o&&(o.style.display="none")};jQuery(".yasr-builder-elements-parents").prop("disabled",!0),jQuery(".yasr-builder-elements-childs").prop("disabled",!0),wp.hooks.doAction("yasrBuilderBegin",".yasr-builder-elements-parents",".yasr-builder-elements-childs");var q=[],K={name:"yasr_most_or_highest_rated_posts",rows:"",size:"",view:"",minvotesmost:"",minvoteshg:"",txtPosition:"",txt:"",display:"",category:"",cpt:""};H=K.name,document.getElementById("yasr-builder-shortcode").textContent="["+H+"]",document.getElementById("yasr-builder-copy-shortcode").setAttribute("data-shortcode","["+H+"]");var Y=document.getElementById("yasr-builder-button-preview"),X=document.getElementById("yasr-builder-copy-shortcode"),G=document.getElementById("yasr-builder-preview"),J=document.getElementById("yasr-ranking-source"),Z=document.getElementById("builder-vv-default-view"),ee=document.getElementById("builder-vv-required-votes"),te=document.getElementById("builder-stars-size"),ne=document.getElementById("builder-overall-text"),re=document.getElementById("builder-username-options"),ae=document.getElementById("builder-category"),le=document.getElementById("builder-cpt"),oe=J.value,ie=!1;"yasr_ov_ranking"===oe?W(ne,te,Z,ee,re,ae,le):"yasr_most_active_users"!==J.value&&"yasr_top_reviewers"!==J.value||$(ne,te,Z,ee,re,ae,le),document.addEventListener("change",(function(e){if("yasr-ranking-source"===e.target.id)G.innerHTML="","yasr_ov_ranking"===e.target.value?W(ne,te,Z,ee,re,ae,le):"yasr_most_active_users"===e.target.value||"yasr_top_reviewers"===e.target.value?$(ne,te,Z,ee,re,ae,le):function(e,t,n,r,a,l,o){n.style.display="",r.style.display="",t.style.display="",l.style.display="",e.style.display="none",a.style.display="none",null!==o&&(o.style.display="")}(ne,te,Z,ee,re,ae,le),(K={name:"yasr_most_or_highest_rated_posts",rows:"",size:"",view:"",minvotesmost:"",minvoteshg:"",txtPosition:"",txt:"",display:"",category:"",cpt:""}).name=e.target.value,H=K.name;else{q=wp.hooks.applyFilters("yasrBuilderFilterShortcode",K);for(var t=1;K.length;t++)q.hasOwnProperty(K[t])&&(K[t]=q[t]);H=K.name+K.rows+K.view+K.minvotesmost+K.minvoteshg+K.size+K.txtPosition+K.txt+K.display+K.category+K.cpt}document.getElementById("yasr-builder-shortcode").textContent="["+H+"]",document.getElementById("yasr-builder-copy-shortcode").setAttribute("data-shortcode","["+H+"]"),!0===ie&&"yasr-ranking-source"!==e.target.id&&"yasr-builder-category-radio"!==e.target.name&&V()})),X.onclick=function(e){var t=document.getElementById(e.target.id);copyToClipboard(t.getAttribute("data-shortcode"))},Y.onclick=function(e){V(),ie=!0}}}]);
1
+ !function(t){var e={};function r(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=e,r.d=function(t,e,a){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(a,n,function(e){return t[e]}.bind(null,n));return a},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){r(1),t.exports=r(2)},function(t,e){var r;if(document.getElementsByClassName("nav-tab-active").length>0&&(r=document.getElementsByClassName("nav-tab-active")[0].id),"general_settings"===r){var a=document.getElementById("yasr_auto_insert_switch").checked,n=document.getElementById("yasr-general-options-stars-title-switch").checked,s=document.getElementById("yasr-general-options-text-before-stars-switch").checked;!1===a&&jQuery(".yasr-auto-insert-options-class").prop("disabled",!0),!1===n&&jQuery(".yasr-stars-title-options-class").prop("disabled",!0),document.getElementById("yasr_auto_insert_switch").addEventListener("change",(function(){this.checked?jQuery(".yasr-auto-insert-options-class").prop("disabled",!1):jQuery(".yasr-auto-insert-options-class").prop("disabled",!0)})),document.getElementById("yasr-general-options-stars-title-switch").addEventListener("change",(function(){this.checked?jQuery(".yasr-stars-title-options-class").prop("disabled",!1):jQuery(".yasr-stars-title-options-class").prop("disabled",!0)})),!1===s&&jQuery(".yasr-general-options-text-before").find(":input").prop("disabled",!0),document.getElementById("yasr-general-options-text-before-stars-switch").addEventListener("change",(function(){this.checked?(jQuery(".yasr-general-options-text-before").find(":input").prop("disabled",!1),jQuery("#yasr-general-options-custom-text-before-overall").val("Our Score"),jQuery("#yasr-general-options-custom-text-before-visitor").val("Click to rate this post!"),jQuery("#yasr-general-options-custom-text-after-visitor").val("[Total: %total_count% Average: %average%]"),jQuery("#yasr-general-options-custom-text-must-sign-in").val("You must sign in to vote"),jQuery("#yasr-general-options-custom-text-already-rated").val("You have already voted for this article with %rating%")):jQuery(".yasr-general-options-text-before").find(":input").prop("disabled",!0)}))}if("style_options"===r&&(wp.codeEditor.initialize(document.getElementById("yasr_style_options_textarea"),yasr_cm_settings),jQuery("#yasr-color-scheme-preview-link").on("click",(function(){return jQuery("#yasr-color-scheme-preview").toggle("slow"),!1})),wp.hooks.doAction("yasrStyleOptions")),"manage_multi"===r){var o=parseInt(document.getElementById("n-multiset").value);if(jQuery("#yasr-multi-set-doc-link").on("click",(function(){jQuery("#yasr-multi-set-doc-box").toggle("slow")})),jQuery("#yasr-multi-set-doc-link-hide").on("click",(function(){jQuery("#yasr-multi-set-doc-box").toggle("slow")})),1===o){var i=jQuery("#yasr-edit-form-number-elements").attr("value");i++,jQuery("#yasr-add-field-edit-multiset").on("click",(function(){if(i>9)return jQuery("#yasr-element-limit").show(),jQuery("#yasr-add-field-edit-multiset").hide(),!1;var t=jQuery(document.createElement("tr"));t.html('<td colspan="2">Element #'+i+' <input type="text" name="edit-multi-set-element-'+i+'" value="" ></td>'),t.appendTo("#yasr-table-form-edit-multi-set"),i++}))}else o>1&&(jQuery("#yasr-button-select-set-edit-form").on("click",(function(){var t={action:"yasr_get_multi_set",set_id:jQuery("#yasr_select_edit_set").val()};return jQuery.post(ajaxurl,t,(function(t){jQuery("#yasr-multi-set-response").show(),jQuery("#yasr-multi-set-response").html(t)})),!1})),jQuery(document).ajaxComplete((function(){var t=jQuery("#yasr-edit-form-number-elements").attr("value");t++,jQuery("#yasr-add-field-edit-multiset").on("click",(function(){if(t>9)return jQuery("#yasr-element-limit").show(),jQuery("#yasr-add-field-edit-multiset").hide(),!1;var e=jQuery(document.createElement("tr"));e.html('<td colspan="2">Element #'+t+' <input type="text" name="edit-multi-set-element-'+t+'" value="" ></td>'),e.appendTo("#yasr-table-form-edit-multi-set"),t++}))})))}"migration_tools"===r&&(jQuery("#yasr-import-ratemypost-submit").on("click",(function(){document.getElementById("yasr-import-ratemypost-answer").innerHTML='<img src="'+yasrCommonData.loaderHtml+'"</img>';var t={action:"yasr_import_ratemypost",nonce:document.getElementById("yasr-import-rmp-nonce").value};jQuery.post(ajaxurl,t,(function(t){t=JSON.parse(t),document.getElementById("yasr-import-ratemypost-answer").innerHTML=t}))})),jQuery("#yasr-import-wppr-submit").on("click",(function(){document.getElementById("yasr-import-wppr-answer").innerHTML='<img src="'+yasrCommonData.loaderHtml+'"</img>';var t={action:"yasr_import_wppr",nonce:document.getElementById("yasr-import-wppr-nonce").value};jQuery.post(ajaxurl,t,(function(t){document.getElementById("yasr-import-wppr-answer").innerHTML=t}))})),jQuery("#yasr-import-kksr-submit").on("click",(function(){document.getElementById("yasr-import-kksr-answer").innerHTML='<img src="'+yasrCommonData.loaderHtml+'"</img>';var t={action:"yasr_import_kksr",nonce:document.getElementById("yasr-import-kksr-nonce").value};jQuery.post(ajaxurl,t,(function(t){document.getElementById("yasr-import-kksr-answer").innerHTML=t}))})),jQuery("#yasr-import-mr-submit").on("click",(function(){document.getElementById("yasr-import-mr-answer").innerHTML='<img src="'+yasrCommonData.loaderHtml+'"</img>';var t={action:"yasr_import_mr",nonce:document.getElementById("yasr-import-mr-nonce").value};jQuery.post(ajaxurl,t,(function(t){document.getElementById("yasr-import-mr-answer").innerHTML=t}))})))},function(t,e,r){"use strict";var a;r.r(e);var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),s=new Uint8Array(16);function o(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(s)}var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var l=function(t){return"string"==typeof t&&i.test(t)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!l(r))throw TypeError("Stringified UUID is invalid");return r};for(var m=function(t,e,r){var a=(t=t||{}).random||(t.rng||o)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=a[n];return e}return d(a)},y=wp.i18n.__,p=["yasr-rater-stars","yasr-rater-stars-vv","yasr-multiset-visitors-rater"],g=0;g<p.length;g++)f(p[g]);function f(t){var e=document.getElementsByClassName(t);if(e.length>0){if("yasr-rater-stars"!==t&&"yasr-ranking-stars"!==t||function(t){for(var e=0;e<t.length;e++)if(!1===t.item(e).classList.contains("yasr-star-rating")){var r=t.item(e),a=r.id;v(r.getAttribute("data-rater-starsize"),a,r)}}(e),"yasr-rater-stars-vv"===t&&(function(t){for(var e=0;e<t.length;e++)!function(e){if(!1===t.item(e).classList.contains("yasr-star-rating")){var r=t.item(e),a=r.getAttribute("data-rating"),n=r.getAttribute("data-readonly-attribute"),s=r.getAttribute("data-rater-readonly");null===n&&(n=!1),n=b(n),s=b(s),!0===n&&(s=!0);var o=r.getAttribute("data-rater-postid"),i=r.id,l=i.replace("yasr-visitor-votes-rater-",""),u=parseInt(r.getAttribute("data-rater-starsize")),c=r.getAttribute("data-rater-nonce"),d=r.getAttribute("data-issingular"),m="yasr-vv-votes-number-container-"+l,p="yasr-vv-average-container-"+l,g=document.getElementById(m),f=document.getElementById(p),v="yasr-vv-loader-"+l,_=!1;if("yes"===yasrCommonData.ajaxEnabled){var E=r.getAttribute("data-cpt");""===E&&(E="posts");var w="wp/v2/"+E+"/"+o+"?_fields=yasr_visitor_votes&_wpnonce="+yasrCommonData.nonce;jQuery.get(yasrCommonData.restEndpoint+w).done((function(t){var e;(e=!0===n||t.yasr_visitor_votes.stars_attributes.read_only,a=(a=t.yasr_visitor_votes.number_of_votes>0?t.yasr_visitor_votes.sum_votes/t.yasr_visitor_votes.number_of_votes:0).toFixed(1),a=parseFloat(a),h(u,a,o,e,i,l,c,d,g,f,v),!0!==n)&&(null!==g&&(g.innerHTML=t.yasr_visitor_votes.number_of_votes),null!==f&&(f.innerHTML=a),!1!==t.yasr_visitor_votes.stars_attributes.span_bottom&&(_=t.yasr_visitor_votes.stars_attributes.span_bottom,document.getElementById(v).innerHTML=_))})).fail((function(t,e,r,m){console.info(y("YASR ajax call failed. Showing ratings from html","yet-another-stars-rating")),h(u,a,o,s,i,l,c,d,g,f,v),!0!==n&&(document.getElementById("yasr-below-stars-hidden-"+l).style.display="")}))}else h(u,a,o,s,i,l,c,d,g,f,v)}}(e)}(e),"yes"===yasrCommonData.visitorStatsEnabled)){var r=document.getElementsByClassName("yasr-dashicons-visitor-stats");r&&function(t){for(var e=!1,r=0;r<t.length;r++)!function(r){var a="#"+t.item(r).id,n={action:"yasr_stats_visitors_votes",post_id:t.item(r).getAttribute("data-postid")};tippy(a,{content:'<span style="color: #0a0a0a">Loading...</span>',theme:"yasr",arrow:"true",arrowType:"round",onShow:function(t){a!==e&&jQuery.post(yasrCommonData.ajaxurl,n,(function(e){e=JSON.parse(e),t.setContent(e)}))},onHidden:function(){e=a}})}(r)}(r)}"yasr-multiset-visitors-rater"===t&&function(t){for(var e="",r=[],a=0;a<t.length;a++)!function(a){if(!1===t.item(a).classList.contains("yasr-star-rating")){var n=t.item(a),s=n.id,o=n.getAttribute("data-rater-readonly");o=b(o);v(16,s,n,1,o,!1,(function(t,a){var s=n.getAttribute("data-rater-postid"),o=n.getAttribute("data-rater-setid"),i=n.getAttribute("data-rater-set-field-id");t=t.toFixed(1);var l=parseInt(t);this.setRating(l),e={postid:s,setid:o,field:i,rating:l},r.push(e),a()}))}}(a);jQuery(".yasr-send-visitor-multiset").on("click",(function(){var t=this.getAttribute("data-postid"),e=this.getAttribute("data-setid"),a=this.getAttribute("data-nonce");jQuery("#yasr-send-visitor-multiset-"+t+"-"+e).hide(),jQuery("#yasr-loader-multiset-visitor-"+t+"-"+e).show();var n={action:"yasr_visitor_multiset_field_vote",nonce:a,post_id:t,rating:r,set_type:e};jQuery.post(yasrCommonData.ajaxurl,n,(function(r){jQuery("#yasr-loader-multiset-visitor-"+t+"-"+e).text(r)}))}))}(e)}}function v(t,e){var r,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.1,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6&&void 0!==arguments[6]&&arguments[6];r=a||document.getElementById(e),t=parseInt(t),raterJs({starSize:t,showToolTip:!1,element:r,step:n,readOnly:s,rating:o,rateCallback:i})}function h(t,e,r,a,n,s,o,i,l,u,c){e=parseFloat(e),a=b(a);v(t,n,document.getElementById(n),1,a,e,(function(t,e){document.getElementById(c).innerHTML=yasrCommonData.loaderHtml;var a={action:"yasr_send_visitor_rating",rating:t,post_id:r,nonce_visitor:o,is_singular:i};this.setRating(t),this.disable(),jQuery.post(yasrCommonData.ajaxurl,a,(function(t){t=JSON.parse(t),null!==l&&(l.innerHTML=t.number_of_votes),null!==u&&(u.innerHTML=t.average_rating),document.getElementById(c).innerHTML=t.rating_saved_text})),e()}))}function b(t){return null!=t&&""!==t||(t=!0),"true"!==t&&"1"!==t||(t=!0),"false"!==t&&"0"!==t||(t=!1),t}function _(t){return(_="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)}function E(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,a=j(t);if(e){var n=j(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return k(this,r)}}function k(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}M();var B=wp.i18n.__,R=wp.element.render;function x(t){var e="yasr-ranking-element-"+m(),r=document.getElementById(t.tableId).dataset.rankingSize;return React.createElement("div",{id:e,ref:function(){return v(r,e,!1,.1,!0,t.rating)}})}function C(t){if(void 0!==t.post.number_of_votes)return React.createElement("span",{className:"yasr-most-rated-text"},"[",B("Total:","yet-another-stars-rating")," ",t.post.number_of_votes,"  ",B("Average:","yet-another-stars-rating")," ",t.post.rating,"]");var e=t.text;return React.createElement("span",{className:"yasr-highest-rated-text"},e," ",t.post.rating)}function Q(t){return React.createElement("td",{className:t.colClass},React.createElement("a",{href:t.post.link},function(t){if("string"!=typeof t||-1===t.indexOf("&"))return t;void 0===a&&(a=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),a.innerHTML=t;var e=a.textContent;return a.innerHTML="",e}(t.post.title)))}function T(t){var e="after",r=B("Rating:","yet-another-stars-rating"),a=new URLSearchParams(t.rankingParams);return null!==a.get("text_position")&&(e=a.get("text_position")),null!==a.get("custom_txt")&&(r=a.get("custom_txt")),"before"===e?React.createElement("td",{className:t.colClass},React.createElement(C,{post:t.post,tableId:t.tableId,text:r}),React.createElement(x,{rating:t.post.rating,tableId:t.tableId})):React.createElement("td",{className:t.colClass},React.createElement(x,{rating:t.post.rating,tableId:t.tableId}),React.createElement(C,{post:t.post,tableId:t.tableId,text:r}))}function L(t){var e="",r="";return"overall_rating"===t.source?(e="yasr-top-10-overall-left",r="yasr-top-10-overall-right"):"visitor_votes"===t.source&&(e="yasr-top-10-most-highest-left",r="yasr-top-10-most-highest-right"),React.createElement("tr",{className:t.trClass},React.createElement(Q,{colClass:e,post:t.post}),React.createElement(T,{colClass:r,post:t.post,tableId:t.tableId,rankingParams:t.rankingParams}))}function S(t){return React.createElement("tbody",{id:t.tBodyId,style:{display:t.show}},t.data.map((function(e,r){var a="yasr-rankings-td-colored";return"overall_rating"===t.source&&(a="yasr-rankings-td-white"),r%2==0&&(a="yasr-rankings-td-white","overall_rating"===t.source&&(a="yasr-rankings-td-colored")),React.createElement(L,{key:e.post_id,source:t.source,tableId:t.tableId,rankingParams:t.rankingParams,post:e,trClass:a})})))}var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(s,React.Component);var e,r,a,n=I(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=n.call(this,t)).state={error:null,isLoaded:!1,data:[],tableId:t.tableId,source:t.source,rankingParams:t.params},e}return e=s,(r=[{key:"componentDidMount",value:function(){var t=this,e=JSON.parse(document.getElementById(this.state.tableId).dataset.rankingData),r={};if("yes"!==yasrCommonData.ajaxEnabled)console.info(B("Ajax Disabled, getting data from source","yet-another-stars-rating")),this.setState({isLoaded:!0,data:e});else if(!1!==this.state.source){var a=this.returnRestUrl();Promise.all(a.map((function(t){return fetch(t).then((function(t){return!0===t.ok?t.json():(console.info(B("Ajax Call Failed. Getting data from source")),"KO")})).then((function(t){"KO"===t?r=e:("overall_rating"===t.source&&(r=t),"visitor_votes"===t.source&&(r[t.show]=t.data_vv))})).catch((function(t){r=e,console.info(B(t))}))}))).then((function(e){t.setState({isLoaded:!0,data:r})})).catch((function(e){console.info(B(e)),t.setState({isLoaded:!0,data:r})}))}else this.setState({error:B("Invalid Data Source","yet-another-stars-rating")})}},{key:"returnRestUrl",value:function(){var t=""!==this.state.rankingParams?this.state.rankingParams:"",e=this.state.source,r=!1,a="yet-another-stars-rating/v1/yasr-rankings/",n="";if(""!==t&&!1!==t){var s=new URLSearchParams(t);null!==s.get("order_by")&&(n+="order_by="+s.get("order_by")),null!==s.get("limit")&&(n+="&limit="+s.get("limit")),null!==s.get("ctg")?n+="&ctg="+s.get("ctg"):null!==s.get("cpt")&&(n+="&cpt="+s.get("cpt")),""!==n&&(n="&"+(n=n.replace(/\s+/g,"")))}else n="";if("overall_rating"===e&&(r=[yasrCommonData.restEndpoint+a+"?source="+e+n]),"visitor_votes"===e){var o="",i="";if(""!==t){var l=new URLSearchParams(t);null!==l.get("required_votes[most]")&&(o="&required_votes="+l.get("required_votes[most]")),null!==l.get("required_votes[highest]")&&(i="&required_votes="+l.get("required_votes[highest]"))}r=[yasrCommonData.restEndpoint+a+"?show=most&source="+e+n+o,yasrCommonData.restEndpoint+a+"?show=highest&source="+e+n+i]}return r}},{key:"rankingTableHead",value:function(t,e){var r=this.state.tableId,a="link-most-rated-posts-"+r,n="link-highest-rated-posts-"+r;if("visitor_votes"===t){var s=React.createElement("span",null,React.createElement("span",{id:a},B("Most Rated","yet-another-stars-rating"))," | ",React.createElement("a",{href:"#",id:n,onClick:this.switchTBody.bind(this)},B("Highest Rated","yet-another-stars-rating")));return"highest"===e&&(s=React.createElement("span",null,React.createElement("span",{id:n},B("Highest Rated","yet-another-stars-rating"))," | ",React.createElement("a",{href:"#",id:a,onClick:this.switchTBody.bind(this)},B("Most Rated","yet-another-stars-rating")))),React.createElement("thead",null,React.createElement("tr",{className:"yasr-rankings-td-colored yasr-rankings-heading"},React.createElement("th",null,"Post"),React.createElement("th",null,B("Order By","yet-another-stars-rating-pro"),":  ",s)))}return React.createElement(React.Fragment,null)}},{key:"switchTBody",value:function(t){t.preventDefault();var e=t.target.id,r=this.state.tableId,a="link-most-rated-posts-"+r,n="link-highest-rated-posts-"+r,s="most-rated-posts-"+r,o="highest-rated-posts-"+r,i=document.getElementById(e),l=document.createElement("span");l.innerHTML=i.innerHTML,l.id=i.id,i.parentNode.replaceChild(l,i),e===a&&(document.getElementById(o).style.display="none",document.getElementById(s).style.display="",l=document.getElementById(n),i.innerHTML=l.innerHTML,i.id=l.id,l.parentNode.replaceChild(i,l)),e===n&&(document.getElementById(s).style.display="none",document.getElementById(o).style.display="",l=document.getElementById(a),i.innerHTML=l.innerHTML,i.id=l.id,l.parentNode.replaceChild(i,l))}},{key:"rankingTableBody",value:function(){var t=this.state,e=t.data,r=t.source,a=t.rankingParams;if("overall_rating"===r)return React.createElement(S,{data:e.data_overall,tableId:this.state.tableId,tBodyId:"overall_"+this.state.tableId,rankingParams:a,show:"table-row-group",source:r});if("visitor_votes"===r){var n=e.most,s=e.highest,o="most",i="table-row-group",l="none",u=new URLSearchParams(a);return null!==u.get("view")&&(o=u.get("view")),"highest"===o&&(i="none",l="table-row-group"),React.createElement(React.Fragment,null,this.rankingTableHead(r,o),React.createElement(S,{data:n,tableId:this.state.tableId,tBodyId:"most-rated-posts-"+this.state.tableId,rankingParams:a,show:i,source:r}),React.createElement(S,{data:s,tableId:this.state.tableId,tBodyId:"highest-rated-posts-"+this.state.tableId,rankingParams:a,show:l,source:r}))}}},{key:"render",value:function(){var t=this.state,e=t.error,r=t.isLoaded;return e?React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",null,console.log(e),"Error"))):!1===r?React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",null,B("Loading Charts","yet-another-stars-rating")))):React.createElement(React.Fragment,null,this.rankingTableBody())}}])&&E(e.prototype,r),a&&E(e,a),s}();function M(){var t=document.getElementsByClassName("yasr-stars-rankings");if(t.length>0)for(var e=0;e<t.length;e++){var r=t.item(e).id,a=t.item(e).dataset.rankingSource,n=JSON.parse(t.item(e).dataset.rankingParams),s=document.getElementById(r),o=!1;"overall_rating"!==a&&"visitor_votes"!==a||(o=a),R(React.createElement(H,{source:o,tableId:r,params:n}),s)}}var P,O=wp.i18n.__;if(document.getElementsByClassName("nav-tab-active").length>0&&(P=document.getElementsByClassName("nav-tab-active")[0].id),"rankings"===P){var A,D=function(t){var e=K.value,r=document.getElementById("yasr-builder-shortcode").textContent;fetch(ajaxurl+"?action=yasr_rankings_preview_shortcode&shortcode="+e+"&full_shortcode="+r).then((function(t){return!0===t.ok?t.json():(console.info(O("Ajax Call Failed. Shortcode preview can't be done","yet-another-stars-rating")),"KO")})).catch((function(t){console.info(t)})).then((function(t){if("KO"!==t){var e=document.createElement("div");e.innerHTML=t,V.childNodes.length>0?V.replaceChild(e,V.childNodes[0]):V.appendChild(e)}})).then((function(t){"yasr_ov_ranking"!==e&&"yasr_most_or_highest_rated_posts"!==e||M()}))},N=function(t,e,r,a,n,s,o){t.style.display="",e.style.display="",s.style.display="",r.style.display="none",a.style.display="none",n.style.display="none",null!==o&&(o.style.display="")},F=function(t,e,r,a,n,s,o){n.style.display="",t.style.display="none",r.style.display="none",a.style.display="none",e.style.display="none",s.style.display="none",null!==o&&(o.style.display="none")};jQuery(".yasr-builder-elements-parents").prop("disabled",!0),jQuery(".yasr-builder-elements-childs").prop("disabled",!0),wp.hooks.doAction("yasrBuilderBegin",".yasr-builder-elements-parents",".yasr-builder-elements-childs");var z=[],U={name:"yasr_most_or_highest_rated_posts",rows:"",size:"",view:"",minvotesmost:"",minvoteshg:"",txtPosition:"",txt:"",display:"",category:"",cpt:""};A=U.name,document.getElementById("yasr-builder-shortcode").textContent="["+A+"]",document.getElementById("yasr-builder-copy-shortcode").setAttribute("data-shortcode","["+A+"]");var q=document.getElementById("yasr-builder-button-preview"),J=document.getElementById("yasr-builder-copy-shortcode"),V=document.getElementById("yasr-builder-preview"),K=document.getElementById("yasr-ranking-source"),Y=document.getElementById("builder-vv-default-view"),G=document.getElementById("builder-vv-required-votes"),$=document.getElementById("builder-stars-size"),W=document.getElementById("builder-overall-text"),X=document.getElementById("builder-username-options"),Z=document.getElementById("builder-category"),tt=document.getElementById("builder-cpt"),et=K.value,rt=!1;"yasr_ov_ranking"===et?N(W,$,Y,G,X,Z,tt):"yasr_most_active_users"!==K.value&&"yasr_top_reviewers"!==K.value||F(W,$,Y,G,X,Z,tt),document.addEventListener("change",(function(t){if("yasr-ranking-source"===t.target.id)V.innerHTML="","yasr_ov_ranking"===t.target.value?N(W,$,Y,G,X,Z,tt):"yasr_most_active_users"===t.target.value||"yasr_top_reviewers"===t.target.value?F(W,$,Y,G,X,Z,tt):function(t,e,r,a,n,s,o){r.style.display="",a.style.display="",e.style.display="",s.style.display="",t.style.display="none",n.style.display="none",null!==o&&(o.style.display="")}(W,$,Y,G,X,Z,tt),(U={name:"yasr_most_or_highest_rated_posts",rows:"",size:"",view:"",minvotesmost:"",minvoteshg:"",txtPosition:"",txt:"",display:"",category:"",cpt:""}).name=t.target.value,A=U.name;else{z=wp.hooks.applyFilters("yasrBuilderFilterShortcode",U);for(var e=1;U.length;e++)z.hasOwnProperty(U[e])&&(U[e]=z[e]);A=U.name+U.rows+U.view+U.minvotesmost+U.minvoteshg+U.size+U.txtPosition+U.txt+U.display+U.category+U.cpt}document.getElementById("yasr-builder-shortcode").textContent="["+A+"]",document.getElementById("yasr-builder-copy-shortcode").setAttribute("data-shortcode","["+A+"]"),!0===rt&&"yasr-ranking-source"!==t.target.id&&"yasr-builder-category-radio"!==t.target.name&&D()})),J.onclick=function(t){var e=document.getElementById(t.target.id);copyToClipboard(e.getAttribute("data-shortcode"))},q.onclick=function(t){D(),rt=!0}}}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/settings/aspect_style/yasr-settings-style-actions.php ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+
4
+ Copyright 2020 Dario Curvino (email : d.curvino@tiscali.it)
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 2 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <http://www.gnu.org/licenses/>
18
+ */
19
+
20
+ if (!defined('ABSPATH')) {
21
+ exit('You\'re not allowed to see this page');
22
+ } // Exit if accessed directly
23
+
24
+ //Add stars set for yasr style settings page
25
+ //from version 1.2.7
26
+ add_action('yasr_style_options_add_settings_field', 'yasr_style_options_add_settings_field_callback');
27
+
28
+ function yasr_style_options_add_settings_field_callback($style_options) {
29
+
30
+ add_settings_field(
31
+ 'yasr_style_options_choose_stars_lite',
32
+ __('Choose Stars Set', 'yet-another-stars-rating'),
33
+ 'yasr_style_options_choose_stars_lite_callback',
34
+ 'yasr_style_tab',
35
+ 'yasr_style_options_section_id',
36
+ $style_options
37
+ );
38
+
39
+ }
40
+
41
+ function yasr_style_options_choose_stars_lite_callback($style_options) {
42
+ ?>
43
+
44
+ <div class='yasr-select-img-container' id='yasr_pro_custom_set_choosen_stars'>
45
+ <div>
46
+ <input type='radio'
47
+ name='yasr_style_options[stars_set_free]'
48
+ value='rater'
49
+ id="radio-img-rater"
50
+ class='yasr-general-options-scheme-color'
51
+ <?php if ($style_options['stars_set_free'] === 'rater') {
52
+ echo " checked=\"checked\" ";
53
+ } ?> />
54
+ <label for="radio-img-rater">
55
+ <span class='yasr_pro_stars_set'>
56
+ <?php
57
+ echo '<img src="' . YASR_IMG_DIR . 'stars_rater.png">';
58
+ ?>
59
+ </span>
60
+ </label>
61
+ </div>
62
+ <div>
63
+ <input type='radio' name='yasr_style_options[stars_set_free]' value='rater-yasr' id="radio-img-yasr"
64
+ class='yasr-general-options-scheme-color' <?php if ($style_options['stars_set_free'] === 'rater-yasr') {
65
+ echo " checked=\"checked\" ";
66
+ } ?> />
67
+ <label for="radio-img-yasr">
68
+ <span class='yasr_pro_stars_set'>
69
+ <?php
70
+ echo '<img src="' . YASR_IMG_DIR . 'stars_rater_yasr.png">';
71
+ ?>
72
+ </span>
73
+ </label>
74
+ </div>
75
+ <div>
76
+ <input type='radio' name='yasr_style_options[stars_set_free]' value='rater-oxy' id="radio-img-oxy"
77
+ class='yasr-general-options-scheme-color' <?php if ($style_options['stars_set_free'] === 'rater-oxy') {
78
+ echo " checked=\"checked\" ";
79
+ } ?> />
80
+ <label for="radio-img-oxy">
81
+ <span class='yasr_pro_stars_set'>
82
+ <?php
83
+ echo '<img src="' . YASR_IMG_DIR . 'stars_rater_oxy.png">';
84
+ ?>
85
+ </span>
86
+ </label>
87
+ </div>
88
+
89
+ </div>
90
+
91
+ <div id="yasr-settings-stylish-stars" style="margin-top: 30px">
92
+ <div id="yasr-settings-stylish-image-container">
93
+ <?php
94
+ echo "<img id=\"yasr-settings-stylish-image\" src=" . YASR_IMG_DIR . "yasr-pro-stars.png>";
95
+ ?>
96
+ </div>
97
+ </div>
98
+
99
+ <div id='yasr-settings-stylish-text'>
100
+
101
+ <?php
102
+ $text = __('Looking for more?', 'yet-another-stars-rating');
103
+ $text .= '<br />';
104
+ $text .= sprintf(__('Upgrade to %s', 'yet-another-stars-rating'), '<a href="?page=yasr_settings_page-pricing">Yasr Pro!</a>');
105
+
106
+ echo $text;
107
+ ?>
108
+
109
+ </div>
110
+
111
+ <script type="text/javascript">
112
+
113
+ jQuery('#yasr-settings-stylish-stars').mouseover(function () {
114
+ jQuery('#yasr-settings-stylish-text').css("visibility", "visible");
115
+ jQuery('#yasr-settings-stylish-image').css("opacity", 0.4);
116
+ });
117
+
118
+ </script>
119
+
120
+ <?php
121
+ submit_button(__('Save Settings', 'yet-another-stars-rating'));
122
+ }
admin/settings/aspect_style/{yasr-settings-functions-style.php → yasr-settings-style-functions.php} RENAMED
@@ -24,6 +24,8 @@ if (!defined('ABSPATH')) {
24
 
25
  add_action('admin_init', 'yasr_style_options_init'); //This is for auto insert options
26
 
 
 
27
  function yasr_style_options_init() {
28
 
29
  register_setting(
@@ -96,18 +98,19 @@ function yasr_color_scheme_multiset_callback($style_options) {
96
 
97
  <br/>
98
 
99
- <a href="#" id="yasr-color-scheme-preview-link"><?php _e("Preview", 'yet-another-stars-rating') ?></a>
 
 
100
 
101
  <div id="yasr-color-scheme-preview" style="display:none">
102
  <?php
 
 
103
 
104
- _e("Light theme", 'yet-another-stars-rating');
105
- echo "<br /><br /><img src='" . YASR_IMG_DIR . "yasr-multi-set.png'>";
106
-
107
- echo "<br /> <br />";
108
 
109
- _e("Dark theme", 'yet-another-stars-rating');
110
- echo "<br /><br /><img src='" . YASR_IMG_DIR . "dark-multi-set.png'>";
111
  ?>
112
  </div>
113
 
@@ -117,7 +120,6 @@ function yasr_color_scheme_multiset_callback($style_options) {
117
  }
118
 
119
  function yasr_style_options_textarea_callback($style_options) {
120
-
121
  _e('Please use text area below to write your own CSS styles to override the default ones.',
122
  'yet-another-stars-rating');
123
  echo "<br /><strong>";
@@ -125,7 +127,7 @@ function yasr_style_options_textarea_callback($style_options) {
125
  echo "</strong><p>";
126
  ?>
127
 
128
- <textarea
129
  rows='17'
130
  cols='40'
131
  name='yasr_style_options[textarea]'
24
 
25
  add_action('admin_init', 'yasr_style_options_init'); //This is for auto insert options
26
 
27
+ require 'yasr-settings-style-actions.php';
28
+
29
  function yasr_style_options_init() {
30
 
31
  register_setting(
98
 
99
  <br/>
100
 
101
+ <a href="#" id="yasr-color-scheme-preview-link">
102
+ <?php _e("Preview", 'yet-another-stars-rating') ?>
103
+ </a>
104
 
105
  <div id="yasr-color-scheme-preview" style="display:none">
106
  <?php
107
+ _e("Light theme", 'yet-another-stars-rating');
108
+ echo "<br /><br /><img src='" . YASR_IMG_DIR . "yasr-multi-set.png'>";
109
 
110
+ echo "<br /> <br />";
 
 
 
111
 
112
+ _e("Dark theme", 'yet-another-stars-rating');
113
+ echo "<br /><br /><img src='" . YASR_IMG_DIR . "dark-multi-set.png'>";
114
  ?>
115
  </div>
116
 
120
  }
121
 
122
  function yasr_style_options_textarea_callback($style_options) {
 
123
  _e('Please use text area below to write your own CSS styles to override the default ones.',
124
  'yet-another-stars-rating');
125
  echo "<br /><strong>";
127
  echo "</strong><p>";
128
  ?>
129
 
130
+ <label for='yasr_style_options_textarea'></label><textarea
131
  rows='17'
132
  cols='40'
133
  name='yasr_style_options[textarea]'
admin/settings/classes/YasrSettings.php CHANGED
@@ -41,7 +41,7 @@ class YasrSettings {
41
  require(YASR_ABSOLUTE_PATH_ADMIN . '/settings/multiset/yasr-settings-functions-multiset.php');
42
 
43
  //include style functions
44
- require(YASR_ABSOLUTE_PATH_ADMIN . '/settings/aspect_style/yasr-settings-functions-style.php');
45
 
46
  //load functions migration
47
  require(YASR_ABSOLUTE_PATH_ADMIN . '/settings/migrations/yasr-settings-migration-functions.php');
@@ -83,7 +83,9 @@ class YasrSettings {
83
  __('[Total: %s Average: %s]', 'yet-another-stars-rating'),
84
  '%total_count%', '%average%'
85
  );
86
- $option['custom_text_user_voted'] = __('You have already voted for this article', 'yet-another-stars-rating');
 
 
87
  $option['custom_text_must_sign_in'] = __('You must sign in to vote', 'yet-another-stars-rating');
88
  }
89
 
@@ -104,15 +106,6 @@ class YasrSettings {
104
  $option['enable_ajax'] = 'no';
105
  }
106
 
107
- $description_auto_insert = sprintf(
108
- __('Auto Insert Options %s
109
- Automatically adds YASR in your posts or pages. %s
110
- Disable this if you prefer to use shortcodes.',
111
- 'yet-another-stars-rating'
112
- ),
113
- '<p>&nbsp;</p>', '<br />'
114
- );
115
-
116
  add_settings_section(
117
  'yasr_general_options_section_id',
118
  __('General settings', 'yet-another-stars-rating'),
@@ -122,7 +115,7 @@ class YasrSettings {
122
 
123
  add_settings_field(
124
  'yasr_use_auto_insert_id',
125
- $description_auto_insert,
126
  array($this, 'autoInsert'),
127
  'yasr_general_settings_tab',
128
  'yasr_general_options_section_id',
@@ -131,7 +124,7 @@ class YasrSettings {
131
 
132
  add_settings_field(
133
  'yasr_stars_title',
134
- __('Enable stars next to the title?', 'yet-another-stars-rating'),
135
  array($this, 'starsTitle'),
136
  'yasr_general_settings_tab',
137
  'yasr_general_options_section_id',
@@ -139,9 +132,9 @@ class YasrSettings {
139
  );
140
 
141
  add_settings_field(
142
- 'yasr_custom_text',
143
- __('Insert custom text to show before / after stars', 'yet-another-stars-rating'),
144
- array($this, 'customText'),
145
  'yasr_general_settings_tab',
146
  'yasr_general_options_section_id',
147
  $option
@@ -149,7 +142,7 @@ class YasrSettings {
149
 
150
  add_settings_field(
151
  'yasr_visitors_stats',
152
- __('Do you want show stats for visitors votes?', 'yet-another-stars-rating'),
153
  array($this, 'vvStats'),
154
  'yasr_general_settings_tab',
155
  'yasr_general_options_section_id',
@@ -158,7 +151,7 @@ class YasrSettings {
158
 
159
  add_settings_field(
160
  'yasr_allow_only_logged_in_id',
161
- __('Allow only logged in user to vote?', 'yet-another-stars-rating'),
162
  array($this, 'loggedOnly'),
163
  'yasr_general_settings_tab',
164
  'yasr_general_options_section_id',
@@ -166,26 +159,18 @@ class YasrSettings {
166
  );
167
 
168
  add_settings_field(
169
- 'yasr_show_overall_in_loop',
170
- __('Show "Overall Rating" in Archive Page?', 'yet-another-stars-rating'),
171
- array($this, 'OverallInLoop'),
172
  'yasr_general_settings_tab',
173
  'yasr_general_options_section_id',
174
  $option
175
  );
176
 
177
- add_settings_field(
178
- 'yasr_show_visitor_votes_in_loop',
179
- __('Show "Visitor Votes" in Archive Page?', 'yet-another-stars-rating'),
180
- array($this, 'vvInLoop'),
181
- 'yasr_general_settings_tab',
182
- 'yasr_general_options_section_id',
183
- $option
184
- );
185
 
186
  add_settings_field(
187
  'yasr_choose_snippet_id',
188
- __('Rich snippet options', 'yet-another-stars-rating'),
189
  array($this, 'snippets' ),
190
  'yasr_general_settings_tab',
191
  'yasr_general_options_section_id',
@@ -193,22 +178,14 @@ class YasrSettings {
193
  );
194
 
195
  add_settings_field(
196
- 'yasr_load_with_ajax',
197
- __('Load results with AJAX?', 'yet-another-stars-rating'),
198
- array($this, 'loadWithAjax' ),
199
  'yasr_general_settings_tab',
200
  'yasr_general_options_section_id',
201
  $option
202
  );
203
 
204
- add_settings_field(
205
- 'yasr_enable_ip',
206
- __('Do you want to save ip address?', 'yet-another-stars-rating'),
207
- array($this, 'EnableIp'),
208
- 'yasr_general_settings_tab',
209
- 'yasr_general_options_section_id',
210
- $option
211
- );
212
  }
213
 
214
  /**
@@ -225,7 +202,9 @@ class YasrSettings {
225
  public function autoInsert($option) {
226
  ?>
227
  <div>
228
- <strong><?php _e('Use Auto Insert?', 'yet-another-stars-rating'); ?></strong>
 
 
229
  <div class="yasr-onoffswitch-big">
230
  <input type="checkbox" name="yasr_general_options[auto_insert_enabled]" class="yasr-onoffswitch-checkbox"
231
  value="1" id="yasr_auto_insert_switch" <?php if ($option['auto_insert_enabled'] == 1) {
@@ -237,133 +216,110 @@ class YasrSettings {
237
  </label>
238
  </div>
239
 
240
- <p>&nbsp;</p>
241
-
242
- <div>
243
- <?php
244
- $option_title = __('What?', 'yet-another-stars-rating');
245
- $array_options = array (
246
- 'visitor_rating' => __('Visitor Votes', 'yet-another-stars-rating'),
247
- 'overall_rating' => __('Overall Rating / Author Rating', 'yet-another-stars-rating'),
248
- 'both' => __('Both', 'yet-another-stars-rating')
249
- );
250
- $default = $option['auto_insert_what'];
251
- $name = 'yasr_general_options[auto_insert_what]';
252
- $class = 'yasr-auto-insert-options-class';
253
-
254
- echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
255
- ?>
256
- </div>
257
-
258
- <p>&nbsp;</p>
259
-
260
- <div>
261
- <?php
262
- $option_title = __('Where?', 'yet-another-stars-rating');
263
- $array_options = array (
264
- 'top' => __('Before the content', 'yet-another-stars-rating'),
265
- 'bottom' => __('After the content', 'yet-another-stars-rating'),
266
- );
267
- $default = $option['auto_insert_where'];
268
- $name = 'yasr_general_options[auto_insert_where]';
269
- $class = 'yasr-auto-insert-options-class';
270
-
271
- echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
272
- ?>
273
- </div>
274
-
275
- <p>&nbsp;</p>
276
-
277
- <div>
278
- <?php
279
- $option_title = __('Align', 'yet-another-stars-rating');
280
- $array_options = array (
281
- 'left' => __('Left', 'yet-another-stars-rating'),
282
- 'center' => __('Center', 'yet-another-stars-rating'),
283
- 'right' => __('Right', 'yet-another-stars-rating')
284
- );
285
- $default = $option['auto_insert_align'];
286
- $name = 'yasr_general_options[auto_insert_align]';
287
- $class = 'yasr-auto-insert-options-class';
288
-
289
- echo YasrPhpFieldsHelper::radio($option_title, $class, $array_options, $name, $default);
290
- ?>
291
- </div>
292
-
293
- <p>&nbsp;</p>
294
-
295
- <div class="yasr-indented-answer">
296
- <strong><?php _e('Size', 'yet-another-stars-rating'); ?></strong>
297
- <?php
298
- $name = 'yasr_general_options[auto_insert_size]';
299
- $class = 'yasr-auto-insert-options-class';
300
- $id = 'yasr-auto-insert-options-stars-size-';
301
-
302
- YasrPhpFieldsHelper::radioSelectSize($name, $class, $option['auto_insert_size'], $id);
303
- ?>
304
- </div>
305
-
306
- <p>&nbsp;</p>
307
- <div>
308
- <?php
309
- $option_title = __('Exclude Pages?', 'yet-another-stars-rating');
310
- $array_options = array (
311
- 'yes' => __('Yes', 'yet-another-stars-rating'),
312
- 'no' => __('No', 'yet-another-stars-rating'),
313
- );
314
- $default = $option['auto_insert_exclude_pages'];
315
- $name = 'yasr_general_options[auto_insert_exclude_pages]';
316
- $class = 'yasr-auto-insert-options-class';
317
-
318
- echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
319
- ?>
320
- <p>&nbsp;</p>
321
- </div>
322
-
323
- <?php
324
-
325
- $custom_post_types = YasrCustomPostTypes::getCustomPostTypes();
326
-
327
- if ($custom_post_types) {
328
 
329
- echo '<div>';
330
- $option_title = __('Use only in custom post types?', 'yet-another-stars-rating');
 
 
 
 
331
  $array_options = array (
332
- 'yes' => __('Yes', 'yet-another-stars-rating'),
333
- 'no' => __('No', 'yet-another-stars-rating'),
334
  );
335
- $default = $option['auto_insert_custom_post_only'];
336
- $name = 'yasr_general_options[auto_insert_custom_post_only]';
337
  $class = 'yasr-auto-insert-options-class';
338
 
339
  echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
340
- echo '</div>';
341
- ?>
342
- <p>
 
 
 
 
 
 
 
 
 
 
343
 
344
- <div class="yasr-indented-answer">
345
- <?php _e("You see this because you use custom post types.", 'yet-another-stars-rating'); ?>
346
- <br/>
347
- <?php _e("If you want to use auto insert only in custom post types, choose Yes", 'yet-another-stars-rating'); ?>
348
  </div>
349
- <p>&nbsp;</p>
 
 
 
 
 
 
 
350
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  <?php
352
- }
353
-
354
- else {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
355
  ?>
356
- <input type="hidden" name="yasr_general_options[auto_insert_custom_post_only]" value="no">
357
- <?php
358
- }
359
-
360
- submit_button(YASR_SAVE_All_SETTINGS_TEXT);
361
- ?>
362
-
363
  </div>
364
-
365
  <hr />
366
-
367
  <?php
368
 
369
  } //End yasr_auto_insert_callback
@@ -375,67 +331,62 @@ class YasrSettings {
375
  */
376
  public function starsTitle($option) {
377
  ?>
378
- <div class="yasr-onoffswitch-big">
379
- <input type="checkbox" name="yasr_general_options[stars_title]" class="yasr-onoffswitch-checkbox"
380
- id="yasr-general-options-stars-title-switch" <?php if ($option['stars_title'] === 'yes') {
381
- echo " checked='checked' ";
382
- } ?> >
383
- <label class="yasr-onoffswitch-label" for="yasr-general-options-stars-title-switch">
384
- <span class="yasr-onoffswitch-inner"></span>
385
- <span class="yasr-onoffswitch-switch"></span>
386
- </label>
387
- </div>
388
-
389
- <br/>
390
-
391
  <div>
392
- <?php
393
- $option_title = __('What?', 'yet-another-stars-rating');
394
- $array_options = array (
395
- 'visitor_rating' => __('Visitor Votes', 'yet-another-stars-rating'),
396
- 'overall_rating' => __('Overall Rating / Author Rating', 'yet-another-stars-rating'),
397
- );
398
- $default = $option['stars_title_what'];
399
- $name = 'yasr_general_options[stars_title_what]';
400
- $class = 'yasr-stars-title-options-class';
401
-
402
- echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
403
- ?>
404
- </div>
405
-
406
- <br />
407
-
408
- <div>
409
- <?php
410
- $option_title = __('Exclude Pages?', 'yet-another-stars-rating');
411
- $array_options = array (
412
- 'yes' => __('Yes', 'yet-another-stars-rating'),
413
- 'no' => __('No', 'yet-another-stars-rating'),
414
- );
415
- $default = $option['stars_title_exclude_pages'];
416
- $name = 'yasr_general_options[stars_title_exclude_pages]';
417
- $class = 'yasr-stars-title-options-class';
418
-
419
- echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
420
- ?>
421
- </div>
422
-
423
- <p>&nbsp;</p>
 
 
 
424
 
425
- <div>
426
- <?php
427
- $option_title = __('Where do you want show ratings?', 'yet-another-stars-rating');
428
- $array_options = array (
429
- 'archive' => __('Only on archive pages (categories, tags, etc.)', 'yet-another-stars-rating'),
430
- 'single' => __('Only on single posts or pages', 'yet-another-stars-rating'),
431
- 'both' => __('Both', 'yet-another-stars-rating'),
432
- );
433
- $default = $option['stars_title_where'];
434
- $name = 'yasr_general_options[stars_title_where]';
435
- $class = 'yasr-stars-title-options-class';
 
 
 
436
 
437
- echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
438
- ?>
 
 
439
  </div>
440
 
441
  <p>&nbsp;</p>
@@ -445,401 +396,364 @@ class YasrSettings {
445
 
446
  }
447
 
448
- public function customText($option) {
449
- ?>
450
- <div class="yasr-onoffswitch-big">
451
- <input type="checkbox" name="yasr_general_options[text_before_stars]" class="yasr-onoffswitch-checkbox"
452
- id="yasr-general-options-text-before-stars-switch" <?php if ($option['text_before_stars'] == 1) {
453
- echo " checked='checked' ";
454
- } ?> >
455
- <label class="yasr-onoffswitch-label" for="yasr-general-options-text-before-stars-switch">
456
- <span class="yasr-onoffswitch-inner"></span>
457
- <span class="yasr-onoffswitch-switch"></span>
458
- </label>
459
- </div>
460
-
461
- <br/> <br/>
462
-
463
- <?php
464
- $custom_text = array(
465
- 'txt_before_overall' => array (
466
- 'name' => 'text_before_overall',
467
- 'description' => __('Custom text to display before Overall Rating', 'yet-another-stars-rating'),
468
- 'id' => 'yasr-general-options-custom-text-before-overall',
469
- 'class' => 'yasr-general-options-text-before'
470
- ),
471
- 'txt_before_vv' => array (
472
- 'name' => 'text_before_visitor_rating',
473
- 'description' => __('Custom text to display BEFORE Visitor Rating', 'yet-another-stars-rating'),
474
- 'id' => 'yasr-general-options-custom-text-before-visitor',
475
- 'class' => 'yasr-general-options-text-before'
476
- ),
477
- 'txt_after_vv' => array (
478
- 'name' => 'text_after_visitor_rating',
479
- 'description' => __('Custom text to display AFTER Visitor Rating', 'yet-another-stars-rating'),
480
- 'id' => 'yasr-general-options-custom-text-after-visitor',
481
- 'class' => 'yasr-general-options-text-before'
482
- ),
483
- 'txt_login_required' => array (
484
- 'name' => 'custom_text_must_sign_in',
485
- 'description' => __('Custom text to display when login is required to vote', 'yet-another-stars-rating'),
486
- 'id' => 'yasr-general-options-custom-text-must-sign-in',
487
- 'class' => 'yasr-general-options-text-before'
488
- ),
489
- 'txt_vv_rated' => array (
490
- 'name' => 'custom_text_user_voted',
491
- 'description' => __('Custom text to display when an user has already rated', 'yet-another-stars-rating'),
492
- 'id' => 'yasr-general-options-custom-text-already-rated',
493
- 'class' => 'yasr-general-options-text-before'
494
- )
495
- );
496
-
497
  ?>
498
- <div id="yasr-general-options-custom-text">
499
- <?php
500
- self::echoSettingFields($custom_text, $option);
501
- ?>
502
- </div>
503
-
504
-
505
- <a href="#" id="yasr-doc-custom-text-link"><?php _e('Help', 'yet-another-stars-rating'); ?></a>
506
-
507
- <div id="yasr-doc-custom-text-div" class="yasr-help-box-settings">
508
- <?php
509
- $string_custom_overall = sprintf(__('In the first field you can use %s pattern to show the overall rating (as text).',
510
- 'yet-another-stars-rating'), '<strong>%overall_rating%</strong>');
511
-
512
- $string_custom_visitor = sprintf(__('In the second and third fields you can use %s pattern to show the
513
- total count, and %s pattern to show the average', 'yet-another-stars-rating'),
514
- '<strong>%total_count%</strong>', '<strong>%average%</strong>');
 
515
 
516
- echo $string_custom_overall;
517
- echo '<br /><br/>';
518
- echo $string_custom_visitor;
519
- echo '<br /><br/>';
 
 
 
 
 
 
 
 
 
 
 
 
 
520
 
521
- _e('You can use these html tags:', 'yet-another-stars-rating');
522
- echo ' <strong>' . esc_html('<strong>, <p>') . '.</strong>';
523
- ?>
524
  </div>
525
-
526
  <p>&nbsp;</p>
527
-
528
  <?php
529
- submit_button(YASR_SAVE_All_SETTINGS_TEXT);
530
- echo '<hr />';
531
 
532
  }
533
 
534
  public function vvStats($option) {
535
  ?>
536
- <div class="yasr-onoffswitch-big">
537
- <input type="checkbox" name="yasr_general_options[visitors_stats]" class="yasr-onoffswitch-checkbox"
538
- id="yasr-general-options-visitors-stats-switch" <?php if ($option['visitors_stats'] === 'yes') {
539
- echo " checked='checked' ";
540
- } ?> >
541
- <label class="yasr-onoffswitch-label" for="yasr-general-options-visitors-stats-switch">
542
- <span class="yasr-onoffswitch-inner"></span>
543
- <span class="yasr-onoffswitch-switch"></span>
544
- </label>
545
- </div>
546
-
547
- <br/>
548
-
549
- <?php
550
- _e('Enable or disable the chart bar icon (and tooltip hover it) near the yasr_visitor_votes shortcode.');
551
- ?>
552
-
553
- <p>&nbsp;</p>
554
-
555
- <a href="#" id="yasr-stats-explained-link"><?php _e("Example", 'yet-another-stars-rating') ?></a>
556
-
557
- <div id="yasr-stats-explained" class="yasr-help-box-settings">
558
- <?php
559
- echo '<strong>';
560
- _e('ENABLED:', 'yet-another-stars-rating');
561
- echo "</strong>
562
- <hr />
563
- <img src=" . YASR_IMG_DIR . "yasr_settings_stats_enabled.png alt='yasr-stats-enabled'>";
564
-
565
- echo '<br /><br /><strong>';
566
- _e('DISABLED:', 'yet-another-stars-rating');
567
- echo "</strong>
568
- <hr />
569
- <img src=" . YASR_IMG_DIR . "yasr_settings_stats_disabled.png alt='yasr-stats-disabled'>";
570
- ?>
571
  </div>
572
-
573
- <p>&nbsp;</p>
574
-
575
- <hr>
576
-
577
  <?php
578
 
579
  }
580
 
581
  public function loggedOnly($option) {
582
-
583
- $array_options = array(
584
- 'logged_only' => __('Allow only logged-in users', 'yet-another-stars-rating' ),
585
- 'allow_anonymous' => __('Allow everybody (logged in and anonymous)', 'yet-another-stars-rating' ),
586
- );
587
- $default = $option['allowed_user'];
588
- $name = 'yasr_general_options[allowed_user]';
589
- $class = 'yasr_auto_insert_loggedonly';
590
-
591
- echo YasrPhpFieldsHelper::radio( false, $class, $array_options, $name, $default );
592
  ?>
593
-
594
- <br />
595
- <div class="yasr-indented-answer">
596
  <?php
597
- _e(
598
- 'Select who can rate your posts for yasr_visitor_votes and yasr_visitor_multiset shortcodes.',
599
- 'yet-another-stars-rating')
600
- ?>
601
- </div>
602
-
603
- <?php
604
- submit_button(YASR_SAVE_All_SETTINGS_TEXT);
605
- ?>
606
-
607
- <hr>
608
-
609
- <?php
610
-
611
- } //End function
612
-
613
- public function OverallInLoop($option) {
614
- ?>
615
-
616
- <div class="yasr-onoffswitch-big">
617
- <input type="checkbox" name="yasr_general_options[show_overall_in_loop]" class="yasr-onoffswitch-checkbox"
618
- id="yasr-show-overall-in-loop-switch" <?php if($option['show_overall_in_loop'] === 'enabled') {
619
- echo " checked='checked' ";
620
- } ?> >
621
- <label class="yasr-onoffswitch-label" for="yasr-show-overall-in-loop-switch">
622
- <span class="yasr-onoffswitch-inner"></span>
623
- <span class="yasr-onoffswitch-switch"></span>
624
- </label>
625
- </div>
626
-
627
- <br/>
628
-
629
- <?php _e('"Overall Rating" will be also shown in archive page (categories, tags, etc.)',
630
- 'yet-another-stars-rating') ?>
631
-
632
- <p>&nbsp;</p>
633
-
634
- <?php
635
-
636
- }
637
-
638
- public function vvInLoop($option) {
639
-
640
- ?>
641
 
642
- <div class="yasr-onoffswitch-big">
643
- <input type="checkbox" name="yasr_general_options[show_visitor_votes_in_loop]" class="yasr-onoffswitch-checkbox"
644
- id="yasr-show-visitor-votes-in-loop-switch" <?php if ($option['show_visitor_votes_in_loop'] === 'enabled') {
645
- echo " checked='checked' ";
646
- } ?> >
647
- <label class="yasr-onoffswitch-label" for="yasr-show-visitor-votes-in-loop-switch">
648
- <span class="yasr-onoffswitch-inner"></span>
649
- <span class="yasr-onoffswitch-switch"></span>
650
- </label>
651
  </div>
652
-
653
- <br/>
654
-
655
- <?php _e('If you enable this, "Visitor Votes" will be showed not only in the single article or page, but also
656
- in pages like Home Page, category pages or archives.',
657
- 'yet-another-stars-rating') ?>
658
-
659
  <p>&nbsp;</p>
660
-
661
- <hr>
662
-
663
  <?php
664
 
665
- }
666
-
667
- public function snippets($option) {
668
-
669
- $publisher_name = $option['publisher_name'];
670
- $publisher_logo = $option['publisher_logo'];
671
 
 
672
  ?>
673
-
674
- <strong>
675
- <?php _e('Select default itemType for all post or pages', 'yet-another-stars-rating'); ?>
676
- </strong>
677
-
678
- <div class="yasr-indented-answer" id="yasr-choose-snippet-type">
 
 
 
 
 
 
679
  <?php
680
- $review_types = json_decode(YASR_SUPPORTED_SCHEMA_TYPES);
681
- sort($review_types);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
682
  ?>
683
- <label for="yasr-choose-reviews-types-list">
684
- <select name="yasr_general_options[snippet_itemtype]" id="yasr-choose-reviews-types-list">
685
  <?php
686
- foreach ($review_types as $type) {
687
- $type = trim($type);
688
- $type_option = $type;
689
- //to keep compatibility with version <2.2.3
690
- if($type === 'Place') {
691
- $type_option='LocalBusiness';
692
- }
693
- //to keep compatibility with version <2.2.3
694
- if($type === 'Other') {
695
- $type_option='BlogPosting';
696
- }
697
-
698
- if ($option['snippet_itemtype'] === $type) {
699
- echo "<option value=\"$type\" selected>$type_option</option>";
700
- } else {
701
- echo "<option value=\"$type\">$type_option</option>";
702
- }
703
- }
704
  ?>
705
- </select>
706
- </label>
707
-
708
- <br/> <br/>
709
-
710
- <?php
711
- $option_title = __(' Choose whether the site represents an organization or a person.', 'yet-another-stars-rating');
712
- $array_options = array (
713
- 'Organization' => 'Organization',
714
- 'Person' => 'Person'
715
- );
716
- $default = $option['publisher'];
717
- $name = 'yasr_general_options[publisher]';
718
- $id = 'yasr-general-options-publisher';
719
-
720
- echo YasrPhpFieldsHelper::radio( $option_title, '', $array_options, $name, $default, $id );
721
- ?>
722
-
723
- <br/>
724
-
725
- <label for="yasr-general-options-publisher-name">
726
- <input type='text' name='yasr_general_options[publisher_name]'
727
- id="yasr-general-options-publisher-name"
728
- class="yasr-additional-info-inputs" <?php printf('value="%s"', $publisher_name); ?>
729
- maxlength="180"/>
730
- <?php _e('Publisher name (e.g. Google)', 'yet-another-stars-rating') ?>
731
- </label>
732
-
733
- <br/> <br/>
734
-
735
- <label for="yasr-general-options-publisher-logo"></label>
736
- <input type='text' name='yasr_general_options[publisher_logo]'
737
- id="yasr-general-options-publisher-logo"
738
- class="yasr-blogPosting-additional-info-inputs"
739
- <?php printf('value="%s"', $publisher_logo); ?>
740
- maxlength="300"/>
741
- <?php _e('Image Url (if empty siteicon will be used instead)', 'yet-another-stars-rating') ?>
742
-
743
- <div class="yasr-help-box-settings" id="yasr-blogPosting-additional-info" style="display:block">
744
- <?php _e('You can always change itemType in the single post or page.', 'yet-another-stars-rating');
745
-
746
- echo "<br />";
747
-
748
- echo(sprintf(
749
- __('Please keep in mind that since September, 16, 2019 blogPosting itemType will
750
- no show stars in SERP anymore. %sHere%s the announcement by Google.',
751
- 'yet-another-stars-rating'),
752
- '<a href="https://webmasters.googleblog.com/2019/09/making-review-rich-results-more-helpful.html">',
753
- '</a>')
754
- );
755
-
756
- echo "<br />";
757
- echo (sprintf(
758
- __('Also, %sread Google guidelines%s', 'yet-another-stars-rating'),
759
- '<a href="https://developers.google.com/search/docs/data-types/review-snippet#guidelines">',
760
- '</a>')
761
- );
762
-
763
- ?>
764
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
765
  </div>
766
 
767
- <p>&nbsp;</p>
768
-
769
  <?php
770
- submit_button(YASR_SAVE_All_SETTINGS_TEXT);
771
  ?>
772
-
773
  </div>
774
-
775
  <hr />
776
-
777
- <p>&nbsp;</p>
778
-
779
  <?php
 
780
 
781
- } //End function yasr_choose_snippet_callback
782
-
783
- public function loadWithAjax($option) {
784
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
785
 
786
- <div class="yasr-onoffswitch-big">
787
- <input type="checkbox" name="yasr_general_options[enable_ajax]" class="yasr-onoffswitch-checkbox"
788
- id="yasr-general-options-enable-ajax-switch" <?php if ($option['enable_ajax'] === 'yes') {
789
- echo " checked='checked' ";
790
- } ?> >
791
- <label class="yasr-onoffswitch-label" for="yasr-general-options-enable-ajax-switch">
792
- <span class="yasr-onoffswitch-inner"></span>
793
- <span class="yasr-onoffswitch-switch"></span>
794
- </label>
795
- </div>
796
-
797
- <br/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
799
  <?php
800
- _e('This should be enabled if you\'re using caching plugins.
801
- Not required for yasr_overall_rating and yasr_multiset.',
802
- 'yet-another-stars-rating'
803
- );
804
  ?>
805
 
806
- <br/><p>&nbsp;</p>
807
-
808
- <hr>
809
-
810
  <?php
811
 
812
- } //End function
813
 
814
- public function EnableIp($option) {
815
  ?>
816
- <div class="yasr-onoffswitch-big">
817
- <input type="checkbox" name="yasr_general_options[enable_ip]" class="yasr-onoffswitch-checkbox"
818
- id="yasr-general-options-enable-ip-switch" <?php if ($option['enable_ip'] === 'yes') {
819
- echo " checked='checked' ";
820
- } ?> >
821
- <label class="yasr-onoffswitch-label" for="yasr-general-options-enable-ip-switch">
822
- <span class="yasr-onoffswitch-inner"></span>
823
- <span class="yasr-onoffswitch-switch"></span>
824
- </label>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
825
  </div>
826
-
827
- <br/>
828
-
829
  <?php
830
- $string = sprintf(
831
- __('Please note that to comply with the %s EU law, you %s MUST %s warn your users that you\'re storing their ip. %s
832
- If in doubt, leave no.',
833
- 'yet-another-stars-rating'
834
- ),
835
- '<a href="https://en.wikipedia.org/wiki/General_Data_Protection_Regulation">GDPR</a>',
836
- '<strong>', '</strong>', '<br />'
837
- );
838
- echo $string;
839
- ?>
840
- <p></p>
841
- <?php
842
-
843
  } //End function
844
 
845
  public function sanitize($option) {
41
  require(YASR_ABSOLUTE_PATH_ADMIN . '/settings/multiset/yasr-settings-functions-multiset.php');
42
 
43
  //include style functions
44
+ require(YASR_ABSOLUTE_PATH_ADMIN . '/settings/aspect_style/yasr-settings-style-functions.php');
45
 
46
  //load functions migration
47
  require(YASR_ABSOLUTE_PATH_ADMIN . '/settings/migrations/yasr-settings-migration-functions.php');
83
  __('[Total: %s Average: %s]', 'yet-another-stars-rating'),
84
  '%total_count%', '%average%'
85
  );
86
+ $option['custom_text_user_voted'] =
87
+ __('You have already voted for this article with rating ', 'yet-another-stars-rating') . '%rating%';
88
+
89
  $option['custom_text_must_sign_in'] = __('You must sign in to vote', 'yet-another-stars-rating');
90
  }
91
 
106
  $option['enable_ajax'] = 'no';
107
  }
108
 
 
 
 
 
 
 
 
 
 
109
  add_settings_section(
110
  'yasr_general_options_section_id',
111
  __('General settings', 'yet-another-stars-rating'),
115
 
116
  add_settings_field(
117
  'yasr_use_auto_insert_id',
118
+ yasr_description_auto_insert(),
119
  array($this, 'autoInsert'),
120
  'yasr_general_settings_tab',
121
  'yasr_general_options_section_id',
124
 
125
  add_settings_field(
126
  'yasr_stars_title',
127
+ yasr_description_stars_title(),
128
  array($this, 'starsTitle'),
129
  'yasr_general_settings_tab',
130
  'yasr_general_options_section_id',
132
  );
133
 
134
  add_settings_field(
135
+ 'yasr_show_overall_in_loop',
136
+ yasr_description_archive_page(),
137
+ array($this, 'archivePages'),
138
  'yasr_general_settings_tab',
139
  'yasr_general_options_section_id',
140
  $option
142
 
143
  add_settings_field(
144
  'yasr_visitors_stats',
145
+ yasr_description_vv_stats(),
146
  array($this, 'vvStats'),
147
  'yasr_general_settings_tab',
148
  'yasr_general_options_section_id',
151
 
152
  add_settings_field(
153
  'yasr_allow_only_logged_in_id',
154
+ yasr_description_allow_vote(),
155
  array($this, 'loggedOnly'),
156
  'yasr_general_settings_tab',
157
  'yasr_general_options_section_id',
159
  );
160
 
161
  add_settings_field(
162
+ 'yasr_custom_text',
163
+ yasr_description_cstm_txt(),
164
+ array($this, 'customText'),
165
  'yasr_general_settings_tab',
166
  'yasr_general_options_section_id',
167
  $option
168
  );
169
 
 
 
 
 
 
 
 
 
170
 
171
  add_settings_field(
172
  'yasr_choose_snippet_id',
173
+ yasr_description_strucutured_data(),
174
  array($this, 'snippets' ),
175
  'yasr_general_settings_tab',
176
  'yasr_general_options_section_id',
178
  );
179
 
180
  add_settings_field(
181
+ 'yasr_advanced',
182
+ __('Advanced Settings', 'yet-another-stars-rating'),
183
+ array($this, 'advancedSettings'),
184
  'yasr_general_settings_tab',
185
  'yasr_general_options_section_id',
186
  $option
187
  );
188
 
 
 
 
 
 
 
 
 
189
  }
190
 
191
  /**
202
  public function autoInsert($option) {
203
  ?>
204
  <div>
205
+ <strong>
206
+ <?php _e('Use Auto Insert?', 'yet-another-stars-rating'); ?>
207
+ </strong>
208
  <div class="yasr-onoffswitch-big">
209
  <input type="checkbox" name="yasr_general_options[auto_insert_enabled]" class="yasr-onoffswitch-checkbox"
210
  value="1" id="yasr_auto_insert_switch" <?php if ($option['auto_insert_enabled'] == 1) {
216
  </label>
217
  </div>
218
 
219
+ <div class="yasr-settings-row-35">
220
+ <div>
221
+ <?php
222
+ $option_title = __('What?', 'yet-another-stars-rating');
223
+ $array_options = array (
224
+ 'visitor_rating' => __('Visitor Votes', 'yet-another-stars-rating'),
225
+ 'overall_rating' => __('Overall Rating', 'yet-another-stars-rating'),
226
+ 'both' => __('Both', 'yet-another-stars-rating')
227
+ );
228
+ $default = $option['auto_insert_what'];
229
+ $name = 'yasr_general_options[auto_insert_what]';
230
+ $class = 'yasr-auto-insert-options-class';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
 
232
+ echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
233
+ ?>
234
+ </div>
235
+ <div>
236
+ <?php
237
+ $option_title = __('Where?', 'yet-another-stars-rating');
238
  $array_options = array (
239
+ 'top' => __('Before the content', 'yet-another-stars-rating'),
240
+ 'bottom' => __('After the content', 'yet-another-stars-rating'),
241
  );
242
+ $default = $option['auto_insert_where'];
243
+ $name = 'yasr_general_options[auto_insert_where]';
244
  $class = 'yasr-auto-insert-options-class';
245
 
246
  echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
247
+ ?>
248
+ </div>
249
+ <div>
250
+ <?php
251
+ $option_title = __('Align', 'yet-another-stars-rating');
252
+ $array_options = array (
253
+ 'left' => __('Left', 'yet-another-stars-rating'),
254
+ 'center' => __('Center', 'yet-another-stars-rating'),
255
+ 'right' => __('Right', 'yet-another-stars-rating')
256
+ );
257
+ $default = $option['auto_insert_align'];
258
+ $name = 'yasr_general_options[auto_insert_align]';
259
+ $class = 'yasr-auto-insert-options-class';
260
 
261
+ echo YasrPhpFieldsHelper::radio($option_title, $class, $array_options, $name, $default);
262
+ ?>
 
 
263
  </div>
264
+ <div>
265
+ <strong>
266
+ <?php _e('Size', 'yet-another-stars-rating'); ?>
267
+ </strong>
268
+ <?php
269
+ $name = 'yasr_general_options[auto_insert_size]';
270
+ $class = 'yasr-auto-insert-options-class';
271
+ $id = 'yasr-auto-insert-options-stars-size-';
272
 
273
+ YasrPhpFieldsHelper::radioSelectSize($name, $class, $option['auto_insert_size'], $id, true, false);
274
+ ?>
275
+ </div>
276
+ <div>
277
+ <?php
278
+ $option_title = __('Exclude Pages?', 'yet-another-stars-rating');
279
+ $array_options = array (
280
+ 'yes' => __('Yes', 'yet-another-stars-rating'),
281
+ 'no' => __('No', 'yet-another-stars-rating'),
282
+ );
283
+ $default = $option['auto_insert_exclude_pages'];
284
+ $name = 'yasr_general_options[auto_insert_exclude_pages]';
285
+ $class = 'yasr-auto-insert-options-class';
286
+
287
+ echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
288
+ ?>
289
+ </div>
290
  <?php
291
+ $custom_post_types = YasrCustomPostTypes::getCustomPostTypes();
292
+ if ($custom_post_types) {
293
+ echo '<div>';
294
+ $option_title = __('Use only in custom post types?', 'yet-another-stars-rating');
295
+ $array_options = array (
296
+ 'yes' => __('Yes', 'yet-another-stars-rating'),
297
+ 'no' => __('No', 'yet-another-stars-rating'),
298
+ );
299
+ $default = $option['auto_insert_custom_post_only'];
300
+ $name = 'yasr_general_options[auto_insert_custom_post_only]';
301
+ $class = 'yasr-auto-insert-options-class';
302
+
303
+ echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
304
+ ?>
305
+ <div>
306
+ <?php
307
+ _e('Select yes if you want to use auto insert only in custom post types',
308
+ 'yet-another-stars-rating');
309
+ ?>
310
+ </div>
311
+ <?php
312
+ echo '</div>';
313
+ } else {
314
+ ?>
315
+ <input type="hidden" name="yasr_general_options[auto_insert_custom_post_only]" value="no">
316
+ <?php
317
+ }
318
  ?>
319
+ </div>
320
+ <?php submit_button(YASR_SAVE_All_SETTINGS_TEXT); ?>
 
 
 
 
 
321
  </div>
 
322
  <hr />
 
323
  <?php
324
 
325
  } //End yasr_auto_insert_callback
331
  */
332
  public function starsTitle($option) {
333
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  <div>
335
+ <div class="yasr-onoffswitch-big">
336
+ <input type="checkbox" name="yasr_general_options[stars_title]" class="yasr-onoffswitch-checkbox"
337
+ id="yasr-general-options-stars-title-switch" <?php if ($option['stars_title'] === 'yes') {
338
+ echo " checked='checked' ";
339
+ } ?> >
340
+ <label class="yasr-onoffswitch-label" for="yasr-general-options-stars-title-switch">
341
+ <span class="yasr-onoffswitch-inner"></span>
342
+ <span class="yasr-onoffswitch-switch"></span>
343
+ </label>
344
+ </div>
345
+ <div class="yasr-settings-row-35">
346
+ <div>
347
+ <?php
348
+ $option_title = __('What?', 'yet-another-stars-rating');
349
+ $array_options = array (
350
+ 'visitor_rating' => __('Visitor Votes', 'yet-another-stars-rating'),
351
+ 'overall_rating' => __('Overall Rating / Author Rating', 'yet-another-stars-rating'),
352
+ );
353
+ $default = $option['stars_title_what'];
354
+ $name = 'yasr_general_options[stars_title_what]';
355
+ $class = 'yasr-stars-title-options-class';
356
+
357
+ echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
358
+ ?>
359
+ </div>
360
+ <div>
361
+ <?php
362
+ $option_title = __('Exclude Pages?', 'yet-another-stars-rating');
363
+ $array_options = array (
364
+ 'yes' => __('Yes', 'yet-another-stars-rating'),
365
+ 'no' => __('No', 'yet-another-stars-rating'),
366
+ );
367
+ $default = $option['stars_title_exclude_pages'];
368
+ $name = 'yasr_general_options[stars_title_exclude_pages]';
369
+ $class = 'yasr-stars-title-options-class';
370
 
371
+ echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
372
+ ?>
373
+ </div>
374
+ <div style="flex: 0 0 50%">
375
+ <?php
376
+ $option_title = __('Where do you want show ratings?', 'yet-another-stars-rating');
377
+ $array_options = array (
378
+ 'archive' => __('Only on archive pages (categories, tags, etc.)', 'yet-another-stars-rating'),
379
+ 'single' => __('Only on single posts or pages', 'yet-another-stars-rating'),
380
+ 'both' => __('Both', 'yet-another-stars-rating'),
381
+ );
382
+ $default = $option['stars_title_where'];
383
+ $name = 'yasr_general_options[stars_title_where]';
384
+ $class = 'yasr-stars-title-options-class';
385
 
386
+ echo YasrPhpFieldsHelper::radio( $option_title, $class, $array_options, $name, $default );
387
+ ?>
388
+ </div>
389
+ </div>
390
  </div>
391
 
392
  <p>&nbsp;</p>
396
 
397
  }
398
 
399
+ public function archivePages($option) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
  ?>
401
+ <div class="yasr-settings-row-45">
402
+ <div>
403
+ <strong>
404
+ <?php _e('Show "Overall Rating" in Archive Pages?', 'yet-another-stars-rating'); ?>
405
+ </strong>
406
+ <div class="yasr-onoffswitch-big">
407
+ <input type="checkbox" name="yasr_general_options[show_overall_in_loop]" class="yasr-onoffswitch-checkbox"
408
+ id="yasr-show-overall-in-loop-switch" <?php if($option['show_overall_in_loop'] === 'enabled') {
409
+ echo " checked='checked' ";
410
+ } ?> >
411
+ <label class="yasr-onoffswitch-label" for="yasr-show-overall-in-loop-switch">
412
+ <span class="yasr-onoffswitch-inner"></span>
413
+ <span class="yasr-onoffswitch-switch"></span>
414
+ </label>
415
+ </div>
416
+ <br/>
417
+ <?php _e('Enable to show "Overall Rating" in archive pages.','yet-another-stars-rating') ?>
418
+ </div>
419
 
420
+ <div>
421
+ <strong>
422
+ <?php _e('Show "Visitor Votes" in Archive Page?', 'yet-another-stars-rating') ?>
423
+ </strong>
424
+ <div class="yasr-onoffswitch-big">
425
+ <input type="checkbox" name="yasr_general_options[show_visitor_votes_in_loop]" class="yasr-onoffswitch-checkbox"
426
+ id="yasr-show-visitor-votes-in-loop-switch" <?php if ($option['show_visitor_votes_in_loop'] === 'enabled') {
427
+ echo " checked='checked' ";
428
+ } ?> >
429
+ <label class="yasr-onoffswitch-label" for="yasr-show-visitor-votes-in-loop-switch">
430
+ <span class="yasr-onoffswitch-inner"></span>
431
+ <span class="yasr-onoffswitch-switch"></span>
432
+ </label>
433
+ </div>
434
+ <br/>
435
+ <?php _e('Enable to show "Visitor Votes" in archive pages','yet-another-stars-rating') ?>
436
+ </div>
437
 
 
 
 
438
  </div>
 
439
  <p>&nbsp;</p>
440
+ <hr>
441
  <?php
 
 
442
 
443
  }
444
 
445
  public function vvStats($option) {
446
  ?>
447
+ <div class="yasr-settings-row">
448
+ <div class="yasr-settings-col-20">
449
+ <div class="yasr-onoffswitch-big">
450
+ <input type="checkbox" name="yasr_general_options[visitors_stats]" class="yasr-onoffswitch-checkbox"
451
+ id="yasr-general-options-visitors-stats-switch" <?php if ($option['visitors_stats'] === 'yes') {
452
+ echo " checked='checked' ";
453
+ } ?> >
454
+ <label class="yasr-onoffswitch-label" for="yasr-general-options-visitors-stats-switch">
455
+ <span class="yasr-onoffswitch-inner"></span>
456
+ <span class="yasr-onoffswitch-switch"></span>
457
+ </label>
458
+ </div>
459
+ <br/>
460
+ <?php
461
+ _e('Select "Yes" to enable.', 'yet-another-stars-rating');
462
+ ?>
463
+ <br />
464
+ <p>&nbsp;</p>
465
+ </div>
466
+ <div class="yasr-settings-col-70">
467
+ <strong>
468
+ <?php _e('Example', 'yet-another-stars-rating') ?>:
469
+ </strong>
470
+ <br />
471
+ <img src="<?php echo YASR_IMG_DIR . 'yasr-settings-stats.png'?>" class="yasr-help-box-settings"
472
+ style="display: block" alt="yasr-statsexplained">
473
+ </div>
 
 
 
 
 
 
 
 
474
  </div>
475
+ <hr />
 
 
 
 
476
  <?php
477
 
478
  }
479
 
480
  public function loggedOnly($option) {
 
 
 
 
 
 
 
 
 
 
481
  ?>
482
+ <div class="yasr-settings-padding-left">
 
 
483
  <?php
484
+ $array_options = array(
485
+ 'logged_only' => __('Allow only logged-in users', 'yet-another-stars-rating' ),
486
+ 'allow_anonymous' => __('Allow everybody (logged in and anonymous)', 'yet-another-stars-rating' ),
487
+ );
488
+ $default = $option['allowed_user'];
489
+ $name = 'yasr_general_options[allowed_user]';
490
+ $class = 'yasr_auto_insert_loggedonly';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
491
 
492
+ echo YasrPhpFieldsHelper::radio( false, $class, $array_options, $name, $default );
493
+ ?>
494
+ <br />
495
+ <div class="yasr-indented-answer">
496
+ <?php
497
+ _e('Select who can rate your posts.','yet-another-stars-rating')
498
+ ?>
499
+ </div>
 
500
  </div>
 
 
 
 
 
 
 
501
  <p>&nbsp;</p>
502
+ <hr />
 
 
503
  <?php
504
 
505
+ } //End function
 
 
 
 
 
506
 
507
+ public function customText($option) {
508
  ?>
509
+ <div>
510
+ <div class="yasr-onoffswitch-big">
511
+ <input type="checkbox" name="yasr_general_options[text_before_stars]" class="yasr-onoffswitch-checkbox"
512
+ id="yasr-general-options-text-before-stars-switch" <?php if ($option['text_before_stars'] == 1) {
513
+ echo " checked='checked' ";
514
+ } ?> >
515
+ <label class="yasr-onoffswitch-label" for="yasr-general-options-text-before-stars-switch">
516
+ <span class="yasr-onoffswitch-inner"></span>
517
+ <span class="yasr-onoffswitch-switch"></span>
518
+ </label>
519
+ </div>
520
+ <br />
521
  <?php
522
+ $custom_text = array(
523
+ 'txt_before_overall' => array (
524
+ 'name' => 'text_before_overall',
525
+ 'description' => __('Custom text to display before Overall Rating', 'yet-another-stars-rating'),
526
+ 'id' => 'yasr-general-options-custom-text-before-overall',
527
+ 'class' => 'yasr-general-options-text-before'
528
+ ),
529
+ 'txt_before_vv' => array (
530
+ 'name' => 'text_before_visitor_rating',
531
+ 'description' => __('Custom text to display BEFORE Visitor Rating', 'yet-another-stars-rating'),
532
+ 'id' => 'yasr-general-options-custom-text-before-visitor',
533
+ 'class' => 'yasr-general-options-text-before'
534
+ ),
535
+ 'txt_after_vv' => array (
536
+ 'name' => 'text_after_visitor_rating',
537
+ 'description' => __('Custom text to display AFTER Visitor Rating', 'yet-another-stars-rating'),
538
+ 'id' => 'yasr-general-options-custom-text-after-visitor',
539
+ 'class' => 'yasr-general-options-text-before'
540
+ ),
541
+ 'txt_login_required' => array (
542
+ 'name' => 'custom_text_must_sign_in',
543
+ 'description' => __('Custom text to display when login is required to vote', 'yet-another-stars-rating'),
544
+ 'id' => 'yasr-general-options-custom-text-must-sign-in',
545
+ 'class' => 'yasr-general-options-text-before'
546
+ ),
547
+ 'txt_vv_rated' => array (
548
+ 'name' => 'custom_text_user_voted',
549
+ 'description' => __('Custom text to display when an user has already rated', 'yet-another-stars-rating'),
550
+ 'id' => 'yasr-general-options-custom-text-already-rated',
551
+ 'class' => 'yasr-general-options-text-before'
552
+ )
553
+ );
554
  ?>
555
+ <div class="yasr-settings-row-45">
556
+ <div id="yasr-general-options-custom-text">
557
  <?php
558
+ self::echoSettingFields($custom_text, $option);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559
  ?>
560
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
 
562
+ <div id="yasr-doc-custom-text-div">
563
+ <div class="yasr-help-box-settings" style="display: block">
564
+ <?php
565
+ $string_custom_overall = sprintf(
566
+ __('In the first and last fields you can use %s pattern to show the rating (as text).',
567
+ 'yet-another-stars-rating'), '<strong>%rating%</strong>');
568
+
569
+ $string_custom_visitor = sprintf(__('In the second and third fields you can use %s pattern to show the
570
+ total count, and %s pattern to show the average.', 'yet-another-stars-rating'),
571
+ '<strong>%total_count%</strong>', '<strong>%average%</strong>');
572
+
573
+ echo $string_custom_overall;
574
+ echo '<br /><br/>';
575
+ echo $string_custom_visitor;
576
+ echo '<br /><br/>';
577
+
578
+ _e('You can use these html tags:', 'yet-another-stars-rating');
579
+ echo ' <strong>' . esc_html('<strong>, <p>') . '.</strong>';
580
+ ?>
581
+ </div>
582
+ </div>
583
  </div>
584
 
 
 
585
  <?php
586
+ submit_button(YASR_SAVE_All_SETTINGS_TEXT);
587
  ?>
 
588
  </div>
 
589
  <hr />
 
 
 
590
  <?php
591
+ }
592
 
593
+ public function snippets($option) {
594
+ $publisher_name = $option['publisher_name'];
595
+ $publisher_logo = $option['publisher_logo'];
596
  ?>
597
+ <div class="yasr-settings-padding-left yasr-settings-row">
598
+ <div class="yasr-settings-col-60">
599
+ <strong>
600
+ <?php _e('Select default itemType for all post or pages', 'yet-another-stars-rating'); ?>
601
+ </strong>
602
+ <div>
603
+ <?php
604
+ $review_types = json_decode(YASR_SUPPORTED_SCHEMA_TYPES);
605
+ sort($review_types);
606
+ ?>
607
+ <label for="yasr-choose-reviews-types-list">
608
+ <select name="yasr_general_options[snippet_itemtype]" id="yasr-choose-reviews-types-list">
609
+ <?php
610
+ foreach ($review_types as $type) {
611
+ $type = trim($type);
612
+ $type_option = $type;
613
+ //to keep compatibility with version <2.2.3
614
+ if($type === 'Place') {
615
+ $type_option='LocalBusiness';
616
+ }
617
+ //to keep compatibility with version <2.2.3
618
+ if($type === 'Other') {
619
+ $type_option='BlogPosting';
620
+ }
621
+
622
+ if ($option['snippet_itemtype'] === $type) {
623
+ echo "<option value=\"$type\" selected>$type_option</option>";
624
+ } else {
625
+ echo "<option value=\"$type\">$type_option</option>";
626
+ }
627
+ }
628
+ ?>
629
+ </select>
630
+ </label>
631
+ <div class="yasr-element-row-container-description">
632
+ <?php
633
+ _e('You can always change itemType in the single post or page.',
634
+ 'yet-another-stars-rating');
635
+ ?>
636
+ </div>
637
 
638
+ <?php
639
+ $option_title = __('Choose whether the site represents an organization or a person.', 'yet-another-stars-rating');
640
+ $array_options = array (
641
+ 'Organization' => 'Organization',
642
+ 'Person' => 'Person'
643
+ );
644
+ $default = $option['publisher'];
645
+ $name = 'yasr_general_options[publisher]';
646
+ $id = 'yasr-general-options-publisher';
647
+
648
+ echo YasrPhpFieldsHelper::radio( $option_title, 'none', $array_options, $name, $default, $id );
649
+ ?>
650
+ <br/>
651
+ <input type='text' name='yasr_general_options[publisher_name]'
652
+ id="yasr-general-options-publisher-name"
653
+ class="yasr-additional-info-inputs" <?php printf('value="%s"', $publisher_name); ?>
654
+ maxlength="180"/>
655
+ <div class="yasr-element-row-container-description">
656
+ <label for="yasr-general-options-publisher-name">
657
+ <?php _e('Publisher name (e.g. Google)', 'yet-another-stars-rating') ?>
658
+ </label>
659
+ </div>
660
+
661
+ <input type='text' name='yasr_general_options[publisher_logo]'
662
+ id="yasr-general-options-publisher-logo"
663
+ class="yasr-blogPosting-additional-info-inputs"
664
+ <?php printf('value="%s"', $publisher_logo); ?>
665
+ maxlength="300"/>
666
+ <div class="yasr-element-row-container-description">
667
+ <label for="yasr-general-options-publisher-logo">
668
+ <?php _e('Image Url (if empty siteicon will be used instead)', 'yet-another-stars-rating') ?>
669
+ </label>
670
+ </div>
671
+ </div>
672
+ </div>
673
 
674
+ <div class="yasr-settings-col-40" id="yasr-blogPosting-additional-info">
675
+ <div class="yasr-help-box-settings" style="display:block">
676
+ <?php
677
+ echo(sprintf(
678
+ __('Please keep in mind that since September, 16, 2019 blogPosting itemType will
679
+ no show stars in SERP anymore. %sHere%s the announcement by Google.',
680
+ 'yet-another-stars-rating'),
681
+ '<br /><br /><a href="https://webmasters.googleblog.com/2019/09/making-review-rich-results-more-helpful.html">',
682
+ '</a>')
683
+ );
684
+ echo "<br /><br />";
685
+ echo (sprintf(
686
+ __('Also, %sread Google guidelines%s', 'yet-another-stars-rating'),
687
+ '<a href="https://developers.google.com/search/docs/data-types/review-snippet#guidelines">',
688
+ '</a>.')
689
+ );
690
+ ?>
691
+ </div>
692
+ </div>
693
+ </div>
694
  <?php
695
+ submit_button(YASR_SAVE_All_SETTINGS_TEXT);
 
 
 
696
  ?>
697
 
698
+ <hr />
 
 
 
699
  <?php
700
 
701
+ } //End function yasr_choose_snippet_callback
702
 
703
+ public function advancedSettings($option) {
704
  ?>
705
+ <div class="yasr-settings-row-45">
706
+ <div>
707
+ <strong>
708
+ <?php _e('Load results with AJAX?', 'yet-another-stars-rating'); ?>
709
+ </strong>
710
+ <div class="yasr-onoffswitch-big">
711
+ <input type="checkbox" name="yasr_general_options[enable_ajax]" class="yasr-onoffswitch-checkbox"
712
+ id="yasr-general-options-enable-ajax-switch" <?php if ($option['enable_ajax'] === 'yes') {
713
+ echo " checked='checked' ";
714
+ } ?> >
715
+ <label class="yasr-onoffswitch-label" for="yasr-general-options-enable-ajax-switch">
716
+ <span class="yasr-onoffswitch-inner"></span>
717
+ <span class="yasr-onoffswitch-switch"></span>
718
+ </label>
719
+ </div>
720
+ <br/>
721
+ <?php
722
+ _e('This should be enabled if you\'re using caching plugins.
723
+ Not required for yasr_overall_rating and yasr_multiset.',
724
+ 'yet-another-stars-rating'
725
+ );
726
+ ?>
727
+ </div>
728
+ <div>
729
+ <strong>
730
+ <?php _e('Do you want to save ip address?', 'yet-another-stars-rating') ?>
731
+ </strong>
732
+ <div class="yasr-onoffswitch-big">
733
+ <input type="checkbox" name="yasr_general_options[enable_ip]" class="yasr-onoffswitch-checkbox"
734
+ id="yasr-general-options-enable-ip-switch" <?php if ($option['enable_ip'] === 'yes') {
735
+ echo " checked='checked' ";
736
+ } ?> >
737
+ <label class="yasr-onoffswitch-label" for="yasr-general-options-enable-ip-switch">
738
+ <span class="yasr-onoffswitch-inner"></span>
739
+ <span class="yasr-onoffswitch-switch"></span>
740
+ </label>
741
+ </div>
742
+ <br/>
743
+ <?php
744
+ $string = sprintf(
745
+ __('Please note that to comply with the %s EU law, you %s MUST %s warn your users that you\'re storing their ip. %s
746
+ If in doubt, leave no.',
747
+ 'yet-another-stars-rating'
748
+ ),
749
+ '<a href="https://en.wikipedia.org/wiki/General_Data_Protection_Regulation">GDPR</a>',
750
+ '<strong>', '</strong>', '<br />'
751
+ );
752
+ echo $string;
753
+ ?>
754
+ </div>
755
  </div>
 
 
 
756
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
757
  } //End function
758
 
759
  public function sanitize($option) {
admin/settings/yasr-settings-functions-misc.php CHANGED
@@ -19,27 +19,27 @@ function yasr_settings_tabs( $active_tab )
19
  ?>
20
  </a>
21
 
22
- <a href="?page=yasr_settings_page&tab=manage_multi"
23
- id="manage_multi"
24
  class="nav-tab <?php
25
- if ( $active_tab === 'manage_multi' ) {
26
  echo 'nav-tab-active' ;
27
  }
28
  ?>">
29
  <?php
30
- _e( 'Multi Sets', 'yet-another-stars-rating' );
31
  ?>
32
  </a>
33
 
34
- <a href="?page=yasr_settings_page&tab=style_options"
35
- id="style_options"
36
  class="nav-tab <?php
37
- if ( $active_tab === 'style_options' ) {
38
  echo 'nav-tab-active' ;
39
  }
40
  ?>">
41
  <?php
42
- _e( 'Aspect & Styles', 'yet-another-stars-rating' );
43
  ?>
44
  </a>
45
 
@@ -82,6 +82,119 @@ function yasr_settings_tabs( $active_tab )
82
  <?php
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  function yasr_upgrade_pro_box( $position = false )
86
  {
87
 
19
  ?>
20
  </a>
21
 
22
+ <a href="?page=yasr_settings_page&tab=style_options"
23
+ id="style_options"
24
  class="nav-tab <?php
25
+ if ( $active_tab === 'style_options' ) {
26
  echo 'nav-tab-active' ;
27
  }
28
  ?>">
29
  <?php
30
+ _e( 'Aspect & Styles', 'yet-another-stars-rating' );
31
  ?>
32
  </a>
33
 
34
+ <a href="?page=yasr_settings_page&tab=manage_multi"
35
+ id="manage_multi"
36
  class="nav-tab <?php
37
+ if ( $active_tab === 'manage_multi' ) {
38
  echo 'nav-tab-active' ;
39
  }
40
  ?>">
41
  <?php
42
+ _e( 'Multi Sets', 'yet-another-stars-rating' );
43
  ?>
44
  </a>
45
 
82
  <?php
83
  }
84
 
85
+ /**
86
+ * Return the description of auto insert
87
+ *
88
+ * @author Dario Curvino <@dudo>
89
+ * @since 2.6.6
90
+ * @return string
91
+ */
92
+ function yasr_description_auto_insert()
93
+ {
94
+ $name = __( 'Auto Insert Options', 'yet_another-stars-rating' );
95
+ $div_desc = '<div class="yasr-settings-description">';
96
+ $description = sprintf( __( 'Automatically adds YASR in your posts or pages. %s
97
+ Disable this if you prefer to use shortcodes.', 'yet-another-stars-rating' ), '<br />' );
98
+ $end_div = '</div>';
99
+ return $name . $div_desc . $description . $end_div;
100
+ }
101
+
102
+ /**
103
+ * @author Dario Curvino <@dudo>
104
+ * @since 2.6.6
105
+ *
106
+ * @return string
107
+ */
108
+ function yasr_description_stars_title()
109
+ {
110
+ $name = __( 'Enable stars next to the title?', 'yet_another-stars-rating' );
111
+ $div_desc = '<div class="yasr-settings-description">';
112
+ $description = __( 'Enable this if you want to show stars next to the title', 'yet-another-stars-rating' );
113
+ $end_div = '.</div>';
114
+ return $name . $div_desc . $description . $end_div;
115
+ }
116
+
117
+ /**
118
+ * @author Dario Curvino <@dudo>
119
+ * @since 2.6.6
120
+ * @return string
121
+ */
122
+ function yasr_description_archive_page()
123
+ {
124
+ $name = __( 'Archive Pages', 'yet_another-stars-rating' );
125
+ $div_desc = '<div class="yasr-settings-description">';
126
+ $description = __( 'Enable or disable these settings if you want to show ratings in archive pages (categories, tags, etc.)', 'yet-another-stars-rating' );
127
+ $end_div = '.</div>';
128
+ return $name . $div_desc . $description . $end_div;
129
+ }
130
+
131
+ /**
132
+ * @author Dario Curvino <@dudo>
133
+ * @since 2.6.6
134
+ * @return string
135
+ */
136
+ function yasr_description_vv_stats()
137
+ {
138
+ $name = __( 'Show stats for visitors votes?', 'yet_another-stars-rating' );
139
+ $div_desc = '<div class="yasr-settings-description">';
140
+ $description = sprintf( __( 'Enable or disable the chart bar icon (and tooltip hover it) next to the %syasr_visitor_votes%s shortcode', 'yet-another-stars-rating' ), '<em>', '</em>' );
141
+ $end_div = '.</div>';
142
+ return $name . $div_desc . $description . $end_div;
143
+ }
144
+
145
+ /**
146
+ * @author Dario Curvino <@dudo>
147
+ * @since 2.6.6
148
+ * @return string
149
+ */
150
+ function yasr_description_allow_vote()
151
+ {
152
+ $name = __( 'Who is allowed to vote?', 'yet_another-stars-rating' );
153
+ $div_desc = '<div class="yasr-settings-description">';
154
+ $description = sprintf(
155
+ __( 'Select who can rate your posts for %syasr_visitor_votes%s and %syasr_visitor_multiset%s shortcodes', 'yet-another-stars-rating' ),
156
+ '<em>',
157
+ '</em>',
158
+ '<em>',
159
+ '</em>'
160
+ );
161
+ $end_div = '.</div>';
162
+ return $name . $div_desc . $description . $end_div;
163
+ }
164
+
165
+ /**
166
+ * @author Dario Curvino <@dudo>
167
+ * @since 2.6.6
168
+ * @return string
169
+ */
170
+ function yasr_description_cstm_txt()
171
+ {
172
+ $name = __( 'Custom texts', 'yet_another-stars-rating' );
173
+ $div_desc = '<div class="yasr-settings-description">';
174
+ $description = __( 'Auto insert custom texts to show before or after the stars', 'yet-another-stars-rating' );
175
+ $end_div = '.</div>';
176
+ return $name . $div_desc . $description . $end_div;
177
+ }
178
+
179
+ /**
180
+ * @author Dario Curvino <@dudo>
181
+ * @since 2.6.6
182
+ * @return string
183
+ */
184
+ function yasr_description_strucutured_data()
185
+ {
186
+ $name = __( 'Stuctured data options', 'yet_another-stars-rating' );
187
+ $div_desc = '<div class="yasr-settings-description">';
188
+ $description = __( 'If ratings in a post or page are found, YASR will create structured data to show them in search results
189
+ (SERP)', 'yet-another-stars-rating' );
190
+ $description .= '<br /><a href="https://yetanotherstarsrating.com/docs/rich-snippet/reviewrating-and-aggregaterating/?utm_source=wp-plugin&utm_medium=settings_resources&utm_campaign=yasr_settings&utm_content=yasr_rischnippets_desc"
191
+ target="_blank">';
192
+ $description .= __( 'More info here', 'yet-another-stars-rating' );
193
+ $description .= '</a>';
194
+ $end_div = '.</div>';
195
+ return $name . $div_desc . $description . $end_div;
196
+ }
197
+
198
  function yasr_upgrade_pro_box( $position = false )
199
  {
200
 
admin/yasr-admin-actions.php CHANGED
@@ -86,105 +86,4 @@ function yasr_erase_data_on_post_page_remove_callback($post_id) {
86
 
87
 
88
  }
89
-
90
-
91
- //Add stars set for yasr style settings page
92
- //from version 1.2.7
93
- add_action('yasr_style_options_add_settings_field', 'yasr_style_options_add_settings_field_callback');
94
-
95
- function yasr_style_options_add_settings_field_callback($style_options) {
96
-
97
- add_settings_field(
98
- 'yasr_style_options_choose_stars_lite',
99
- __('Choose Stars Set', 'yet-another-stars-rating'),
100
- 'yasr_style_options_choose_stars_lite_callback',
101
- 'yasr_style_tab',
102
- 'yasr_style_options_section_id',
103
- $style_options
104
- );
105
-
106
- }
107
-
108
- function yasr_style_options_choose_stars_lite_callback($style_options) {
109
-
110
- ?>
111
-
112
- <div class='yasr_choose_stars' id='yasr_pro_custom_set_choosen_stars'>
113
-
114
- <input type='radio' name='yasr_style_options[stars_set_free]' value='rater'
115
- class='yasr-general-options-scheme-color' <?php if ($style_options['stars_set_free'] === 'rater') {
116
- echo " checked=\"checked\" ";
117
- } ?> />
118
- <br/>
119
- <div class='yasr_pro_stars_set' id='yasr_pro_custom_set_choosen_stars'>
120
- <?php
121
- echo '<img src="' . YASR_IMG_DIR . 'stars_rater.png">';
122
- ?>
123
- </div>
124
-
125
- </div>
126
-
127
- <div class='yasr_choose_stars' id='yasr_pro_custom_set_choosen_stars'>
128
-
129
- <input type='radio' name='yasr_style_options[stars_set_free]' value='rater-yasr'
130
- class='yasr-general-options-scheme-color' <?php if ($style_options['stars_set_free'] === 'rater-yasr') {
131
- echo " checked=\"checked\" ";
132
- } ?> />
133
- <br/>
134
- <div class='yasr_pro_stars_set' id='yasr_pro_custom_set_choosen_stars'>
135
- <?php
136
- echo '<img src="' . YASR_IMG_DIR . 'stars_rater_yasr.png">';
137
- ?>
138
- </div>
139
-
140
- </div>
141
-
142
- <div class='yasr_choose_stars' id='yasr_pro_custom_set_choosen_stars'>
143
-
144
- <input type='radio' name='yasr_style_options[stars_set_free]' value='rater-oxy'
145
- class='yasr-general-options-scheme-color' <?php if ($style_options['stars_set_free'] === 'rater-oxy') {
146
- echo " checked=\"checked\" ";
147
- } ?> />
148
- <br/>
149
- <div class='yasr_pro_stars_set' id='yasr_pro_custom_set_choosen_stars'>
150
- <?php
151
- echo '<img src="' . YASR_IMG_DIR . 'stars_rater_oxy.png">';
152
- ?>
153
- </div>
154
-
155
- </div>
156
-
157
- <div id="yasr-settings-stylish-stars" style="margin-top: 15px">
158
- <div id="yasr-settings-stylish-image-container">
159
- <?php
160
- echo "<img id=\"yasr-settings-stylish-image\" src=" . YASR_IMG_DIR . "yasr-pro-stars.png>";
161
- ?>
162
- </div>
163
- </div>
164
-
165
- <div id='yasr-settings-stylish-text'>
166
-
167
- <?php
168
- $text = __('Looking for more?', 'yet-another-stars-rating');
169
- $text .= '<br />';
170
- $text .= sprintf(__('Upgrade to %s', 'yet-another-stars-rating'), '<a href="?page=yasr_settings_page-pricing">Yasr Pro!</a>');
171
-
172
- echo $text;
173
- ?>
174
-
175
- </div>
176
-
177
- <script type="text/javascript">
178
-
179
- jQuery('#yasr-settings-stylish-stars').mouseover(function () {
180
- jQuery('#yasr-settings-stylish-text').css("visibility", "visible");
181
- jQuery('#yasr-settings-stylish-image').css("opacity", 0.4);
182
- });
183
-
184
- </script>
185
-
186
- <?php
187
- submit_button(__('Save Settings', 'yet-another-stars-rating'));
188
- }
189
-
190
  ?>
86
 
87
 
88
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  ?>
admin/yasr-admin-functions.php CHANGED
@@ -61,7 +61,7 @@ function yasr_add_admin_scripts($hook) {
61
  wp_enqueue_script(
62
  'yasr_classic_editor_functions',
63
  YASR_JS_DIR_ADMIN . 'yasr-editor-screen.js',
64
- array('jquery'),
65
  YASR_VERSION_NUM,
66
  true
67
  );
@@ -85,7 +85,7 @@ function yasr_add_admin_scripts($hook) {
85
  wp_enqueue_script(
86
  'yasradmin',
87
  YASR_JS_DIR_ADMIN . 'yasr-admin.js',
88
- array('jquery', 'tippy'),
89
  YASR_VERSION_NUM,
90
  true
91
  );
@@ -102,7 +102,7 @@ function yasr_add_admin_scripts($hook) {
102
  wp_enqueue_script(
103
  'yasradmin-settings',
104
  YASR_JS_DIR_ADMIN . 'yasr-settings.js',
105
- array('jquery', 'yasradmin'),
106
  YASR_VERSION_NUM,
107
  true
108
  );
61
  wp_enqueue_script(
62
  'yasr_classic_editor_functions',
63
  YASR_JS_DIR_ADMIN . 'yasr-editor-screen.js',
64
+ array('jquery', 'rater'),
65
  YASR_VERSION_NUM,
66
  true
67
  );
85
  wp_enqueue_script(
86
  'yasradmin',
87
  YASR_JS_DIR_ADMIN . 'yasr-admin.js',
88
+ array('jquery', 'tippy', 'rater'),
89
  YASR_VERSION_NUM,
90
  true
91
  );
102
  wp_enqueue_script(
103
  'yasradmin-settings',
104
  YASR_JS_DIR_ADMIN . 'yasr-settings.js',
105
+ array('jquery', 'yasradmin', 'wp-element'),
106
  YASR_VERSION_NUM,
107
  true
108
  );
admin/yasr-update-functions.php CHANGED
@@ -17,20 +17,7 @@ function yasr_update_version() {
17
 
18
  if ($yasr_version_installed !== false) {
19
 
20
- if (version_compare($yasr_version_installed, '1.7.3') === -1) {
21
- $wpdb->query("ALTER TABLE " . YASR_MULTI_SET_FIELDS_TABLE .
22
- " CHANGE field_name field_name varchar(40)
23
- COLLATE 'utf8_unicode_ci' NOT NULL
24
- AFTER parent_set_id;
25
- ");
26
- }
27
-
28
- if (version_compare($yasr_version_installed, '2.0.4') === -1) {
29
- $yasr_stored_options['auto_insert_align'] = 'left';
30
- update_option('yasr_general_options', $yasr_stored_options);
31
- }
32
-
33
- //remove end 2020
34
  if (version_compare($yasr_version_installed, '2.0.9') === -1) {
35
 
36
  //drop useless multi_set_id on yasr log table
@@ -190,12 +177,22 @@ function yasr_update_version() {
190
 
191
  }
192
 
193
- //In version 2.4.3 is added setting to show stars near the post title
194
  if (version_compare($yasr_version_installed, '2.4.3') === -1) {
195
  $yasr_stored_options['stars_title'] = 'no';
196
  update_option('yasr_general_options', $yasr_stored_options);
197
  }
198
 
 
 
 
 
 
 
 
 
 
 
199
  } //Endif yasr_version_installed !== false
200
 
201
 
17
 
18
  if ($yasr_version_installed !== false) {
19
 
20
+ //remove end 2021
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  if (version_compare($yasr_version_installed, '2.0.9') === -1) {
22
 
23
  //drop useless multi_set_id on yasr log table
177
 
178
  }
179
 
180
+ //In version 2.4.3 is added a setting to show stars near the post title
181
  if (version_compare($yasr_version_installed, '2.4.3') === -1) {
182
  $yasr_stored_options['stars_title'] = 'no';
183
  update_option('yasr_general_options', $yasr_stored_options);
184
  }
185
 
186
+ //In version 2.6.6 %overall_rating% pattern is replaced with %rating%
187
+ if (version_compare($yasr_version_installed, '2.6.6') === -1) {
188
+ if(array_key_exists('text_before_overall', $yasr_stored_options)) {
189
+ $yasr_stored_options['text_before_overall'] =
190
+ str_replace('%overall_rating%', '%rating%', $yasr_stored_options['text_before_overall']);
191
+
192
+ update_option('yasr_general_options', $yasr_stored_options);
193
+ }
194
+ }
195
+
196
  } //Endif yasr_version_installed !== false
197
 
198
 
includes/classes/YasrIncludesFilters.php ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit( 'You\'re not allowed to see this page' );
5
+ } // Exit if accessed directly
6
+
7
+ /**
8
+ * Public filters
9
+ *
10
+ * @since 2.4.3
11
+ *
12
+ * Class YasrPublicFilters
13
+ */
14
+ class YasrIncludesFilters {
15
+
16
+ private $yasr_stored_options = array();
17
+
18
+ /**
19
+ * This filters will hook for show custom texts
20
+ *
21
+ * @author Dario Curvino <@dudo>
22
+ * @since 2.6.6
23
+ *
24
+ * @param $yasr_stored_options
25
+ */
26
+ public function filterCustomTexts($yasr_stored_options) {
27
+ $this->yasr_stored_options = $yasr_stored_options;
28
+
29
+ add_filter('yasr_cstm_text_before_overall', array($this, 'filterTextOverall'), 99);
30
+ add_filter('yasr_cstm_text_before_vv', array($this, 'filterTextVVBefore'), 99, 3);
31
+ add_filter('yasr_cstm_text_after_vv', array($this, 'filterTextVVAfter'), 99, 4);
32
+ add_filter('yasr_cstm_text_already_voted', array($this, 'filterTextAlreadyVoted'), 99, 2);
33
+ add_filter('yasr_must_sign_in', array($this, 'filterTextMustSignIn'), 99 );
34
+
35
+ }
36
+
37
+ /**
38
+ * Get text_before_overall from db if exists and return it replacing %overall_rating% pattern with the vote
39
+ *
40
+ * @author Dario Curvino <@dudo>
41
+ * @since 2.6.6
42
+ *
43
+ * @param $overall_rating
44
+ *
45
+ * @return string|string[]
46
+ */
47
+ public function filterTextOverall ($overall_rating) {
48
+ if(array_key_exists('text_before_overall', $this->yasr_stored_options)) {
49
+ $custom_text = htmlspecialchars_decode($this->yasr_stored_options['text_before_overall']);
50
+ } else {
51
+ $custom_text = '';
52
+ }
53
+ return str_replace('%rating%', $overall_rating, $custom_text);
54
+ }
55
+
56
+ /**
57
+ * Get text_before_visitor_rating from db if exists and return it replacing the patterns with the votes
58
+ *
59
+ * @author Dario Curvino <@dudo>
60
+ * @since 2.6.6
61
+ *
62
+ * @param $number_of_votes
63
+ * @param $average_rating
64
+ * @param $unique_id
65
+ *
66
+ * @return string|string[]
67
+ */
68
+ public function filterTextVVBefore ($number_of_votes, $average_rating, $unique_id) {
69
+ if(array_key_exists('text_before_visitor_rating', $this->yasr_stored_options)) {
70
+ $custom_text = htmlspecialchars_decode($this->yasr_stored_options['text_before_visitor_rating']);
71
+ } else {
72
+ $custom_text = '';
73
+ }
74
+ return $this->strReplaceInput($custom_text, $number_of_votes, $average_rating, $unique_id);
75
+ }
76
+
77
+ /**
78
+ * Get text_after_visitor_rating from db if exists and return it
79
+ *
80
+ * @author Dario Curvino <@dudo>
81
+ * @since 2.6.6
82
+ *
83
+ * @param $default_text
84
+ * @param $number_of_votes
85
+ * @param $average_rating
86
+ * @param $unique_id
87
+ *
88
+ * @return string|string[]
89
+ */
90
+ public function filterTextVVAfter ($default_text, $number_of_votes, $average_rating, $unique_id) {
91
+ if(array_key_exists('text_after_visitor_rating', $this->yasr_stored_options)) {
92
+ $custom_text = htmlspecialchars_decode($this->yasr_stored_options['text_after_visitor_rating']);
93
+ } else {
94
+ $custom_text = '';
95
+ }
96
+ return $this->strReplaceInput($custom_text, $number_of_votes, $average_rating, $unique_id);
97
+ }
98
+
99
+ public function filterTextAlreadyVoted ($default_text, $rating) {
100
+ if(array_key_exists('custom_text_user_voted', $this->yasr_stored_options)) {
101
+ $custom_text = htmlspecialchars_decode($this->yasr_stored_options['custom_text_user_voted']);
102
+ } else {
103
+ $custom_text = '';
104
+ }
105
+ return str_replace('%rating%', $rating, $custom_text);
106
+ }
107
+
108
+ /**
109
+ * @author Dario Curvino <@dudo>
110
+ * @since 2.6.6
111
+ *
112
+ * @return mixed|string|void
113
+ */
114
+ public function filterTextMustSignIn ($default_text) {
115
+ if(array_key_exists('custom_text_must_sign_in', $this->yasr_stored_options)) {
116
+ $custom_text = htmlspecialchars_decode($this->yasr_stored_options['custom_text_must_sign_in']);
117
+ } else {
118
+ $custom_text = '';
119
+ }
120
+ return $custom_text;
121
+ }
122
+
123
+ /**
124
+ * @author Dario Curvino <@dudo>
125
+ * @since 2.5.9
126
+ *
127
+ * @param $subject
128
+ * @param $number_of_votes
129
+ * @param $average_rating
130
+ * @param $unique_id
131
+ *
132
+ * @return string|string[]
133
+ */
134
+ protected function strReplaceInput($subject, $number_of_votes, $average_rating, $unique_id) {
135
+ //This will contain the number of votes
136
+ $number_of_votes_container = '<span id="yasr-vv-votes-number-container-'. $unique_id .'">';
137
+
138
+ //this will contain the average
139
+ $average_rating_container = '<span id="yasr-vv-average-container-'. $unique_id .'">';
140
+
141
+ return str_replace(
142
+ array(
143
+ '%total_count%',
144
+ '%average%'
145
+ ),
146
+ array(
147
+ $number_of_votes_container . $number_of_votes . '</span>',
148
+ $average_rating_container . $average_rating . '</span>'
149
+ ),
150
+ $subject
151
+ );
152
+ }
153
+
154
+ }
includes/classes/YasrPhpFieldsHelper.php CHANGED
@@ -291,7 +291,7 @@ if (!class_exists('YasrPhpFieldsHelper') ) {
291
  *
292
  * @since 2.3.3
293
  */
294
- public static function radioSelectSize($name, $class, $db_value=false, $id=false, $txt_label=true) {
295
  $array_size = array('small', 'medium', 'large');
296
  $span_label = '';
297
 
@@ -318,6 +318,9 @@ if (!class_exists('YasrPhpFieldsHelper') ) {
318
  '<span class="yasr-text-options-size">'.
319
  __(ucwords($size), 'yet-another-stars-rating').
320
  '</span>';
 
 
 
321
  }
322
 
323
  echo sprintf(
291
  *
292
  * @since 2.3.3
293
  */
294
+ public static function radioSelectSize($name, $class, $db_value=false, $id=false, $txt_label=true, $newline=false) {
295
  $array_size = array('small', 'medium', 'large');
296
  $span_label = '';
297
 
318
  '<span class="yasr-text-options-size">'.
319
  __(ucwords($size), 'yet-another-stars-rating').
320
  '</span>';
321
+ if($newline !== false) {
322
+ $span_label = '<br />' . $span_label;
323
+ }
324
  }
325
 
326
  echo sprintf(
includes/img/yasr-settings-stats.png ADDED
Binary file
includes/img/yasr_settings_stats_disabled.png DELETED
Binary file
includes/img/yasr_settings_stats_enabled.png DELETED
Binary file
includes/js/rater-js.min.js ADDED
@@ -0,0 +1 @@
 
1
+ function raterJs(e){let t=!0;if(void 0===e.element||null===e.element)throw new Error("element required");if(void 0!==e.showToolTip&&(t=!!e.showToolTip),void 0!==e.step&&(e.step<=0||e.step>1))throw new Error("step must be a number between 0 and 1");let i,a,r=5,n=e.starSize||16,s=e.step||1,l=e.onHover,o=e.onLeave,d=JSON.parse(yasrCommonData.isRtl),u=e.element;u.classList.add("yasr-star-rating");let v=document.createElement("div");v.classList.add("yasr-star-value"),v.style.backgroundSize=n+"px",u.appendChild(v),u.style.width=n*r+"px",u.style.height=n+"px",u.style.backgroundSize=n+"px";let c,f,m,y=e.rateCallback,g=!!e.readOnly,p=!1,b=e.isBusyText;if(c=void 0!==e.disableText?e.disableText:"{rating}/{maxRating}",g||(u.style.cursor="pointer"),m=void 0!==e.ratingText?e.ratingText:"{rating}/{maxRating}",e.rating)L(e.rating);else{var h=u.dataset.rating;h&&L(+h)}function w(e){if(!0===g||!0===p)return;let a;if(!0===d){let t=this.getBoundingClientRect(),i=e.pageX-t.left,r=u.offsetWidth;a=(r-i)/(r/100)}else{a=e.offsetX/u.offsetWidth*100}if(a<101){if(1===s)f=Math.ceil(a/100*r);else{let e=a/100*r;for(let t=0;;t+=s)if(t>=e){f=t;break}}if(f>5&&(f=5),u.querySelector(".yasr-star-value").style.width=f/r*100+"%",t){let e=m.replace("{rating}",f);e=e.replace("{maxRating}",r),u.setAttribute("data-title",e)}"function"==typeof l&&l(f,i)}}function x(e){void 0!==i?(u.querySelector(".yasr-star-value").style.width=i/r*100+"%",u.setAttribute("data-rating",i)):(u.querySelector(".yasr-star-value").style.width="0%",u.removeAttribute("data-rating")),"function"==typeof o&&o(f,i)}function A(e){!0!==g&&!0!==p&&(void 0===y&&!1===typeof y||(p=!0,a=f,void 0===b?u.removeAttribute("data-title"):u.setAttribute("data-title",b),y.call(this,a,function(){!1===g&&u.removeAttribute("data-title"),p=!1})))}function E(){if(g=!0,t&&c){let e=c.replace("{rating}",i);e=e.replace("{maxRating}",r),u.setAttribute("data-title",e)}else u.removeAttribute("data-title")}function L(e){if(-1===e&&(e=void 0),"number"!=typeof e&&void 0!==e)throw new Error("Value must be a number or undefined.");e<0&&(e=0),e>5&&(e=5),i=e,u.querySelector(".yasr-star-value").style.width=e/r*100+"%",u.setAttribute("data-rating",e)}void 0===i&&(u.querySelector(".yasr-star-value").style.width="0px"),g&&E(),u.addEventListener("mousemove",w),u.addEventListener("mouseleave",x);let S={setRating:L,getRating:function(){return i},disable:E,enable:function(){g=!1,u.removeAttribute("data-title")},dispose:function(){u.removeEventListener("mousemove",w),u.removeEventListener("mouseleave",x),u.removeEventListener("click",A)}};return u.addEventListener("click",A.bind(S)),S}
includes/js/src/ranking.js CHANGED
@@ -1,10 +1,9 @@
1
- import React from "react";
2
- import ReactDOM from "react-dom";
3
  import {decodeEntities} from "@wordpress/html-entities";
4
  import {v4 as uuidv4} from 'uuid';
5
  import {yasrSetRaterValue} from './yasr-front';
6
 
7
- const { __ } = wp.i18n; // Import __() from wp.i18n
 
8
 
9
  /*
10
  * Print the stars using RaterJs
@@ -588,7 +587,7 @@ export function yasrDrawRankings () {
588
  dataSource = source;
589
  }
590
 
591
- ReactDOM.render(<YasrRanking source={dataSource} tableId={tableId} params={params}/>, rankingTable);
592
  }
593
  }
594
 
 
 
1
  import {decodeEntities} from "@wordpress/html-entities";
2
  import {v4 as uuidv4} from 'uuid';
3
  import {yasrSetRaterValue} from './yasr-front';
4
 
5
+ const { __ } = wp.i18n; // Import __() from wp.i18n
6
+ const {render} = wp.element;
7
 
8
  /*
9
  * Print the stars using RaterJs
587
  dataSource = source;
588
  }
589
 
590
+ render(<YasrRanking source={dataSource} tableId={tableId} params={params}/>, rankingTable);
591
  }
592
  }
593
 
includes/js/src/{rater-js.js → rater-js-src.js} RENAMED
File without changes
includes/js/src/yasr-front.js CHANGED
@@ -1,7 +1,6 @@
1
- import raterJs from "../src/rater-js";
2
  import {yasrDrawRankings} from "./ranking";
3
 
4
- const { __ } = wp.i18n; // Import __() from wp.i18n
5
  const arrayClasses = ['yasr-rater-stars', 'yasr-rater-stars-vv', 'yasr-multiset-visitors-rater'];
6
 
7
  /*** Constant used by yasr
 
1
  import {yasrDrawRankings} from "./ranking";
2
 
3
+ const { __ } = wp.i18n; // Import __() from wp.i181n
4
  const arrayClasses = ['yasr-rater-stars', 'yasr-rater-stars-vv', 'yasr-multiset-visitors-rater'];
5
 
6
  /*** Constant used by yasr
includes/js/yasr-front.js CHANGED
@@ -1,32 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){"use strict";e.exports=n(5)},function(e,t,n){"use strict";
2
- /*
3
- object-assign
4
- (c) Sindre Sorhus
5
- @license MIT
6
- */var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,u=o(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))a.call(n,c)&&(u[c]=n[c]);if(r){i=r(n);for(var f=0;f<i.length;f++)l.call(n,i[f])&&(u[i[f]]=n[i[f]])}}return u}},function(e,t){
7
- /*! Based on rater-js. [c] 2018 by Fredrik Olsson. MIT License */
8
- e.exports=function(e){var t=!0;if(void 0===e.element||null===e.element)throw new Error("element required");if(void 0!==e.showToolTip&&(t=!!e.showToolTip),void 0!==e.step&&(e.step<=0||e.step>1))throw new Error("step must be a number between 0 and 1");var n,r,a=e.starSize||16,l=e.step||1,o=e.onHover,i=e.onLeave,u=JSON.parse(yasrCommonData.isRtl),s=e.element;s.classList.add("yasr-star-rating");var c=document.createElement("div");c.classList.add("yasr-star-value"),c.style.backgroundSize=a+"px",s.appendChild(c),s.style.width=5*a+"px",s.style.height=a+"px",s.style.backgroundSize=a+"px";var f,d,p,m=e.rateCallback,h=!!e.readOnly,v=!1,g=e.isBusyText;if(f=void 0!==e.disableText?e.disableText:"{rating}/{maxRating}",h||(s.style.cursor="pointer"),p=void 0!==e.ratingText?e.ratingText:"{rating}/{maxRating}",e.rating)S(e.rating);else{var y=s.dataset.rating;y&&S(+y)}function b(e){if(!0!==h&&!0!==v){var r;if(!0===u){var a=this.getBoundingClientRect(),i=e.pageX-a.left,c=s.offsetWidth;r=(c-i)/(c/100)}else{r=e.offsetX/s.offsetWidth*100}if(r<101){if(1===l)d=Math.ceil(r/100*5);else for(var f=r/100*5,m=0;;m+=l)if(m>=f){d=m;break}if(d>5&&(d=5),s.querySelector(".yasr-star-value").style.width=d/5*100+"%",t){var g=p.replace("{rating}",d);g=g.replace("{maxRating}",5),s.setAttribute("data-title",g)}"function"==typeof o&&o(d,n)}}}function w(e){void 0!==n?(s.querySelector(".yasr-star-value").style.width=n/5*100+"%",s.setAttribute("data-rating",n)):(s.querySelector(".yasr-star-value").style.width="0%",s.removeAttribute("data-rating")),"function"==typeof i&&i(d,n)}function k(e){!0!==h&&!0!==v&&(void 0===m&&!1===typeof m||(v=!0,r=d,void 0===g?s.removeAttribute("data-title"):s.setAttribute("data-title",g),m.call(this,r,(function(){!1===h&&s.removeAttribute("data-title"),v=!1}))))}function E(){if(h=!0,t&&f){var e=f.replace("{rating}",n);e=e.replace("{maxRating}",5),s.setAttribute("data-title",e)}else s.removeAttribute("data-title")}function S(e){if(-1===e&&(e=void 0),"number"!=typeof e&&void 0!==e)throw new Error("Value must be a number or undefined.");e<0&&(e=0),e>5&&(e=5),n=e,s.querySelector(".yasr-star-value").style.width=e/5*100+"%",s.setAttribute("data-rating",e)}void 0===n&&(s.querySelector(".yasr-star-value").style.width="0px"),h&&E(),s.addEventListener("mousemove",b),s.addEventListener("mouseleave",w);var _={setRating:S,getRating:function(){return n},disable:E,enable:function(){h=!1,s.removeAttribute("data-title")},dispose:function(){s.removeEventListener("mousemove",b),s.removeEventListener("mouseleave",w),s.removeEventListener("click",k)}};return s.addEventListener("click",k.bind(_)),_}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(6)},function(e,t,n){e.exports=n(9)},function(e,t,n){"use strict";
9
- /** @license React v17.0.1
10
- * react.production.min.js
11
- *
12
- * Copyright (c) Facebook, Inc. and its affiliates.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */var r=n(1),a=60103,l=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,i=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;a=f("react.element"),l=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),i=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},k=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,l={},o=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,r)&&!E.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(1===u)l.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===l[r]&&(l[r]=u[r]);return{$$typeof:a,type:e,key:o,ref:i,props:l,_owner:w.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var x=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case a:case l:u=!0}}if(u)return o=o(u=e),e=""===r?"."+C(u,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),P(o,t,n,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+C(i=e[s],s);u+=P(i,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(i=e.next()).done;)u+=P(i=i.value,t,n,c=r+C(i,s++),o);else if("object"===i)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function T(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function N(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function z(){var e=L.current;if(null===e)throw Error(p(321));return e}var O={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var l=r({},e.props),o=e.key,i=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,u=w.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(l[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)l.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];l.children=s}return{$$typeof:a,type:e.type,key:o,ref:i,props:l,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:i,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="17.0.1"},function(e,t,n){"use strict";
17
- /** @license React v17.0.1
18
- * react-dom.production.min.js
19
- *
20
- * Copyright (c) Facebook, Inc. and its affiliates.
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE file in the root directory of this source tree.
24
- */var r=n(0),a=n(1),l=n(7);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var i=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)i.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,m={},h={};function v(e,t,n,r,a,l,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var a=g.hasOwnProperty(t)?g[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!p.call(h,e)||!p.call(m,e)&&(d.test(e)?h[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,_=60107,x=60108,C=60114,P=60109,T=60110,N=60112,L=60113,z=60120,O=60115,I=60116,R=60121,M=60128,D=60129,F=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;E=A("react.element"),S=A("react.portal"),_=A("react.fragment"),x=A("react.strict_mode"),C=A("react.profiler"),P=A("react.provider"),T=A("react.context"),N=A("react.forward_ref"),L=A("react.suspense"),z=A("react.suspense_list"),O=A("react.memo"),I=A("react.lazy"),R=A("react.block"),A("react.scope"),M=A("react.opaque.id"),D=A("react.debug_trace_mode"),F=A("react.offscreen"),U=A("react.legacy_hidden")}var j,B="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function H(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var Q=!1;function W(e,t){if(!e||Q)return"";Q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var a=e.stack.split("\n"),l=r.stack.split("\n"),o=a.length-1,i=l.length-1;1<=o&&0<=i&&a[o]!==l[i];)i--;for(;1<=o&&0<=i;o--,i--)if(a[o]!==l[i]){if(1!==o||1!==i)do{if(o--,0>--i||a[o]!==l[i])return"\n"+a[o].replace(" at new "," at ")}while(1<=o&&0<=i);break}}}finally{Q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function $(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case C:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case z:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return q(e.type);case R:return q(e._render);case I:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,l.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function le(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function se(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Ee=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Se(e,t){if(t){if(Ee[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Pe=null,Te=null;function Ne(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=ea(t),Ce(e.stateNode,e.type,t))}}function Le(e){Pe?Te?Te.push(e):Te=[e]:Pe=e}function ze(){if(Pe){var e=Pe,t=Te;if(Te=Pe=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Oe(e,t){return e(t)}function Ie(e,t,n,r,a){return e(t,n,r,a)}function Re(){}var Me=Oe,De=!1,Fe=!1;function Ue(){null===Pe&&null===Te||(Re(),ze())}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=ea(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var je=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){je=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){je=!1}function Ve(e,t,n,r,a,l,o,i,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var He=!1,Qe=null,We=!1,$e=null,qe={onError:function(e){He=!0,Qe=e}};function Ke(e,t,n,r,a,l,o,i,u){He=!1,Qe=null,Ve.apply(qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ge(e){if(Ye(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var l=a.alternate;if(null===l){if(null!==(r=a.return)){n=r;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===n)return Ge(a),e;if(l===r)return Ge(a),t;l=l.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=l;else{for(var i=!1,u=a.child;u;){if(u===n){i=!0,n=a,r=l;break}if(u===r){i=!0,r=a,n=l;break}u=u.sibling}if(!i){for(u=l.child;u;){if(u===n){i=!0,n=l,r=a;break}if(u===r){i=!0,r=l,n=a;break}u=u.sibling}if(!i)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,at=!1,lt=[],ot=null,it=null,ut=null,st=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":it=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function ht(e,t,n,r,a,l){return null===e||e.nativeEvent!==l?(e=pt(t,n,r,a,l),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function vt(e){var t=Gr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){l.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(at=!1;0<lt.length;){var e=lt[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&lt.shift()}null!==ot&&gt(ot)&&(ot=null),null!==it&&gt(it)&&(it=null),null!==ut&&gt(ut)&&(ut=null),st.forEach(yt),ct.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,bt)))}function kt(e){function t(t){return wt(t,e)}if(0<lt.length){wt(lt[0],e);for(var n=1;n<lt.length;n++){var r=lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&wt(ot,e),null!==it&&wt(it,e),null!==ut&&wt(ut,e),st.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function Et(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:Et("Animation","AnimationEnd"),animationiteration:Et("Animation","AnimationIteration"),animationstart:Et("Animation","AnimationStart"),transitionend:Et("Transition","TransitionEnd")},_t={},xt={};function Ct(e){if(_t[e])return _t[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return _t[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Pt=Ct("animationend"),Tt=Ct("animationiteration"),Nt=Ct("animationstart"),Lt=Ct("transitionend"),zt=new Map,Ot=new Map,It=["abort","abort",Pt,"animationEnd",Tt,"animationIteration",Nt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Ot.set(r,t),zt.set(r,a),s(a,[r])}}(0,l.unstable_now)();var Mt=8;function Dt(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!==(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!==(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!==(t=4186112&e)?(Mt=6,t):0!==(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!==(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,a=0,l=e.expiredLanes,o=e.suspendedLanes,i=e.pingedLanes;if(0!==l)r=l,a=Mt=15;else if(0!==(l=134217727&n)){var u=l&~o;0!==u?(r=Dt(u),a=Mt):0!==(i&=l)&&(r=Dt(i),a=Mt)}else 0!==(l=n&~o)?(r=Dt(l),a=Mt):0!==i&&(r=Dt(i),a=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Dt(t),a<=Mt)return t;Mt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Ht(t)),r|=e[n],t&=~a;return r}function Ut(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function At(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=jt(24&~t))?At(10,t):e;case 10:return 0===(e=jt(192&~t))?At(8,t):e;case 8:return 0===(e=jt(3584&~t))&&(0===(e=jt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=jt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function jt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Qt(e)/Wt|0)|0},Qt=Math.log,Wt=Math.LN2;var $t=l.unstable_UserBlockingPriority,qt=l.unstable_runWithPriority,Kt=!0;function Yt(e,t,n,r){De||Re();var a=Gt,l=De;De=!0;try{Ie(a,e,t,n,r)}finally{(De=l)||Ue()}}function Xt(e,t,n,r){qt($t,Gt.bind(null,e,t,n,r))}function Gt(e,t,n,r){var a;if(Kt)if((a=0==(4&t))&&0<lt.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),lt.push(e);else{var l=Jt(e,t,n,r);if(null===l)a&&mt(e,r);else{if(a){if(-1<dt.indexOf(e))return e=pt(l,e,t,n,r),void lt.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return ot=ht(ot,e,t,n,r,a),!0;case"dragenter":return it=ht(it,e,t,n,r,a),!0;case"mouseover":return ut=ht(ut,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return st.set(l,ht(st.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,ct.set(l,ht(ct.get(l)||null,e,t,n,r,a)),!0}return!1}(l,e,t,n,r))return;mt(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var a=xe(r);if(null!==(a=Gr(a))){var l=Ye(a);if(null===l)a=null;else{var o=l.tag;if(13===o){if(null!==(a=Xe(l)))return a;a=null}else if(3===o){if(l.stateNode.hydrate)return 3===l.tag?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return Lr(e,t,r,a,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,a="value"in Zt?Zt.value:Zt.textContent,l=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[l-t];t++);return tn=a.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function ln(){return!1}function on(e){function t(t,n,r,a,l){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=l,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?an:ln,this.isPropagationStopped=ln,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var un,sn,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=on(fn),pn=a({},fn,{view:0,detail:0}),mn=on(pn),hn=a({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),vn=on(hn),gn=on(a({},hn,{dataTransfer:0})),yn=on(a({},pn,{relatedTarget:0})),bn=on(a({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=on(a({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=on(a({},fn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function Cn(){return xn}var Pn=on(a({},pn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=on(a({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=on(a({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=on(a({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),zn=on(a({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),On=[9,13,27,32],In=f&&"CompositionEvent"in window,Rn=null;f&&"documentMode"in document&&(Rn=document.documentMode);var Mn=f&&"TextEvent"in window&&!Rn,Dn=f&&(!In||Rn&&8<Rn&&11>=Rn),Fn=String.fromCharCode(32),Un=!1;function An(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Qn(e,t,n,r){Le(r),0<(t=Or(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,$n=null;function qn(e){_r(e,0)}function Kn(e){if(G(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Gn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Gn=Jn}else Gn=!1;Xn=Gn&&(!document.documentMode||9<document.documentMode)}function er(){Wn&&(Wn.detachEvent("onpropertychange",tr),$n=Wn=null)}function tr(e){if("value"===e.propertyName&&Kn($n)){var t=[];if(Qn(t,$n,e,xe(e)),e=qn,De)e(t);else{De=!0;try{Oe(e,t)}finally{De=!1,Ue()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Wn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn($n)}function ar(e,t){if("click"===e)return Kn(t)}function lr(e,t){if("input"===e||"change"===e)return Kn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ir=Object.prototype.hasOwnProperty;function ur(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ir.call(t,n[r])||!or(e[n[r]],t[n[r]]))return!1;return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,mr=null,hr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==mr||mr!==J(r)||("selectionStart"in(r=mr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ur(vr,r)||(vr=r,0<(r=Or(hr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(It,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wr=0;wr<br.length;wr++)Ot.set(br[wr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,l,i,u,s){if(Ke.apply(this,arguments),He){if(!He)throw Error(o(198));var c=Qe;He=!1,Qe=null,We||(We=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function _r(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==l&&a.isPropagationStopped())break e;Sr(a,i,s),l=u}else for(o=0;o<r.length;o++){if(u=(i=r[o]).instance,s=i.currentTarget,i=i.listener,u!==l&&a.isPropagationStopped())break e;Sr(a,i,s),l=u}}}if(We)throw e=$e,We=!1,$e=null,e}function xr(e,t){var n=ta(t),r=e+"__bubble";n.has(r)||(Nr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Cr]||(e[Cr]=!0,i.forEach((function(t){Er.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,l=n;if("selectionchange"===e&&9!==n.nodeType&&(l=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;a|=2,l=r}var o=ta(l),i=e+"__"+(t?"capture":"bubble");o.has(i)||(t&&(a|=4),Nr(l,e,a,t),o.add(i))}function Nr(e,t,n,r){var a=Ot.get(t);switch(void 0===a?2:a){case 0:a=Yt;break;case 1:a=Xt;break;default:a=Gt}n=a.bind(null,t,n,e),a=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,a){var l=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===a||8===u.nodeType&&u.parentNode===a))return;o=o.return}for(;null!==i;){if(null===(o=Gr(i)))return;if(5===(u=o.tag)||6===u){r=l=o;continue e}i=i.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Me(e,t,n)}finally{Fe=!1,Ue()}}((function(){var r=l,a=xe(n),o=[];e:{var i=zt.get(e);if(void 0!==i){var u=dn,s=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Nn;break;case Pt:case Tt:case Nt:u=bn;break;case Lt:u=Ln;break;case"scroll":u=mn;break;case"wheel":u=zn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==i?i+"Capture":null:i;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&(null!=(h=Ae(m,d))&&c.push(zr(m,h,p)))),f)break;m=m.return}0<c.length&&(i=new u(i,s,null,n,a),o.push({event:i,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Gr(s)&&!s[Yr])&&(u||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Gr(s):null)&&(s!==(f=Ye(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=vn,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?i:Zr(u),p=null==s?i:Zr(s),(i=new c(h,m+"leave",u,n,a)).target=f,i.relatedTarget=p,h=null,Gr(a)===r&&((c=new c(d,m+"enter",s,n,a)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)e:{for(d=s,m=0,p=c=u;p;p=Ir(p))m++;for(p=0,h=d;h;h=Ir(h))p++;for(;0<m-p;)c=Ir(c),m--;for(;0<p-m;)d=Ir(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==u&&Rr(o,i,u,c,!1),null!==s&&null!==f&&Rr(o,f,s,c,!0)}if("select"===(u=(i=r?Zr(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var v=Yn;else if(Hn(i))if(Xn)v=lr;else{v=rr;var g=nr}else(u=i.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(v=ar);switch(v&&(v=v(e,r))?Qn(o,v,n,a):(g&&g(e,i,r),"focusout"===e&&(g=i._wrapperState)&&g.controlled&&"number"===i.type&&ae(i,"number",i.value)),g=r?Zr(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(mr=g,hr=r,vr=null);break;case"focusout":vr=hr=mr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(o,n,a);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(o,n,a)}var y;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?An(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Zt=a)?Zt.value:Zt.textContent,Bn=!0)),0<(g=Or(r,b)).length&&(b=new kn(b,e,null,n,a),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=jn(n))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return jn(t);case"keypress":return 32!==t.which?null:(Un=!0,Fn);case"textInput":return(e=t.data)===Fn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!In&&An(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Or(r,"onBeforeInput")).length&&(a=new kn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=y))}_r(o,t)}))}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Or(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,l=a.stateNode;5===a.tag&&null!==l&&(a=l,null!=(l=Ae(e,n))&&r.unshift(zr(e,l,a)),null!=(l=Ae(e,t))&&r.push(zr(e,l,a))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t,n,r,a){for(var l=t._reactName,o=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(null!==u&&u===r)break;5===i.tag&&null!==s&&(i=s,a?null!=(u=Ae(n,l))&&o.unshift(zr(n,u,i)):a||null!=(u=Ae(n,l))&&o.push(zr(n,u,i))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Mr(){}var Dr=null,Fr=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ar(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var jr="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function Vr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Hr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Qr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Wr=0;var $r=Math.random().toString(36).slice(2),qr="__reactFiber$"+$r,Kr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Xr="__reactEvents$"+$r;function Gr(e){var t=e[qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Qr(e);null!==e;){if(n=e[qr])return n;e=Qr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ea(e){return e[Kr]||null}function ta(e){var t=e[Xr];return void 0===t&&(t=e[Xr]=new Set),t}var na=[],ra=-1;function aa(e){return{current:e}}function la(e){0>ra||(e.current=na[ra],na[ra]=null,ra--)}function oa(e,t){ra++,na[ra]=e.current,e.current=t}var ia={},ua=aa(ia),sa=aa(!1),ca=ia;function fa(e,t){var n=e.type.contextTypes;if(!n)return ia;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,l={};for(a in n)l[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function da(e){return null!=(e=e.childContextTypes)}function pa(){la(sa),la(ua)}function ma(e,t,n){if(ua.current!==ia)throw Error(o(168));oa(ua,t),oa(sa,n)}function ha(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var l in r=r.getChildContext())if(!(l in e))throw Error(o(108,q(t)||"Unknown",l));return a({},n,r)}function va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ia,ca=ua.current,oa(ua,e),oa(sa,sa.current),!0}function ga(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ha(e,t,ca),r.__reactInternalMemoizedMergedChildContext=e,la(sa),la(ua),oa(ua,e)):la(sa),oa(sa,n)}var ya=null,ba=null,wa=l.unstable_runWithPriority,ka=l.unstable_scheduleCallback,Ea=l.unstable_cancelCallback,Sa=l.unstable_shouldYield,_a=l.unstable_requestPaint,xa=l.unstable_now,Ca=l.unstable_getCurrentPriorityLevel,Pa=l.unstable_ImmediatePriority,Ta=l.unstable_UserBlockingPriority,Na=l.unstable_NormalPriority,La=l.unstable_LowPriority,za=l.unstable_IdlePriority,Oa={},Ia=void 0!==_a?_a:function(){},Ra=null,Ma=null,Da=!1,Fa=xa(),Ua=1e4>Fa?xa:function(){return xa()-Fa};function Aa(){switch(Ca()){case Pa:return 99;case Ta:return 98;case Na:return 97;case La:return 96;case za:return 95;default:throw Error(o(332))}}function ja(e){switch(e){case 99:return Pa;case 98:return Ta;case 97:return Na;case 96:return La;case 95:return za;default:throw Error(o(332))}}function Ba(e,t){return e=ja(e),wa(e,t)}function Va(e,t,n){return e=ja(e),ka(e,t,n)}function Ha(){if(null!==Ma){var e=Ma;Ma=null,Ea(e)}Qa()}function Qa(){if(!Da&&null!==Ra){Da=!0;var e=0;try{var t=Ra;Ba(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ra=null}catch(t){throw null!==Ra&&(Ra=Ra.slice(e+1)),ka(Pa,Ha),t}finally{Da=!1}}}var Wa=k.ReactCurrentBatchConfig;function $a(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var qa=aa(null),Ka=null,Ya=null,Xa=null;function Ga(){Xa=Ya=Ka=null}function Ja(e){var t=qa.current;la(qa),e.type._context._currentValue=t}function Za(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function el(e,t){Ka=e,Xa=Ya=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Oo=!0),e.firstContext=null)}function tl(e,t){if(Xa!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Xa=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ya){if(null===Ka)throw Error(o(308));Ya=t,Ka.dependencies={lanes:0,firstContext:t,responders:null}}else Ya=Ya.next=t;return e._currentValue}var nl=!1;function rl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function al(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ll(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ol(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function il(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,l=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===l?a=l=o:l=l.next=o,n=n.next}while(null!==n);null===l?a=l=t:l=l.next=t}else a=l=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ul(e,t,n,r){var l=e.updateQueue;nl=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(null!==u){l.shared.pending=null;var s=u,c=s.next;s.next=null,null===i?o=c:i.next=c,i=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==i&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==o){for(d=l.baseState,i=0,f=c=s=null;;){u=o.lane;var p=o.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(u=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(p,d,u);break e}d=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(u="function"==typeof(m=h.payload)?m.call(p,d,u):m))break e;d=a({},d,u);break e;case 2:nl=!0}}null!==o.callback&&(e.flags|=32,null===(u=l.effects)?l.effects=[o]:u.push(o))}else p={eventTime:p,lane:u,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,i|=u;if(null===(o=o.next)){if(null===(u=l.shared.pending))break;o=u.next,u.next=null,l.lastBaseUpdate=u,l.shared.pending=null}}null===f&&(s=d),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=f,Ri|=i,e.lanes=i,e.memoizedState=d}}function sl(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(o(191,a));a.call(r)}}}var cl=(new r.Component).refs;function fl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var dl={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lu(),a=ou(e),l=ll(r,a);l.payload=t,null!=n&&(l.callback=n),ol(e,l),iu(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lu(),a=ou(e),l=ll(r,a);l.tag=1,l.payload=t,null!=n&&(l.callback=n),ol(e,l),iu(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lu(),r=ou(e),a=ll(n,r);a.tag=2,null!=t&&(a.callback=t),ol(e,a),iu(e,r,n)}};function pl(e,t,n,r,a,l,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,l,o):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(a,l))}function ml(e,t,n){var r=!1,a=ia,l=t.contextType;return"object"==typeof l&&null!==l?l=tl(l):(a=da(t)?ca:ua.current,l=(r=null!=(r=t.contextTypes))?fa(e,a):ia),t=new t(n,l),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=dl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),t}function hl(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&dl.enqueueReplaceState(t,t.state,null)}function vl(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=cl,rl(e);var l=t.contextType;"object"==typeof l&&null!==l?a.context=tl(l):(l=da(t)?ca:ua.current,a.context=fa(e,l)),ul(e,n,a,r),a.state=e.memoizedState,"function"==typeof(l=t.getDerivedStateFromProps)&&(fl(e,t,l,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&dl.enqueueReplaceState(a,a.state,null),ul(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var gl=Array.isArray;function yl(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===cl&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function bl(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wl(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Au(e,t)).index=0,e.sibling=null,e}function l(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function i(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Hu(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=yl(e,t,n),r.return=e,r):((r=ju(n.type,n.key,n.props,null,e.mode,r)).ref=yl(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qu(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function f(e,t,n,r,l){return null===t||7!==t.tag?((t=Bu(n,e.mode,r,l)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Hu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=ju(t.type,t.key,t.props,null,e.mode,n)).ref=yl(e,null,t),n.return=e,n;case S:return(t=Qu(t,e.mode,n)).return=e,t}if(gl(t)||V(t))return(t=Bu(t,e.mode,n,null)).return=e,t;bl(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===a?n.type===_?f(e,t,n.props.children,r,a):s(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null}if(gl(n)||V(n))return null!==a?null:f(e,t,n,r,null);bl(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===_?f(t,e,r.props.children,a,r.key):s(t,e,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(gl(r)||V(r))return f(t,e=e.get(n)||null,r,a,null);bl(t,r)}return null}function h(a,o,i,u){for(var s=null,c=null,f=o,h=o=0,v=null;null!==f&&h<i.length;h++){f.index>h?(v=f,f=null):v=f.sibling;var g=p(a,f,i[h],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(a,f),o=l(g,o,h),null===c?s=g:c.sibling=g,c=g,f=v}if(h===i.length)return n(a,f),s;if(null===f){for(;h<i.length;h++)null!==(f=d(a,i[h],u))&&(o=l(f,o,h),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(a,f);h<i.length;h++)null!==(v=m(f,a,h,i[h],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?h:v.key),o=l(v,o,h),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(a,e)})),s}function v(a,i,u,s){var c=V(u);if("function"!=typeof c)throw Error(o(150));if(null==(u=c.call(u)))throw Error(o(151));for(var f=c=null,h=i,v=i=0,g=null,y=u.next();null!==h&&!y.done;v++,y=u.next()){h.index>v?(g=h,h=null):g=h.sibling;var b=p(a,h,y.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(a,h),i=l(b,i,v),null===f?c=b:f.sibling=b,f=b,h=g}if(y.done)return n(a,h),c;if(null===h){for(;!y.done;v++,y=u.next())null!==(y=d(a,y.value,s))&&(i=l(y,i,v),null===f?c=y:f.sibling=y,f=y);return c}for(h=r(a,h);!y.done;v++,y=u.next())null!==(y=m(h,a,v,y.value,s))&&(e&&null!==y.alternate&&h.delete(null===y.key?v:y.key),i=l(y,i,v),null===f?c=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return t(a,e)})),c}return function(e,r,l,u){var s="object"==typeof l&&null!==l&&l.type===_&&null===l.key;s&&(l=l.props.children);var c="object"==typeof l&&null!==l;if(c)switch(l.$$typeof){case E:e:{for(c=l.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(l.type===_){n(e,s.sibling),(r=a(s,l.props.children)).return=e,e=r;break e}break;default:if(s.elementType===l.type){n(e,s.sibling),(r=a(s,l.props)).ref=yl(e,s,l),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}l.type===_?((r=Bu(l.props.children,e.mode,u,l.key)).return=e,e=r):((u=ju(l.type,l.key,l.props,null,e.mode,u)).ref=yl(e,r,l),u.return=e,e=u)}return i(e);case S:e:{for(s=l.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===l.containerInfo&&r.stateNode.implementation===l.implementation){n(e,r.sibling),(r=a(r,l.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qu(l,e.mode,u)).return=e,e=r}return i(e)}if("string"==typeof l||"number"==typeof l)return l=""+l,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,l)).return=e,e=r):(n(e,r),(r=Hu(l,e.mode,u)).return=e,e=r),i(e);if(gl(l))return h(e,r,l,u);if(V(l))return v(e,r,l,u);if(c&&bl(e,l),void 0===l&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var kl=wl(!0),El=wl(!1),Sl={},_l=aa(Sl),xl=aa(Sl),Cl=aa(Sl);function Pl(e){if(e===Sl)throw Error(o(174));return e}function Tl(e,t){switch(oa(Cl,t),oa(xl,e),oa(_l,Sl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}la(_l),oa(_l,t)}function Nl(){la(_l),la(xl),la(Cl)}function Ll(e){Pl(Cl.current);var t=Pl(_l.current),n=me(t,e.type);t!==n&&(oa(xl,e),oa(_l,n))}function zl(e){xl.current===e&&(la(_l),la(xl))}var Ol=aa(0);function Il(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rl=null,Ml=null,Dl=!1;function Fl(e,t){var n=Fu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ul(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Al(e){if(Dl){var t=Ml;if(t){var n=t;if(!Ul(e,t)){if(!(t=Hr(n.nextSibling))||!Ul(e,t))return e.flags=-1025&e.flags|2,Dl=!1,void(Rl=e);Fl(Rl,n)}Rl=e,Ml=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Dl=!1,Rl=e}}function jl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Rl=e}function Bl(e){if(e!==Rl)return!1;if(!Dl)return jl(e),Dl=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ar(t,e.memoizedProps))for(t=Ml;t;)Fl(e,t),t=Hr(t.nextSibling);if(jl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ml=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ml=null}}else Ml=Rl?Hr(e.stateNode.nextSibling):null;return!0}function Vl(){Ml=Rl=null,Dl=!1}var Hl=[];function Ql(){for(var e=0;e<Hl.length;e++)Hl[e]._workInProgressVersionPrimary=null;Hl.length=0}var Wl=k.ReactCurrentDispatcher,$l=k.ReactCurrentBatchConfig,ql=0,Kl=null,Yl=null,Xl=null,Gl=!1,Jl=!1;function Zl(){throw Error(o(321))}function eo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function to(e,t,n,r,a,l){if(ql=l,Kl=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wl.current=null===e||null===e.memoizedState?To:No,e=n(r,a),Jl){l=0;do{if(Jl=!1,!(25>l))throw Error(o(301));l+=1,Xl=Yl=null,t.updateQueue=null,Wl.current=Lo,e=n(r,a)}while(Jl)}if(Wl.current=Po,t=null!==Yl&&null!==Yl.next,ql=0,Xl=Yl=Kl=null,Gl=!1,t)throw Error(o(300));return e}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xl?Kl.memoizedState=Xl=e:Xl=Xl.next=e,Xl}function ro(){if(null===Yl){var e=Kl.alternate;e=null!==e?e.memoizedState:null}else e=Yl.next;var t=null===Xl?Kl.memoizedState:Xl.next;if(null!==t)Xl=t,Yl=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Yl=e).memoizedState,baseState:Yl.baseState,baseQueue:Yl.baseQueue,queue:Yl.queue,next:null},null===Xl?Kl.memoizedState=Xl=e:Xl=Xl.next=e}return Xl}function ao(e,t){return"function"==typeof t?t(e):t}function lo(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Yl,a=r.baseQueue,l=n.pending;if(null!==l){if(null!==a){var i=a.next;a.next=l.next,l.next=i}r.baseQueue=a=l,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var u=i=l=null,s=a;do{var c=s.lane;if((ql&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(i=u=f,l=r):u=u.next=f,Kl.lanes|=c,Ri|=c}s=s.next}while(null!==s&&s!==a);null===u?l=r:u.next=i,or(r,t.memoizedState)||(Oo=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function oo(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,l=t.memoizedState;if(null!==a){n.pending=null;var i=a=a.next;do{l=e(l,i.action),i=i.next}while(i!==a);or(l,t.memoizedState)||(Oo=!0),t.memoizedState=l,null===t.baseQueue&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function io(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(ql&e)===e)&&(t._workInProgressVersionPrimary=r,Hl.push(t))),e)return n(t._source);throw Hl.push(t),Error(o(350))}function uo(e,t,n,r){var a=Ci;if(null===a)throw Error(o(349));var l=t._getVersion,i=l(t._source),u=Wl.current,s=u.useState((function(){return io(a,t,n)})),c=s[1],f=s[0];s=Xl;var d=e.memoizedState,p=d.refs,m=p.getSnapshot,h=d.source;d=d.subscribe;var v=Kl;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=l(t._source);if(!or(i,e)){e=n(t._source),or(f,e)||(c(e),e=ou(v),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,o=e;0<o;){var u=31-Ht(o),s=1<<u;r[u]|=e,o&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ou(v);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),or(m,n)&&or(h,t)&&or(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ao,lastRenderedState:f}).dispatch=c=Co.bind(null,Kl,e),s.queue=e,s.baseQueue=null,f=io(a,t,n),s.memoizedState=s.baseState=f),f}function so(e,t,n){return uo(ro(),e,t,n)}function co(e){var t=no();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ao,lastRenderedState:e}).dispatch=Co.bind(null,Kl,e),[t.memoizedState,e]}function fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Kl.updateQueue)?(t={lastEffect:null},Kl.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function po(e){return e={current:e},no().memoizedState=e}function mo(){return ro().memoizedState}function ho(e,t,n,r){var a=no();Kl.flags|=e,a.memoizedState=fo(1|t,n,void 0,void 0===r?null:r)}function vo(e,t,n,r){var a=ro();r=void 0===r?null:r;var l=void 0;if(null!==Yl){var o=Yl.memoizedState;if(l=o.destroy,null!==r&&eo(r,o.deps))return void fo(t,n,l,r)}Kl.flags|=e,a.memoizedState=fo(1|t,n,l,r)}function go(e,t){return ho(516,4,e,t)}function yo(e,t){return vo(516,4,e,t)}function bo(e,t){return vo(4,2,e,t)}function wo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ko(e,t,n){return n=null!=n?n.concat([e]):null,vo(4,2,wo.bind(null,t,e),n)}function Eo(){}function So(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _o(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xo(e,t){var n=Aa();Ba(98>n?98:n,(function(){e(!0)})),Ba(97<n?97:n,(function(){var n=$l.transition;$l.transition=1;try{e(!1),t()}finally{$l.transition=n}}))}function Co(e,t,n){var r=lu(),a=ou(e),l={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?l.next=l:(l.next=o.next,o.next=l),t.pending=l,o=e.alternate,e===Kl||null!==o&&o===Kl)Jl=Gl=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,u=o(i,n);if(l.eagerReducer=o,l.eagerState=u,or(u,i))return}catch(e){}iu(e,a,r)}}var Po={readContext:tl,useCallback:Zl,useContext:Zl,useEffect:Zl,useImperativeHandle:Zl,useLayoutEffect:Zl,useMemo:Zl,useReducer:Zl,useRef:Zl,useState:Zl,useDebugValue:Zl,useDeferredValue:Zl,useTransition:Zl,useMutableSource:Zl,useOpaqueIdentifier:Zl,unstable_isNewReconciler:!1},To={readContext:tl,useCallback:function(e,t){return no().memoizedState=[e,void 0===t?null:t],e},useContext:tl,useEffect:go,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ho(4,2,wo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ho(4,2,e,t)},useMemo:function(e,t){var n=no();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=no();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Co.bind(null,Kl,e),[r.memoizedState,e]},useRef:po,useState:co,useDebugValue:Eo,useDeferredValue:function(e){var t=co(e),n=t[0],r=t[1];return go((function(){var t=$l.transition;$l.transition=1;try{r(e)}finally{$l.transition=t}}),[e]),n},useTransition:function(){var e=co(!1),t=e[0];return po(e=xo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=no();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},uo(r,e,t,n)},useOpaqueIdentifier:function(){if(Dl){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Wr++).toString(36))),Error(o(355))})),n=co(t)[1];return 0==(2&Kl.mode)&&(Kl.flags|=516,fo(5,(function(){n("r:"+(Wr++).toString(36))}),void 0,null)),t}return co(t="r:"+(Wr++).toString(36)),t},unstable_isNewReconciler:!1},No={readContext:tl,useCallback:So,useContext:tl,useEffect:yo,useImperativeHandle:ko,useLayoutEffect:bo,useMemo:_o,useReducer:lo,useRef:mo,useState:function(){return lo(ao)},useDebugValue:Eo,useDeferredValue:function(e){var t=lo(ao),n=t[0],r=t[1];return yo((function(){var t=$l.transition;$l.transition=1;try{r(e)}finally{$l.transition=t}}),[e]),n},useTransition:function(){var e=lo(ao)[0];return[mo().current,e]},useMutableSource:so,useOpaqueIdentifier:function(){return lo(ao)[0]},unstable_isNewReconciler:!1},Lo={readContext:tl,useCallback:So,useContext:tl,useEffect:yo,useImperativeHandle:ko,useLayoutEffect:bo,useMemo:_o,useReducer:oo,useRef:mo,useState:function(){return oo(ao)},useDebugValue:Eo,useDeferredValue:function(e){var t=oo(ao),n=t[0],r=t[1];return yo((function(){var t=$l.transition;$l.transition=1;try{r(e)}finally{$l.transition=t}}),[e]),n},useTransition:function(){var e=oo(ao)[0];return[mo().current,e]},useMutableSource:so,useOpaqueIdentifier:function(){return oo(ao)[0]},unstable_isNewReconciler:!1},zo=k.ReactCurrentOwner,Oo=!1;function Io(e,t,n,r){t.child=null===e?El(t,null,n,r):kl(t,e.child,n,r)}function Ro(e,t,n,r,a){n=n.render;var l=t.ref;return el(t,a),r=to(e,t,n,r,l,a),null===e||Oo?(t.flags|=1,Io(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,ei(e,t,a))}function Mo(e,t,n,r,a,l){if(null===e){var o=n.type;return"function"!=typeof o||Uu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ju(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Do(e,t,o,r,a,l))}return o=e.child,0==(a&l)&&(a=o.memoizedProps,(n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)?ei(e,t,l):(t.flags|=1,(e=Au(o,r)).ref=t.ref,e.return=t,t.child=e)}function Do(e,t,n,r,a,l){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(Oo=!1,0==(l&a))return t.lanes=e.lanes,ei(e,t,l);0!=(16384&e.flags)&&(Oo=!0)}return Ao(e,t,n,r,l)}function Fo(e,t,n){var r=t.pendingProps,a=r.children,l=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},hu(t,n);else{if(0==(1073741824&n))return e=null!==l?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},hu(t,e),null;t.memoizedState={baseLanes:0},hu(t,null!==l?l.baseLanes:n)}else null!==l?(r=l.baseLanes|n,t.memoizedState=null):r=n,hu(t,r);return Io(e,t,a,n),t.child}function Uo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ao(e,t,n,r,a){var l=da(n)?ca:ua.current;return l=fa(t,l),el(t,a),n=to(e,t,n,r,l,a),null===e||Oo?(t.flags|=1,Io(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,ei(e,t,a))}function jo(e,t,n,r,a){if(da(n)){var l=!0;va(t)}else l=!1;if(el(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ml(t,n,r),vl(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;"object"==typeof s&&null!==s?s=tl(s):s=fa(t,s=da(n)?ca:ua.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&hl(t,o,r,s),nl=!1;var d=t.memoizedState;o.state=d,ul(t,r,o,a),u=t.memoizedState,i!==r||d!==u||sa.current||nl?("function"==typeof c&&(fl(t,n,c,r),u=t.memoizedState),(i=nl||pl(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,al(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:$a(t.type,i),o.props=s,f=t.pendingProps,d=o.context,"object"==typeof(u=n.contextType)&&null!==u?u=tl(u):u=fa(t,u=da(n)?ca:ua.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&hl(t,o,r,u),nl=!1,d=t.memoizedState,o.state=d,ul(t,r,o,a);var m=t.memoizedState;i!==f||d!==m||sa.current||nl?("function"==typeof p&&(fl(t,n,p,r),m=t.memoizedState),(s=nl||pl(t,n,s,r,d,m,u))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Bo(e,t,n,r,l,a)}function Bo(e,t,n,r,a,l){Uo(e,t);var o=0!=(64&t.flags);if(!r&&!o)return a&&ga(t,n,!1),ei(e,t,l);r=t.stateNode,zo.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=kl(t,e.child,null,l),t.child=kl(t,null,i,l)):Io(e,t,i,l),t.memoizedState=r.state,a&&ga(t,n,!0),t.child}function Vo(e){var t=e.stateNode;t.pendingContext?ma(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(0,t.context,!1),Tl(e,t.containerInfo)}var Ho,Qo,Wo,$o={dehydrated:null,retryLane:0};function qo(e,t,n){var r,a=t.pendingProps,l=Ol.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&l)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(l|=1),oa(Ol,1&l),null===e?(void 0!==a.fallback&&Al(t),e=a.children,l=a.fallback,o?(e=Ko(t,e,l,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,e):"number"==typeof a.unstable_expectedLoadTime?(e=Ko(t,e,l,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,t.lanes=33554432,e):((n=Vu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(a=Xo(e,t,a.children,a.fallback,n),o=t.child,l=e.child.memoizedState,o.memoizedState=null===l?{baseLanes:n}:{baseLanes:l.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=$o,a):(n=Yo(e,t,a.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var a=e.mode,l=e.child;return t={mode:"hidden",children:t},0==(2&a)&&null!==l?(l.childLanes=0,l.pendingProps=t):l=Vu(t,a,0,null),n=Bu(n,a,r,null),l.return=e,n.return=e,l.sibling=n,e.child=l,n}function Yo(e,t,n,r){var a=e.child;return e=a.sibling,n=Au(a,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Xo(e,t,n,r,a){var l=t.mode,o=e.child;e=o.sibling;var i={mode:"hidden",children:n};return 0==(2&l)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=i,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Au(o,i),null!==e?r=Au(e,r):(r=Bu(r,l,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Go(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Za(e.return,t)}function Jo(e,t,n,r,a,l){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.lastEffect=l)}function Zo(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;if(Io(e,t,r.children,n),0!=(2&(r=Ol.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Go(e,n);else if(19===e.tag)Go(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(oa(Ol,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Il(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Jo(t,!1,a,n,l,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Il(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Jo(t,!0,n,null,l,t.lastEffect);break;case"together":Jo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ei(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ri|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Au(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Au(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ti(e,t){if(!Dl)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ni(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return da(t.type)&&pa(),null;case 3:return Nl(),la(sa),la(ua),Ql(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Bl(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:zl(t);var l=Pl(Cl.current);if(n=t.type,null!==e&&null!=t.stateNode)Qo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Pl(_l.current),Bl(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[qr]=t,r[Kr]=i,n){case"dialog":xr("cancel",r),xr("close",r);break;case"iframe":case"object":case"embed":xr("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)xr(kr[e],r);break;case"source":xr("error",r);break;case"img":case"image":case"link":xr("error",r),xr("load",r);break;case"details":xr("toggle",r);break;case"input":ee(r,i),xr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},xr("invalid",r);break;case"textarea":ue(r,i),xr("invalid",r)}for(var s in Se(n,i),e=null,i)i.hasOwnProperty(s)&&(l=i[s],"children"===s?"string"==typeof l?r.textContent!==l&&(e=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(e=["children",""+l]):u.hasOwnProperty(s)&&null!=l&&"onScroll"===s&&xr("scroll",r));switch(n){case"input":X(r),re(r,i,!0);break;case"textarea":X(r),ce(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=Mr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===l.nodeType?l:l.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[qr]=t,e[Kr]=r,Ho(e,t),t.stateNode=e,s=_e(n,r),n){case"dialog":xr("cancel",e),xr("close",e),l=r;break;case"iframe":case"object":case"embed":xr("load",e),l=r;break;case"video":case"audio":for(l=0;l<kr.length;l++)xr(kr[l],e);l=r;break;case"source":xr("error",e),l=r;break;case"img":case"image":case"link":xr("error",e),xr("load",e),l=r;break;case"details":xr("toggle",e),l=r;break;case"input":ee(e,r),l=Z(e,r),xr("invalid",e);break;case"option":l=le(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=a({},r,{value:void 0}),xr("invalid",e);break;case"textarea":ue(e,r),l=ie(e,r),xr("invalid",e);break;default:l=r}Se(n,l);var c=l;for(i in c)if(c.hasOwnProperty(i)){var f=c[i];"style"===i?ke(e,f):"dangerouslySetInnerHTML"===i?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===i?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(u.hasOwnProperty(i)?null!=f&&"onScroll"===i&&xr("scroll",e):null!=f&&w(e,i,f,s))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?oe(e,!!r.multiple,i,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=Mr)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Wo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Pl(Cl.current),Pl(_l.current),Bl(t)?(r=t.stateNode,n=t.memoizedProps,r[qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[qr]=t,t.stateNode=r)}return null;case 13:return la(Ol),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Bl(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ol.current)?0===zi&&(zi=3):(0!==zi&&3!==zi||(zi=4),null===Ci||0==(134217727&Ri)&&0==(134217727&Mi)||fu(Ci,Ti))),(r||n)&&(t.flags|=4),null);case 4:return Nl(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return Ja(t),null;case 17:return da(t.type)&&pa(),null;case 19:if(la(Ol),null===(r=t.memoizedState))return null;if(i=0!=(64&t.flags),null===(s=r.rendering))if(i)ti(r,!1);else{if(0!==zi||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Il(e))){for(t.flags|=64,ti(r,!1),null!==(i=s.updateQueue)&&(t.updateQueue=i,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oa(Ol,1&Ol.current|2),t.child}e=e.sibling}null!==r.tail&&Ua()>Ai&&(t.flags|=64,i=!0,ti(r,!1),t.lanes=33554432)}else{if(!i)if(null!==(e=Il(s))){if(t.flags|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ti(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Dl)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ua()-r.renderingStartTime>Ai&&1073741824!==n&&(t.flags|=64,i=!0,ti(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ua(),n.sibling=null,t=Ol.current,oa(Ol,i?1&t|2:1&t),n):null;case 23:case 24:return vu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function ri(e){switch(e.tag){case 1:da(e.type)&&pa();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Nl(),la(sa),la(ua),Ql(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return zl(e),null;case 13:return la(Ol),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return la(Ol),null;case 4:return Nl(),null;case 10:return Ja(e),null;case 23:case 24:return vu(),null;default:return null}}function ai(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a}}function li(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qo=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Pl(_l.current);var o,i=null;switch(n){case"input":l=Z(e,l),r=Z(e,r),i=[];break;case"option":l=le(e,l),r=le(e,r),i=[];break;case"select":l=a({},l,{value:void 0}),r=a({},r,{value:void 0}),i=[];break;case"textarea":l=ie(e,l),r=ie(e,r),i=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Mr)}for(f in Se(n,r),n=null,l)if(!r.hasOwnProperty(f)&&l.hasOwnProperty(f)&&null!=l[f])if("style"===f){var s=l[f];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=l?l[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(i=i||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(i=i||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),i||s===c||(i=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?c.toString():(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}},Wo=function(e,t,n,r){n!==r&&(t.flags|=4)};var oi="function"==typeof WeakMap?WeakMap:Map;function ii(e,t,n){(n=ll(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hi||(Hi=!0,Qi=r),li(0,t)},n}function ui(e,t,n){(n=ll(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return li(0,t),r(a)}}var l=e.stateNode;return null!==l&&"function"==typeof l.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Wi?Wi=new Set([this]):Wi.add(this),li(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var si="function"==typeof WeakSet?WeakSet:Set;function ci(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Iu(e,t)}else t.current=null}function fi(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$a(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Vr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function di(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!=(4&(a=a.tag))&&0!=(1&a)&&(Lu(n,e),Nu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$a(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&sl(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}sl(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Ur(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function pi(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=we("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function mi(e,t){if(ba&&"function"==typeof ba.onCommitFiberUnmount)try{ba.onCommitFiberUnmount(ya,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!=(4&r))Lu(t,n);else{r=t;try{a()}catch(e){Iu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ci(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Iu(t,e)}break;case 5:ci(t);break;case 4:yi(e,t)}}function hi(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vi(e){return 5===e.tag||3===e.tag||4===e.tag}function gi(e){e:{for(var t=e.return;null!==t;){if(vi(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var a=t.tag,l=5===a||6===a;if(l)t=l?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Mr));else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var a=t.tag,l=5===a||6===a;if(l)t=l?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function yi(e,t){for(var n,r,a=t,l=!1;;){if(!l){l=a.return;e:for(;;){if(null===l)throw Error(o(160));switch(n=l.stateNode,l.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}l=l.return}l=!0}if(5===a.tag||6===a.tag){e:for(var i=e,u=a,s=u;;)if(mi(i,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(i=n,u=a.stateNode,8===i.nodeType?i.parentNode.removeChild(u):i.removeChild(u)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(mi(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(l=!1)}a.sibling.return=a.return,a=a.sibling}}function bi(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var l=t.updateQueue;if(t.updateQueue=null,null!==l){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),_e(e,a),t=_e(e,r),a=0;a<l.length;a+=2){var i=l[a],u=l[a+1];"style"===i?ke(n,u):"dangerouslySetInnerHTML"===i?ve(n,u):"children"===i?ge(n,u):w(n,i,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(l=r.value)?oe(n,!!r.multiple,l,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Ui=Ua(),pi(t.child,!0)),void wi(t);case 19:return void wi(t);case 17:return;case 23:case 24:return void pi(t,null!==t.memoizedState)}throw Error(o(163))}function wi(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new si),t.forEach((function(t){var r=Mu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ki(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ei=Math.ceil,Si=k.ReactCurrentDispatcher,_i=k.ReactCurrentOwner,xi=0,Ci=null,Pi=null,Ti=0,Ni=0,Li=aa(0),zi=0,Oi=null,Ii=0,Ri=0,Mi=0,Di=0,Fi=null,Ui=0,Ai=1/0;function ji(){Ai=Ua()+500}var Bi,Vi=null,Hi=!1,Qi=null,Wi=null,$i=!1,qi=null,Ki=90,Yi=[],Xi=[],Gi=null,Ji=0,Zi=null,eu=-1,tu=0,nu=0,ru=null,au=!1;function lu(){return 0!=(48&xi)?Ua():-1!==eu?eu:eu=Ua()}function ou(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Aa()?1:2;if(0===tu&&(tu=Ii),0!==Wa.transition){0!==nu&&(nu=null!==Fi?Fi.pendingLanes:0),e=tu;var t=4186112&~nu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Aa(),0!=(4&xi)&&98===e?e=At(12,tu):e=At(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),tu),e}function iu(e,t,n){if(50<Ji)throw Ji=0,Zi=null,Error(o(185));if(null===(e=uu(e,t)))return null;Vt(e,t,n),e===Ci&&(Mi|=t,4===zi&&fu(e,Ti));var r=Aa();1===t?0!=(8&xi)&&0==(48&xi)?du(e):(su(e,n),0===xi&&(ji(),Ha())):(0==(4&xi)||98!==r&&99!==r||(null===Gi?Gi=new Set([e]):Gi.add(e)),su(e,n)),Fi=e}function uu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function su(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var u=31-Ht(i),s=1<<u,c=l[u];if(-1===c){if(0==(s&r)||0!=(s&a)){c=t,Dt(s);var f=Mt;l[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);i&=~s}if(r=Ft(e,e===Ci?Ti:0),t=Mt,0===r)null!==n&&(n!==Oa&&Ea(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Oa&&Ea(n)}15===t?(n=du.bind(null,e),null===Ra?(Ra=[n],Ma=ka(Pa,Qa)):Ra.push(n),n=Oa):14===t?n=Va(99,du.bind(null,e)):n=Va(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),cu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cu(e){if(eu=-1,nu=tu=0,0!=(48&xi))throw Error(o(327));var t=e.callbackNode;if(Tu()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ci?Ti:0);if(0===n)return null;var r=n,a=xi;xi|=16;var l=bu();for(Ci===e&&Ti===r||(ji(),gu(e,r));;)try{Eu();break}catch(t){yu(e,t)}if(Ga(),Si.current=l,xi=a,null!==Pi?r=0:(Ci=null,Ti=0,r=zi),0!=(Ii&Mi))gu(e,0);else if(0!==r){if(2===r&&(xi|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(n=Ut(e))&&(r=wu(e,n))),1===r)throw t=Oi,gu(e,0),fu(e,n),su(e,Ua()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:xu(e);break;case 3:if(fu(e,n),(62914560&n)===n&&10<(r=Ui+500-Ua())){if(0!==Ft(e,0))break;if(((a=e.suspendedLanes)&n)!==n){lu(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=jr(xu.bind(null,e),r);break}xu(e);break;case 4:if(fu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var i=31-Ht(n);l=1<<i,(i=r[i])>a&&(a=i),n&=~l}if(n=a,10<(n=(120>(n=Ua()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ei(n/1960))-n)){e.timeoutHandle=jr(xu.bind(null,e),n);break}xu(e);break;case 5:xu(e);break;default:throw Error(o(329))}}return su(e,Ua()),e.callbackNode===t?cu.bind(null,e):null}function fu(e,t){for(t&=~Di,t&=~Mi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function du(e){if(0!=(48&xi))throw Error(o(327));if(Tu(),e===Ci&&0!=(e.expiredLanes&Ti)){var t=Ti,n=wu(e,t);0!=(Ii&Mi)&&(n=wu(e,t=Ft(e,t)))}else n=wu(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(xi|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(t=Ut(e))&&(n=wu(e,t))),1===n)throw n=Oi,gu(e,0),fu(e,t),su(e,Ua()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e),su(e,Ua()),null}function pu(e,t){var n=xi;xi|=1;try{return e(t)}finally{0===(xi=n)&&(ji(),Ha())}}function mu(e,t){var n=xi;xi&=-2,xi|=8;try{return e(t)}finally{0===(xi=n)&&(ji(),Ha())}}function hu(e,t){oa(Li,Ni),Ni|=t,Ii|=t}function vu(){Ni=Li.current,la(Li)}function gu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Pi)for(n=Pi.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pa();break;case 3:Nl(),la(sa),la(ua),Ql();break;case 5:zl(r);break;case 4:Nl();break;case 13:case 19:la(Ol);break;case 10:Ja(r);break;case 23:case 24:vu()}n=n.return}Ci=e,Pi=Au(e.current,null),Ti=Ni=Ii=t,zi=0,Oi=null,Di=Mi=Ri=0}function yu(e,t){for(;;){var n=Pi;try{if(Ga(),Wl.current=Po,Gl){for(var r=Kl.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}Gl=!1}if(ql=0,Xl=Yl=Kl=null,Jl=!1,_i.current=null,null===n||null===n.return){zi=1,Oi=t,Pi=null;break}e:{var l=e,o=n.return,i=n,u=t;if(t=Ti,i.flags|=2048,i.firstEffect=i.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&i.mode)){var c=i.alternate;c?(i.updateQueue=c.updateQueue,i.memoizedState=c.memoizedState,i.lanes=c.lanes):(i.updateQueue=null,i.memoizedState=null)}var f=0!=(1&Ol.current),d=o;do{var p;if(p=13===d.tag){var m=d.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(s),d.updateQueue=g}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,i.flags|=16384,i.flags&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var y=ll(-1,1);y.tag=2,ol(i,y)}i.lanes|=1;break e}u=void 0,i=t;var b=l.pingCache;if(null===b?(b=l.pingCache=new oi,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(i)){u.add(i);var w=Ru.bind(null,l,s,i);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((q(i.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==zi&&(zi=2),u=ai(u,i),d=o;do{switch(d.tag){case 3:l=u,d.flags|=4096,t&=-t,d.lanes|=t,il(d,ii(0,l,t));break e;case 1:l=u;var k=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Wi||!Wi.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,il(d,ui(d,l,t));break e}}d=d.return}while(null!==d)}_u(n)}catch(e){t=e,Pi===n&&null!==n&&(Pi=n=n.return);continue}break}}function bu(){var e=Si.current;return Si.current=Po,null===e?Po:e}function wu(e,t){var n=xi;xi|=16;var r=bu();for(Ci===e&&Ti===t||gu(e,t);;)try{ku();break}catch(t){yu(e,t)}if(Ga(),xi=n,Si.current=r,null!==Pi)throw Error(o(261));return Ci=null,Ti=0,zi}function ku(){for(;null!==Pi;)Su(Pi)}function Eu(){for(;null!==Pi&&!Sa();)Su(Pi)}function Su(e){var t=Bi(e.alternate,e,Ni);e.memoizedProps=e.pendingProps,null===t?_u(e):Pi=t,_i.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ni(n,t,Ni)))return void(Pi=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ni)||0==(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ri(t)))return n.flags&=2047,void(Pi=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Pi=t);Pi=t=e}while(null!==t);0===zi&&(zi=5)}function xu(e){var t=Aa();return Ba(99,Cu.bind(null,e,t)),null}function Cu(e,t){do{Tu()}while(null!==qi);if(0!=(48&xi))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,l=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var i=e.eventTimes,u=e.expirationTimes;0<l;){var s=31-Ht(l),c=1<<s;a[s]=0,i[s]=-1,u[s]=-1,l&=~c}if(null!==Gi&&0==(24&r)&&Gi.has(e)&&Gi.delete(e),e===Ci&&(Pi=Ci=null,Ti=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=xi,xi|=32,_i.current=null,Dr=Kt,dr(i=fr())){if("selectionStart"in i)u={start:i.selectionStart,end:i.selectionEnd};else e:if(u=(u=i.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,l=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,m=0,h=0,v=i,g=null;t:for(;;){for(var y;v!==u||0!==l&&3!==v.nodeType||(d=f+l),v!==s||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===i)break t;if(g===u&&++m===l&&(d=f),g===s&&++h===c&&(p=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Fr={focusedElem:i,selectionRange:u},Kt=!1,ru=null,au=!1,Vi=r;do{try{Pu()}catch(e){if(null===Vi)throw Error(o(330));Iu(Vi,e),Vi=Vi.nextEffect}}while(null!==Vi);ru=null,Vi=r;do{try{for(i=e;null!==Vi;){var b=Vi.flags;if(16&b&&ge(Vi.stateNode,""),128&b){var w=Vi.alternate;if(null!==w){var k=w.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&b){case 2:gi(Vi),Vi.flags&=-3;break;case 6:gi(Vi),Vi.flags&=-3,bi(Vi.alternate,Vi);break;case 1024:Vi.flags&=-1025;break;case 1028:Vi.flags&=-1025,bi(Vi.alternate,Vi);break;case 4:bi(Vi.alternate,Vi);break;case 8:yi(i,u=Vi);var E=u.alternate;hi(u),null!==E&&hi(E)}Vi=Vi.nextEffect}}catch(e){if(null===Vi)throw Error(o(330));Iu(Vi,e),Vi=Vi.nextEffect}}while(null!==Vi);if(k=Fr,w=fr(),b=k.focusedElem,i=k.selectionRange,w!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==i&&dr(b)&&(w=i.start,void 0===(k=i.end)&&(k=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(k,b.value.length)):(k=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),u=b.textContent.length,E=Math.min(i.start,u),i=void 0===i.end?E:Math.min(i.end,u),!k.extend&&E>i&&(u=i,i=E,E=u),u=cr(b,E),l=cr(b,i),u&&l&&(1!==k.rangeCount||k.anchorNode!==u.node||k.anchorOffset!==u.offset||k.focusNode!==l.node||k.focusOffset!==l.offset)&&((w=w.createRange()).setStart(u.node,u.offset),k.removeAllRanges(),E>i?(k.addRange(w),k.extend(l.node,l.offset)):(w.setEnd(l.node,l.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(k=w[b]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Kt=!!Dr,Fr=Dr=null,e.current=n,Vi=r;do{try{for(b=e;null!==Vi;){var S=Vi.flags;if(36&S&&di(b,Vi.alternate,Vi),128&S){w=void 0;var _=Vi.ref;if(null!==_){var x=Vi.stateNode;switch(Vi.tag){case 5:w=x;break;default:w=x}"function"==typeof _?_(w):_.current=w}}Vi=Vi.nextEffect}}catch(e){if(null===Vi)throw Error(o(330));Iu(Vi,e),Vi=Vi.nextEffect}}while(null!==Vi);Vi=null,Ia(),xi=a}else e.current=n;if($i)$i=!1,qi=e,Ki=t;else for(Vi=r;null!==Vi;)t=Vi.nextEffect,Vi.nextEffect=null,8&Vi.flags&&((S=Vi).sibling=null,S.stateNode=null),Vi=t;if(0===(r=e.pendingLanes)&&(Wi=null),1===r?e===Zi?Ji++:(Ji=0,Zi=e):Ji=0,n=n.stateNode,ba&&"function"==typeof ba.onCommitFiberRoot)try{ba.onCommitFiberRoot(ya,n,void 0,64==(64&n.current.flags))}catch(e){}if(su(e,Ua()),Hi)throw Hi=!1,e=Qi,Qi=null,e;return 0!=(8&xi)||Ha(),null}function Pu(){for(;null!==Vi;){var e=Vi.alternate;au||null===ru||(0!=(8&Vi.flags)?Ze(Vi,ru)&&(au=!0):13===Vi.tag&&ki(e,Vi)&&Ze(Vi,ru)&&(au=!0));var t=Vi.flags;0!=(256&t)&&fi(e,Vi),0==(512&t)||$i||($i=!0,Va(97,(function(){return Tu(),null}))),Vi=Vi.nextEffect}}function Tu(){if(90!==Ki){var e=97<Ki?97:Ki;return Ki=90,Ba(e,zu)}return!1}function Nu(e,t){Yi.push(t,e),$i||($i=!0,Va(97,(function(){return Tu(),null})))}function Lu(e,t){Xi.push(t,e),$i||($i=!0,Va(97,(function(){return Tu(),null})))}function zu(){if(null===qi)return!1;var e=qi;if(qi=null,0!=(48&xi))throw Error(o(331));var t=xi;xi|=32;var n=Xi;Xi=[];for(var r=0;r<n.length;r+=2){var a=n[r],l=n[r+1],i=a.destroy;if(a.destroy=void 0,"function"==typeof i)try{i()}catch(e){if(null===l)throw Error(o(330));Iu(l,e)}}for(n=Yi,Yi=[],r=0;r<n.length;r+=2){a=n[r],l=n[r+1];try{var u=a.create;a.destroy=u()}catch(e){if(null===l)throw Error(o(330));Iu(l,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return xi=t,Ha(),!0}function Ou(e,t,n){ol(e,t=ii(0,t=ai(n,t),1)),t=lu(),null!==(e=uu(e,1))&&(Vt(e,1,t),su(e,t))}function Iu(e,t){if(3===e.tag)Ou(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ou(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Wi||!Wi.has(r))){var a=ui(n,e=ai(t,e),1);if(ol(n,a),a=lu(),null!==(n=uu(n,1)))Vt(n,1,a),su(n,a);else if("function"==typeof r.componentDidCatch&&(null===Wi||!Wi.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Ru(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=lu(),e.pingedLanes|=e.suspendedLanes&n,Ci===e&&(Ti&n)===n&&(4===zi||3===zi&&(62914560&Ti)===Ti&&500>Ua()-Ui?gu(e,0):Di|=n),su(e,t)}function Mu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Aa()?1:2:(0===tu&&(tu=Ii),0===(t=jt(62914560&~tu))&&(t=4194304))),n=lu(),null!==(e=uu(e,t))&&(Vt(e,t,n),su(e,n))}function Du(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fu(e,t,n,r){return new Du(e,t,n,r)}function Uu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var n=e.alternate;return null===n?((n=Fu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ju(e,t,n,r,a,l){var i=2;if(r=e,"function"==typeof e)Uu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case _:return Bu(n.children,a,l,t);case D:i=8,a|=16;break;case x:i=8,a|=1;break;case C:return(e=Fu(12,n,t,8|a)).elementType=C,e.type=C,e.lanes=l,e;case L:return(e=Fu(13,n,t,a)).type=L,e.elementType=L,e.lanes=l,e;case z:return(e=Fu(19,n,t,a)).elementType=z,e.lanes=l,e;case F:return Vu(n,a,l,t);case U:return(e=Fu(24,n,t,a)).elementType=U,e.lanes=l,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:i=10;break e;case T:i=9;break e;case N:i=11;break e;case O:i=14;break e;case I:i=16,r=null;break e;case R:i=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Fu(i,n,t,a)).elementType=e,t.type=r,t.lanes=l,t}function Bu(e,t,n,r){return(e=Fu(7,e,r,t)).lanes=n,e}function Vu(e,t,n,r){return(e=Fu(23,e,r,t)).elementType=F,e.lanes=n,e}function Hu(e,t,n){return(e=Fu(6,e,null,t)).lanes=n,e}function Qu(e,t,n){return(t=Fu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $u(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function qu(e,t,n,r){var a=t.current,l=lu(),i=ou(a);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(da(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var s=n.type;if(da(s)){n=ha(n,s,u);break e}}n=u}else n=ia;return null===t.context?t.context=n:t.pendingContext=n,(t=ll(l,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ol(a,t),iu(a,i,l),i}function Ku(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Xu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function Gu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Wu(e,t,null!=n&&!0===n.hydrate),t=Fu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,rl(t),e[Yr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(e,t,n,r,a){var l=n._reactRootContainer;if(l){var o=l._internalRoot;if("function"==typeof a){var i=a;a=function(){var e=Ku(o);i.call(e)}}qu(t,o,e,a)}else{if(l=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Gu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=l._internalRoot,"function"==typeof a){var u=a;a=function(){var e=Ku(o);u.call(e)}}mu((function(){qu(t,o,e,a)}))}return Ku(o)}function es(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(o(200));return $u(e,t,null,n)}Bi=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||sa.current)Oo=!0;else{if(0==(n&r)){switch(Oo=!1,t.tag){case 3:Vo(t),Vl();break;case 5:Ll(t);break;case 1:da(t.type)&&va(t);break;case 4:Tl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;oa(qa,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?qo(e,t,n):(oa(Ol,1&Ol.current),null!==(t=ei(e,t,n))?t.sibling:null);oa(Ol,1&Ol.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Zo(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),oa(Ol,Ol.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(e,t,n)}return ei(e,t,n)}Oo=0!=(16384&e.flags)}else Oo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=fa(t,ua.current),el(t,n),a=to(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,da(r)){var l=!0;va(t)}else l=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,rl(t);var i=r.getDerivedStateFromProps;"function"==typeof i&&fl(t,r,i,e),a.updater=dl,t.stateNode=a,a._reactInternals=t,vl(t,r,e,n),t=Bo(null,t,r,!0,l,n)}else t.tag=0,Io(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(l=a._init)(a._payload),t.type=a,l=t.tag=function(e){if("function"==typeof e)return Uu(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===O)return 14}return 2}(a),e=$a(a,e),l){case 0:t=Ao(null,t,a,e,n);break e;case 1:t=jo(null,t,a,e,n);break e;case 11:t=Ro(null,t,a,e,n);break e;case 14:t=Mo(null,t,a,$a(a.type,e),r,n);break e}throw Error(o(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Ao(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 1:return r=t.type,a=t.pendingProps,jo(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 3:if(Vo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,al(e,t),ul(t,r,null,n),(r=t.memoizedState.element)===a)Vl(),t=ei(e,t,n);else{if((l=(a=t.stateNode).hydrate)&&(Ml=Hr(t.stateNode.containerInfo.firstChild),Rl=t,l=Dl=!0),l){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(l=e[a])._workInProgressVersionPrimary=e[a+1],Hl.push(l);for(n=El(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),Vl();t=t.child}return t;case 5:return Ll(t),null===e&&Al(t),r=t.type,a=t.pendingProps,l=null!==e?e.memoizedProps:null,i=a.children,Ar(r,a)?i=null:null!==l&&Ar(r,l)&&(t.flags|=16),Uo(e,t),Io(e,t,i,n),t.child;case 6:return null===e&&Al(t),null;case 13:return qo(e,t,n);case 4:return Tl(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=kl(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,Ro(e,t,r,a=t.elementType===r?a:$a(r,a),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value;var u=t.type._context;if(oa(qa,u._currentValue),u._currentValue=l,null!==i)if(u=i.value,0===(l=or(u,l)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,l):1073741823))){if(i.children===a.children&&!sa.current){t=ei(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){i=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&l)){1===u.tag&&((c=ll(-1,n&-n)).tag=2,ol(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),Za(u.return,n),s.lanes|=n;break}c=c.next}}else i=10===u.tag&&u.type===t.type?null:u.child;if(null!==i)i.return=u;else for(i=u;null!==i;){if(i===t){i=null;break}if(null!==(u=i.sibling)){u.return=i.return,i=u;break}i=i.return}u=i}Io(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(l=t.pendingProps).children,el(t,n),r=r(a=tl(a,l.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return l=$a(a=t.type,t.pendingProps),Mo(e,t,a,l=$a(a.type,l),r,n);case 15:return Do(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:$a(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,da(r)?(e=!0,va(t)):e=!1,el(t,n),ml(t,r,a),vl(t,r,a,n),Bo(null,t,r,!0,e,n);case 19:return Zo(e,t,n);case 23:case 24:return Fo(e,t,n)}throw Error(o(156,t.tag))},Gu.prototype.render=function(e){qu(e,this._internalRoot,null,null)},Gu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qu(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(iu(e,4,lu()),Xu(e,4))},tt=function(e){13===e.tag&&(iu(e,67108864,lu()),Xu(e,67108864))},nt=function(e){if(13===e.tag){var t=lu(),n=ou(e);iu(e,n,t),Xu(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=ea(r);if(!a)throw Error(o(90));G(r),ne(r,a)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Oe=pu,Ie=function(e,t,n,r,a){var l=xi;xi|=4;try{return Ba(98,e.bind(null,t,n,r,a))}finally{0===(xi=l)&&(ji(),Ha())}},Re=function(){0==(49&xi)&&(function(){if(null!==Gi){var e=Gi;Gi=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,su(e,Ua())}))}Ha()}(),Tu())},Me=function(e,t){var n=xi;xi|=2;try{return e(t)}finally{0===(xi=n)&&(ji(),Ha())}};var ts={Events:[Jr,Zr,ea,Le,ze,Tu,{current:!1}]},ns={findFiberByHostInstance:Gr,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},rs={bundleType:ns.bundleType,version:ns.version,rendererPackageName:ns.rendererPackageName,rendererConfig:ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ns.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var as=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!as.isDisabled&&as.supportsFiber)try{ya=as.inject(rs),ba=as}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ts,t.createPortal=es,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=xi;if(0!=(48&n))return e(t);xi|=1;try{if(e)return Ba(99,e.bind(null,t))}finally{xi=n,Ha()}},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(o(200));return Zu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ju(t))throw Error(o(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(o(40));return!!e._reactRootContainer&&(mu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=pu,t.unstable_createPortal=function(e,t){return es(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zu(e,t,n,!1,r)},t.version="17.0.1"},function(e,t,n){"use strict";e.exports=n(8)},function(e,t,n){"use strict";
25
- /** @license React v0.20.1
26
- * scheduler.production.min.js
27
- *
28
- * Copyright (c) Facebook, Inc. and its affiliates.
29
- *
30
- * This source code is licensed under the MIT license found in the
31
- * LICENSE file in the root directory of this source tree.
32
- */var r,a,l,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},a=function(e,t){f=setTimeout(e,t)},l=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,y=-1,b=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,E=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();w=e+b;try{g(!0,e)?E.postMessage(null):(v=!1,g=null)}catch(e){throw E.postMessage(null),e}}else v=!1},r=function(e){g=e,v||(v=!0,E.postMessage(null))},a=function(e,n){y=p((function(){e(t.unstable_now())}),n)},l=function(){m(y),y=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<C(a,t)))break e;e[r]=t,e[n]=a,n=r}}function _(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var l=2*(r+1)-1,o=e[l],i=l+1,u=e[i];if(void 0!==o&&0>C(o,n))void 0!==u&&0>C(u,o)?(e[r]=u,e[i]=n,r=i):(e[r]=o,e[l]=n,r=l);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[i]=n,r=i}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],T=[],N=1,L=null,z=3,O=!1,I=!1,R=!1;function M(e){for(var t=_(T);null!==t;){if(null===t.callback)x(T);else{if(!(t.startTime<=e))break;x(T),t.sortIndex=t.expirationTime,S(P,t)}t=_(T)}}function D(e){if(R=!1,M(e),!I)if(null!==_(P))I=!0,r(F);else{var t=_(T);null!==t&&a(D,t.startTime-e)}}function F(e,n){I=!1,R&&(R=!1,l()),O=!0;var r=z;try{for(M(n),L=_(P);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=L.callback;if("function"==typeof o){L.callback=null,z=L.priorityLevel;var i=o(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof i?L.callback=i:L===_(P)&&x(P),M(n)}else x(P);L=_(P)}if(null!==L)var u=!0;else{var s=_(T);null!==s&&a(D,s.startTime-n),u=!1}return u}finally{L=null,z=r,O=!1}}var U=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||O||(I=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return z},t.unstable_getFirstCallbackNode=function(){return _(P)},t.unstable_next=function(e){switch(z){case 1:case 2:case 3:var t=3;break;default:t=z}var n=z;z=t;try{return e()}finally{z=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=z;z=e;try{return t()}finally{z=n}},t.unstable_scheduleCallback=function(e,n,o){var i=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:N++,callback:n,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>i?(e.sortIndex=o,S(T,e),null===_(P)&&e===_(T)&&(R?l():R=!0,a(D,o-i))):(e.sortIndex=u,S(P,e),I||O||(I=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=z;return function(){var n=z;z=t;try{return e.apply(this,arguments)}finally{z=n}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"yasrSearchStarsDom",(function(){return D})),n.d(t,"yasrSetRaterValue",(function(){return F}));var r,a=n(2),l=n.n(a),o=n(0),i=n.n(o),u=n(3),s=n.n(u);var c="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),f=new Uint8Array(16);function d(){if(!c)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(f)}var p=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var m=function(e){return"string"==typeof e&&p.test(e)},h=[],v=0;v<256;++v)h.push((v+256).toString(16).substr(1));var g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]).toLowerCase();if(!m(n))throw TypeError("Stringified UUID is invalid");return n};var y=function(e,t,n){var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return g(r)};function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=wp.i18n.__;function C(e){var t="yasr-ranking-element-"+y(),n=document.getElementById(e.tableId).dataset.rankingSize;return i.a.createElement("div",{id:t,ref:function(){return F(n,t,!1,.1,!0,e.rating)}})}function P(e){if(void 0!==e.post.number_of_votes)return i.a.createElement("span",{className:"yasr-most-rated-text"},"[",x("Total:","yet-another-stars-rating")," ",e.post.number_of_votes,"  ",x("Average:","yet-another-stars-rating")," ",e.post.rating,"]");var t=e.text;return i.a.createElement("span",{className:"yasr-highest-rated-text"},t," ",e.post.rating)}function T(e){return i.a.createElement("td",{className:e.colClass},i.a.createElement("a",{href:e.post.link},function(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===r&&(r=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),r.innerHTML=e;var t=r.textContent;return r.innerHTML="",t}(e.post.title)))}function N(e){var t="after",n=x("Rating:","yet-another-stars-rating"),r=new URLSearchParams(e.rankingParams);return null!==r.get("text_position")&&(t=r.get("text_position")),null!==r.get("custom_txt")&&(n=r.get("custom_txt")),"before"===t?i.a.createElement("td",{className:e.colClass},i.a.createElement(P,{post:e.post,tableId:e.tableId,text:n}),i.a.createElement(C,{rating:e.post.rating,tableId:e.tableId})):i.a.createElement("td",{className:e.colClass},i.a.createElement(C,{rating:e.post.rating,tableId:e.tableId}),i.a.createElement(P,{post:e.post,tableId:e.tableId,text:n}))}function L(e){var t="",n="";return"overall_rating"===e.source?(t="yasr-top-10-overall-left",n="yasr-top-10-overall-right"):"visitor_votes"===e.source&&(t="yasr-top-10-most-highest-left",n="yasr-top-10-most-highest-right"),i.a.createElement("tr",{className:e.trClass},i.a.createElement(T,{colClass:t,post:e.post}),i.a.createElement(N,{colClass:n,post:e.post,tableId:e.tableId,rankingParams:e.rankingParams}))}function z(e){return i.a.createElement("tbody",{id:e.tBodyId,style:{display:e.show}},e.data.map((function(t,n){var r="yasr-rankings-td-colored";return"overall_rating"===e.source&&(r="yasr-rankings-td-white"),n%2==0&&(r="yasr-rankings-td-white","overall_rating"===e.source&&(r="yasr-rankings-td-colored")),i.a.createElement(L,{key:t.post_id,source:e.source,tableId:e.tableId,rankingParams:e.rankingParams,post:t,trClass:r})})))}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(l,e);var t,n,r,a=E(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=a.call(this,e)).state={error:null,isLoaded:!1,data:[],tableId:e.tableId,source:e.source,rankingParams:e.params},t}return t=l,(n=[{key:"componentDidMount",value:function(){var e=this,t=JSON.parse(document.getElementById(this.state.tableId).dataset.rankingData),n={};if("yes"!==yasrCommonData.ajaxEnabled)console.info(x("Ajax Disabled, getting data from source","yet-another-stars-rating")),this.setState({isLoaded:!0,data:t});else if(!1!==this.state.source){var r=this.returnRestUrl();Promise.all(r.map((function(e){return fetch(e).then((function(e){return!0===e.ok?e.json():(console.info(x("Ajax Call Failed. Getting data from source")),"KO")})).then((function(e){"KO"===e?n=t:("overall_rating"===e.source&&(n=e),"visitor_votes"===e.source&&(n[e.show]=e.data_vv))})).catch((function(e){n=t,console.info(x(e))}))}))).then((function(t){e.setState({isLoaded:!0,data:n})})).catch((function(t){console.info(x(t)),e.setState({isLoaded:!0,data:n})}))}else this.setState({error:x("Invalid Data Source","yet-another-stars-rating")})}},{key:"returnRestUrl",value:function(){var e=""!==this.state.rankingParams?this.state.rankingParams:"",t=this.state.source,n=!1,r="yet-another-stars-rating/v1/yasr-rankings/",a="";if(""!==e&&!1!==e){var l=new URLSearchParams(e);null!==l.get("order_by")&&(a+="order_by="+l.get("order_by")),null!==l.get("limit")&&(a+="&limit="+l.get("limit")),null!==l.get("ctg")?a+="&ctg="+l.get("ctg"):null!==l.get("cpt")&&(a+="&cpt="+l.get("cpt")),""!==a&&(a="&"+(a=a.replace(/\s+/g,"")))}else a="";if("overall_rating"===t&&(n=[yasrCommonData.restEndpoint+r+"?source="+t+a]),"visitor_votes"===t){var o="",i="";if(""!==e){var u=new URLSearchParams(e);null!==u.get("required_votes[most]")&&(o="&required_votes="+u.get("required_votes[most]")),null!==u.get("required_votes[highest]")&&(i="&required_votes="+u.get("required_votes[highest]"))}n=[yasrCommonData.restEndpoint+r+"?show=most&source="+t+a+o,yasrCommonData.restEndpoint+r+"?show=highest&source="+t+a+i]}return n}},{key:"rankingTableHead",value:function(e,t){var n=this.state.tableId,r="link-most-rated-posts-"+n,a="link-highest-rated-posts-"+n;if("visitor_votes"===e){var l=i.a.createElement("span",null,i.a.createElement("span",{id:r},x("Most Rated","yet-another-stars-rating"))," | ",i.a.createElement("a",{href:"#",id:a,onClick:this.switchTBody.bind(this)},x("Highest Rated","yet-another-stars-rating")));return"highest"===t&&(l=i.a.createElement("span",null,i.a.createElement("span",{id:a},x("Highest Rated","yet-another-stars-rating"))," | ",i.a.createElement("a",{href:"#",id:r,onClick:this.switchTBody.bind(this)},x("Most Rated","yet-another-stars-rating")))),i.a.createElement("thead",null,i.a.createElement("tr",{className:"yasr-rankings-td-colored yasr-rankings-heading"},i.a.createElement("th",null,"Post"),i.a.createElement("th",null,x("Order By","yet-another-stars-rating-pro"),":  ",l)))}return i.a.createElement(i.a.Fragment,null)}},{key:"switchTBody",value:function(e){e.preventDefault();var t=e.target.id,n=this.state.tableId,r="link-most-rated-posts-"+n,a="link-highest-rated-posts-"+n,l="most-rated-posts-"+n,o="highest-rated-posts-"+n,i=document.getElementById(t),u=document.createElement("span");u.innerHTML=i.innerHTML,u.id=i.id,i.parentNode.replaceChild(u,i),t===r&&(document.getElementById(o).style.display="none",document.getElementById(l).style.display="",u=document.getElementById(a),i.innerHTML=u.innerHTML,i.id=u.id,u.parentNode.replaceChild(i,u)),t===a&&(document.getElementById(l).style.display="none",document.getElementById(o).style.display="",u=document.getElementById(r),i.innerHTML=u.innerHTML,i.id=u.id,u.parentNode.replaceChild(i,u))}},{key:"rankingTableBody",value:function(){var e=this.state,t=e.data,n=e.source,r=e.rankingParams;if("overall_rating"===n)return i.a.createElement(z,{data:t.data_overall,tableId:this.state.tableId,tBodyId:"overall_"+this.state.tableId,rankingParams:r,show:"table-row-group",source:n});if("visitor_votes"===n){var a=t.most,l=t.highest,o="most",u="table-row-group",s="none",c=new URLSearchParams(r);return null!==c.get("view")&&(o=c.get("view")),"highest"===o&&(u="none",s="table-row-group"),i.a.createElement(i.a.Fragment,null,this.rankingTableHead(n,o),i.a.createElement(z,{data:a,tableId:this.state.tableId,tBodyId:"most-rated-posts-"+this.state.tableId,rankingParams:r,show:u,source:n}),i.a.createElement(z,{data:l,tableId:this.state.tableId,tBodyId:"highest-rated-posts-"+this.state.tableId,rankingParams:r,show:s,source:n}))}}},{key:"render",value:function(){var e=this.state,t=e.error,n=e.isLoaded;return t?i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("td",null,console.log(t),"Error"))):!1===n?i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("td",null,x("Loading Charts","yet-another-stars-rating")))):i.a.createElement(i.a.Fragment,null,this.rankingTableBody())}}])&&w(t.prototype,n),r&&w(t,r),l}(i.a.Component);for(var I=wp.i18n.__,R=["yasr-rater-stars","yasr-rater-stars-vv","yasr-multiset-visitors-rater"],M=0;M<R.length;M++)D(R[M]);function D(e){var t=document.getElementsByClassName(e);if(t.length>0){if("yasr-rater-stars"!==e&&"yasr-ranking-stars"!==e||function(e){for(var t=0;t<e.length;t++)if(!1===e.item(t).classList.contains("yasr-star-rating")){var n=e.item(t),r=n.id;F(n.getAttribute("data-rater-starsize"),r,n)}}(t),"yasr-rater-stars-vv"===e&&(function(e){for(var t=0;t<e.length;t++)!function(t){if(!1===e.item(t).classList.contains("yasr-star-rating")){var n=e.item(t),r=n.getAttribute("data-rating"),a=n.getAttribute("data-readonly-attribute"),l=n.getAttribute("data-rater-readonly");null===a&&(a=!1),a=A(a),l=A(l),!0===a&&(l=!0);var o=n.getAttribute("data-rater-postid"),i=n.id,u=i.replace("yasr-visitor-votes-rater-",""),s=parseInt(n.getAttribute("data-rater-starsize")),c=n.getAttribute("data-rater-nonce"),f=n.getAttribute("data-issingular"),d="yasr-vv-votes-number-container-"+u,p="yasr-vv-average-container-"+u,m=document.getElementById(d),h=document.getElementById(p),v="yasr-vv-loader-"+u,g=!1;if("yes"===yasrCommonData.ajaxEnabled){var y=n.getAttribute("data-cpt");""===y&&(y="posts");var b="wp/v2/"+y+"/"+o+"?_fields=yasr_visitor_votes&_wpnonce="+yasrCommonData.nonce;jQuery.get(yasrCommonData.restEndpoint+b).done((function(e){var t;(t=!0===a||e.yasr_visitor_votes.stars_attributes.read_only,r=(r=e.yasr_visitor_votes.number_of_votes>0?e.yasr_visitor_votes.sum_votes/e.yasr_visitor_votes.number_of_votes:0).toFixed(1),r=parseFloat(r),U(s,r,o,t,i,u,c,f,m,h,v),!0!==a)&&(null!==m&&(m.innerHTML=e.yasr_visitor_votes.number_of_votes),null!==h&&(h.innerHTML=r),!1!==e.yasr_visitor_votes.stars_attributes.span_bottom&&(g=e.yasr_visitor_votes.stars_attributes.span_bottom,document.getElementById(v).innerHTML=g))})).fail((function(e,t,n,d){console.info(I("YASR ajax call failed. Showing ratings from html","yet-another-stars-rating")),U(s,r,o,l,i,u,c,f,m,h,v),!0!==a&&(document.getElementById("yasr-below-stars-hidden-"+u).style.display="")}))}else U(s,r,o,l,i,u,c,f,m,h,v)}}(t)}(t),"yes"===yasrCommonData.visitorStatsEnabled)){var n=document.getElementsByClassName("yasr-dashicons-visitor-stats");n&&function(e){for(var t=!1,n=0;n<e.length;n++)!function(n){var r="#"+e.item(n).id,a={action:"yasr_stats_visitors_votes",post_id:e.item(n).getAttribute("data-postid")};tippy(r,{content:'<span style="color: #0a0a0a">Loading...</span>',theme:"yasr",arrow:"true",arrowType:"round",onShow:function(e){r!==t&&jQuery.post(yasrCommonData.ajaxurl,a,(function(t){t=JSON.parse(t),e.setContent(t)}))},onHidden:function(){t=r}})}(n)}(n)}"yasr-multiset-visitors-rater"===e&&function(e){for(var t="",n=[],r=0;r<e.length;r++)!function(r){if(!1===e.item(r).classList.contains("yasr-star-rating")){var a=e.item(r),l=a.id,o=a.getAttribute("data-rater-readonly");o=A(o);F(16,l,a,1,o,!1,(function(e,r){var l=a.getAttribute("data-rater-postid"),o=a.getAttribute("data-rater-setid"),i=a.getAttribute("data-rater-set-field-id");e=e.toFixed(1);var u=parseInt(e);this.setRating(u),t={postid:l,setid:o,field:i,rating:u},n.push(t),r()}))}}(r);jQuery(".yasr-send-visitor-multiset").on("click",(function(){var e=this.getAttribute("data-postid"),t=this.getAttribute("data-setid"),r=this.getAttribute("data-nonce");jQuery("#yasr-send-visitor-multiset-"+e+"-"+t).hide(),jQuery("#yasr-loader-multiset-visitor-"+e+"-"+t).show();var a={action:"yasr_visitor_multiset_field_vote",nonce:r,post_id:e,rating:n,set_type:t};jQuery.post(yasrCommonData.ajaxurl,a,(function(n){jQuery("#yasr-loader-multiset-visitor-"+e+"-"+t).text(n)}))}))}(t)}}function F(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.1,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6];n=r||document.getElementById(t),e=parseInt(e),l()({starSize:e,showToolTip:!1,element:n,step:a,readOnly:o,rating:i,rateCallback:u})}function U(e,t,n,r,a,l,o,i,u,s,c){t=parseFloat(t),r=A(r);F(e,a,document.getElementById(a),1,r,t,(function(e,t){document.getElementById(c).innerHTML=yasrCommonData.loaderHtml;var r={action:"yasr_send_visitor_rating",rating:e,post_id:n,nonce_visitor:o,is_singular:i};this.setRating(e),this.disable(),jQuery.post(yasrCommonData.ajaxurl,r,(function(e){e=JSON.parse(e),null!==u&&(u.innerHTML=e.number_of_votes),null!==s&&(s.innerHTML=e.average_rating),document.getElementById(c).innerHTML=e.rating_saved_text})),t()}))}function A(e){return null!=e&&""!==e||(e=!0),"true"!==e&&"1"!==e||(e=!0),"false"!==e&&"0"!==e||(e=!1),e}!function(){var e=document.getElementsByClassName("yasr-stars-rankings");if(e.length>0)for(var t=0;t<e.length;t++){var n=e.item(t).id,r=e.item(t).dataset.rankingSource,a=JSON.parse(e.item(t).dataset.rankingParams),l=document.getElementById(n),o=!1;"overall_rating"!==r&&"visitor_votes"!==r||(o=r),s.a.render(i.a.createElement(O,{source:o,tableId:n,params:a}),l)}}()}]);
1
+ !function(t){var e={};function r(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=e,r.d=function(t,e,a){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(a,n,function(e){return t[e]}.bind(null,n));return a},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){t.exports=r(1)},function(t,e,r){"use strict";var a;r.r(e),r.d(e,"yasrSearchStarsDom",(function(){return L})),r.d(e,"yasrSetRaterValue",(function(){return B}));var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),o=new Uint8Array(16);function s(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}var i=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var l=function(t){return"string"==typeof t&&i.test(t)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase();if(!l(r))throw TypeError("Stringified UUID is invalid");return r};var m=function(t,e,r){var a=(t=t||{}).random||(t.rng||s)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=a[n];return e}return d(a)};function y(t){return(y="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)}function g(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,a=h(t);if(e){var n=h(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return v(this,r)}}function v(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=wp.i18n.__,_=wp.element.render;function E(t){var e="yasr-ranking-element-"+m(),r=document.getElementById(t.tableId).dataset.rankingSize;return React.createElement("div",{id:e,ref:function(){return B(r,e,!1,.1,!0,t.rating)}})}function R(t){if(void 0!==t.post.number_of_votes)return React.createElement("span",{className:"yasr-most-rated-text"},"[",b("Total:","yet-another-stars-rating")," ",t.post.number_of_votes,"  ",b("Average:","yet-another-stars-rating")," ",t.post.rating,"]");var e=t.text;return React.createElement("span",{className:"yasr-highest-rated-text"},e," ",t.post.rating)}function I(t){return React.createElement("td",{className:t.colClass},React.createElement("a",{href:t.post.link},function(t){if("string"!=typeof t||-1===t.indexOf("&"))return t;void 0===a&&(a=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),a.innerHTML=t;var e=a.textContent;return a.innerHTML="",e}(t.post.title)))}function k(t){var e="after",r=b("Rating:","yet-another-stars-rating"),a=new URLSearchParams(t.rankingParams);return null!==a.get("text_position")&&(e=a.get("text_position")),null!==a.get("custom_txt")&&(r=a.get("custom_txt")),"before"===e?React.createElement("td",{className:t.colClass},React.createElement(R,{post:t.post,tableId:t.tableId,text:r}),React.createElement(E,{rating:t.post.rating,tableId:t.tableId})):React.createElement("td",{className:t.colClass},React.createElement(E,{rating:t.post.rating,tableId:t.tableId}),React.createElement(R,{post:t.post,tableId:t.tableId,text:r}))}function w(t){var e="",r="";return"overall_rating"===t.source?(e="yasr-top-10-overall-left",r="yasr-top-10-overall-right"):"visitor_votes"===t.source&&(e="yasr-top-10-most-highest-left",r="yasr-top-10-most-highest-right"),React.createElement("tr",{className:t.trClass},React.createElement(I,{colClass:e,post:t.post}),React.createElement(k,{colClass:r,post:t.post,tableId:t.tableId,rankingParams:t.rankingParams}))}function C(t){return React.createElement("tbody",{id:t.tBodyId,style:{display:t.show}},t.data.map((function(e,r){var a="yasr-rankings-td-colored";return"overall_rating"===t.source&&(a="yasr-rankings-td-white"),r%2==0&&(a="yasr-rankings-td-white","overall_rating"===t.source&&(a="yasr-rankings-td-colored")),React.createElement(w,{key:e.post_id,source:t.source,tableId:t.tableId,rankingParams:t.rankingParams,post:e,trClass:a})})))}var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(o,React.Component);var e,r,a,n=p(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this,t)).state={error:null,isLoaded:!1,data:[],tableId:t.tableId,source:t.source,rankingParams:t.params},e}return e=o,(r=[{key:"componentDidMount",value:function(){var t=this,e=JSON.parse(document.getElementById(this.state.tableId).dataset.rankingData),r={};if("yes"!==yasrCommonData.ajaxEnabled)console.info(b("Ajax Disabled, getting data from source","yet-another-stars-rating")),this.setState({isLoaded:!0,data:e});else if(!1!==this.state.source){var a=this.returnRestUrl();Promise.all(a.map((function(t){return fetch(t).then((function(t){return!0===t.ok?t.json():(console.info(b("Ajax Call Failed. Getting data from source")),"KO")})).then((function(t){"KO"===t?r=e:("overall_rating"===t.source&&(r=t),"visitor_votes"===t.source&&(r[t.show]=t.data_vv))})).catch((function(t){r=e,console.info(b(t))}))}))).then((function(e){t.setState({isLoaded:!0,data:r})})).catch((function(e){console.info(b(e)),t.setState({isLoaded:!0,data:r})}))}else this.setState({error:b("Invalid Data Source","yet-another-stars-rating")})}},{key:"returnRestUrl",value:function(){var t=""!==this.state.rankingParams?this.state.rankingParams:"",e=this.state.source,r=!1,a="yet-another-stars-rating/v1/yasr-rankings/",n="";if(""!==t&&!1!==t){var o=new URLSearchParams(t);null!==o.get("order_by")&&(n+="order_by="+o.get("order_by")),null!==o.get("limit")&&(n+="&limit="+o.get("limit")),null!==o.get("ctg")?n+="&ctg="+o.get("ctg"):null!==o.get("cpt")&&(n+="&cpt="+o.get("cpt")),""!==n&&(n="&"+(n=n.replace(/\s+/g,"")))}else n="";if("overall_rating"===e&&(r=[yasrCommonData.restEndpoint+a+"?source="+e+n]),"visitor_votes"===e){var s="",i="";if(""!==t){var l=new URLSearchParams(t);null!==l.get("required_votes[most]")&&(s="&required_votes="+l.get("required_votes[most]")),null!==l.get("required_votes[highest]")&&(i="&required_votes="+l.get("required_votes[highest]"))}r=[yasrCommonData.restEndpoint+a+"?show=most&source="+e+n+s,yasrCommonData.restEndpoint+a+"?show=highest&source="+e+n+i]}return r}},{key:"rankingTableHead",value:function(t,e){var r=this.state.tableId,a="link-most-rated-posts-"+r,n="link-highest-rated-posts-"+r;if("visitor_votes"===t){var o=React.createElement("span",null,React.createElement("span",{id:a},b("Most Rated","yet-another-stars-rating"))," | ",React.createElement("a",{href:"#",id:n,onClick:this.switchTBody.bind(this)},b("Highest Rated","yet-another-stars-rating")));return"highest"===e&&(o=React.createElement("span",null,React.createElement("span",{id:n},b("Highest Rated","yet-another-stars-rating"))," | ",React.createElement("a",{href:"#",id:a,onClick:this.switchTBody.bind(this)},b("Most Rated","yet-another-stars-rating")))),React.createElement("thead",null,React.createElement("tr",{className:"yasr-rankings-td-colored yasr-rankings-heading"},React.createElement("th",null,"Post"),React.createElement("th",null,b("Order By","yet-another-stars-rating-pro"),":  ",o)))}return React.createElement(React.Fragment,null)}},{key:"switchTBody",value:function(t){t.preventDefault();var e=t.target.id,r=this.state.tableId,a="link-most-rated-posts-"+r,n="link-highest-rated-posts-"+r,o="most-rated-posts-"+r,s="highest-rated-posts-"+r,i=document.getElementById(e),l=document.createElement("span");l.innerHTML=i.innerHTML,l.id=i.id,i.parentNode.replaceChild(l,i),e===a&&(document.getElementById(s).style.display="none",document.getElementById(o).style.display="",l=document.getElementById(n),i.innerHTML=l.innerHTML,i.id=l.id,l.parentNode.replaceChild(i,l)),e===n&&(document.getElementById(o).style.display="none",document.getElementById(s).style.display="",l=document.getElementById(a),i.innerHTML=l.innerHTML,i.id=l.id,l.parentNode.replaceChild(i,l))}},{key:"rankingTableBody",value:function(){var t=this.state,e=t.data,r=t.source,a=t.rankingParams;if("overall_rating"===r)return React.createElement(C,{data:e.data_overall,tableId:this.state.tableId,tBodyId:"overall_"+this.state.tableId,rankingParams:a,show:"table-row-group",source:r});if("visitor_votes"===r){var n=e.most,o=e.highest,s="most",i="table-row-group",l="none",c=new URLSearchParams(a);return null!==c.get("view")&&(s=c.get("view")),"highest"===s&&(i="none",l="table-row-group"),React.createElement(React.Fragment,null,this.rankingTableHead(r,s),React.createElement(C,{data:n,tableId:this.state.tableId,tBodyId:"most-rated-posts-"+this.state.tableId,rankingParams:a,show:i,source:r}),React.createElement(C,{data:o,tableId:this.state.tableId,tBodyId:"highest-rated-posts-"+this.state.tableId,rankingParams:a,show:l,source:r}))}}},{key:"render",value:function(){var t=this.state,e=t.error,r=t.isLoaded;return e?React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",null,console.log(e),"Error"))):!1===r?React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",null,b("Loading Charts","yet-another-stars-rating")))):React.createElement(React.Fragment,null,this.rankingTableBody())}}])&&g(e.prototype,r),a&&g(e,a),o}();for(var x=wp.i18n.__,T=["yasr-rater-stars","yasr-rater-stars-vv","yasr-multiset-visitors-rater"],j=0;j<T.length;j++)L(T[j]);function L(t){var e=document.getElementsByClassName(t);if(e.length>0){if("yasr-rater-stars"!==t&&"yasr-ranking-stars"!==t||function(t){for(var e=0;e<t.length;e++)if(!1===t.item(e).classList.contains("yasr-star-rating")){var r=t.item(e),a=r.id;B(r.getAttribute("data-rater-starsize"),a,r)}}(e),"yasr-rater-stars-vv"===t&&(function(t){for(var e=0;e<t.length;e++)!function(e){if(!1===t.item(e).classList.contains("yasr-star-rating")){var r=t.item(e),a=r.getAttribute("data-rating"),n=r.getAttribute("data-readonly-attribute"),o=r.getAttribute("data-rater-readonly");null===n&&(n=!1),n=O(n),o=O(o),!0===n&&(o=!0);var s=r.getAttribute("data-rater-postid"),i=r.id,l=i.replace("yasr-visitor-votes-rater-",""),c=parseInt(r.getAttribute("data-rater-starsize")),u=r.getAttribute("data-rater-nonce"),d=r.getAttribute("data-issingular"),m="yasr-vv-votes-number-container-"+l,y="yasr-vv-average-container-"+l,g=document.getElementById(m),f=document.getElementById(y),p="yasr-vv-loader-"+l,v=!1;if("yes"===yasrCommonData.ajaxEnabled){var h=r.getAttribute("data-cpt");""===h&&(h="posts");var b="wp/v2/"+h+"/"+s+"?_fields=yasr_visitor_votes&_wpnonce="+yasrCommonData.nonce;jQuery.get(yasrCommonData.restEndpoint+b).done((function(t){var e;(e=!0===n||t.yasr_visitor_votes.stars_attributes.read_only,a=(a=t.yasr_visitor_votes.number_of_votes>0?t.yasr_visitor_votes.sum_votes/t.yasr_visitor_votes.number_of_votes:0).toFixed(1),a=parseFloat(a),P(c,a,s,e,i,l,u,d,g,f,p),!0!==n)&&(null!==g&&(g.innerHTML=t.yasr_visitor_votes.number_of_votes),null!==f&&(f.innerHTML=a),!1!==t.yasr_visitor_votes.stars_attributes.span_bottom&&(v=t.yasr_visitor_votes.stars_attributes.span_bottom,document.getElementById(p).innerHTML=v))})).fail((function(t,e,r,m){console.info(x("YASR ajax call failed. Showing ratings from html","yet-another-stars-rating")),P(c,a,s,o,i,l,u,d,g,f,p),!0!==n&&(document.getElementById("yasr-below-stars-hidden-"+l).style.display="")}))}else P(c,a,s,o,i,l,u,d,g,f,p)}}(e)}(e),"yes"===yasrCommonData.visitorStatsEnabled)){var r=document.getElementsByClassName("yasr-dashicons-visitor-stats");r&&function(t){for(var e=!1,r=0;r<t.length;r++)!function(r){var a="#"+t.item(r).id,n={action:"yasr_stats_visitors_votes",post_id:t.item(r).getAttribute("data-postid")};tippy(a,{content:'<span style="color: #0a0a0a">Loading...</span>',theme:"yasr",arrow:"true",arrowType:"round",onShow:function(t){a!==e&&jQuery.post(yasrCommonData.ajaxurl,n,(function(e){e=JSON.parse(e),t.setContent(e)}))},onHidden:function(){e=a}})}(r)}(r)}"yasr-multiset-visitors-rater"===t&&function(t){for(var e="",r=[],a=0;a<t.length;a++)!function(a){if(!1===t.item(a).classList.contains("yasr-star-rating")){var n=t.item(a),o=n.id,s=n.getAttribute("data-rater-readonly");s=O(s);B(16,o,n,1,s,!1,(function(t,a){var o=n.getAttribute("data-rater-postid"),s=n.getAttribute("data-rater-setid"),i=n.getAttribute("data-rater-set-field-id");t=t.toFixed(1);var l=parseInt(t);this.setRating(l),e={postid:o,setid:s,field:i,rating:l},r.push(e),a()}))}}(a);jQuery(".yasr-send-visitor-multiset").on("click",(function(){var t=this.getAttribute("data-postid"),e=this.getAttribute("data-setid"),a=this.getAttribute("data-nonce");jQuery("#yasr-send-visitor-multiset-"+t+"-"+e).hide(),jQuery("#yasr-loader-multiset-visitor-"+t+"-"+e).show();var n={action:"yasr_visitor_multiset_field_vote",nonce:a,post_id:t,rating:r,set_type:e};jQuery.post(yasrCommonData.ajaxurl,n,(function(r){jQuery("#yasr-loader-multiset-visitor-"+t+"-"+e).text(r)}))}))}(e)}}function B(t,e){var r,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.1,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6&&void 0!==arguments[6]&&arguments[6];r=a||document.getElementById(e),t=parseInt(t),raterJs({starSize:t,showToolTip:!1,element:r,step:n,readOnly:o,rating:s,rateCallback:i})}function P(t,e,r,a,n,o,s,i,l,c,u){e=parseFloat(e),a=O(a);B(t,n,document.getElementById(n),1,a,e,(function(t,e){document.getElementById(u).innerHTML=yasrCommonData.loaderHtml;var a={action:"yasr_send_visitor_rating",rating:t,post_id:r,nonce_visitor:s,is_singular:i};this.setRating(t),this.disable(),jQuery.post(yasrCommonData.ajaxurl,a,(function(t){t=JSON.parse(t),null!==l&&(l.innerHTML=t.number_of_votes),null!==c&&(c.innerHTML=t.average_rating),document.getElementById(u).innerHTML=t.rating_saved_text})),e()}))}function O(t){return null!=t&&""!==t||(t=!0),"true"!==t&&"1"!==t||(t=!0),"false"!==t&&"0"!==t||(t=!1),t}!function(){var t=document.getElementsByClassName("yasr-stars-rankings");if(t.length>0)for(var e=0;e<t.length;e++){var r=t.item(e).id,a=t.item(e).dataset.rankingSource,n=JSON.parse(t.item(e).dataset.rankingParams),o=document.getElementById(r),s=!1;"overall_rating"!==a&&"visitor_votes"!==a||(s=a),_(React.createElement(S,{source:s,tableId:r,params:n}),o)}}()}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/shortcodes/classes/YasrOverallRating.php CHANGED
@@ -42,7 +42,9 @@ class YasrOverallRating extends YasrShortcode {
42
 
43
  $this->shortcode_html = '<!--Yasr Overall Rating Shortcode-->';
44
 
45
- $this->shortcode_html .= $this->customTextBefore();
 
 
46
 
47
  $this->shortcode_html .= '<div class="yasr-overall-rating">';
48
  $this->shortcode_html .= $overall_attributes['html_stars'];
@@ -130,17 +132,13 @@ class YasrOverallRating extends YasrShortcode {
130
  *
131
  */
132
  protected function customTextBefore() {
133
- if (YASR_STARS_CUSTOM_TEXT === 1 && YASR_TEXT_BEFORE_OVERALL !== '') {
134
  //Get overall Rating
135
- $this->overall_rating = YasrDatabaseRatings::getOverallRating();
136
-
137
- $text_before_star = str_replace('%overall_rating%', $this->overall_rating, YASR_TEXT_BEFORE_OVERALL);
138
- $shortcode_html = "<div class='yasr-container-custom-text-and-overall'>
139
- <span id='yasr-custom-text-before-overall'>" . $text_before_star . "</span>
140
- </div>";
141
 
142
- return $shortcode_html;
143
- }
 
144
 
145
  }
146
 
42
 
43
  $this->shortcode_html = '<!--Yasr Overall Rating Shortcode-->';
44
 
45
+ if (YASR_STARS_CUSTOM_TEXT === 1) {
46
+ $this->shortcode_html .= $this->customTextBefore();
47
+ }
48
 
49
  $this->shortcode_html .= '<div class="yasr-overall-rating">';
50
  $this->shortcode_html .= $overall_attributes['html_stars'];
132
  *
133
  */
134
  protected function customTextBefore() {
 
135
  //Get overall Rating
136
+ $this->overall_rating = YasrDatabaseRatings::getOverallRating();
137
+ $text_before_star = apply_filters('yasr_cstm_text_before_overall', $this->overall_rating);
 
 
 
 
138
 
139
+ return "<div class='yasr-container-custom-text-and-overall'>
140
+ <span id='yasr-custom-text-before-overall'>".htmlspecialchars_decode($text_before_star )."</span>
141
+ </div>";
142
 
143
  }
144
 
includes/shortcodes/classes/YasrVisitorMultiSet.php CHANGED
@@ -147,7 +147,7 @@ class YasrVisitorMultiSet extends YasrMultiSet {
147
 
148
  $this->checkCookie();
149
 
150
- $set_enabled = YasrShortcode::starsEnalbed( $this->checkCookie() );
151
 
152
  if($set_enabled === 'true_logged' || $set_enabled === 'true_not_logged') {
153
  $this->button = $this->button_html;
@@ -162,13 +162,9 @@ class YasrVisitorMultiSet extends YasrMultiSet {
162
  elseif ($set_enabled === 'false_not_logged') {
163
  $this->button = $this->button_html_disabled;
164
  $this->star_readonly = 'true';
165
- $this->span_message_content = '<span class="yasr-visitor-votes-must-sign-in">';
166
-
167
- if (defined('YASR_CUSTOM_TEXT_MUST_SIGN_IN') && YASR_CUSTOM_TEXT_MUST_SIGN_IN !== '') {
168
- $this->span_message_content .= YASR_CUSTOM_TEXT_MUST_SIGN_IN;
169
- } else {
170
- $this->span_message_content .= __('You must sign in to vote', 'yet-another-stars-rating');
171
- }
172
  $this->span_message_content .= '</span>';
173
  }
174
  }
147
 
148
  $this->checkCookie();
149
 
150
+ $set_enabled = YasrShortcode::starsEnalbed($this->checkCookie());
151
 
152
  if($set_enabled === 'true_logged' || $set_enabled === 'true_not_logged') {
153
  $this->button = $this->button_html;
162
  elseif ($set_enabled === 'false_not_logged') {
163
  $this->button = $this->button_html_disabled;
164
  $this->star_readonly = 'true';
165
+ $this->span_message_content = '<span class="yasr-visitor-votes-must-sign-in">';
166
+ $default_text = __('You must sign in to vote', 'yet-another-stars-rating');
167
+ $this->span_message_content .= wp_kses_post(apply_filters('yasr_must_sign_in', $default_text));
 
 
 
 
168
  $this->span_message_content .= '</span>';
169
  }
170
  }
includes/shortcodes/classes/YasrVisitorVotes.php CHANGED
@@ -31,16 +31,6 @@ class YasrVisitorVotes extends YasrShortcode {
31
  protected $unique_id;
32
  protected $ajax_nonce_visitor;
33
 
34
- /**
35
- * @var string
36
- */
37
- private $average_rating_container;
38
-
39
- /**
40
- * @var string
41
- */
42
- private $number_of_votes_container;
43
-
44
  public function __construct($atts, $shortcode_name) {
45
  parent::__construct($atts, $shortcode_name);
46
 
@@ -56,12 +46,6 @@ class YasrVisitorVotes extends YasrShortcode {
56
  $this->shortcode_html = '<!--Yasr Visitor Votes Shortcode-->';
57
  $this->shortcode_html .= "<div id='yasr_visitor_votes_$this->post_id' class='yasr-visitor-votes'>";
58
 
59
- //This will contain the number of votes
60
- $this->number_of_votes_container = '<span id="yasr-vv-votes-number-container-'. $this->unique_id .'">';
61
-
62
- //this will contain the average
63
- $this->average_rating_container = '<span id="yasr-vv-average-container-'. $this->unique_id .'">';
64
-
65
  }
66
 
67
  /**
@@ -115,7 +99,7 @@ class YasrVisitorVotes extends YasrShortcode {
115
  }
116
 
117
  //this should run only if settings is enabled
118
- if (YASR_STARS_CUSTOM_TEXT === 1 && YASR_TEXT_BEFORE_VISITOR_RATING !== '') {
119
  $this->shortcode_html .= $this->textBeforeStars($number_of_votes, $average_rating);
120
  }
121
 
@@ -143,10 +127,9 @@ class YasrVisitorVotes extends YasrShortcode {
143
  * Function that checks if cookie exists and set the value
144
  *
145
  * @param $post_id int|bool
146
- * @return int |bool
147
  */
148
  public static function checkCookie ($post_id = false) {
149
-
150
  $yasr_cookiename = apply_filters('yasr_vv_cookie', 'yasr_visitor_vote_cookie');
151
 
152
  $cookie_value = false;
@@ -203,43 +186,41 @@ class YasrVisitorVotes extends YasrShortcode {
203
  $span_bottom_line = false;
204
  $span_bottom_line_content = false;
205
 
206
- if ($stars_enabled === 'true_logged') {
207
- //Check if a logged in user has already rated for this post
208
- $vote_if_user_already_rated = YasrDatabaseRatings::visitorVotesHasUserVoted($post_id);
209
-
210
- //If user has already rated
211
- if ($vote_if_user_already_rated) {
212
- $span_bottom_line_content = "<span class='yasr-already-voted-text'>";
213
- if (YASR_STARS_CUSTOM_TEXT === 1 && YASR_CUSTOM_TEXT_USER_VOTED !== '') {
214
- $span_bottom_line_content .= YASR_CUSTOM_TEXT_USER_VOTED;
215
- } else {
216
- $span_bottom_line_content .=
217
- __('You\'ve already voted this article with', 'yet-another-stars-rating') . ' ' . $vote_if_user_already_rated;
218
- }
219
- $span_bottom_line_content .= '</span>';
220
  }
221
- } //true_logged
222
-
223
- elseif ($stars_enabled === 'false_already_voted') {
224
- $span_bottom_line_content = "<span class='yasr-already-voted-text'>";
225
- if (YASR_STARS_CUSTOM_TEXT === 1 && YASR_CUSTOM_TEXT_USER_VOTED !== '') {
226
- $span_bottom_line_content .= YASR_CUSTOM_TEXT_USER_VOTED;
227
- } else {
228
- $span_bottom_line_content .=
229
- __('You\'ve already voted this article with', 'yet-another-stars-rating') . ' ' . $cookie_value;
 
 
230
  }
 
 
 
 
 
231
  $span_bottom_line_content .= '</span>';
 
232
  }
233
 
 
234
  //If only logged in users can vote
235
  elseif ($stars_enabled === 'false_not_logged') {
236
- $span_bottom_line_content = "<span class='yasr-visitor-votes-must-sign-in'>";
 
 
237
  //if custom text is defined
238
- if (defined('YASR_CUSTOM_TEXT_MUST_SIGN_IN') && YASR_CUSTOM_TEXT_MUST_SIGN_IN !== '') {
239
- $span_bottom_line_content .= YASR_CUSTOM_TEXT_MUST_SIGN_IN;
240
- } else {
241
- $span_bottom_line_content .= __('You must sign in to vote', 'yet-another-stars-rating');
242
- }
243
  $span_bottom_line_content .= '</span>';
244
  }
245
 
@@ -264,16 +245,14 @@ class YasrVisitorVotes extends YasrShortcode {
264
  * @return string
265
  */
266
  protected function textBeforeStars($number_of_votes, $average_rating) {
267
- $text_before_star = $this->strReplaceInput(YASR_TEXT_BEFORE_VISITOR_RATING, $number_of_votes, $average_rating);
268
 
269
  $class_text_before = 'yasr-custom-text-vv-before yasr-custom-text-vv-before-'.$this->post_id;
270
 
271
- $shortcode_html = '<div class="'.$class_text_before.'">'
272
- . $text_before_star .
273
- '</div>';
274
-
275
  //if filters doesn't exists, put $shortcode_html inside $this->shortcode_html
276
- return apply_filters('yasr_vv_txt_before', $shortcode_html);
 
 
277
  }
278
 
279
 
@@ -288,8 +267,7 @@ class YasrVisitorVotes extends YasrShortcode {
288
  * @return mixed|void $span_text_after_stars
289
  */
290
  public function containerAfterStars ($number_of_votes, $average_rating) {
291
- $container_span = '<span class="yasr-total-average-container"
292
- id="yasr-total-average-text-'. $this->unique_id .'">';
293
 
294
  if (YASR_VISITORS_STATS === 'yes') {
295
  $container_span .= $this->visitorStats();
@@ -300,7 +278,7 @@ class YasrVisitorVotes extends YasrShortcode {
300
  $container_span .= '</span>';
301
 
302
  //use this to costumize text after stars
303
- return apply_filters('yasr_vv_txt_after', $container_span);
304
  }
305
 
306
  /**
@@ -316,48 +294,25 @@ class YasrVisitorVotes extends YasrShortcode {
316
  $default_text = '['
317
  . __('Total:', 'yet-another-stars-rating')
318
  . '&nbsp;'
319
- . $this->number_of_votes_container
320
  . $number_of_votes
321
  . '</span>'
322
  . '&nbsp; &nbsp;'
323
  . __('Average:', 'yet-another-stars-rating')
324
  . '&nbsp;'
325
- . $this->average_rating_container
326
  . $average_rating
327
  . '</span>'
328
  . '/5]';
329
 
330
- if (YASR_STARS_CUSTOM_TEXT === 1 && YASR_TEXT_AFTER_VISITOR_RATING !== '') {
331
- $text_after_star = $this->strReplaceInput(YASR_TEXT_AFTER_VISITOR_RATING, $number_of_votes, $average_rating);
332
- $default_text = $text_after_star;
333
- }
334
 
335
  return $default_text;
336
  }
337
 
338
- /**
339
- * @author Dario Curvino <@dudo>
340
- * @since 2.5.9
341
- *
342
- * @param $subject
343
- * @param $number_of_votes
344
- * @param $average_rating
345
- *
346
- * @return string|string[]
347
- */
348
- protected function strReplaceInput($subject, $number_of_votes, $average_rating) {
349
- return str_replace(
350
- array(
351
- '%total_count%',
352
- '%average%'
353
- ),
354
- array(
355
- $this->number_of_votes_container . $number_of_votes . '</span>',
356
- $this->average_rating_container . $average_rating . '</span>'
357
- ),
358
- $subject
359
- );
360
- }
361
 
362
 
363
  /**
31
  protected $unique_id;
32
  protected $ajax_nonce_visitor;
33
 
 
 
 
 
 
 
 
 
 
 
34
  public function __construct($atts, $shortcode_name) {
35
  parent::__construct($atts, $shortcode_name);
36
 
46
  $this->shortcode_html = '<!--Yasr Visitor Votes Shortcode-->';
47
  $this->shortcode_html .= "<div id='yasr_visitor_votes_$this->post_id' class='yasr-visitor-votes'>";
48
 
 
 
 
 
 
 
49
  }
50
 
51
  /**
99
  }
100
 
101
  //this should run only if settings is enabled
102
+ if (YASR_STARS_CUSTOM_TEXT === 1) {
103
  $this->shortcode_html .= $this->textBeforeStars($number_of_votes, $average_rating);
104
  }
105
 
127
  * Function that checks if cookie exists and set the value
128
  *
129
  * @param $post_id int|bool
130
+ * @return int|bool
131
  */
132
  public static function checkCookie ($post_id = false) {
 
133
  $yasr_cookiename = apply_filters('yasr_vv_cookie', 'yasr_visitor_vote_cookie');
134
 
135
  $cookie_value = false;
186
  $span_bottom_line = false;
187
  $span_bottom_line_content = false;
188
 
189
+ if ($stars_enabled === 'true_logged' || $stars_enabled === 'false_already_voted') {
190
+ //At the begin, rating is = $cookie_value
191
+ $rating = $cookie_value;
192
+ $default_text = '';
193
+ if($cookie_value) {
194
+ $default_text = __('You\'ve already voted this article with ', 'yet-another-stars-rating');
 
 
 
 
 
 
 
 
195
  }
196
+
197
+ $span_bottom_line_content = "<span class='yasr-already-voted-text'>";
198
+
199
+ //if it is not false_already_voted means it is true_logged
200
+ if($stars_enabled !== 'false_already_voted') {
201
+ //Check if a logged in user has already rated for this post
202
+ $vote_if_user_already_rated = YasrDatabaseRatings::visitorVotesHasUserVoted($post_id);
203
+ //...and if vote exists, assign it into rating
204
+ if($vote_if_user_already_rated) {
205
+ $rating = $vote_if_user_already_rated;
206
+ }
207
  }
208
+
209
+ $default_text .= $rating;
210
+ $custom_text = apply_filters('yasr_cstm_text_already_voted', $default_text, $rating);
211
+ $span_bottom_line_content .= wp_kses_post($custom_text);
212
+
213
  $span_bottom_line_content .= '</span>';
214
+
215
  }
216
 
217
+
218
  //If only logged in users can vote
219
  elseif ($stars_enabled === 'false_not_logged') {
220
+ $span_bottom_line_content = "<span class='yasr-visitor-votes-must-sign-in'>";
221
+ $default_text = __('You must sign in to vote', 'yet-another-stars-rating');
222
+ $span_bottom_line_content .= wp_kses_post(apply_filters('yasr_must_sign_in', $default_text));
223
  //if custom text is defined
 
 
 
 
 
224
  $span_bottom_line_content .= '</span>';
225
  }
226
 
245
  * @return string
246
  */
247
  protected function textBeforeStars($number_of_votes, $average_rating) {
248
+ $custom_text_before_star = apply_filters('yasr_cstm_text_before_vv', $number_of_votes, $average_rating, $this->unique_id);
249
 
250
  $class_text_before = 'yasr-custom-text-vv-before yasr-custom-text-vv-before-'.$this->post_id;
251
 
 
 
 
 
252
  //if filters doesn't exists, put $shortcode_html inside $this->shortcode_html
253
+ return '<div class="'.$class_text_before.'">'
254
+ . wp_kses_post($custom_text_before_star) .
255
+ '</div>';
256
  }
257
 
258
 
267
  * @return mixed|void $span_text_after_stars
268
  */
269
  public function containerAfterStars ($number_of_votes, $average_rating) {
270
+ $container_span = '<span class="yasr-total-average-container" id="yasr-total-average-text-'. $this->unique_id .'">';
 
271
 
272
  if (YASR_VISITORS_STATS === 'yes') {
273
  $container_span .= $this->visitorStats();
278
  $container_span .= '</span>';
279
 
280
  //use this to costumize text after stars
281
+ return $container_span;
282
  }
283
 
284
  /**
294
  $default_text = '['
295
  . __('Total:', 'yet-another-stars-rating')
296
  . '&nbsp;'
297
+ . '<span id="yasr-vv-votes-number-container-'. $this->unique_id .'">'
298
  . $number_of_votes
299
  . '</span>'
300
  . '&nbsp; &nbsp;'
301
  . __('Average:', 'yet-another-stars-rating')
302
  . '&nbsp;'
303
+ . '<span id="yasr-vv-average-container-'. $this->unique_id .'">'
304
  . $average_rating
305
  . '</span>'
306
  . '/5]';
307
 
308
+ $custom_text = apply_filters('yasr_cstm_text_after_vv', $default_text, $number_of_votes, $average_rating, $this->unique_id);
309
+ $default_text = wp_kses_post($custom_text);
310
+
 
311
 
312
  return $default_text;
313
  }
314
 
315
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
 
317
 
318
  /**
includes/shortcodes/yasr-shortcode-ajax.php CHANGED
@@ -147,7 +147,7 @@ function yasr_insert_visitor_votes_callback() {
147
  }
148
 
149
  //Customize it
150
- $rating_saved_text = apply_filters('yasr_vv_saved_text', $rating_saved_text);
151
 
152
  $rating_saved_span = '<span class="yasr-small-block-bold" id="yasr-vote-saved">'
153
  . $rating_saved_text .
@@ -315,7 +315,7 @@ function yasr_visitor_multiset_field_vote_callback() {
315
  yasr_setcookie($cookiename, $data_to_save);
316
 
317
  $rating_saved_text = __('Rating Saved', 'yet-another-stars-rating');
318
- $rating_saved_text = apply_filters('yasr_mv_saved_text', $rating_saved_text);
319
 
320
  echo $rating_saved_text;
321
 
147
  }
148
 
149
  //Customize it
150
+ $rating_saved_text = wp_kses_post(apply_filters('yasr_vv_saved_text', $rating_saved_text));
151
 
152
  $rating_saved_span = '<span class="yasr-small-block-bold" id="yasr-vote-saved">'
153
  . $rating_saved_text .
315
  yasr_setcookie($cookiename, $data_to_save);
316
 
317
  $rating_saved_text = __('Rating Saved', 'yet-another-stars-rating');
318
+ $rating_saved_text = wp_kses_post(apply_filters('yasr_mv_saved_text', $rating_saved_text));
319
 
320
  echo $rating_saved_text;
321
 
includes/yasr-includes-functions.php CHANGED
@@ -37,6 +37,15 @@ function yasr_add_scripts_includes() {
37
  true
38
  );
39
 
 
 
 
 
 
 
 
 
 
40
  $yasr_visitor_votes_loader = '<div id="loader-visitor-rating" style="display: inline">&nbsp; '.
41
  ' <img src=' . YASR_IMG_DIR . 'loader.gif title="yasr-loader" alt="yasr-loader">
42
  </div>';
37
  true
38
  );
39
 
40
+ wp_enqueue_script(
41
+ 'rater',
42
+ YASR_JS_DIR_INCLUDES .
43
+ 'rater-js.min.js',
44
+ '',
45
+ YASR_VERSION_NUM,
46
+ true
47
+ );
48
+
49
  $yasr_visitor_votes_loader = '<div id="loader-visitor-rating" style="display: inline">&nbsp; '.
50
  ' <img src=' . YASR_IMG_DIR . 'loader.gif title="yasr-loader" alt="yasr-loader">
51
  </div>';
includes/yasr-includes-init.php CHANGED
@@ -121,29 +121,6 @@ if(isset($yasr_stored_options['text_before_stars'])) {
121
  define('YASR_STARS_CUSTOM_TEXT', null);
122
  }
123
 
124
- if (YASR_STARS_CUSTOM_TEXT === 1) {
125
- define(
126
- 'YASR_TEXT_BEFORE_OVERALL',
127
- htmlspecialchars_decode($yasr_stored_options['text_before_overall'])
128
- );
129
- define(
130
- 'YASR_TEXT_BEFORE_VISITOR_RATING',
131
- htmlspecialchars_decode($yasr_stored_options['text_before_visitor_rating'])
132
- );
133
- define(
134
- 'YASR_TEXT_AFTER_VISITOR_RATING',
135
- htmlspecialchars_decode($yasr_stored_options['text_after_visitor_rating'])
136
- );
137
- define(
138
- 'YASR_CUSTOM_TEXT_USER_VOTED',
139
- htmlspecialchars_decode($yasr_stored_options['custom_text_user_voted'])
140
- );
141
- define(
142
- 'YASR_CUSTOM_TEXT_MUST_SIGN_IN',
143
- htmlspecialchars_decode($yasr_stored_options['custom_text_must_sign_in'])
144
- );
145
- }
146
-
147
  if(isset($yasr_stored_options['visitors_stats'])) {
148
  define('YASR_VISITORS_STATS', $yasr_stored_options['visitors_stats']);
149
  } else {
@@ -315,4 +292,13 @@ $array_item_type_info = json_encode(
315
  );
316
 
317
  define('YASR_SUPPORTED_SCHEMA_TYPES', $supported_schema_types);
318
- define('YASR_SUPPORTED_SCHEMA_TYPES_ADDITIONAL_FIELDS', $array_item_type_info);
 
 
 
 
 
 
 
 
 
121
  define('YASR_STARS_CUSTOM_TEXT', null);
122
  }
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  if(isset($yasr_stored_options['visitors_stats'])) {
125
  define('YASR_VISITORS_STATS', $yasr_stored_options['visitors_stats']);
126
  } else {
292
  );
293
 
294
  define('YASR_SUPPORTED_SCHEMA_TYPES', $supported_schema_types);
295
+ define('YASR_SUPPORTED_SCHEMA_TYPES_ADDITIONAL_FIELDS', $array_item_type_info);
296
+
297
+ //run includes filters
298
+ //@todo add all filters that run into includes here
299
+ $yasr_includes_filter = new YasrIncludesFilters();
300
+
301
+ //filter custom texts only if enabled in the settings
302
+ if (YASR_STARS_CUSTOM_TEXT === 1) {
303
+ $yasr_includes_filter->filterCustomTexts($yasr_stored_options);
304
+ }
public/classes/YasrPublicFilters.php CHANGED
@@ -14,7 +14,6 @@ if ( ! defined( 'ABSPATH' ) ) {
14
  class YasrPublicFilters {
15
 
16
  public function addFilters() {
17
-
18
  // Auto insert overall rating and visitor rating
19
  if (YASR_AUTO_INSERT_ENABLED === 1) {
20
  add_filter('the_content', array($this, 'autoInsert'));
14
  class YasrPublicFilters {
15
 
16
  public function addFilters() {
 
17
  // Auto insert overall rating and visitor rating
18
  if (YASR_AUTO_INSERT_ENABLED === 1) {
19
  add_filter('the_content', array($this, 'autoInsert'));
public/yasr-public-actions.php CHANGED
@@ -48,7 +48,7 @@ function yasr_add_scripts() {
48
  wp_enqueue_script(
49
  'yasrfront',
50
  YASR_JS_DIR_INCLUDES . 'yasr-front.js',
51
- array('jquery', 'tippy', 'wp-i18n'),
52
  YASR_VERSION_NUM,
53
  true
54
  );
48
  wp_enqueue_script(
49
  'yasrfront',
50
  YASR_JS_DIR_INCLUDES . 'yasr-front.js',
51
+ array('jquery', 'tippy', 'rater', 'wp-i18n', 'wp-element'),
52
  YASR_VERSION_NUM,
53
  true
54
  );
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Yasr - Yet Another Stars Rating ===
2
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AXE284FYMNWDC
3
  Tags: rating, rate post, rate page, star rating, google rating, votes
4
- Requires at least: 4.9.0
5
  Contributors: Dudo
6
  Tested up to: 5.7
7
  Requires PHP: 5.4
8
- Stable tag: 2.6.5
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
@@ -181,6 +181,11 @@ If doesn't, you should work on your seo reputation.
181
 
182
  The full changelog can be found in the plugin's directory. Recent entries:
183
 
 
 
 
 
 
184
  = 2.6.5 =
185
  * Code cleanup and minor fixes.
186
 
1
  === Yasr - Yet Another Stars Rating ===
2
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AXE284FYMNWDC
3
  Tags: rating, rate post, rate page, star rating, google rating, votes
4
+ Requires at least: 5.0
5
  Contributors: Dudo
6
  Tested up to: 5.7
7
  Requires PHP: 5.4
8
+ Stable tag: 2.6.6
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
  Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
181
 
182
  The full changelog can be found in the plugin's directory. Recent entries:
183
 
184
+ = 2.6.6 =
185
+ * TWEAKED: settings page revamped. I'd like to heard your feedback in the forum.
186
+ * NEW FEATURE: it is now possible to add the %rating% variable when customizing the text for an user that has already rated.
187
+ * TWEAKED: added many filters (docs in the official website) and code cleanup.
188
+
189
  = 2.6.5 =
190
  * Code cleanup and minor fixes.
191
 
yet-another-stars-rating.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Yet Another Stars Rating
5
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
  * Description: Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
7
- * Version: 2.6.5
8
  * Author: Dario Curvino
9
  * Author URI: https://dariocurvino.it/
10
  * Text Domain: yet-another-stars-rating
@@ -76,7 +76,7 @@ if ( !function_exists( 'yasr_fs' ) ) {
76
  yasr_fs();
77
  // Signal that SDK was initiated.
78
  do_action( 'yasr_fs_loaded' );
79
- define( 'YASR_VERSION_NUM', '2.6.5' );
80
  //Plugin absolute path
81
  //e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
82
  define( 'YASR_ABSOLUTE_PATH', __DIR__ );
4
  * Plugin Name: Yet Another Stars Rating
5
  * Plugin URI: http://wordpress.org/plugins/yet-another-stars-rating/
6
  * Description: Boost the way people interact with your site with an easy WordPress stars rating system! With schema.org rich snippets YASR will improve your SEO
7
+ * Version: 2.6.6
8
  * Author: Dario Curvino
9
  * Author URI: https://dariocurvino.it/
10
  * Text Domain: yet-another-stars-rating
76
  yasr_fs();
77
  // Signal that SDK was initiated.
78
  do_action( 'yasr_fs_loaded' );
79
+ define( 'YASR_VERSION_NUM', '2.6.6' );
80
  //Plugin absolute path
81
  //e.g. /var/www/html/plugin_development/wp-content/plugins/yet-another-stars-rating
82
  define( 'YASR_ABSOLUTE_PATH', __DIR__ );