@fluidattacks/design 3.7.5-pr-03 → 3.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/button/index.js +1 -1
  6. package/dist/components/card/card-header/index.js +1 -1
  7. package/dist/components/card/card-with-image/index.js +1 -1
  8. package/dist/components/card/card-with-input/index.js +1 -1
  9. package/dist/components/card/card-with-options/index.d.ts +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-options/types.d.ts +5 -16
  12. package/dist/components/card/card-with-selector/index.js +1 -1
  13. package/dist/components/card/card-with-switch/index.js +1 -1
  14. package/dist/components/card/index.js +1 -1
  15. package/dist/components/carousel/index.js +1 -1
  16. package/dist/components/checkbox/index.js +1 -1
  17. package/dist/components/cloud-image/index.js +1 -1
  18. package/dist/components/code-snippet/index.js +1 -1
  19. package/dist/components/code-snippet/location-code/index.js +1 -1
  20. package/dist/components/colors/index.js +1 -1
  21. package/dist/components/columns-selector/index.d.ts +3 -0
  22. package/dist/components/columns-selector/index.js +1 -0
  23. package/dist/components/{modal/columns-modal → columns-selector}/styles.d.ts +2 -2
  24. package/dist/components/columns-selector/types.d.ts +16 -0
  25. package/dist/components/columns-selector/utils.d.ts +3 -0
  26. package/dist/components/confirm-dialog/index.js +1 -1
  27. package/dist/components/container/index.js +1 -1
  28. package/dist/components/content-card/category-tag/index.js +1 -1
  29. package/dist/components/content-card/event-date/index.js +1 -1
  30. package/dist/components/content-card/index.js +1 -1
  31. package/dist/components/content-card-carousel/index.js +1 -1
  32. package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
  33. package/dist/components/divider/index.js +1 -1
  34. package/dist/components/empty-state/empty-button/index.js +1 -1
  35. package/dist/components/empty-state/index.js +1 -1
  36. package/dist/components/file-preview/index.js +1 -1
  37. package/dist/components/form/index.d.ts +2 -2
  38. package/dist/components/form/index.js +1 -1
  39. package/dist/components/grid-container/index.js +1 -1
  40. package/dist/components/group-selector/index.js +1 -1
  41. package/dist/components/group-selector/option-container/index.js +1 -1
  42. package/dist/components/icon/index.js +1 -1
  43. package/dist/components/icon-button/index.js +1 -1
  44. package/dist/components/indicator-card/index.js +1 -1
  45. package/dist/components/info-sidebar/index.js +1 -1
  46. package/dist/components/inputs/fields/combobox/index.js +1 -1
  47. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  48. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  49. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  50. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  51. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  52. package/dist/components/inputs/fields/date/index.js +1 -1
  53. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  54. package/dist/components/inputs/fields/date-range/index.js +1 -1
  55. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  56. package/dist/components/inputs/fields/date-time/index.js +1 -1
  57. package/dist/components/inputs/fields/editable/index.js +1 -1
  58. package/dist/components/inputs/fields/input/index.js +1 -1
  59. package/dist/components/inputs/fields/input-file/index.js +1 -1
  60. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  61. package/dist/components/inputs/fields/number/index.js +1 -1
  62. package/dist/components/inputs/fields/number-range/index.js +1 -1
  63. package/dist/components/inputs/fields/phone/index.js +1 -1
  64. package/dist/components/inputs/fields/text-area/index.js +1 -1
  65. package/dist/components/inputs/index.js +1 -1
  66. package/dist/components/inputs/label/index.js +1 -1
  67. package/dist/components/inputs/outline-container/index.js +1 -1
  68. package/dist/components/inputs/utils/action-button/index.js +1 -1
  69. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  70. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  71. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  72. package/dist/components/inputs/utils/dialog/index.js +1 -1
  73. package/dist/components/inputs/utils/number-field/index.js +1 -1
  74. package/dist/components/inputs/utils/popover/index.js +1 -1
  75. package/dist/components/interactive-card/icon/index.js +1 -1
  76. package/dist/components/interactive-card/index.js +1 -1
  77. package/dist/components/language-selector/index.js +1 -1
  78. package/dist/components/language-selector/item-list/index.js +1 -1
  79. package/dist/components/layout/categories/buttons/index.js +1 -1
  80. package/dist/components/layout/categories/column/index.js +1 -1
  81. package/dist/components/layout/categories/gap/index.js +1 -1
  82. package/dist/components/layout/categories/row/index.js +1 -1
  83. package/dist/components/layout/index.js +1 -1
  84. package/dist/components/link/index.js +1 -1
  85. package/dist/components/list-item/index.js +1 -1
  86. package/dist/components/little-flag/index.js +1 -1
  87. package/dist/components/loading/index.js +1 -1
  88. package/dist/components/logo/index.js +1 -1
  89. package/dist/components/logo-carousel/index.js +1 -1
  90. package/dist/components/menu/index.js +1 -1
  91. package/dist/components/message-banner/index.js +1 -1
  92. package/dist/components/modal/columns-modal/index.d.ts +1 -1
  93. package/dist/components/modal/columns-modal/index.js +1 -1
  94. package/dist/components/modal/columns-modal/types.d.ts +4 -0
  95. package/dist/components/modal/footer/index.js +1 -1
  96. package/dist/components/modal/header/index.js +1 -1
  97. package/dist/components/modal/index.js +1 -1
  98. package/dist/components/modal/modal-confirm/index.js +1 -1
  99. package/dist/components/notification/index.js +1 -1
  100. package/dist/components/notification-sign/index.js +1 -1
  101. package/dist/components/number-input/index.js +1 -1
  102. package/dist/components/oauth-selector/index.js +1 -1
  103. package/dist/components/oauth-selector/option-container/index.js +1 -1
  104. package/dist/components/plan-card/index.js +1 -1
  105. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  106. package/dist/components/pop-up/description/index.js +1 -1
  107. package/dist/components/pop-up/index.js +1 -1
  108. package/dist/components/premium-feature/index.js +1 -1
  109. package/dist/components/priority-score/index.js +1 -1
  110. package/dist/components/progress/index.js +1 -1
  111. package/dist/components/progress-bar/index.js +1 -1
  112. package/dist/components/radio-button/index.js +1 -1
  113. package/dist/components/scroll-button/index.js +1 -1
  114. package/dist/components/search/index.js +1 -1
  115. package/dist/components/search-bar/index.js +1 -1
  116. package/dist/components/search-bar/item-searching/index.js +1 -1
  117. package/dist/components/severity-badge/index.js +1 -1
  118. package/dist/components/severity-overview/badge/index.js +1 -1
  119. package/dist/components/severity-overview/index.js +1 -1
  120. package/dist/components/show-on-hover/index.js +1 -1
  121. package/dist/components/slide-out-menu/index.js +1 -1
  122. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  123. package/dist/components/slider/index.js +1 -1
  124. package/dist/components/slider/thumb/index.js +1 -1
  125. package/dist/components/sortable-list/index.js +1 -1
  126. package/dist/components/sortable-list/types.d.ts +2 -2
  127. package/dist/components/step-lapse/index.js +1 -1
  128. package/dist/components/table-button/index.js +1 -1
  129. package/dist/components/tabs/fixed-tabs/index.js +1 -1
  130. package/dist/components/tabs/index.js +1 -1
  131. package/dist/components/tabs/tab/index.js +1 -1
  132. package/dist/components/tag/index.js +1 -1
  133. package/dist/components/timeline/card/index.js +1 -1
  134. package/dist/components/timeline/index.js +1 -1
  135. package/dist/components/toggle/index.js +1 -1
  136. package/dist/components/toggle-buttons/index.js +1 -1
  137. package/dist/components/tooltip/index.js +1 -1
  138. package/dist/components/tour/index.js +1 -1
  139. package/dist/components/typography/heading/index.js +1 -1
  140. package/dist/components/typography/index.js +1 -1
  141. package/dist/components/typography/span/index.js +1 -1
  142. package/dist/components/typography/text/index.js +1 -1
  143. package/dist/components/web-form/index.js +1 -1
  144. package/dist/{components-0sLDDJ5v.mjs → components-BNZX-y-p.mjs} +1357 -1255
  145. package/dist/{components-Deoel4ui.js → components-Bl-QJT-m.js} +273 -273
  146. package/dist/hooks/index.js +1 -1
  147. package/dist/hooks/use-columns-modal.d.ts +2 -1
  148. package/dist/index.js +1 -1
  149. package/dist/vendor-CURwPSaG.js +223 -0
  150. package/dist/{vendor-C5t6BoBf.mjs → vendor-gpQhTG0Q.mjs} +4379 -4371
  151. package/package.json +1 -1
  152. package/dist/vendor-BELJFpy_.js +0 -223
@@ -1,223 +0,0 @@
1
- "use strict";require('./assets/vendor.css');const b=require("react"),oa=require("react-dom"),Do=require("react/jsx-runtime");function AE(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const qe=AE(b),$f=AE(oa);var Xn=function(){return Xn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Xn.apply(this,arguments)};function es(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function nB(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rB=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,iB=nB(function(e){return rB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Li=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function To(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut="-ms-",Zl="-moz-",St="-webkit-",PE="comm",Bh="rule",zv="decl",oB="@import",_E="@keyframes",aB="@layer",RE=Math.abs,Wv=String.fromCharCode,ay=Object.assign;function sB(e,t){return An(e,0)^45?(((t<<2^An(e,0))<<2^An(e,1))<<2^An(e,2))<<2^An(e,3):0}function OE(e){return e.trim()}function mo(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function xf(e,t,n){return e.indexOf(t,n)}function An(e,t){return e.charCodeAt(t)|0}function yu(e,t,n){return e.slice(t,n)}function Fi(e){return e.length}function ME(e){return e.length}function Vl(e,t){return t.push(e),e}function uB(e,t){return e.map(t).join("")}function y3(e,t){return e.filter(function(n){return!mo(n,t)})}var Ih=1,vu=1,FE=0,si=0,gn=0,Nu="";function Lh(e,t,n,r,i,o,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ih,column:vu,length:a,return:"",siblings:u}}function Go(e,t){return ay(Lh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ks(e){for(;e.root;)e=Go(e.root,{children:[e]});Vl(e,e.siblings)}function lB(){return gn}function cB(){return gn=si>0?An(Nu,--si):0,vu--,gn===10&&(vu=1,Ih--),gn}function $i(){return gn=si<FE?An(Nu,si++):0,vu++,gn===10&&(vu=1,Ih++),gn}function Ya(){return An(Nu,si)}function wf(){return si}function Vh(e,t){return yu(Nu,e,t)}function sy(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dB(e){return Ih=vu=1,FE=Fi(Nu=e),si=0,[]}function fB(e){return Nu="",e}function Lm(e){return OE(Vh(si-1,uy(e===91?e+2:e===40?e+1:e)))}function hB(e){for(;(gn=Ya())&&gn<33;)$i();return sy(e)>2||sy(gn)>3?"":" "}function pB(e,t){for(;--t&&$i()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Vh(e,wf()+(t<6&&Ya()==32&&$i()==32))}function uy(e){for(;$i();)switch(gn){case e:return si;case 34:case 39:e!==34&&e!==39&&uy(gn);break;case 40:e===41&&uy(e);break;case 92:$i();break}return si}function mB(e,t){for(;$i()&&e+gn!==57;)if(e+gn===84&&Ya()===47)break;return"/*"+Vh(t,si-1)+"*"+Wv(e===47?e:$i())}function gB(e){for(;!sy(Ya());)$i();return Vh(e,si)}function yB(e){return fB(Df("",null,null,null,[""],e=dB(e),0,[0],e))}function Df(e,t,n,r,i,o,a,u,c){for(var d=0,f=0,h=a,m=0,g=0,v=0,$=1,C=1,x=1,y=0,D="",P=i,E=o,T=r,k=D;C;)switch(v=y,y=$i()){case 40:if(v!=108&&An(k,h-1)==58){xf(k+=at(Lm(y),"&","&\f"),"&\f",RE(d?u[d-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:k+=Lm(y);break;case 9:case 10:case 13:case 32:k+=hB(v);break;case 92:k+=pB(wf()-1,7);continue;case 47:switch(Ya()){case 42:case 47:Vl(vB(mB($i(),wf()),t,n,c),c);break;default:k+="/"}break;case 123*$:u[d++]=Fi(k)*x;case 125*$:case 59:case 0:switch(y){case 0:case 125:C=0;case 59+f:x==-1&&(k=at(k,/\f/g,"")),g>0&&Fi(k)-h&&Vl(g>32?b3(k+";",r,n,h-1,c):b3(at(k," ","")+";",r,n,h-2,c),c);break;case 59:k+=";";default:if(Vl(T=v3(k,t,n,d,f,i,u,D,P=[],E=[],h,o),o),y===123)if(f===0)Df(k,t,T,T,P,o,h,u,E);else switch(m===99&&An(k,3)===110?100:m){case 100:case 108:case 109:case 115:Df(e,T,T,r&&Vl(v3(e,T,T,0,0,i,u,D,i,P=[],h,E),E),i,E,h,u,r?P:E);break;default:Df(k,T,T,T,[""],E,0,u,E)}}d=f=g=0,$=x=1,D=k="",h=a;break;case 58:h=1+Fi(k),g=v;default:if($<1){if(y==123)--$;else if(y==125&&$++==0&&cB()==125)continue}switch(k+=Wv(y),y*$){case 38:x=f>0?1:(k+="\f",-1);break;case 44:u[d++]=(Fi(k)-1)*x,x=1;break;case 64:Ya()===45&&(k+=Lm($i())),m=Ya(),f=h=Fi(D=k+=gB(wf())),y++;break;case 45:v===45&&Fi(k)==2&&($=0)}}return o}function v3(e,t,n,r,i,o,a,u,c,d,f,h){for(var m=i-1,g=i===0?o:[""],v=ME(g),$=0,C=0,x=0;$<r;++$)for(var y=0,D=yu(e,m+1,m=RE(C=a[$])),P=e;y<v;++y)(P=OE(C>0?g[y]+" "+D:at(D,/&\f/g,g[y])))&&(c[x++]=P);return Lh(e,t,n,i===0?Bh:u,c,d,f,h)}function vB(e,t,n,r){return Lh(e,t,n,PE,Wv(lB()),yu(e,2,-2),0,r)}function b3(e,t,n,r,i){return Lh(e,t,n,zv,yu(e,0,r),yu(e,r+1,-1),r,i)}function kE(e,t,n){switch(sB(e,t)){case 5103:return St+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+e+e;case 4789:return Zl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Zl+e+Ut+e+e;case 5936:switch(An(e,t+11)){case 114:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+Ut+e+e;case 6165:return St+e+Ut+"flex-"+e+e;case 5187:return St+e+at(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+Ut+"flex-$1$2")+e;case 5443:return St+e+Ut+"flex-item-"+at(e,/flex-|-self/g,"")+(mo(e,/flex-|baseline/)?"":Ut+"grid-row-"+at(e,/flex-|-self/g,""))+e;case 4675:return St+e+Ut+"flex-line-pack"+at(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+Ut+at(e,"shrink","negative")+e;case 5292:return St+e+Ut+at(e,"basis","preferred-size")+e;case 6060:return St+"box-"+at(e,"-grow","")+St+e+Ut+at(e,"grow","positive")+e;case 4554:return St+at(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+Ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4200:if(!mo(e,/flex-|baseline/))return Ut+"grid-column-align"+yu(e,t)+e;break;case 2592:case 3360:return Ut+at(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,mo(r.props,/grid-\w+-end/)})?~xf(e+(n=n[t].value),"span",0)?e:Ut+at(e,"-start","")+e+Ut+"grid-row-span:"+(~xf(n,"span",0)?mo(n,/\d+/):+mo(n,/\d+/)-+mo(e,/\d+/))+";":Ut+at(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return mo(r.props,/grid-\w+-start/)})?e:Ut+at(at(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,St+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Fi(e)-1-t>6)switch(An(e,t+1)){case 109:if(An(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Zl+(An(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xf(e,"stretch",0)?kE(at(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return at(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,u,c,d){return Ut+i+":"+o+d+(a?Ut+i+"-span:"+(u?c:+c-+o)+d:"")+e});case 4949:if(An(e,t+6)===121)return at(e,":",":"+St)+e;break;case 6444:switch(An(e,An(e,14)===45?18:11)){case 120:return at(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(An(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Ut+"$2box$3")+e;case 100:return at(e,":",":"+Ut)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return at(e,"scroll-","scroll-snap-")+e}return e}function jf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function bB(e,t,n,r){switch(e.type){case aB:if(e.children.length)break;case oB:case zv:return e.return=e.return||e.value;case PE:return"";case _E:return e.return=e.value+"{"+jf(e.children,r)+"}";case Bh:if(!Fi(e.value=e.props.join(",")))return""}return Fi(n=jf(e.children,r))?e.return=e.value+"{"+n+"}":""}function $B(e){var t=ME(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function xB(e){return function(t){t.root||(t=t.return)&&e(t)}}function wB(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zv:e.return=kE(e.value,e.length,n);return;case _E:return jf([Go(e,{value:at(e.value,"@","@"+St)})],r);case Bh:if(e.length)return uB(n=e.props,function(i){switch(mo(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ks(Go(e,{props:[at(i,/:(read-\w+)/,":"+Zl+"$1")]})),Ks(Go(e,{props:[i]})),ay(e,{props:y3(n,r)});break;case"::placeholder":Ks(Go(e,{props:[at(i,/:(plac\w+)/,":"+St+"input-$1")]})),Ks(Go(e,{props:[at(i,/:(plac\w+)/,":"+Zl+"$1")]})),Ks(Go(e,{props:[at(i,/:(plac\w+)/,Ut+"input-$1")]})),Ks(Go(e,{props:[i]})),ay(e,{props:y3(n,r)});break}return""})}}var DB={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ts=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",BE="active",IE="data-styled-version",Nh="6.1.14",Hv=`/*!sc*/
2
- `,Kf=typeof window<"u"&&"HTMLElement"in window,EB=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),$3=/invalid hook call/i,Yd=new Set,CB=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
- `)+`You may see this warning because you've called styled inside another component.
4
- To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(a){for(var u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];$3.test(a)?(o=!1,Yd.delete(r)):i.apply(void 0,es([a],u,!1))},b.useRef(),o&&!Yd.has(r)&&(console.warn(r),Yd.add(r))}catch(a){$3.test(a.message)&&Yd.delete(r)}finally{console.error=i}}},jh=Object.freeze([]),bu=Object.freeze({});function SB(e,t,n){return n===void 0&&(n=bu),e.theme!==n.theme&&e.theme||t||n.theme}var ly=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),TB=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,AB=/(^-|-$)/g;function x3(e){return e.replace(TB,"-").replace(AB,"")}var PB=/(a)(d)/gi,Zd=52,w3=function(e){return String.fromCharCode(e+(e>25?39:97))};function cy(e){var t,n="";for(t=Math.abs(e);t>Zd;t=t/Zd|0)n=w3(t%Zd)+n;return(w3(t%Zd)+n).replace(PB,"$1-$2")}var Vm,LE=5381,La=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},VE=function(e){return La(LE,e)};function NE(e){return cy(VE(e)>>>0)}function jE(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Nm(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var KE=typeof Symbol=="function"&&Symbol.for,UE=KE?Symbol.for("react.memo"):60115,_B=KE?Symbol.for("react.forward_ref"):60112,RB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},OB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MB=((Vm={})[_B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vm[UE]=zE,Vm);function D3(e){return("type"in(t=e)&&t.type.$$typeof)===UE?zE:"$$typeof"in e?MB[e.$$typeof]:RB;var t}var FB=Object.defineProperty,kB=Object.getOwnPropertyNames,E3=Object.getOwnPropertySymbols,BB=Object.getOwnPropertyDescriptor,IB=Object.getPrototypeOf,C3=Object.prototype;function WE(e,t,n){if(typeof t!="string"){if(C3){var r=IB(t);r&&r!==C3&&WE(e,r,n)}var i=kB(t);E3&&(i=i.concat(E3(t)));for(var o=D3(e),a=D3(t),u=0;u<i.length;++u){var c=i[u];if(!(c in OB||n&&n[c]||a&&c in a||o&&c in o)){var d=BB(t,c);try{FB(e,c,d)}catch{}}}}return e}function ns(e){return typeof e=="function"}function Gv(e){return typeof e=="object"&&"styledComponentId"in e}function ja(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function dy(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function $u(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fy(e,t,n){if(n===void 0&&(n=!1),!n&&!$u(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=fy(e[r],t[r]);else if($u(t))for(var r in t)e[r]=fy(e[r],t[r]);return e}function qv(e,t){Object.defineProperty(e,"toString",{value:t})}var LB=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
5
-
6
- `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
7
-
8
- - Are you trying to reuse it across renders?
9
- - Are you accidentally calling collectStyles twice?
10
-
11
- `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
12
-
13
- `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
14
-
15
- - Does this error occur on the client and is your target falsy?
16
- - Does this error occur on the server and is the sheet falsy?
17
-
18
- `,5:`The clone method cannot be used on the client!
19
-
20
- - Are you running in a client-like environment on the server?
21
- - Are you trying to run SSR on the client?
22
-
23
- `,6:`Trying to insert a new style tag, but the given Node is unmounted!
24
-
25
- - Are you using a custom target that isn't mounted?
26
- - Does your document not have a valid head element?
27
- - Have you accidentally removed a style tag manually?
28
-
29
- `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
30
-
31
- `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
32
-
33
- `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
34
-
35
- `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
36
-
37
- `,14:`ThemeProvider: "theme" prop is required.
38
-
39
- `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
40
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
41
- as for instance in your render method then you may be running into this limitation.
42
-
43
- `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
44
- Has styled-components' style tag been unmounted or altered by another script?
45
- `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function VB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function zi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(VB.apply(void 0,es([LB[e]],t,!1)).trim())}var NB=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if((o<<=1)<0)throw zi(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var u=this.indexOfGroup(t+1),c=(a=0,n.length);a<c;a++)this.tag.insertRule(u,n[a])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(Hv);return n},e}(),jB=1<<30,Ef=new Map,Uf=new Map,Cf=1,Jd=function(e){if(Ef.has(e))return Ef.get(e);for(;Uf.has(Cf);)Cf++;var t=Cf++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>jB))throw zi(16,"".concat(t));return Ef.set(e,t),Uf.set(t,e),t},KB=function(e,t){Cf=t+1,Ef.set(e,t),Uf.set(t,e)},UB="style[".concat(ts,"][").concat(IE,'="').concat(Nh,'"]'),zB=new RegExp("^".concat(ts,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),WB=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},HB=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Hv),i=[],o=0,a=r.length;o<a;o++){var u=r[o].trim();if(u){var c=u.match(zB);if(c){var d=0|parseInt(c[1],10),f=c[2];d!==0&&(KB(f,d),WB(e,f,c[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}},S3=function(e){for(var t=document.querySelectorAll(UB),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(ts)!==BE&&(HB(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function GB(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var HE=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var c=Array.from(u.querySelectorAll("style[".concat(ts,"]")));return c[c.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(ts,BE),r.setAttribute(IE,Nh);var a=GB();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},qB=function(){function e(t){this.element=HE(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw zi(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),YB=function(){function e(t){this.element=HE(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),ZB=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),T3=Kf,JB={isServer:!Kf,useCSSOMInjection:!EB},GE=function(){function e(t,n,r){t===void 0&&(t=bu),n===void 0&&(n={});var i=this;this.options=Xn(Xn({},JB),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Kf&&T3&&(T3=!1,S3(this)),qv(this,function(){return function(o){for(var a=o.getTag(),u=a.length,c="",d=function(h){var m=function(x){return Uf.get(x)}(h);if(m===void 0)return"continue";var g=o.names.get(m),v=a.getGroup(h);if(g===void 0||!g.size||v.length===0)return"continue";var $="".concat(ts,".g").concat(h,'[id="').concat(m,'"]'),C="";g!==void 0&&g.forEach(function(x){x.length>0&&(C+="".concat(x,","))}),c+="".concat(v).concat($,'{content:"').concat(C,'"}').concat(Hv)},f=0;f<u;f++)d(f);return c}(i)})}return e.registerId=function(t){return Jd(t)},e.prototype.rehydrate=function(){!this.server&&Kf&&S3(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Xn(Xn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new ZB(i):r?new qB(i):new YB(i)}(this.options),new NB(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Jd(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Jd(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Jd(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),XB=/&/g,QB=/^\s*\/\/.*$/gm;function qE(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=qE(n.children,t)),n})}function eI(e){var t,n,r,i=bu,o=i.options,a=o===void 0?bu:o,u=i.plugins,c=u===void 0?jh:u,d=function(m,g,v){return v.startsWith(n)&&v.endsWith(n)&&v.replaceAll(n,"").length>0?".".concat(t):m},f=c.slice();f.push(function(m){m.type===Bh&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(XB,n).replace(r,d))}),a.prefix&&f.push(wB),f.push(bB);var h=function(m,g,v,$){g===void 0&&(g=""),v===void 0&&(v=""),$===void 0&&($="&"),t=$,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(QB,""),x=yB(v||g?"".concat(v," ").concat(g," { ").concat(C," }"):C);a.namespace&&(x=qE(x,a.namespace));var y=[];return jf(x,$B(f.concat(xB(function(D){return y.push(D)})))),y};return h.hash=c.length?c.reduce(function(m,g){return g.name||zi(15),La(m,g.name)},LE).toString():"",h}var tI=new GE,hy=eI(),YE=b.createContext({shouldForwardProp:void 0,styleSheet:tI,stylis:hy});YE.Consumer;b.createContext(void 0);function A3(){return b.useContext(YE)}var py=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=hy);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,qv(this,function(){throw zi(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=hy),this.name+t.hash},e}(),nI=function(e){return e>="A"&&e<="Z"};function P3(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;nI(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ZE=function(e){return e==null||e===!1||e===""},JE=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!ZE(o)&&(Array.isArray(o)&&o.isCss||ns(o)?r.push("".concat(P3(i),":"),o,";"):$u(o)?r.push.apply(r,es(es(["".concat(i," {")],JE(o),!1),["}"],!1)):r.push("".concat(P3(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in DB||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Za(e,t,n,r){if(ZE(e))return[];if(Gv(e))return[".".concat(e.styledComponentId)];if(ns(e)){if(!ns(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof py||$u(i)||i===null||console.error("".concat(jE(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Za(i,t,n,r)}var o;return e instanceof py?n?(e.inject(n,r),[e.getName(r)]):[e]:$u(e)?JE(e):Array.isArray(e)?Array.prototype.concat.apply(jh,e.map(function(a){return Za(a,t,n,r)})):[e.toString()]}function rI(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ns(n)&&!Gv(n))return!1}return!0}var iI=VE(Nh),oI=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&rI(t),this.componentId=n,this.baseHash=La(iI,n),this.baseStyle=r,GE.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=ja(i,this.staticRulesId);else{var o=dy(Za(this.rules,t,n,r)),a=cy(La(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var u=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,u)}i=ja(i,a),this.staticRulesId=a}else{for(var c=La(this.baseHash,r.hash),d="",f=0;f<this.rules.length;f++){var h=this.rules[f];if(typeof h=="string")d+=h,process.env.NODE_ENV!=="production"&&(c=La(c,h));else if(h){var m=dy(Za(h,t,n,r));c=La(c,m+f),d+=m}}if(d){var g=cy(c>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(d,".".concat(g),void 0,this.componentId)),i=ja(i,g)}}return i},e}(),uc=b.createContext(void 0);uc.Consumer;function aI(){var e=b.useContext(uc);if(!e)throw zi(18);return e}function sI(e){var t=b.useContext(uc),n=b.useMemo(function(){return function(r,i){if(!r)throw zi(14);if(ns(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw zi(7);return o}if(Array.isArray(r)||typeof r!="object")throw zi(8);return i?Xn(Xn({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?b.createElement(uc.Provider,{value:n},e.children):null}var jm={},_3=new Set;function uI(e,t,n){var r=Gv(e),i=e,o=!Nm(e),a=t.attrs,u=a===void 0?jh:a,c=t.componentId,d=c===void 0?function(P,E){var T=typeof P!="string"?"sc":x3(P);jm[T]=(jm[T]||0)+1;var k="".concat(T,"-").concat(NE(Nh+T+jm[T]));return E?"".concat(E,"-").concat(k):k}(t.displayName,t.parentComponentId):c,f=t.displayName,h=f===void 0?function(P){return Nm(P)?"styled.".concat(P):"Styled(".concat(jE(P),")")}(e):f,m=t.displayName&&t.componentId?"".concat(x3(t.displayName),"-").concat(t.componentId):t.componentId||d,g=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,v=t.shouldForwardProp;if(r&&i.shouldForwardProp){var $=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;v=function(P,E){return $(P,E)&&C(P,E)}}else v=$}var x=new oI(n,m,r?i.componentStyle:void 0);function y(P,E){return function(T,k,S){var U=T.attrs,O=T.componentStyle,F=T.defaultProps,G=T.foldedComponentIds,K=T.styledComponentId,W=T.target,j=b.useContext(uc),L=A3(),_=T.shouldForwardProp||L.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(K);var M=SB(k,j,F)||bu,Y=function(ie,Ee,$e){for(var ne,ye=Xn(Xn({},Ee),{className:void 0,theme:$e}),xe=0;xe<ie.length;xe+=1){var he=ns(ne=ie[xe])?ne(ye):ne;for(var le in he)ye[le]=le==="className"?ja(ye[le],he[le]):le==="style"?Xn(Xn({},ye[le]),he[le]):he[le]}return Ee.className&&(ye.className=ja(ye.className,Ee.className)),ye}(U,k,M),V=Y.as||W,z={};for(var re in Y)Y[re]===void 0||re[0]==="$"||re==="as"||re==="theme"&&Y.theme===M||(re==="forwardedAs"?z.as=Y.forwardedAs:_&&!_(re,V)||(z[re]=Y[re],_||process.env.NODE_ENV!=="development"||iB(re)||_3.has(re)||!ly.has(V)||(_3.add(re),console.warn('styled-components: it looks like an unknown prop "'.concat(re,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var oe=function(ie,Ee){var $e=A3(),ne=ie.generateAndInjectStyles(Ee,$e.styleSheet,$e.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue(ne),ne}(O,Y);process.env.NODE_ENV!=="production"&&T.warnTooManyClasses&&T.warnTooManyClasses(oe);var fe=ja(G,K);return oe&&(fe+=" "+oe),Y.className&&(fe+=" "+Y.className),z[Nm(V)&&!ly.has(V)?"class":"className"]=fe,S&&(z.ref=S),b.createElement(V,z)}(D,P,E)}y.displayName=h;var D=b.forwardRef(y);return D.attrs=g,D.componentStyle=x,D.displayName=h,D.shouldForwardProp=v,D.foldedComponentIds=r?ja(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=m,D.target=r?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?function(E){for(var T=[],k=1;k<arguments.length;k++)T[k-1]=arguments[k];for(var S=0,U=T;S<U.length;S++)fy(E,U[S],!0);return E}({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(CB(h,m),D.warnTooManyClasses=function(P,E){var T={},k=!1;return function(S){if(!k&&(T[S]=!0,Object.keys(T).length>=200)){var U=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(P).concat(U,`.
46
- `)+`Consider using the attrs method, together with a style object for frequently changed styles.
47
- Example:
48
- const Component = styled.div.attrs(props => ({
49
- style: {
50
- background: props.background,
51
- },
52
- }))\`width: 100%;\`
53
-
54
- <Component />`),k=!0,T={}}}}(h,m)),qv(D,function(){return".".concat(D.styledComponentId)}),o&&WE(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function R3(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var O3=function(e){return Object.assign(e,{isCss:!0})};function Yv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ns(e)||$u(e))return O3(Za(R3(jh,es([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Za(r):O3(Za(R3(r,t)))}function my(e,t,n){if(n===void 0&&(n=bu),!t)throw zi(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Yv.apply(void 0,es([i],o,!1)))};return r.attrs=function(i){return my(e,t,Xn(Xn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return my(e,t,Xn(Xn({},n),i))},r}var XE=function(e){return my(uI,e)},QE=XE;ly.forEach(function(e){QE[e]=XE(e)});function lI(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=dy(Yv.apply(void 0,es([e],t,!1))),i=NE(r);return new py(i,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
55
- Perhaps you're looking to import 'styled-components/native'?
56
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Xd="__sc-".concat(ts,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Xd]||(window[Xd]=0),window[Xd]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
57
-
58
- See https://s-c.sh/2BAXzed for more info.`),window[Xd]+=1);const xu=Math.min,Ja=Math.max,zf=Math.round,Qd=Math.floor,Wi=e=>({x:e,y:e}),cI={left:"right",right:"left",bottom:"top",top:"bottom"},dI={start:"end",end:"start"};function gy(e,t,n){return Ja(e,xu(t,n))}function Ac(e,t){return typeof e=="function"?e(t):e}function rs(e){return e.split("-")[0]}function Pc(e){return e.split("-")[1]}function eC(e){return e==="x"?"y":"x"}function Zv(e){return e==="y"?"height":"width"}function wu(e){return["top","bottom"].includes(rs(e))?"y":"x"}function Jv(e){return eC(wu(e))}function fI(e,t,n){n===void 0&&(n=!1);const r=Pc(e),i=Jv(e),o=Zv(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Wf(a)),[a,Wf(a)]}function hI(e){const t=Wf(e);return[yy(e),t,yy(t)]}function yy(e){return e.replace(/start|end/g,t=>dI[t])}function pI(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function mI(e,t,n,r){const i=Pc(e);let o=pI(rs(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(yy)))),o}function Wf(e){return e.replace(/left|right|bottom|top/g,t=>cI[t])}function gI(e){return{top:0,right:0,bottom:0,left:0,...e}}function tC(e){return typeof e!="number"?gI(e):{top:e,right:e,bottom:e,left:e}}function Hf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function M3(e,t,n){let{reference:r,floating:i}=e;const o=wu(t),a=Jv(t),u=Zv(a),c=rs(t),d=o==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[u]/2-i[u]/2;let g;switch(c){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(Pc(t)){case"start":g[a]-=m*(n&&d?-1:1);break;case"end":g[a]+=m*(n&&d?-1:1);break}return g}const yI=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,u=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=M3(d,r,c),m=r,g={},v=0;for(let $=0;$<u.length;$++){const{name:C,fn:x}=u[$],{x:y,y:D,data:P,reset:E}=await x({x:f,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});f=y??f,h=D??h,g={...g,[C]:{...g[C],...P}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:f,y:h}=M3(d,m,c)),$=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:g}};async function nC(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:u,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=Ac(t,e),v=tC(g),C=u[m?h==="floating"?"reference":"floating":h],x=Hf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:d,rootBoundary:f,strategy:c})),y=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),P=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},E=Hf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:D,strategy:c}):y);return{top:(x.top-E.top+v.top)/P.y,bottom:(E.bottom-x.bottom+v.bottom)/P.y,left:(x.left-E.left+v.left)/P.x,right:(E.right-x.right+v.right)/P.x}}const vI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=Ac(e,t)||{};if(d==null)return{};const h=tC(f),m={x:n,y:r},g=Jv(i),v=Zv(g),$=await a.getDimensions(d),C=g==="y",x=C?"top":"left",y=C?"bottom":"right",D=C?"clientHeight":"clientWidth",P=o.reference[v]+o.reference[g]-m[g]-o.floating[v],E=m[g]-o.reference[g],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let k=T?T[D]:0;(!k||!await(a.isElement==null?void 0:a.isElement(T)))&&(k=u.floating[D]||o.floating[v]);const S=P/2-E/2,U=k/2-$[v]/2-1,O=xu(h[x],U),F=xu(h[y],U),G=O,K=k-$[v]-F,W=k/2-$[v]/2+S,j=gy(G,W,K),L=!c.arrow&&Pc(i)!=null&&W!==j&&o.reference[v]/2-(W<G?O:F)-$[v]/2<0,_=L?W<G?W-G:W-K:0;return{[g]:m[g]+_,data:{[g]:j,centerOffset:W-j-_,...L&&{alignmentOffset:_}},reset:L}}}),bI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:$=!0,...C}=Ac(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=rs(i),y=wu(u),D=rs(u)===u,P=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=m||(D||!$?[Wf(u)]:hI(u)),T=v!=="none";!m&&T&&E.push(...mI(u,$,v,P));const k=[u,...E],S=await nC(t,C),U=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&U.push(S[x]),h){const W=fI(i,a,P);U.push(S[W[0]],S[W[1]])}if(O=[...O,{placement:i,overflows:U}],!U.every(W=>W<=0)){var F,G;const W=(((F=o.flip)==null?void 0:F.index)||0)+1,j=k[W];if(j)return{data:{index:W,overflows:O},reset:{placement:j}};let L=(G=O.filter(_=>_.overflows[0]<=0).sort((_,M)=>_.overflows[1]-M.overflows[1])[0])==null?void 0:G.placement;if(!L)switch(g){case"bestFit":{var K;const _=(K=O.filter(M=>{if(T){const Y=wu(M.placement);return Y===y||Y==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(Y=>Y>0).reduce((Y,V)=>Y+V,0)]).sort((M,Y)=>M[1]-Y[1])[0])==null?void 0:K[0];_&&(L=_);break}case"initialPlacement":L=u;break}if(i!==L)return{reset:{placement:L}}}return{}}}};async function $I(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=rs(n),u=Pc(n),c=wu(n)==="y",d=["left","top"].includes(a)?-1:1,f=o&&c?-1:1,h=Ac(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof v=="number"&&(g=u==="end"?v*-1:v),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const xI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:u}=t,c=await $I(t,e);return a===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},wI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:u={fn:C=>{let{x,y}=C;return{x,y}}},...c}=Ac(e,t),d={x:n,y:r},f=await nC(t,c),h=wu(rs(i)),m=eC(h);let g=d[m],v=d[h];if(o){const C=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=g+f[C],D=g-f[x];g=gy(y,g,D)}if(a){const C=h==="y"?"top":"left",x=h==="y"?"bottom":"right",y=v+f[C],D=v-f[x];v=gy(y,v,D)}const $=u.fn({...t,[m]:g,[h]:v});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[m]:o,[h]:a}}}}}};function Kh(){return typeof window<"u"}function ju(e){return rC(e)?(e.nodeName||"").toLowerCase():"#document"}function Or(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ji(e){var t;return(t=(rC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rC(e){return Kh()?e instanceof Node||e instanceof Or(e).Node:!1}function xi(e){return Kh()?e instanceof Element||e instanceof Or(e).Element:!1}function Yi(e){return Kh()?e instanceof HTMLElement||e instanceof Or(e).HTMLElement:!1}function F3(e){return!Kh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Or(e).ShadowRoot}function _c(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function DI(e){return["table","td","th"].includes(ju(e))}function Uh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xv(e){const t=Qv(),n=xi(e)?wi(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function EI(e){let t=ca(e);for(;Yi(t)&&!Du(t);){if(Xv(t))return t;if(Uh(t))return null;t=ca(t)}return null}function Qv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Du(e){return["html","body","#document"].includes(ju(e))}function wi(e){return Or(e).getComputedStyle(e)}function zh(e){return xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ca(e){if(ju(e)==="html")return e;const t=e.assignedSlot||e.parentNode||F3(e)&&e.host||Ji(e);return F3(t)?t.host:t}function iC(e){const t=ca(e);return Du(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yi(t)&&_c(t)?t:iC(t)}function lc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=iC(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Or(i);if(o){const u=vy(a);return t.concat(a,a.visualViewport||[],_c(i)?i:[],u&&n?lc(u):[])}return t.concat(i,lc(i,[],n))}function vy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oC(e){const t=wi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Yi(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=zf(n)!==o||zf(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function eb(e){return xi(e)?e:e.contextElement}function lu(e){const t=eb(e);if(!Yi(t))return Wi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=oC(t);let a=(o?zf(n.width):n.width)/r,u=(o?zf(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const CI=Wi(0);function aC(e){const t=Or(e);return!Qv()||!t.visualViewport?CI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Or(e)?!1:t}function is(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=eb(e);let a=Wi(1);t&&(r?xi(r)&&(a=lu(r)):a=lu(e));const u=SI(o,n,r)?aC(o):Wi(0);let c=(i.left+u.x)/a.x,d=(i.top+u.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(o){const m=Or(o),g=r&&xi(r)?Or(r):r;let v=m,$=vy(v);for(;$&&r&&g!==v;){const C=lu($),x=$.getBoundingClientRect(),y=wi($),D=x.left+($.clientLeft+parseFloat(y.paddingLeft))*C.x,P=x.top+($.clientTop+parseFloat(y.paddingTop))*C.y;c*=C.x,d*=C.y,f*=C.x,h*=C.y,c+=D,d+=P,v=Or($),$=vy(v)}}return Hf({width:f,height:h,x:c,y:d})}function tb(e,t){const n=zh(e).scrollLeft;return t?t.left+n:is(Ji(e)).left+n}function sC(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:tb(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function TI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Ji(r),u=t?Uh(t.floating):!1;if(r===a||u&&o)return n;let c={scrollLeft:0,scrollTop:0},d=Wi(1);const f=Wi(0),h=Yi(r);if((h||!h&&!o)&&((ju(r)!=="body"||_c(a))&&(c=zh(r)),Yi(r))){const g=is(r);d=lu(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=a&&!h&&!o?sC(a,c,!0):Wi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function AI(e){return Array.from(e.getClientRects())}function PI(e){const t=Ji(e),n=zh(e),r=e.ownerDocument.body,i=Ja(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ja(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tb(e);const u=-n.scrollTop;return wi(r).direction==="rtl"&&(a+=Ja(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:u}}function _I(e,t){const n=Or(e),r=Ji(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,u=0,c=0;if(i){o=i.width,a=i.height;const d=Qv();(!d||d&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:u,y:c}}function RI(e,t){const n=is(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Yi(e)?lu(e):Wi(1),a=e.clientWidth*o.x,u=e.clientHeight*o.y,c=i*o.x,d=r*o.y;return{width:a,height:u,x:c,y:d}}function k3(e,t,n){let r;if(t==="viewport")r=_I(e,n);else if(t==="document")r=PI(Ji(e));else if(xi(t))r=RI(t,n);else{const i=aC(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Hf(r)}function uC(e,t){const n=ca(e);return n===t||!xi(n)||Du(n)?!1:wi(n).position==="fixed"||uC(n,t)}function OI(e,t){const n=t.get(e);if(n)return n;let r=lc(e,[],!1).filter(u=>xi(u)&&ju(u)!=="body"),i=null;const o=wi(e).position==="fixed";let a=o?ca(e):e;for(;xi(a)&&!Du(a);){const u=wi(a),c=Xv(a);!c&&u.position==="fixed"&&(i=null),(o?!c&&!i:!c&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||_c(a)&&!c&&uC(e,a))?r=r.filter(f=>f!==a):i=u,a=ca(a)}return t.set(e,r),r}function MI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Uh(t)?[]:OI(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((d,f)=>{const h=k3(t,f,i);return d.top=Ja(h.top,d.top),d.right=xu(h.right,d.right),d.bottom=xu(h.bottom,d.bottom),d.left=Ja(h.left,d.left),d},k3(t,u,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function FI(e){const{width:t,height:n}=oC(e);return{width:t,height:n}}function kI(e,t,n){const r=Yi(t),i=Ji(t),o=n==="fixed",a=is(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const c=Wi(0);if(r||!r&&!o)if((ju(t)!=="body"||_c(i))&&(u=zh(t)),r){const m=is(t,!0,o,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else i&&(c.x=tb(i));const d=i&&!r&&!o?sC(i,u):Wi(0),f=a.left+u.scrollLeft-c.x-d.x,h=a.top+u.scrollTop-c.y-d.y;return{x:f,y:h,width:a.width,height:a.height}}function Km(e){return wi(e).position==="static"}function B3(e,t){if(!Yi(e)||wi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ji(e)===n&&(n=n.ownerDocument.body),n}function lC(e,t){const n=Or(e);if(Uh(e))return n;if(!Yi(e)){let i=ca(e);for(;i&&!Du(i);){if(xi(i)&&!Km(i))return i;i=ca(i)}return n}let r=B3(e,t);for(;r&&DI(r)&&Km(r);)r=B3(r,t);return r&&Du(r)&&Km(r)&&!Xv(r)?n:r||EI(e)||n}const BI=async function(e){const t=this.getOffsetParent||lC,n=this.getDimensions,r=await n(e.floating);return{reference:kI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function II(e){return wi(e).direction==="rtl"}const LI={convertOffsetParentRelativeRectToViewportRelativeRect:TI,getDocumentElement:Ji,getClippingRect:MI,getOffsetParent:lC,getElementRects:BI,getClientRects:AI,getDimensions:FI,getScale:lu,isElement:xi,isRTL:II};function cC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function VI(e,t){let n=null,r;const i=Ji(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;const v=Qd(h),$=Qd(i.clientWidth-(f+m)),C=Qd(i.clientHeight-(h+g)),x=Qd(f),D={rootMargin:-v+"px "+-$+"px "+-C+"px "+-x+"px",threshold:Ja(0,xu(1,c))||1};let P=!0;function E(T){const k=T[0].intersectionRatio;if(k!==c){if(!P)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!cC(d,e.getBoundingClientRect())&&a(),P=!1}try{n=new IntersectionObserver(E,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,D)}n.observe(e)}return a(!0),o}function dC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=eb(e),f=i||o?[...d?lc(d):[],...lc(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const h=d&&u?VI(d,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var D;(D=g)==null||D.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let v,$=c?is(e):null;c&&C();function C(){const x=is(e);$&&!cC($,x)&&n(),$=x,v=requestAnimationFrame(C)}return n(),()=>{var x;f.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),h==null||h(),(x=g)==null||x.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const fC=xI,NI=wI,hC=bI,jI=vI,by=(e,t,n)=>{const r=new Map,i={platform:LI,...n},o={...i.platform,_c:r};return yI(e,t,{...i,platform:o})};var Sf=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Gf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Gf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Gf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function pC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function I3(e,t){const n=pC(e);return Math.round(t*n)/n}function Um(e){const t=qe.useRef(e);return Sf(()=>{t.current=e}),t}function KI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,h]=qe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=qe.useState(r);Gf(m,r)||g(r);const[v,$]=qe.useState(null),[C,x]=qe.useState(null),y=qe.useCallback(M=>{M!==T.current&&(T.current=M,$(M))},[]),D=qe.useCallback(M=>{M!==k.current&&(k.current=M,x(M))},[]),P=o||v,E=a||C,T=qe.useRef(null),k=qe.useRef(null),S=qe.useRef(f),U=c!=null,O=Um(c),F=Um(i),G=Um(d),K=qe.useCallback(()=>{if(!T.current||!k.current)return;const M={placement:t,strategy:n,middleware:m};F.current&&(M.platform=F.current),by(T.current,k.current,M).then(Y=>{const V={...Y,isPositioned:G.current!==!1};W.current&&!Gf(S.current,V)&&(S.current=V,$f.flushSync(()=>{h(V)}))})},[m,t,n,F,G]);Sf(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(M=>({...M,isPositioned:!1})))},[d]);const W=qe.useRef(!1);Sf(()=>(W.current=!0,()=>{W.current=!1}),[]),Sf(()=>{if(P&&(T.current=P),E&&(k.current=E),P&&E){if(O.current)return O.current(P,E,K);K()}},[P,E,K,O,U]);const j=qe.useMemo(()=>({reference:T,floating:k,setReference:y,setFloating:D}),[y,D]),L=qe.useMemo(()=>({reference:P,floating:E}),[P,E]),_=qe.useMemo(()=>{const M={position:n,left:0,top:0};if(!L.floating)return M;const Y=I3(L.floating,f.x),V=I3(L.floating,f.y);return u?{...M,transform:"translate("+Y+"px, "+V+"px)",...pC(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:V}},[n,u,L.floating,f.x,f.y]);return qe.useMemo(()=>({...f,update:K,refs:j,elements:L,floatingStyles:_}),[f,K,j,L,_])}const UI=(e,t)=>({...fC(e),options:[e,t]}),zI=(e,t)=>({...hC(e),options:[e,t]});var Nl={exports:{}};/**
59
- * @license
60
- * Lodash <https://lodash.com/>
61
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
62
- * Released under MIT license <https://lodash.com/license>
63
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
64
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
65
- */var WI=Nl.exports,L3;function HI(){return L3||(L3=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,m=2,g=4,v=1,$=2,C=1,x=2,y=4,D=8,P=16,E=32,T=64,k=128,S=256,U=512,O=30,F="...",G=800,K=16,W=1,j=2,L=3,_=1/0,M=9007199254740991,Y=17976931348623157e292,V=NaN,z=4294967295,re=z-1,oe=z>>>1,fe=[["ary",k],["bind",C],["bindKey",x],["curry",D],["curryRight",P],["flip",U],["partial",E],["partialRight",T],["rearg",S]],ie="[object Arguments]",Ee="[object Array]",$e="[object AsyncFunction]",ne="[object Boolean]",ye="[object Date]",xe="[object DOMException]",he="[object Error]",le="[object Function]",Fe="[object GeneratorFunction]",et="[object Map]",dt="[object Number]",Dn="[object Null]",yt="[object Object]",q="[object Promise]",Z="[object Proxy]",te="[object RegExp]",pe="[object Set]",Ce="[object String]",De="[object Symbol]",_e="[object Undefined]",Ve="[object WeakMap]",mt="[object WeakSet]",ut="[object ArrayBuffer]",Rt="[object DataView]",Pn="[object Float32Array]",_n="[object Float64Array]",Yt="[object Int8Array]",Ln="[object Int16Array]",tn="[object Int32Array]",vt="[object Uint8Array]",Vn="[object Uint8ClampedArray]",Cr="[object Uint16Array]",Rn="[object Uint32Array]",er=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nn=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,Ir=RegExp(Nn.source),Vt=RegExp(En.source),Cn=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,nn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fr=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Ye=RegExp(je.source),Ft=/^\s+/,rn=/\s/,jn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wt=/[()=,{}\[\]\/\s]/,li=/\\(\\)?/g,va=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hr=/\w*$/,Ro=/^[-+]0x[0-9a-f]+$/i,Oo=/^0b[01]+$/i,Mo=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,nr=/^(?:0|[1-9]\d*)$/,pr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Fo=/['\n\r\u2028\u2029\\]/g,Lr="\\ud800-\\udfff",tl="\\u0300-\\u036f",bs="\\ufe20-\\ufe2f",nl="\\u20d0-\\u20ff",ko=tl+bs+nl,Ai="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",$a="\\xac\\xb1\\xd7\\xf7",$s="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xs="\\u2000-\\u206f",rl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ws="A-Z\\xc0-\\xd6\\xd8-\\xde",xa="\\ufe0e\\ufe0f",Ds=$a+$s+xs+rl,Qi="['’]",il="["+Lr+"]",Es="["+Ds+"]",Bo="["+ko+"]",Cs="\\d+",B="["+Ai+"]",X="["+ba+"]",ue="[^"+Lr+Ds+Cs+Ai+ba+ws+"]",be="\\ud83c[\\udffb-\\udfff]",Re="(?:"+Bo+"|"+be+")",it="[^"+Lr+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+ws+"]",Wt="\\u200d",Mn="(?:"+X+"|"+ue+")",Fn="(?:"+Ot+"|"+ue+")",Vr="(?:"+Qi+"(?:d|ll|m|re|s|t|ve))?",rr="(?:"+Qi+"(?:D|LL|M|RE|S|T|VE))?",Ss=Re+"?",wa="["+xa+"]?",Da="(?:"+Wt+"(?:"+[it,Ke,ze].join("|")+")"+wa+Ss+")*",eo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_p="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ol=wa+Ss+Da,Rp="(?:"+[B,Ke,ze].join("|")+")"+ol,al="(?:"+[it+Bo+"?",Bo,Ke,ze,il].join("|")+")",ud=RegExp(Qi,"g"),Op=RegExp(Bo,"g"),sl=RegExp(be+"(?="+be+")|"+al+ol,"g"),ld=RegExp([Ot+"?"+X+"+"+Vr+"(?="+[Es,Ot,"$"].join("|")+")",Fn+"+"+rr+"(?="+[Es,Ot+Mn,"$"].join("|")+")",Ot+"?"+Mn+"+"+Vr,Ot+"+"+rr,_p,eo,Cs,Rp].join("|"),"g"),Mp=RegExp("["+Wt+Lr+ko+xa+"]"),Ts=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ul=-1,Bt={};Bt[Pn]=Bt[_n]=Bt[Yt]=Bt[Ln]=Bt[tn]=Bt[vt]=Bt[Vn]=Bt[Cr]=Bt[Rn]=!0,Bt[ie]=Bt[Ee]=Bt[ut]=Bt[ne]=Bt[Rt]=Bt[ye]=Bt[he]=Bt[le]=Bt[et]=Bt[dt]=Bt[yt]=Bt[te]=Bt[pe]=Bt[Ce]=Bt[Ve]=!1;var Mt={};Mt[ie]=Mt[Ee]=Mt[ut]=Mt[Rt]=Mt[ne]=Mt[ye]=Mt[Pn]=Mt[_n]=Mt[Yt]=Mt[Ln]=Mt[tn]=Mt[et]=Mt[dt]=Mt[yt]=Mt[te]=Mt[pe]=Mt[Ce]=Mt[De]=Mt[vt]=Mt[Vn]=Mt[Cr]=Mt[Rn]=!0,Mt[he]=Mt[le]=Mt[Ve]=!1;var N={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ae={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ve={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yn=parseFloat,Un=parseInt,Nr=typeof Li=="object"&&Li&&Li.Object===Object&&Li,zn=typeof self=="object"&&self&&self.Object===Object&&self,pn=Nr||zn||Function("return this")(),Pi=t&&!t.nodeType&&t,_i=Pi&&!0&&e&&!e.nodeType&&e,ll=_i&&_i.exports===Pi,As=ll&&Nr.process,Wn=function(){try{var Q=_i&&_i.require&&_i.require("util").types;return Q||As&&As.binding&&As.binding("util")}catch{}}(),Ea=Wn&&Wn.isArrayBuffer,h1=Wn&&Wn.isDate,p1=Wn&&Wn.isMap,m1=Wn&&Wn.isRegExp,g1=Wn&&Wn.isSet,y1=Wn&&Wn.isTypedArray;function Sr(Q,de,se){switch(se.length){case 0:return Q.call(de);case 1:return Q.call(de,se[0]);case 2:return Q.call(de,se[0],se[1]);case 3:return Q.call(de,se[0],se[1],se[2])}return Q.apply(de,se)}function CR(Q,de,se,Me){for(var Je=-1,bt=Q==null?0:Q.length;++Je<bt;){var vn=Q[Je];de(Me,vn,se(vn),Q)}return Me}function jr(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me&&de(Q[se],se,Q)!==!1;);return Q}function SR(Q,de){for(var se=Q==null?0:Q.length;se--&&de(Q[se],se,Q)!==!1;);return Q}function v1(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me;)if(!de(Q[se],se,Q))return!1;return!0}function Io(Q,de){for(var se=-1,Me=Q==null?0:Q.length,Je=0,bt=[];++se<Me;){var vn=Q[se];de(vn,se,Q)&&(bt[Je++]=vn)}return bt}function cd(Q,de){var se=Q==null?0:Q.length;return!!se&&Ps(Q,de,0)>-1}function kp(Q,de,se){for(var Me=-1,Je=Q==null?0:Q.length;++Me<Je;)if(se(de,Q[Me]))return!0;return!1}function Ht(Q,de){for(var se=-1,Me=Q==null?0:Q.length,Je=Array(Me);++se<Me;)Je[se]=de(Q[se],se,Q);return Je}function Lo(Q,de){for(var se=-1,Me=de.length,Je=Q.length;++se<Me;)Q[Je+se]=de[se];return Q}function Bp(Q,de,se,Me){var Je=-1,bt=Q==null?0:Q.length;for(Me&&bt&&(se=Q[++Je]);++Je<bt;)se=de(se,Q[Je],Je,Q);return se}function TR(Q,de,se,Me){var Je=Q==null?0:Q.length;for(Me&&Je&&(se=Q[--Je]);Je--;)se=de(se,Q[Je],Je,Q);return se}function Ip(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me;)if(de(Q[se],se,Q))return!0;return!1}var AR=Lp("length");function PR(Q){return Q.split("")}function _R(Q){return Q.match(kt)||[]}function b1(Q,de,se){var Me;return se(Q,function(Je,bt,vn){if(de(Je,bt,vn))return Me=bt,!1}),Me}function dd(Q,de,se,Me){for(var Je=Q.length,bt=se+(Me?1:-1);Me?bt--:++bt<Je;)if(de(Q[bt],bt,Q))return bt;return-1}function Ps(Q,de,se){return de===de?KR(Q,de,se):dd(Q,$1,se)}function RR(Q,de,se,Me){for(var Je=se-1,bt=Q.length;++Je<bt;)if(Me(Q[Je],de))return Je;return-1}function $1(Q){return Q!==Q}function x1(Q,de){var se=Q==null?0:Q.length;return se?Np(Q,de)/se:V}function Lp(Q){return function(de){return de==null?n:de[Q]}}function Vp(Q){return function(de){return Q==null?n:Q[de]}}function w1(Q,de,se,Me,Je){return Je(Q,function(bt,vn,It){se=Me?(Me=!1,bt):de(se,bt,vn,It)}),se}function OR(Q,de){var se=Q.length;for(Q.sort(de);se--;)Q[se]=Q[se].value;return Q}function Np(Q,de){for(var se,Me=-1,Je=Q.length;++Me<Je;){var bt=de(Q[Me]);bt!==n&&(se=se===n?bt:se+bt)}return se}function jp(Q,de){for(var se=-1,Me=Array(Q);++se<Q;)Me[se]=de(se);return Me}function MR(Q,de){return Ht(de,function(se){return[se,Q[se]]})}function D1(Q){return Q&&Q.slice(0,T1(Q)+1).replace(Ft,"")}function Tr(Q){return function(de){return Q(de)}}function Kp(Q,de){return Ht(de,function(se){return Q[se]})}function cl(Q,de){return Q.has(de)}function E1(Q,de){for(var se=-1,Me=Q.length;++se<Me&&Ps(de,Q[se],0)>-1;);return se}function C1(Q,de){for(var se=Q.length;se--&&Ps(de,Q[se],0)>-1;);return se}function FR(Q,de){for(var se=Q.length,Me=0;se--;)Q[se]===de&&++Me;return Me}var kR=Vp(N),BR=Vp(ae);function IR(Q){return"\\"+Ie[Q]}function LR(Q,de){return Q==null?n:Q[de]}function _s(Q){return Mp.test(Q)}function VR(Q){return Ts.test(Q)}function NR(Q){for(var de,se=[];!(de=Q.next()).done;)se.push(de.value);return se}function Up(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me,Je){se[++de]=[Je,Me]}),se}function S1(Q,de){return function(se){return Q(de(se))}}function Vo(Q,de){for(var se=-1,Me=Q.length,Je=0,bt=[];++se<Me;){var vn=Q[se];(vn===de||vn===f)&&(Q[se]=f,bt[Je++]=se)}return bt}function fd(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me){se[++de]=Me}),se}function jR(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me){se[++de]=[Me,Me]}),se}function KR(Q,de,se){for(var Me=se-1,Je=Q.length;++Me<Je;)if(Q[Me]===de)return Me;return-1}function UR(Q,de,se){for(var Me=se+1;Me--;)if(Q[Me]===de)return Me;return Me}function Rs(Q){return _s(Q)?WR(Q):AR(Q)}function ci(Q){return _s(Q)?HR(Q):PR(Q)}function T1(Q){for(var de=Q.length;de--&&rn.test(Q.charAt(de)););return de}var zR=Vp(ve);function WR(Q){for(var de=sl.lastIndex=0;sl.test(Q);)++de;return de}function HR(Q){return Q.match(sl)||[]}function GR(Q){return Q.match(ld)||[]}var qR=function Q(de){de=de==null?pn:Os.defaults(pn.Object(),de,Os.pick(pn,Fp));var se=de.Array,Me=de.Date,Je=de.Error,bt=de.Function,vn=de.Math,It=de.Object,zp=de.RegExp,YR=de.String,Kr=de.TypeError,hd=se.prototype,ZR=bt.prototype,Ms=It.prototype,pd=de["__core-js_shared__"],md=ZR.toString,At=Ms.hasOwnProperty,JR=0,A1=function(){var s=/[^.]+$/.exec(pd&&pd.keys&&pd.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),gd=Ms.toString,XR=md.call(It),QR=pn._,eO=zp("^"+md.call(At).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yd=ll?de.Buffer:n,No=de.Symbol,vd=de.Uint8Array,P1=yd?yd.allocUnsafe:n,bd=S1(It.getPrototypeOf,It),_1=It.create,R1=Ms.propertyIsEnumerable,$d=hd.splice,O1=No?No.isConcatSpreadable:n,dl=No?No.iterator:n,Ca=No?No.toStringTag:n,xd=function(){try{var s=_a(It,"defineProperty");return s({},"",{}),s}catch{}}(),tO=de.clearTimeout!==pn.clearTimeout&&de.clearTimeout,nO=Me&&Me.now!==pn.Date.now&&Me.now,rO=de.setTimeout!==pn.setTimeout&&de.setTimeout,wd=vn.ceil,Dd=vn.floor,Wp=It.getOwnPropertySymbols,iO=yd?yd.isBuffer:n,M1=de.isFinite,oO=hd.join,aO=S1(It.keys,It),bn=vn.max,Hn=vn.min,sO=Me.now,uO=de.parseInt,F1=vn.random,lO=hd.reverse,Hp=_a(de,"DataView"),fl=_a(de,"Map"),Gp=_a(de,"Promise"),Fs=_a(de,"Set"),hl=_a(de,"WeakMap"),pl=_a(It,"create"),Ed=hl&&new hl,ks={},cO=Ra(Hp),dO=Ra(fl),fO=Ra(Gp),hO=Ra(Fs),pO=Ra(hl),Cd=No?No.prototype:n,ml=Cd?Cd.valueOf:n,k1=Cd?Cd.toString:n;function R(s){if(on(s)&&!Xe(s)&&!(s instanceof ft)){if(s instanceof Ur)return s;if(At.call(s,"__wrapped__"))return B4(s)}return new Ur(s)}var Bs=function(){function s(){}return function(l){if(!Zt(l))return{};if(_1)return _1(l);s.prototype=l;var p=new s;return s.prototype=n,p}}();function Sd(){}function Ur(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}R.templateSettings={escape:Cn,evaluate:Ne,interpolate:tt,variable:"",imports:{_:R}},R.prototype=Sd.prototype,R.prototype.constructor=R,Ur.prototype=Bs(Sd.prototype),Ur.prototype.constructor=Ur;function ft(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function mO(){var s=new ft(this.__wrapped__);return s.__actions__=mr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=mr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=mr(this.__views__),s}function gO(){if(this.__filtered__){var s=new ft(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function yO(){var s=this.__wrapped__.value(),l=this.__dir__,p=Xe(s),w=l<0,A=p?s.length:0,I=PM(0,A,this.__views__),H=I.start,J=I.end,ee=J-H,me=w?J:H-1,ge=this.__iteratees__,we=ge.length,Pe=0,Le=Hn(ee,this.__takeCount__);if(!p||!w&&A==ee&&Le==ee)return o4(s,this.__actions__);var We=[];e:for(;ee--&&Pe<Le;){me+=l;for(var ot=-1,He=s[me];++ot<we;){var lt=ge[ot],ht=lt.iteratee,_r=lt.type,ar=ht(He);if(_r==j)He=ar;else if(!ar){if(_r==W)continue e;break e}}We[Pe++]=He}return We}ft.prototype=Bs(Sd.prototype),ft.prototype.constructor=ft;function Sa(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function vO(){this.__data__=pl?pl(null):{},this.size=0}function bO(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function $O(s){var l=this.__data__;if(pl){var p=l[s];return p===c?n:p}return At.call(l,s)?l[s]:n}function xO(s){var l=this.__data__;return pl?l[s]!==n:At.call(l,s)}function wO(s,l){var p=this.__data__;return this.size+=this.has(s)?0:1,p[s]=pl&&l===n?c:l,this}Sa.prototype.clear=vO,Sa.prototype.delete=bO,Sa.prototype.get=$O,Sa.prototype.has=xO,Sa.prototype.set=wO;function to(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function DO(){this.__data__=[],this.size=0}function EO(s){var l=this.__data__,p=Td(l,s);if(p<0)return!1;var w=l.length-1;return p==w?l.pop():$d.call(l,p,1),--this.size,!0}function CO(s){var l=this.__data__,p=Td(l,s);return p<0?n:l[p][1]}function SO(s){return Td(this.__data__,s)>-1}function TO(s,l){var p=this.__data__,w=Td(p,s);return w<0?(++this.size,p.push([s,l])):p[w][1]=l,this}to.prototype.clear=DO,to.prototype.delete=EO,to.prototype.get=CO,to.prototype.has=SO,to.prototype.set=TO;function no(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function AO(){this.size=0,this.__data__={hash:new Sa,map:new(fl||to),string:new Sa}}function PO(s){var l=Vd(this,s).delete(s);return this.size-=l?1:0,l}function _O(s){return Vd(this,s).get(s)}function RO(s){return Vd(this,s).has(s)}function OO(s,l){var p=Vd(this,s),w=p.size;return p.set(s,l),this.size+=p.size==w?0:1,this}no.prototype.clear=AO,no.prototype.delete=PO,no.prototype.get=_O,no.prototype.has=RO,no.prototype.set=OO;function Ta(s){var l=-1,p=s==null?0:s.length;for(this.__data__=new no;++l<p;)this.add(s[l])}function MO(s){return this.__data__.set(s,c),this}function FO(s){return this.__data__.has(s)}Ta.prototype.add=Ta.prototype.push=MO,Ta.prototype.has=FO;function di(s){var l=this.__data__=new to(s);this.size=l.size}function kO(){this.__data__=new to,this.size=0}function BO(s){var l=this.__data__,p=l.delete(s);return this.size=l.size,p}function IO(s){return this.__data__.get(s)}function LO(s){return this.__data__.has(s)}function VO(s,l){var p=this.__data__;if(p instanceof to){var w=p.__data__;if(!fl||w.length<i-1)return w.push([s,l]),this.size=++p.size,this;p=this.__data__=new no(w)}return p.set(s,l),this.size=p.size,this}di.prototype.clear=kO,di.prototype.delete=BO,di.prototype.get=IO,di.prototype.has=LO,di.prototype.set=VO;function B1(s,l){var p=Xe(s),w=!p&&Oa(s),A=!p&&!w&&Wo(s),I=!p&&!w&&!A&&Ns(s),H=p||w||A||I,J=H?jp(s.length,YR):[],ee=J.length;for(var me in s)(l||At.call(s,me))&&!(H&&(me=="length"||A&&(me=="offset"||me=="parent")||I&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||ao(me,ee)))&&J.push(me);return J}function I1(s){var l=s.length;return l?s[im(0,l-1)]:n}function NO(s,l){return Nd(mr(s),Aa(l,0,s.length))}function jO(s){return Nd(mr(s))}function qp(s,l,p){(p!==n&&!fi(s[l],p)||p===n&&!(l in s))&&ro(s,l,p)}function gl(s,l,p){var w=s[l];(!(At.call(s,l)&&fi(w,p))||p===n&&!(l in s))&&ro(s,l,p)}function Td(s,l){for(var p=s.length;p--;)if(fi(s[p][0],l))return p;return-1}function KO(s,l,p,w){return jo(s,function(A,I,H){l(w,A,p(A),H)}),w}function L1(s,l){return s&&Oi(l,Sn(l),s)}function UO(s,l){return s&&Oi(l,yr(l),s)}function ro(s,l,p){l=="__proto__"&&xd?xd(s,l,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[l]=p}function Yp(s,l){for(var p=-1,w=l.length,A=se(w),I=s==null;++p<w;)A[p]=I?n:Pm(s,l[p]);return A}function Aa(s,l,p){return s===s&&(p!==n&&(s=s<=p?s:p),l!==n&&(s=s>=l?s:l)),s}function zr(s,l,p,w,A,I){var H,J=l&h,ee=l&m,me=l&g;if(p&&(H=A?p(s,w,A,I):p(s)),H!==n)return H;if(!Zt(s))return s;var ge=Xe(s);if(ge){if(H=RM(s),!J)return mr(s,H)}else{var we=Gn(s),Pe=we==le||we==Fe;if(Wo(s))return u4(s,J);if(we==yt||we==ie||Pe&&!A){if(H=ee||Pe?{}:T4(s),!J)return ee?$M(s,UO(H,s)):bM(s,L1(H,s))}else{if(!Mt[we])return A?s:{};H=OM(s,we,J)}}I||(I=new di);var Le=I.get(s);if(Le)return Le;I.set(s,H),n3(s)?s.forEach(function(He){H.add(zr(He,l,p,He,s,I))}):e3(s)&&s.forEach(function(He,lt){H.set(lt,zr(He,l,p,lt,s,I))});var We=me?ee?mm:pm:ee?yr:Sn,ot=ge?n:We(s);return jr(ot||s,function(He,lt){ot&&(lt=He,He=s[lt]),gl(H,lt,zr(He,l,p,lt,s,I))}),H}function zO(s){var l=Sn(s);return function(p){return V1(p,s,l)}}function V1(s,l,p){var w=p.length;if(s==null)return!w;for(s=It(s);w--;){var A=p[w],I=l[A],H=s[A];if(H===n&&!(A in s)||!I(H))return!1}return!0}function N1(s,l,p){if(typeof s!="function")throw new Kr(a);return Dl(function(){s.apply(n,p)},l)}function yl(s,l,p,w){var A=-1,I=cd,H=!0,J=s.length,ee=[],me=l.length;if(!J)return ee;p&&(l=Ht(l,Tr(p))),w?(I=kp,H=!1):l.length>=i&&(I=cl,H=!1,l=new Ta(l));e:for(;++A<J;){var ge=s[A],we=p==null?ge:p(ge);if(ge=w||ge!==0?ge:0,H&&we===we){for(var Pe=me;Pe--;)if(l[Pe]===we)continue e;ee.push(ge)}else I(l,we,w)||ee.push(ge)}return ee}var jo=h4(Ri),j1=h4(Jp,!0);function WO(s,l){var p=!0;return jo(s,function(w,A,I){return p=!!l(w,A,I),p}),p}function Ad(s,l,p){for(var w=-1,A=s.length;++w<A;){var I=s[w],H=l(I);if(H!=null&&(J===n?H===H&&!Pr(H):p(H,J)))var J=H,ee=I}return ee}function HO(s,l,p,w){var A=s.length;for(p=nt(p),p<0&&(p=-p>A?0:A+p),w=w===n||w>A?A:nt(w),w<0&&(w+=A),w=p>w?0:i3(w);p<w;)s[p++]=l;return s}function K1(s,l){var p=[];return jo(s,function(w,A,I){l(w,A,I)&&p.push(w)}),p}function kn(s,l,p,w,A){var I=-1,H=s.length;for(p||(p=FM),A||(A=[]);++I<H;){var J=s[I];l>0&&p(J)?l>1?kn(J,l-1,p,w,A):Lo(A,J):w||(A[A.length]=J)}return A}var Zp=p4(),U1=p4(!0);function Ri(s,l){return s&&Zp(s,l,Sn)}function Jp(s,l){return s&&U1(s,l,Sn)}function Pd(s,l){return Io(l,function(p){return so(s[p])})}function Pa(s,l){l=Uo(l,s);for(var p=0,w=l.length;s!=null&&p<w;)s=s[Mi(l[p++])];return p&&p==w?s:n}function z1(s,l,p){var w=l(s);return Xe(s)?w:Lo(w,p(s))}function ir(s){return s==null?s===n?_e:Dn:Ca&&Ca in It(s)?AM(s):jM(s)}function Xp(s,l){return s>l}function GO(s,l){return s!=null&&At.call(s,l)}function qO(s,l){return s!=null&&l in It(s)}function YO(s,l,p){return s>=Hn(l,p)&&s<bn(l,p)}function Qp(s,l,p){for(var w=p?kp:cd,A=s[0].length,I=s.length,H=I,J=se(I),ee=1/0,me=[];H--;){var ge=s[H];H&&l&&(ge=Ht(ge,Tr(l))),ee=Hn(ge.length,ee),J[H]=!p&&(l||A>=120&&ge.length>=120)?new Ta(H&&ge):n}ge=s[0];var we=-1,Pe=J[0];e:for(;++we<A&&me.length<ee;){var Le=ge[we],We=l?l(Le):Le;if(Le=p||Le!==0?Le:0,!(Pe?cl(Pe,We):w(me,We,p))){for(H=I;--H;){var ot=J[H];if(!(ot?cl(ot,We):w(s[H],We,p)))continue e}Pe&&Pe.push(We),me.push(Le)}}return me}function ZO(s,l,p,w){return Ri(s,function(A,I,H){l(w,p(A),I,H)}),w}function vl(s,l,p){l=Uo(l,s),s=R4(s,l);var w=s==null?s:s[Mi(Hr(l))];return w==null?n:Sr(w,s,p)}function W1(s){return on(s)&&ir(s)==ie}function JO(s){return on(s)&&ir(s)==ut}function XO(s){return on(s)&&ir(s)==ye}function bl(s,l,p,w,A){return s===l?!0:s==null||l==null||!on(s)&&!on(l)?s!==s&&l!==l:QO(s,l,p,w,bl,A)}function QO(s,l,p,w,A,I){var H=Xe(s),J=Xe(l),ee=H?Ee:Gn(s),me=J?Ee:Gn(l);ee=ee==ie?yt:ee,me=me==ie?yt:me;var ge=ee==yt,we=me==yt,Pe=ee==me;if(Pe&&Wo(s)){if(!Wo(l))return!1;H=!0,ge=!1}if(Pe&&!ge)return I||(I=new di),H||Ns(s)?E4(s,l,p,w,A,I):SM(s,l,ee,p,w,A,I);if(!(p&v)){var Le=ge&&At.call(s,"__wrapped__"),We=we&&At.call(l,"__wrapped__");if(Le||We){var ot=Le?s.value():s,He=We?l.value():l;return I||(I=new di),A(ot,He,p,w,I)}}return Pe?(I||(I=new di),TM(s,l,p,w,A,I)):!1}function eM(s){return on(s)&&Gn(s)==et}function em(s,l,p,w){var A=p.length,I=A,H=!w;if(s==null)return!I;for(s=It(s);A--;){var J=p[A];if(H&&J[2]?J[1]!==s[J[0]]:!(J[0]in s))return!1}for(;++A<I;){J=p[A];var ee=J[0],me=s[ee],ge=J[1];if(H&&J[2]){if(me===n&&!(ee in s))return!1}else{var we=new di;if(w)var Pe=w(me,ge,ee,s,l,we);if(!(Pe===n?bl(ge,me,v|$,w,we):Pe))return!1}}return!0}function H1(s){if(!Zt(s)||BM(s))return!1;var l=so(s)?eO:Mo;return l.test(Ra(s))}function tM(s){return on(s)&&ir(s)==te}function nM(s){return on(s)&&Gn(s)==pe}function rM(s){return on(s)&&Hd(s.length)&&!!Bt[ir(s)]}function G1(s){return typeof s=="function"?s:s==null?vr:typeof s=="object"?Xe(s)?Z1(s[0],s[1]):Y1(s):m3(s)}function tm(s){if(!wl(s))return aO(s);var l=[];for(var p in It(s))At.call(s,p)&&p!="constructor"&&l.push(p);return l}function iM(s){if(!Zt(s))return NM(s);var l=wl(s),p=[];for(var w in s)w=="constructor"&&(l||!At.call(s,w))||p.push(w);return p}function nm(s,l){return s<l}function q1(s,l){var p=-1,w=gr(s)?se(s.length):[];return jo(s,function(A,I,H){w[++p]=l(A,I,H)}),w}function Y1(s){var l=ym(s);return l.length==1&&l[0][2]?P4(l[0][0],l[0][1]):function(p){return p===s||em(p,s,l)}}function Z1(s,l){return bm(s)&&A4(l)?P4(Mi(s),l):function(p){var w=Pm(p,s);return w===n&&w===l?_m(p,s):bl(l,w,v|$)}}function _d(s,l,p,w,A){s!==l&&Zp(l,function(I,H){if(A||(A=new di),Zt(I))oM(s,l,H,p,_d,w,A);else{var J=w?w(xm(s,H),I,H+"",s,l,A):n;J===n&&(J=I),qp(s,H,J)}},yr)}function oM(s,l,p,w,A,I,H){var J=xm(s,p),ee=xm(l,p),me=H.get(ee);if(me){qp(s,p,me);return}var ge=I?I(J,ee,p+"",s,l,H):n,we=ge===n;if(we){var Pe=Xe(ee),Le=!Pe&&Wo(ee),We=!Pe&&!Le&&Ns(ee);ge=ee,Pe||Le||We?Xe(J)?ge=J:sn(J)?ge=mr(J):Le?(we=!1,ge=u4(ee,!0)):We?(we=!1,ge=l4(ee,!0)):ge=[]:El(ee)||Oa(ee)?(ge=J,Oa(J)?ge=o3(J):(!Zt(J)||so(J))&&(ge=T4(ee))):we=!1}we&&(H.set(ee,ge),A(ge,ee,w,I,H),H.delete(ee)),qp(s,p,ge)}function J1(s,l){var p=s.length;if(p)return l+=l<0?p:0,ao(l,p)?s[l]:n}function X1(s,l,p){l.length?l=Ht(l,function(I){return Xe(I)?function(H){return Pa(H,I.length===1?I[0]:I)}:I}):l=[vr];var w=-1;l=Ht(l,Tr(Ue()));var A=q1(s,function(I,H,J){var ee=Ht(l,function(me){return me(I)});return{criteria:ee,index:++w,value:I}});return OR(A,function(I,H){return vM(I,H,p)})}function aM(s,l){return Q1(s,l,function(p,w){return _m(s,w)})}function Q1(s,l,p){for(var w=-1,A=l.length,I={};++w<A;){var H=l[w],J=Pa(s,H);p(J,H)&&$l(I,Uo(H,s),J)}return I}function sM(s){return function(l){return Pa(l,s)}}function rm(s,l,p,w){var A=w?RR:Ps,I=-1,H=l.length,J=s;for(s===l&&(l=mr(l)),p&&(J=Ht(s,Tr(p)));++I<H;)for(var ee=0,me=l[I],ge=p?p(me):me;(ee=A(J,ge,ee,w))>-1;)J!==s&&$d.call(J,ee,1),$d.call(s,ee,1);return s}function e4(s,l){for(var p=s?l.length:0,w=p-1;p--;){var A=l[p];if(p==w||A!==I){var I=A;ao(A)?$d.call(s,A,1):sm(s,A)}}return s}function im(s,l){return s+Dd(F1()*(l-s+1))}function uM(s,l,p,w){for(var A=-1,I=bn(wd((l-s)/(p||1)),0),H=se(I);I--;)H[w?I:++A]=s,s+=p;return H}function om(s,l){var p="";if(!s||l<1||l>M)return p;do l%2&&(p+=s),l=Dd(l/2),l&&(s+=s);while(l);return p}function st(s,l){return wm(_4(s,l,vr),s+"")}function lM(s){return I1(js(s))}function cM(s,l){var p=js(s);return Nd(p,Aa(l,0,p.length))}function $l(s,l,p,w){if(!Zt(s))return s;l=Uo(l,s);for(var A=-1,I=l.length,H=I-1,J=s;J!=null&&++A<I;){var ee=Mi(l[A]),me=p;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return s;if(A!=H){var ge=J[ee];me=w?w(ge,ee,J):n,me===n&&(me=Zt(ge)?ge:ao(l[A+1])?[]:{})}gl(J,ee,me),J=J[ee]}return s}var t4=Ed?function(s,l){return Ed.set(s,l),s}:vr,dM=xd?function(s,l){return xd(s,"toString",{configurable:!0,enumerable:!1,value:Om(l),writable:!0})}:vr;function fM(s){return Nd(js(s))}function Wr(s,l,p){var w=-1,A=s.length;l<0&&(l=-l>A?0:A+l),p=p>A?A:p,p<0&&(p+=A),A=l>p?0:p-l>>>0,l>>>=0;for(var I=se(A);++w<A;)I[w]=s[w+l];return I}function hM(s,l){var p;return jo(s,function(w,A,I){return p=l(w,A,I),!p}),!!p}function Rd(s,l,p){var w=0,A=s==null?w:s.length;if(typeof l=="number"&&l===l&&A<=oe){for(;w<A;){var I=w+A>>>1,H=s[I];H!==null&&!Pr(H)&&(p?H<=l:H<l)?w=I+1:A=I}return A}return am(s,l,vr,p)}function am(s,l,p,w){var A=0,I=s==null?0:s.length;if(I===0)return 0;l=p(l);for(var H=l!==l,J=l===null,ee=Pr(l),me=l===n;A<I;){var ge=Dd((A+I)/2),we=p(s[ge]),Pe=we!==n,Le=we===null,We=we===we,ot=Pr(we);if(H)var He=w||We;else me?He=We&&(w||Pe):J?He=We&&Pe&&(w||!Le):ee?He=We&&Pe&&!Le&&(w||!ot):Le||ot?He=!1:He=w?we<=l:we<l;He?A=ge+1:I=ge}return Hn(I,re)}function n4(s,l){for(var p=-1,w=s.length,A=0,I=[];++p<w;){var H=s[p],J=l?l(H):H;if(!p||!fi(J,ee)){var ee=J;I[A++]=H===0?0:H}}return I}function r4(s){return typeof s=="number"?s:Pr(s)?V:+s}function Ar(s){if(typeof s=="string")return s;if(Xe(s))return Ht(s,Ar)+"";if(Pr(s))return k1?k1.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ko(s,l,p){var w=-1,A=cd,I=s.length,H=!0,J=[],ee=J;if(p)H=!1,A=kp;else if(I>=i){var me=l?null:EM(s);if(me)return fd(me);H=!1,A=cl,ee=new Ta}else ee=l?[]:J;e:for(;++w<I;){var ge=s[w],we=l?l(ge):ge;if(ge=p||ge!==0?ge:0,H&&we===we){for(var Pe=ee.length;Pe--;)if(ee[Pe]===we)continue e;l&&ee.push(we),J.push(ge)}else A(ee,we,p)||(ee!==J&&ee.push(we),J.push(ge))}return J}function sm(s,l){return l=Uo(l,s),s=R4(s,l),s==null||delete s[Mi(Hr(l))]}function i4(s,l,p,w){return $l(s,l,p(Pa(s,l)),w)}function Od(s,l,p,w){for(var A=s.length,I=w?A:-1;(w?I--:++I<A)&&l(s[I],I,s););return p?Wr(s,w?0:I,w?I+1:A):Wr(s,w?I+1:0,w?A:I)}function o4(s,l){var p=s;return p instanceof ft&&(p=p.value()),Bp(l,function(w,A){return A.func.apply(A.thisArg,Lo([w],A.args))},p)}function um(s,l,p){var w=s.length;if(w<2)return w?Ko(s[0]):[];for(var A=-1,I=se(w);++A<w;)for(var H=s[A],J=-1;++J<w;)J!=A&&(I[A]=yl(I[A]||H,s[J],l,p));return Ko(kn(I,1),l,p)}function a4(s,l,p){for(var w=-1,A=s.length,I=l.length,H={};++w<A;){var J=w<I?l[w]:n;p(H,s[w],J)}return H}function lm(s){return sn(s)?s:[]}function cm(s){return typeof s=="function"?s:vr}function Uo(s,l){return Xe(s)?s:bm(s,l)?[s]:k4(Dt(s))}var pM=st;function zo(s,l,p){var w=s.length;return p=p===n?w:p,!l&&p>=w?s:Wr(s,l,p)}var s4=tO||function(s){return pn.clearTimeout(s)};function u4(s,l){if(l)return s.slice();var p=s.length,w=P1?P1(p):new s.constructor(p);return s.copy(w),w}function dm(s){var l=new s.constructor(s.byteLength);return new vd(l).set(new vd(s)),l}function mM(s,l){var p=l?dm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function gM(s){var l=new s.constructor(s.source,hr.exec(s));return l.lastIndex=s.lastIndex,l}function yM(s){return ml?It(ml.call(s)):{}}function l4(s,l){var p=l?dm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function c4(s,l){if(s!==l){var p=s!==n,w=s===null,A=s===s,I=Pr(s),H=l!==n,J=l===null,ee=l===l,me=Pr(l);if(!J&&!me&&!I&&s>l||I&&H&&ee&&!J&&!me||w&&H&&ee||!p&&ee||!A)return 1;if(!w&&!I&&!me&&s<l||me&&p&&A&&!w&&!I||J&&p&&A||!H&&A||!ee)return-1}return 0}function vM(s,l,p){for(var w=-1,A=s.criteria,I=l.criteria,H=A.length,J=p.length;++w<H;){var ee=c4(A[w],I[w]);if(ee){if(w>=J)return ee;var me=p[w];return ee*(me=="desc"?-1:1)}}return s.index-l.index}function d4(s,l,p,w){for(var A=-1,I=s.length,H=p.length,J=-1,ee=l.length,me=bn(I-H,0),ge=se(ee+me),we=!w;++J<ee;)ge[J]=l[J];for(;++A<H;)(we||A<I)&&(ge[p[A]]=s[A]);for(;me--;)ge[J++]=s[A++];return ge}function f4(s,l,p,w){for(var A=-1,I=s.length,H=-1,J=p.length,ee=-1,me=l.length,ge=bn(I-J,0),we=se(ge+me),Pe=!w;++A<ge;)we[A]=s[A];for(var Le=A;++ee<me;)we[Le+ee]=l[ee];for(;++H<J;)(Pe||A<I)&&(we[Le+p[H]]=s[A++]);return we}function mr(s,l){var p=-1,w=s.length;for(l||(l=se(w));++p<w;)l[p]=s[p];return l}function Oi(s,l,p,w){var A=!p;p||(p={});for(var I=-1,H=l.length;++I<H;){var J=l[I],ee=w?w(p[J],s[J],J,p,s):n;ee===n&&(ee=s[J]),A?ro(p,J,ee):gl(p,J,ee)}return p}function bM(s,l){return Oi(s,vm(s),l)}function $M(s,l){return Oi(s,C4(s),l)}function Md(s,l){return function(p,w){var A=Xe(p)?CR:KO,I=l?l():{};return A(p,s,Ue(w,2),I)}}function Is(s){return st(function(l,p){var w=-1,A=p.length,I=A>1?p[A-1]:n,H=A>2?p[2]:n;for(I=s.length>3&&typeof I=="function"?(A--,I):n,H&&or(p[0],p[1],H)&&(I=A<3?n:I,A=1),l=It(l);++w<A;){var J=p[w];J&&s(l,J,w,I)}return l})}function h4(s,l){return function(p,w){if(p==null)return p;if(!gr(p))return s(p,w);for(var A=p.length,I=l?A:-1,H=It(p);(l?I--:++I<A)&&w(H[I],I,H)!==!1;);return p}}function p4(s){return function(l,p,w){for(var A=-1,I=It(l),H=w(l),J=H.length;J--;){var ee=H[s?J:++A];if(p(I[ee],ee,I)===!1)break}return l}}function xM(s,l,p){var w=l&C,A=xl(s);function I(){var H=this&&this!==pn&&this instanceof I?A:s;return H.apply(w?p:this,arguments)}return I}function m4(s){return function(l){l=Dt(l);var p=_s(l)?ci(l):n,w=p?p[0]:l.charAt(0),A=p?zo(p,1).join(""):l.slice(1);return w[s]()+A}}function Ls(s){return function(l){return Bp(h3(f3(l).replace(ud,"")),s,"")}}function xl(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var p=Bs(s.prototype),w=s.apply(p,l);return Zt(w)?w:p}}function wM(s,l,p){var w=xl(s);function A(){for(var I=arguments.length,H=se(I),J=I,ee=Vs(A);J--;)H[J]=arguments[J];var me=I<3&&H[0]!==ee&&H[I-1]!==ee?[]:Vo(H,ee);if(I-=me.length,I<p)return $4(s,l,Fd,A.placeholder,n,H,me,n,n,p-I);var ge=this&&this!==pn&&this instanceof A?w:s;return Sr(ge,this,H)}return A}function g4(s){return function(l,p,w){var A=It(l);if(!gr(l)){var I=Ue(p,3);l=Sn(l),p=function(J){return I(A[J],J,A)}}var H=s(l,p,w);return H>-1?A[I?l[H]:H]:n}}function y4(s){return oo(function(l){var p=l.length,w=p,A=Ur.prototype.thru;for(s&&l.reverse();w--;){var I=l[w];if(typeof I!="function")throw new Kr(a);if(A&&!H&&Ld(I)=="wrapper")var H=new Ur([],!0)}for(w=H?w:p;++w<p;){I=l[w];var J=Ld(I),ee=J=="wrapper"?gm(I):n;ee&&$m(ee[0])&&ee[1]==(k|D|E|S)&&!ee[4].length&&ee[9]==1?H=H[Ld(ee[0])].apply(H,ee[3]):H=I.length==1&&$m(I)?H[J]():H.thru(I)}return function(){var me=arguments,ge=me[0];if(H&&me.length==1&&Xe(ge))return H.plant(ge).value();for(var we=0,Pe=p?l[we].apply(this,me):ge;++we<p;)Pe=l[we].call(this,Pe);return Pe}})}function Fd(s,l,p,w,A,I,H,J,ee,me){var ge=l&k,we=l&C,Pe=l&x,Le=l&(D|P),We=l&U,ot=Pe?n:xl(s);function He(){for(var lt=arguments.length,ht=se(lt),_r=lt;_r--;)ht[_r]=arguments[_r];if(Le)var ar=Vs(He),Rr=FR(ht,ar);if(w&&(ht=d4(ht,w,A,Le)),I&&(ht=f4(ht,I,H,Le)),lt-=Rr,Le&&lt<me){var un=Vo(ht,ar);return $4(s,l,Fd,He.placeholder,p,ht,un,J,ee,me-lt)}var hi=we?p:this,lo=Pe?hi[s]:s;return lt=ht.length,J?ht=KM(ht,J):We&&lt>1&&ht.reverse(),ge&&ee<lt&&(ht.length=ee),this&&this!==pn&&this instanceof He&&(lo=ot||xl(lo)),lo.apply(hi,ht)}return He}function v4(s,l){return function(p,w){return ZO(p,s,l(w),{})}}function kd(s,l){return function(p,w){var A;if(p===n&&w===n)return l;if(p!==n&&(A=p),w!==n){if(A===n)return w;typeof p=="string"||typeof w=="string"?(p=Ar(p),w=Ar(w)):(p=r4(p),w=r4(w)),A=s(p,w)}return A}}function fm(s){return oo(function(l){return l=Ht(l,Tr(Ue())),st(function(p){var w=this;return s(l,function(A){return Sr(A,w,p)})})})}function Bd(s,l){l=l===n?" ":Ar(l);var p=l.length;if(p<2)return p?om(l,s):l;var w=om(l,wd(s/Rs(l)));return _s(l)?zo(ci(w),0,s).join(""):w.slice(0,s)}function DM(s,l,p,w){var A=l&C,I=xl(s);function H(){for(var J=-1,ee=arguments.length,me=-1,ge=w.length,we=se(ge+ee),Pe=this&&this!==pn&&this instanceof H?I:s;++me<ge;)we[me]=w[me];for(;ee--;)we[me++]=arguments[++J];return Sr(Pe,A?p:this,we)}return H}function b4(s){return function(l,p,w){return w&&typeof w!="number"&&or(l,p,w)&&(p=w=n),l=uo(l),p===n?(p=l,l=0):p=uo(p),w=w===n?l<p?1:-1:uo(w),uM(l,p,w,s)}}function Id(s){return function(l,p){return typeof l=="string"&&typeof p=="string"||(l=Gr(l),p=Gr(p)),s(l,p)}}function $4(s,l,p,w,A,I,H,J,ee,me){var ge=l&D,we=ge?H:n,Pe=ge?n:H,Le=ge?I:n,We=ge?n:I;l|=ge?E:T,l&=~(ge?T:E),l&y||(l&=-4);var ot=[s,l,A,Le,we,We,Pe,J,ee,me],He=p.apply(n,ot);return $m(s)&&O4(He,ot),He.placeholder=w,M4(He,s,l)}function hm(s){var l=vn[s];return function(p,w){if(p=Gr(p),w=w==null?0:Hn(nt(w),292),w&&M1(p)){var A=(Dt(p)+"e").split("e"),I=l(A[0]+"e"+(+A[1]+w));return A=(Dt(I)+"e").split("e"),+(A[0]+"e"+(+A[1]-w))}return l(p)}}var EM=Fs&&1/fd(new Fs([,-0]))[1]==_?function(s){return new Fs(s)}:km;function x4(s){return function(l){var p=Gn(l);return p==et?Up(l):p==pe?jR(l):MR(l,s(l))}}function io(s,l,p,w,A,I,H,J){var ee=l&x;if(!ee&&typeof s!="function")throw new Kr(a);var me=w?w.length:0;if(me||(l&=-97,w=A=n),H=H===n?H:bn(nt(H),0),J=J===n?J:nt(J),me-=A?A.length:0,l&T){var ge=w,we=A;w=A=n}var Pe=ee?n:gm(s),Le=[s,l,p,w,A,ge,we,I,H,J];if(Pe&&VM(Le,Pe),s=Le[0],l=Le[1],p=Le[2],w=Le[3],A=Le[4],J=Le[9]=Le[9]===n?ee?0:s.length:bn(Le[9]-me,0),!J&&l&(D|P)&&(l&=-25),!l||l==C)var We=xM(s,l,p);else l==D||l==P?We=wM(s,l,J):(l==E||l==(C|E))&&!A.length?We=DM(s,l,p,w):We=Fd.apply(n,Le);var ot=Pe?t4:O4;return M4(ot(We,Le),s,l)}function w4(s,l,p,w){return s===n||fi(s,Ms[p])&&!At.call(w,p)?l:s}function D4(s,l,p,w,A,I){return Zt(s)&&Zt(l)&&(I.set(l,s),_d(s,l,n,D4,I),I.delete(l)),s}function CM(s){return El(s)?n:s}function E4(s,l,p,w,A,I){var H=p&v,J=s.length,ee=l.length;if(J!=ee&&!(H&&ee>J))return!1;var me=I.get(s),ge=I.get(l);if(me&&ge)return me==l&&ge==s;var we=-1,Pe=!0,Le=p&$?new Ta:n;for(I.set(s,l),I.set(l,s);++we<J;){var We=s[we],ot=l[we];if(w)var He=H?w(ot,We,we,l,s,I):w(We,ot,we,s,l,I);if(He!==n){if(He)continue;Pe=!1;break}if(Le){if(!Ip(l,function(lt,ht){if(!cl(Le,ht)&&(We===lt||A(We,lt,p,w,I)))return Le.push(ht)})){Pe=!1;break}}else if(!(We===ot||A(We,ot,p,w,I))){Pe=!1;break}}return I.delete(s),I.delete(l),Pe}function SM(s,l,p,w,A,I,H){switch(p){case Rt:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case ut:return!(s.byteLength!=l.byteLength||!I(new vd(s),new vd(l)));case ne:case ye:case dt:return fi(+s,+l);case he:return s.name==l.name&&s.message==l.message;case te:case Ce:return s==l+"";case et:var J=Up;case pe:var ee=w&v;if(J||(J=fd),s.size!=l.size&&!ee)return!1;var me=H.get(s);if(me)return me==l;w|=$,H.set(s,l);var ge=E4(J(s),J(l),w,A,I,H);return H.delete(s),ge;case De:if(ml)return ml.call(s)==ml.call(l)}return!1}function TM(s,l,p,w,A,I){var H=p&v,J=pm(s),ee=J.length,me=pm(l),ge=me.length;if(ee!=ge&&!H)return!1;for(var we=ee;we--;){var Pe=J[we];if(!(H?Pe in l:At.call(l,Pe)))return!1}var Le=I.get(s),We=I.get(l);if(Le&&We)return Le==l&&We==s;var ot=!0;I.set(s,l),I.set(l,s);for(var He=H;++we<ee;){Pe=J[we];var lt=s[Pe],ht=l[Pe];if(w)var _r=H?w(ht,lt,Pe,l,s,I):w(lt,ht,Pe,s,l,I);if(!(_r===n?lt===ht||A(lt,ht,p,w,I):_r)){ot=!1;break}He||(He=Pe=="constructor")}if(ot&&!He){var ar=s.constructor,Rr=l.constructor;ar!=Rr&&"constructor"in s&&"constructor"in l&&!(typeof ar=="function"&&ar instanceof ar&&typeof Rr=="function"&&Rr instanceof Rr)&&(ot=!1)}return I.delete(s),I.delete(l),ot}function oo(s){return wm(_4(s,n,V4),s+"")}function pm(s){return z1(s,Sn,vm)}function mm(s){return z1(s,yr,C4)}var gm=Ed?function(s){return Ed.get(s)}:km;function Ld(s){for(var l=s.name+"",p=ks[l],w=At.call(ks,l)?p.length:0;w--;){var A=p[w],I=A.func;if(I==null||I==s)return A.name}return l}function Vs(s){var l=At.call(R,"placeholder")?R:s;return l.placeholder}function Ue(){var s=R.iteratee||Mm;return s=s===Mm?G1:s,arguments.length?s(arguments[0],arguments[1]):s}function Vd(s,l){var p=s.__data__;return kM(l)?p[typeof l=="string"?"string":"hash"]:p.map}function ym(s){for(var l=Sn(s),p=l.length;p--;){var w=l[p],A=s[w];l[p]=[w,A,A4(A)]}return l}function _a(s,l){var p=LR(s,l);return H1(p)?p:n}function AM(s){var l=At.call(s,Ca),p=s[Ca];try{s[Ca]=n;var w=!0}catch{}var A=gd.call(s);return w&&(l?s[Ca]=p:delete s[Ca]),A}var vm=Wp?function(s){return s==null?[]:(s=It(s),Io(Wp(s),function(l){return R1.call(s,l)}))}:Bm,C4=Wp?function(s){for(var l=[];s;)Lo(l,vm(s)),s=bd(s);return l}:Bm,Gn=ir;(Hp&&Gn(new Hp(new ArrayBuffer(1)))!=Rt||fl&&Gn(new fl)!=et||Gp&&Gn(Gp.resolve())!=q||Fs&&Gn(new Fs)!=pe||hl&&Gn(new hl)!=Ve)&&(Gn=function(s){var l=ir(s),p=l==yt?s.constructor:n,w=p?Ra(p):"";if(w)switch(w){case cO:return Rt;case dO:return et;case fO:return q;case hO:return pe;case pO:return Ve}return l});function PM(s,l,p){for(var w=-1,A=p.length;++w<A;){var I=p[w],H=I.size;switch(I.type){case"drop":s+=H;break;case"dropRight":l-=H;break;case"take":l=Hn(l,s+H);break;case"takeRight":s=bn(s,l-H);break}}return{start:s,end:l}}function _M(s){var l=s.match(Kt);return l?l[1].split(an):[]}function S4(s,l,p){l=Uo(l,s);for(var w=-1,A=l.length,I=!1;++w<A;){var H=Mi(l[w]);if(!(I=s!=null&&p(s,H)))break;s=s[H]}return I||++w!=A?I:(A=s==null?0:s.length,!!A&&Hd(A)&&ao(H,A)&&(Xe(s)||Oa(s)))}function RM(s){var l=s.length,p=new s.constructor(l);return l&&typeof s[0]=="string"&&At.call(s,"index")&&(p.index=s.index,p.input=s.input),p}function T4(s){return typeof s.constructor=="function"&&!wl(s)?Bs(bd(s)):{}}function OM(s,l,p){var w=s.constructor;switch(l){case ut:return dm(s);case ne:case ye:return new w(+s);case Rt:return mM(s,p);case Pn:case _n:case Yt:case Ln:case tn:case vt:case Vn:case Cr:case Rn:return l4(s,p);case et:return new w;case dt:case Ce:return new w(s);case te:return gM(s);case pe:return new w;case De:return yM(s)}}function MM(s,l){var p=l.length;if(!p)return s;var w=p-1;return l[w]=(p>1?"& ":"")+l[w],l=l.join(p>2?", ":" "),s.replace(jn,`{
66
- /* [wrapped with `+l+`] */
67
- `)}function FM(s){return Xe(s)||Oa(s)||!!(O1&&s&&s[O1])}function ao(s,l){var p=typeof s;return l=l??M,!!l&&(p=="number"||p!="symbol"&&nr.test(s))&&s>-1&&s%1==0&&s<l}function or(s,l,p){if(!Zt(p))return!1;var w=typeof l;return(w=="number"?gr(p)&&ao(l,p.length):w=="string"&&l in p)?fi(p[l],s):!1}function bm(s,l){if(Xe(s))return!1;var p=typeof s;return p=="number"||p=="symbol"||p=="boolean"||s==null||Pr(s)?!0:fr.test(s)||!nn.test(s)||l!=null&&s in It(l)}function kM(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function $m(s){var l=Ld(s),p=R[l];if(typeof p!="function"||!(l in ft.prototype))return!1;if(s===p)return!0;var w=gm(p);return!!w&&s===w[0]}function BM(s){return!!A1&&A1 in s}var IM=pd?so:Im;function wl(s){var l=s&&s.constructor,p=typeof l=="function"&&l.prototype||Ms;return s===p}function A4(s){return s===s&&!Zt(s)}function P4(s,l){return function(p){return p==null?!1:p[s]===l&&(l!==n||s in It(p))}}function LM(s){var l=zd(s,function(w){return p.size===d&&p.clear(),w}),p=l.cache;return l}function VM(s,l){var p=s[1],w=l[1],A=p|w,I=A<(C|x|k),H=w==k&&p==D||w==k&&p==S&&s[7].length<=l[8]||w==(k|S)&&l[7].length<=l[8]&&p==D;if(!(I||H))return s;w&C&&(s[2]=l[2],A|=p&C?0:y);var J=l[3];if(J){var ee=s[3];s[3]=ee?d4(ee,J,l[4]):J,s[4]=ee?Vo(s[3],f):l[4]}return J=l[5],J&&(ee=s[5],s[5]=ee?f4(ee,J,l[6]):J,s[6]=ee?Vo(s[5],f):l[6]),J=l[7],J&&(s[7]=J),w&k&&(s[8]=s[8]==null?l[8]:Hn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=A,s}function NM(s){var l=[];if(s!=null)for(var p in It(s))l.push(p);return l}function jM(s){return gd.call(s)}function _4(s,l,p){return l=bn(l===n?s.length-1:l,0),function(){for(var w=arguments,A=-1,I=bn(w.length-l,0),H=se(I);++A<I;)H[A]=w[l+A];A=-1;for(var J=se(l+1);++A<l;)J[A]=w[A];return J[l]=p(H),Sr(s,this,J)}}function R4(s,l){return l.length<2?s:Pa(s,Wr(l,0,-1))}function KM(s,l){for(var p=s.length,w=Hn(l.length,p),A=mr(s);w--;){var I=l[w];s[w]=ao(I,p)?A[I]:n}return s}function xm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var O4=F4(t4),Dl=rO||function(s,l){return pn.setTimeout(s,l)},wm=F4(dM);function M4(s,l,p){var w=l+"";return wm(s,MM(w,UM(_M(w),p)))}function F4(s){var l=0,p=0;return function(){var w=sO(),A=K-(w-p);if(p=w,A>0){if(++l>=G)return arguments[0]}else l=0;return s.apply(n,arguments)}}function Nd(s,l){var p=-1,w=s.length,A=w-1;for(l=l===n?w:l;++p<l;){var I=im(p,A),H=s[I];s[I]=s[p],s[p]=H}return s.length=l,s}var k4=LM(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Te,function(p,w,A,I){l.push(A?I.replace(li,"$1"):w||p)}),l});function Mi(s){if(typeof s=="string"||Pr(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Ra(s){if(s!=null){try{return md.call(s)}catch{}try{return s+""}catch{}}return""}function UM(s,l){return jr(fe,function(p){var w="_."+p[0];l&p[1]&&!cd(s,w)&&s.push(w)}),s.sort()}function B4(s){if(s instanceof ft)return s.clone();var l=new Ur(s.__wrapped__,s.__chain__);return l.__actions__=mr(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function zM(s,l,p){(p?or(s,l,p):l===n)?l=1:l=bn(nt(l),0);var w=s==null?0:s.length;if(!w||l<1)return[];for(var A=0,I=0,H=se(wd(w/l));A<w;)H[I++]=Wr(s,A,A+=l);return H}function WM(s){for(var l=-1,p=s==null?0:s.length,w=0,A=[];++l<p;){var I=s[l];I&&(A[w++]=I)}return A}function HM(){var s=arguments.length;if(!s)return[];for(var l=se(s-1),p=arguments[0],w=s;w--;)l[w-1]=arguments[w];return Lo(Xe(p)?mr(p):[p],kn(l,1))}var GM=st(function(s,l){return sn(s)?yl(s,kn(l,1,sn,!0)):[]}),qM=st(function(s,l){var p=Hr(l);return sn(p)&&(p=n),sn(s)?yl(s,kn(l,1,sn,!0),Ue(p,2)):[]}),YM=st(function(s,l){var p=Hr(l);return sn(p)&&(p=n),sn(s)?yl(s,kn(l,1,sn,!0),n,p):[]});function ZM(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),Wr(s,l<0?0:l,w)):[]}function JM(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),l=w-l,Wr(s,0,l<0?0:l)):[]}function XM(s,l){return s&&s.length?Od(s,Ue(l,3),!0,!0):[]}function QM(s,l){return s&&s.length?Od(s,Ue(l,3),!0):[]}function e9(s,l,p,w){var A=s==null?0:s.length;return A?(p&&typeof p!="number"&&or(s,l,p)&&(p=0,w=A),HO(s,l,p,w)):[]}function I4(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=p==null?0:nt(p);return A<0&&(A=bn(w+A,0)),dd(s,Ue(l,3),A)}function L4(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=w-1;return p!==n&&(A=nt(p),A=p<0?bn(w+A,0):Hn(A,w-1)),dd(s,Ue(l,3),A,!0)}function V4(s){var l=s==null?0:s.length;return l?kn(s,1):[]}function t9(s){var l=s==null?0:s.length;return l?kn(s,_):[]}function n9(s,l){var p=s==null?0:s.length;return p?(l=l===n?1:nt(l),kn(s,l)):[]}function r9(s){for(var l=-1,p=s==null?0:s.length,w={};++l<p;){var A=s[l];w[A[0]]=A[1]}return w}function N4(s){return s&&s.length?s[0]:n}function i9(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=p==null?0:nt(p);return A<0&&(A=bn(w+A,0)),Ps(s,l,A)}function o9(s){var l=s==null?0:s.length;return l?Wr(s,0,-1):[]}var a9=st(function(s){var l=Ht(s,lm);return l.length&&l[0]===s[0]?Qp(l):[]}),s9=st(function(s){var l=Hr(s),p=Ht(s,lm);return l===Hr(p)?l=n:p.pop(),p.length&&p[0]===s[0]?Qp(p,Ue(l,2)):[]}),u9=st(function(s){var l=Hr(s),p=Ht(s,lm);return l=typeof l=="function"?l:n,l&&p.pop(),p.length&&p[0]===s[0]?Qp(p,n,l):[]});function l9(s,l){return s==null?"":oO.call(s,l)}function Hr(s){var l=s==null?0:s.length;return l?s[l-1]:n}function c9(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=w;return p!==n&&(A=nt(p),A=A<0?bn(w+A,0):Hn(A,w-1)),l===l?UR(s,l,A):dd(s,$1,A,!0)}function d9(s,l){return s&&s.length?J1(s,nt(l)):n}var f9=st(j4);function j4(s,l){return s&&s.length&&l&&l.length?rm(s,l):s}function h9(s,l,p){return s&&s.length&&l&&l.length?rm(s,l,Ue(p,2)):s}function p9(s,l,p){return s&&s.length&&l&&l.length?rm(s,l,n,p):s}var m9=oo(function(s,l){var p=s==null?0:s.length,w=Yp(s,l);return e4(s,Ht(l,function(A){return ao(A,p)?+A:A}).sort(c4)),w});function g9(s,l){var p=[];if(!(s&&s.length))return p;var w=-1,A=[],I=s.length;for(l=Ue(l,3);++w<I;){var H=s[w];l(H,w,s)&&(p.push(H),A.push(w))}return e4(s,A),p}function Dm(s){return s==null?s:lO.call(s)}function y9(s,l,p){var w=s==null?0:s.length;return w?(p&&typeof p!="number"&&or(s,l,p)?(l=0,p=w):(l=l==null?0:nt(l),p=p===n?w:nt(p)),Wr(s,l,p)):[]}function v9(s,l){return Rd(s,l)}function b9(s,l,p){return am(s,l,Ue(p,2))}function $9(s,l){var p=s==null?0:s.length;if(p){var w=Rd(s,l);if(w<p&&fi(s[w],l))return w}return-1}function x9(s,l){return Rd(s,l,!0)}function w9(s,l,p){return am(s,l,Ue(p,2),!0)}function D9(s,l){var p=s==null?0:s.length;if(p){var w=Rd(s,l,!0)-1;if(fi(s[w],l))return w}return-1}function E9(s){return s&&s.length?n4(s):[]}function C9(s,l){return s&&s.length?n4(s,Ue(l,2)):[]}function S9(s){var l=s==null?0:s.length;return l?Wr(s,1,l):[]}function T9(s,l,p){return s&&s.length?(l=p||l===n?1:nt(l),Wr(s,0,l<0?0:l)):[]}function A9(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),l=w-l,Wr(s,l<0?0:l,w)):[]}function P9(s,l){return s&&s.length?Od(s,Ue(l,3),!1,!0):[]}function _9(s,l){return s&&s.length?Od(s,Ue(l,3)):[]}var R9=st(function(s){return Ko(kn(s,1,sn,!0))}),O9=st(function(s){var l=Hr(s);return sn(l)&&(l=n),Ko(kn(s,1,sn,!0),Ue(l,2))}),M9=st(function(s){var l=Hr(s);return l=typeof l=="function"?l:n,Ko(kn(s,1,sn,!0),n,l)});function F9(s){return s&&s.length?Ko(s):[]}function k9(s,l){return s&&s.length?Ko(s,Ue(l,2)):[]}function B9(s,l){return l=typeof l=="function"?l:n,s&&s.length?Ko(s,n,l):[]}function Em(s){if(!(s&&s.length))return[];var l=0;return s=Io(s,function(p){if(sn(p))return l=bn(p.length,l),!0}),jp(l,function(p){return Ht(s,Lp(p))})}function K4(s,l){if(!(s&&s.length))return[];var p=Em(s);return l==null?p:Ht(p,function(w){return Sr(l,n,w)})}var I9=st(function(s,l){return sn(s)?yl(s,l):[]}),L9=st(function(s){return um(Io(s,sn))}),V9=st(function(s){var l=Hr(s);return sn(l)&&(l=n),um(Io(s,sn),Ue(l,2))}),N9=st(function(s){var l=Hr(s);return l=typeof l=="function"?l:n,um(Io(s,sn),n,l)}),j9=st(Em);function K9(s,l){return a4(s||[],l||[],gl)}function U9(s,l){return a4(s||[],l||[],$l)}var z9=st(function(s){var l=s.length,p=l>1?s[l-1]:n;return p=typeof p=="function"?(s.pop(),p):n,K4(s,p)});function U4(s){var l=R(s);return l.__chain__=!0,l}function W9(s,l){return l(s),s}function jd(s,l){return l(s)}var H9=oo(function(s){var l=s.length,p=l?s[0]:0,w=this.__wrapped__,A=function(I){return Yp(I,s)};return l>1||this.__actions__.length||!(w instanceof ft)||!ao(p)?this.thru(A):(w=w.slice(p,+p+(l?1:0)),w.__actions__.push({func:jd,args:[A],thisArg:n}),new Ur(w,this.__chain__).thru(function(I){return l&&!I.length&&I.push(n),I}))});function G9(){return U4(this)}function q9(){return new Ur(this.value(),this.__chain__)}function Y9(){this.__values__===n&&(this.__values__=r3(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function Z9(){return this}function J9(s){for(var l,p=this;p instanceof Sd;){var w=B4(p);w.__index__=0,w.__values__=n,l?A.__wrapped__=w:l=w;var A=w;p=p.__wrapped__}return A.__wrapped__=s,l}function X9(){var s=this.__wrapped__;if(s instanceof ft){var l=s;return this.__actions__.length&&(l=new ft(this)),l=l.reverse(),l.__actions__.push({func:jd,args:[Dm],thisArg:n}),new Ur(l,this.__chain__)}return this.thru(Dm)}function Q9(){return o4(this.__wrapped__,this.__actions__)}var eF=Md(function(s,l,p){At.call(s,p)?++s[p]:ro(s,p,1)});function tF(s,l,p){var w=Xe(s)?v1:WO;return p&&or(s,l,p)&&(l=n),w(s,Ue(l,3))}function nF(s,l){var p=Xe(s)?Io:K1;return p(s,Ue(l,3))}var rF=g4(I4),iF=g4(L4);function oF(s,l){return kn(Kd(s,l),1)}function aF(s,l){return kn(Kd(s,l),_)}function sF(s,l,p){return p=p===n?1:nt(p),kn(Kd(s,l),p)}function z4(s,l){var p=Xe(s)?jr:jo;return p(s,Ue(l,3))}function W4(s,l){var p=Xe(s)?SR:j1;return p(s,Ue(l,3))}var uF=Md(function(s,l,p){At.call(s,p)?s[p].push(l):ro(s,p,[l])});function lF(s,l,p,w){s=gr(s)?s:js(s),p=p&&!w?nt(p):0;var A=s.length;return p<0&&(p=bn(A+p,0)),Gd(s)?p<=A&&s.indexOf(l,p)>-1:!!A&&Ps(s,l,p)>-1}var cF=st(function(s,l,p){var w=-1,A=typeof l=="function",I=gr(s)?se(s.length):[];return jo(s,function(H){I[++w]=A?Sr(l,H,p):vl(H,l,p)}),I}),dF=Md(function(s,l,p){ro(s,p,l)});function Kd(s,l){var p=Xe(s)?Ht:q1;return p(s,Ue(l,3))}function fF(s,l,p,w){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),p=w?n:p,Xe(p)||(p=p==null?[]:[p]),X1(s,l,p))}var hF=Md(function(s,l,p){s[p?0:1].push(l)},function(){return[[],[]]});function pF(s,l,p){var w=Xe(s)?Bp:w1,A=arguments.length<3;return w(s,Ue(l,4),p,A,jo)}function mF(s,l,p){var w=Xe(s)?TR:w1,A=arguments.length<3;return w(s,Ue(l,4),p,A,j1)}function gF(s,l){var p=Xe(s)?Io:K1;return p(s,Wd(Ue(l,3)))}function yF(s){var l=Xe(s)?I1:lM;return l(s)}function vF(s,l,p){(p?or(s,l,p):l===n)?l=1:l=nt(l);var w=Xe(s)?NO:cM;return w(s,l)}function bF(s){var l=Xe(s)?jO:fM;return l(s)}function $F(s){if(s==null)return 0;if(gr(s))return Gd(s)?Rs(s):s.length;var l=Gn(s);return l==et||l==pe?s.size:tm(s).length}function xF(s,l,p){var w=Xe(s)?Ip:hM;return p&&or(s,l,p)&&(l=n),w(s,Ue(l,3))}var wF=st(function(s,l){if(s==null)return[];var p=l.length;return p>1&&or(s,l[0],l[1])?l=[]:p>2&&or(l[0],l[1],l[2])&&(l=[l[0]]),X1(s,kn(l,1),[])}),Ud=nO||function(){return pn.Date.now()};function DF(s,l){if(typeof l!="function")throw new Kr(a);return s=nt(s),function(){if(--s<1)return l.apply(this,arguments)}}function H4(s,l,p){return l=p?n:l,l=s&&l==null?s.length:l,io(s,k,n,n,n,n,l)}function G4(s,l){var p;if(typeof l!="function")throw new Kr(a);return s=nt(s),function(){return--s>0&&(p=l.apply(this,arguments)),s<=1&&(l=n),p}}var Cm=st(function(s,l,p){var w=C;if(p.length){var A=Vo(p,Vs(Cm));w|=E}return io(s,w,l,p,A)}),q4=st(function(s,l,p){var w=C|x;if(p.length){var A=Vo(p,Vs(q4));w|=E}return io(l,w,s,p,A)});function Y4(s,l,p){l=p?n:l;var w=io(s,D,n,n,n,n,n,l);return w.placeholder=Y4.placeholder,w}function Z4(s,l,p){l=p?n:l;var w=io(s,P,n,n,n,n,n,l);return w.placeholder=Z4.placeholder,w}function J4(s,l,p){var w,A,I,H,J,ee,me=0,ge=!1,we=!1,Pe=!0;if(typeof s!="function")throw new Kr(a);l=Gr(l)||0,Zt(p)&&(ge=!!p.leading,we="maxWait"in p,I=we?bn(Gr(p.maxWait)||0,l):I,Pe="trailing"in p?!!p.trailing:Pe);function Le(un){var hi=w,lo=A;return w=A=n,me=un,H=s.apply(lo,hi),H}function We(un){return me=un,J=Dl(lt,l),ge?Le(un):H}function ot(un){var hi=un-ee,lo=un-me,g3=l-hi;return we?Hn(g3,I-lo):g3}function He(un){var hi=un-ee,lo=un-me;return ee===n||hi>=l||hi<0||we&&lo>=I}function lt(){var un=Ud();if(He(un))return ht(un);J=Dl(lt,ot(un))}function ht(un){return J=n,Pe&&w?Le(un):(w=A=n,H)}function _r(){J!==n&&s4(J),me=0,w=ee=A=J=n}function ar(){return J===n?H:ht(Ud())}function Rr(){var un=Ud(),hi=He(un);if(w=arguments,A=this,ee=un,hi){if(J===n)return We(ee);if(we)return s4(J),J=Dl(lt,l),Le(ee)}return J===n&&(J=Dl(lt,l)),H}return Rr.cancel=_r,Rr.flush=ar,Rr}var EF=st(function(s,l){return N1(s,1,l)}),CF=st(function(s,l,p){return N1(s,Gr(l)||0,p)});function SF(s){return io(s,U)}function zd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Kr(a);var p=function(){var w=arguments,A=l?l.apply(this,w):w[0],I=p.cache;if(I.has(A))return I.get(A);var H=s.apply(this,w);return p.cache=I.set(A,H)||I,H};return p.cache=new(zd.Cache||no),p}zd.Cache=no;function Wd(s){if(typeof s!="function")throw new Kr(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function TF(s){return G4(2,s)}var AF=pM(function(s,l){l=l.length==1&&Xe(l[0])?Ht(l[0],Tr(Ue())):Ht(kn(l,1),Tr(Ue()));var p=l.length;return st(function(w){for(var A=-1,I=Hn(w.length,p);++A<I;)w[A]=l[A].call(this,w[A]);return Sr(s,this,w)})}),Sm=st(function(s,l){var p=Vo(l,Vs(Sm));return io(s,E,n,l,p)}),X4=st(function(s,l){var p=Vo(l,Vs(X4));return io(s,T,n,l,p)}),PF=oo(function(s,l){return io(s,S,n,n,n,l)});function _F(s,l){if(typeof s!="function")throw new Kr(a);return l=l===n?l:nt(l),st(s,l)}function RF(s,l){if(typeof s!="function")throw new Kr(a);return l=l==null?0:bn(nt(l),0),st(function(p){var w=p[l],A=zo(p,0,l);return w&&Lo(A,w),Sr(s,this,A)})}function OF(s,l,p){var w=!0,A=!0;if(typeof s!="function")throw new Kr(a);return Zt(p)&&(w="leading"in p?!!p.leading:w,A="trailing"in p?!!p.trailing:A),J4(s,l,{leading:w,maxWait:l,trailing:A})}function MF(s){return H4(s,1)}function FF(s,l){return Sm(cm(l),s)}function kF(){if(!arguments.length)return[];var s=arguments[0];return Xe(s)?s:[s]}function BF(s){return zr(s,g)}function IF(s,l){return l=typeof l=="function"?l:n,zr(s,g,l)}function LF(s){return zr(s,h|g)}function VF(s,l){return l=typeof l=="function"?l:n,zr(s,h|g,l)}function NF(s,l){return l==null||V1(s,l,Sn(l))}function fi(s,l){return s===l||s!==s&&l!==l}var jF=Id(Xp),KF=Id(function(s,l){return s>=l}),Oa=W1(function(){return arguments}())?W1:function(s){return on(s)&&At.call(s,"callee")&&!R1.call(s,"callee")},Xe=se.isArray,UF=Ea?Tr(Ea):JO;function gr(s){return s!=null&&Hd(s.length)&&!so(s)}function sn(s){return on(s)&&gr(s)}function zF(s){return s===!0||s===!1||on(s)&&ir(s)==ne}var Wo=iO||Im,WF=h1?Tr(h1):XO;function HF(s){return on(s)&&s.nodeType===1&&!El(s)}function GF(s){if(s==null)return!0;if(gr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||Wo(s)||Ns(s)||Oa(s)))return!s.length;var l=Gn(s);if(l==et||l==pe)return!s.size;if(wl(s))return!tm(s).length;for(var p in s)if(At.call(s,p))return!1;return!0}function qF(s,l){return bl(s,l)}function YF(s,l,p){p=typeof p=="function"?p:n;var w=p?p(s,l):n;return w===n?bl(s,l,n,p):!!w}function Tm(s){if(!on(s))return!1;var l=ir(s);return l==he||l==xe||typeof s.message=="string"&&typeof s.name=="string"&&!El(s)}function ZF(s){return typeof s=="number"&&M1(s)}function so(s){if(!Zt(s))return!1;var l=ir(s);return l==le||l==Fe||l==$e||l==Z}function Q4(s){return typeof s=="number"&&s==nt(s)}function Hd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=M}function Zt(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function on(s){return s!=null&&typeof s=="object"}var e3=p1?Tr(p1):eM;function JF(s,l){return s===l||em(s,l,ym(l))}function XF(s,l,p){return p=typeof p=="function"?p:n,em(s,l,ym(l),p)}function QF(s){return t3(s)&&s!=+s}function e8(s){if(IM(s))throw new Je(o);return H1(s)}function t8(s){return s===null}function n8(s){return s==null}function t3(s){return typeof s=="number"||on(s)&&ir(s)==dt}function El(s){if(!on(s)||ir(s)!=yt)return!1;var l=bd(s);if(l===null)return!0;var p=At.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&md.call(p)==XR}var Am=m1?Tr(m1):tM;function r8(s){return Q4(s)&&s>=-9007199254740991&&s<=M}var n3=g1?Tr(g1):nM;function Gd(s){return typeof s=="string"||!Xe(s)&&on(s)&&ir(s)==Ce}function Pr(s){return typeof s=="symbol"||on(s)&&ir(s)==De}var Ns=y1?Tr(y1):rM;function i8(s){return s===n}function o8(s){return on(s)&&Gn(s)==Ve}function a8(s){return on(s)&&ir(s)==mt}var s8=Id(nm),u8=Id(function(s,l){return s<=l});function r3(s){if(!s)return[];if(gr(s))return Gd(s)?ci(s):mr(s);if(dl&&s[dl])return NR(s[dl]());var l=Gn(s),p=l==et?Up:l==pe?fd:js;return p(s)}function uo(s){if(!s)return s===0?s:0;if(s=Gr(s),s===_||s===-1/0){var l=s<0?-1:1;return l*Y}return s===s?s:0}function nt(s){var l=uo(s),p=l%1;return l===l?p?l-p:l:0}function i3(s){return s?Aa(nt(s),0,z):0}function Gr(s){if(typeof s=="number")return s;if(Pr(s))return V;if(Zt(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=Zt(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=D1(s);var p=Oo.test(s);return p||gt.test(s)?Un(s.slice(2),p?2:8):Ro.test(s)?V:+s}function o3(s){return Oi(s,yr(s))}function l8(s){return s?Aa(nt(s),-9007199254740991,M):s===0?s:0}function Dt(s){return s==null?"":Ar(s)}var c8=Is(function(s,l){if(wl(l)||gr(l)){Oi(l,Sn(l),s);return}for(var p in l)At.call(l,p)&&gl(s,p,l[p])}),a3=Is(function(s,l){Oi(l,yr(l),s)}),qd=Is(function(s,l,p,w){Oi(l,yr(l),s,w)}),d8=Is(function(s,l,p,w){Oi(l,Sn(l),s,w)}),f8=oo(Yp);function h8(s,l){var p=Bs(s);return l==null?p:L1(p,l)}var p8=st(function(s,l){s=It(s);var p=-1,w=l.length,A=w>2?l[2]:n;for(A&&or(l[0],l[1],A)&&(w=1);++p<w;)for(var I=l[p],H=yr(I),J=-1,ee=H.length;++J<ee;){var me=H[J],ge=s[me];(ge===n||fi(ge,Ms[me])&&!At.call(s,me))&&(s[me]=I[me])}return s}),m8=st(function(s){return s.push(n,D4),Sr(s3,n,s)});function g8(s,l){return b1(s,Ue(l,3),Ri)}function y8(s,l){return b1(s,Ue(l,3),Jp)}function v8(s,l){return s==null?s:Zp(s,Ue(l,3),yr)}function b8(s,l){return s==null?s:U1(s,Ue(l,3),yr)}function $8(s,l){return s&&Ri(s,Ue(l,3))}function x8(s,l){return s&&Jp(s,Ue(l,3))}function w8(s){return s==null?[]:Pd(s,Sn(s))}function D8(s){return s==null?[]:Pd(s,yr(s))}function Pm(s,l,p){var w=s==null?n:Pa(s,l);return w===n?p:w}function E8(s,l){return s!=null&&S4(s,l,GO)}function _m(s,l){return s!=null&&S4(s,l,qO)}var C8=v4(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=gd.call(l)),s[l]=p},Om(vr)),S8=v4(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=gd.call(l)),At.call(s,l)?s[l].push(p):s[l]=[p]},Ue),T8=st(vl);function Sn(s){return gr(s)?B1(s):tm(s)}function yr(s){return gr(s)?B1(s,!0):iM(s)}function A8(s,l){var p={};return l=Ue(l,3),Ri(s,function(w,A,I){ro(p,l(w,A,I),w)}),p}function P8(s,l){var p={};return l=Ue(l,3),Ri(s,function(w,A,I){ro(p,A,l(w,A,I))}),p}var _8=Is(function(s,l,p){_d(s,l,p)}),s3=Is(function(s,l,p,w){_d(s,l,p,w)}),R8=oo(function(s,l){var p={};if(s==null)return p;var w=!1;l=Ht(l,function(I){return I=Uo(I,s),w||(w=I.length>1),I}),Oi(s,mm(s),p),w&&(p=zr(p,h|m|g,CM));for(var A=l.length;A--;)sm(p,l[A]);return p});function O8(s,l){return u3(s,Wd(Ue(l)))}var M8=oo(function(s,l){return s==null?{}:aM(s,l)});function u3(s,l){if(s==null)return{};var p=Ht(mm(s),function(w){return[w]});return l=Ue(l),Q1(s,p,function(w,A){return l(w,A[0])})}function F8(s,l,p){l=Uo(l,s);var w=-1,A=l.length;for(A||(A=1,s=n);++w<A;){var I=s==null?n:s[Mi(l[w])];I===n&&(w=A,I=p),s=so(I)?I.call(s):I}return s}function k8(s,l,p){return s==null?s:$l(s,l,p)}function B8(s,l,p,w){return w=typeof w=="function"?w:n,s==null?s:$l(s,l,p,w)}var l3=x4(Sn),c3=x4(yr);function I8(s,l,p){var w=Xe(s),A=w||Wo(s)||Ns(s);if(l=Ue(l,4),p==null){var I=s&&s.constructor;A?p=w?new I:[]:Zt(s)?p=so(I)?Bs(bd(s)):{}:p={}}return(A?jr:Ri)(s,function(H,J,ee){return l(p,H,J,ee)}),p}function L8(s,l){return s==null?!0:sm(s,l)}function V8(s,l,p){return s==null?s:i4(s,l,cm(p))}function N8(s,l,p,w){return w=typeof w=="function"?w:n,s==null?s:i4(s,l,cm(p),w)}function js(s){return s==null?[]:Kp(s,Sn(s))}function j8(s){return s==null?[]:Kp(s,yr(s))}function K8(s,l,p){return p===n&&(p=l,l=n),p!==n&&(p=Gr(p),p=p===p?p:0),l!==n&&(l=Gr(l),l=l===l?l:0),Aa(Gr(s),l,p)}function U8(s,l,p){return l=uo(l),p===n?(p=l,l=0):p=uo(p),s=Gr(s),YO(s,l,p)}function z8(s,l,p){if(p&&typeof p!="boolean"&&or(s,l,p)&&(l=p=n),p===n&&(typeof l=="boolean"?(p=l,l=n):typeof s=="boolean"&&(p=s,s=n)),s===n&&l===n?(s=0,l=1):(s=uo(s),l===n?(l=s,s=0):l=uo(l)),s>l){var w=s;s=l,l=w}if(p||s%1||l%1){var A=F1();return Hn(s+A*(l-s+yn("1e-"+((A+"").length-1))),l)}return im(s,l)}var W8=Ls(function(s,l,p){return l=l.toLowerCase(),s+(p?d3(l):l)});function d3(s){return Rm(Dt(s).toLowerCase())}function f3(s){return s=Dt(s),s&&s.replace(pr,kR).replace(Op,"")}function H8(s,l,p){s=Dt(s),l=Ar(l);var w=s.length;p=p===n?w:Aa(nt(p),0,w);var A=p;return p-=l.length,p>=0&&s.slice(p,A)==l}function G8(s){return s=Dt(s),s&&Vt.test(s)?s.replace(En,BR):s}function q8(s){return s=Dt(s),s&&Ye.test(s)?s.replace(je,"\\$&"):s}var Y8=Ls(function(s,l,p){return s+(p?"-":"")+l.toLowerCase()}),Z8=Ls(function(s,l,p){return s+(p?" ":"")+l.toLowerCase()}),J8=m4("toLowerCase");function X8(s,l,p){s=Dt(s),l=nt(l);var w=l?Rs(s):0;if(!l||w>=l)return s;var A=(l-w)/2;return Bd(Dd(A),p)+s+Bd(wd(A),p)}function Q8(s,l,p){s=Dt(s),l=nt(l);var w=l?Rs(s):0;return l&&w<l?s+Bd(l-w,p):s}function ek(s,l,p){s=Dt(s),l=nt(l);var w=l?Rs(s):0;return l&&w<l?Bd(l-w,p)+s:s}function tk(s,l,p){return p||l==null?l=0:l&&(l=+l),uO(Dt(s).replace(Ft,""),l||0)}function nk(s,l,p){return(p?or(s,l,p):l===n)?l=1:l=nt(l),om(Dt(s),l)}function rk(){var s=arguments,l=Dt(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var ik=Ls(function(s,l,p){return s+(p?"_":"")+l.toLowerCase()});function ok(s,l,p){return p&&typeof p!="number"&&or(s,l,p)&&(l=p=n),p=p===n?z:p>>>0,p?(s=Dt(s),s&&(typeof l=="string"||l!=null&&!Am(l))&&(l=Ar(l),!l&&_s(s))?zo(ci(s),0,p):s.split(l,p)):[]}var ak=Ls(function(s,l,p){return s+(p?" ":"")+Rm(l)});function sk(s,l,p){return s=Dt(s),p=p==null?0:Aa(nt(p),0,s.length),l=Ar(l),s.slice(p,p+l.length)==l}function uk(s,l,p){var w=R.templateSettings;p&&or(s,l,p)&&(l=n),s=Dt(s),l=qd({},l,w,w4);var A=qd({},l.imports,w.imports,w4),I=Sn(A),H=Kp(A,I),J,ee,me=0,ge=l.interpolate||Kn,we="__p += '",Pe=zp((l.escape||Kn).source+"|"+ge.source+"|"+(ge===tt?va:Kn).source+"|"+(l.evaluate||Kn).source+"|$","g"),Le="//# sourceURL="+(At.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ul+"]")+`
68
- `;s.replace(Pe,function(He,lt,ht,_r,ar,Rr){return ht||(ht=_r),we+=s.slice(me,Rr).replace(Fo,IR),lt&&(J=!0,we+=`' +
69
- __e(`+lt+`) +
70
- '`),ar&&(ee=!0,we+=`';
71
- `+ar+`;
72
- __p += '`),ht&&(we+=`' +
73
- ((__t = (`+ht+`)) == null ? '' : __t) +
74
- '`),me=Rr+He.length,He}),we+=`';
75
- `;var We=At.call(l,"variable")&&l.variable;if(!We)we=`with (obj) {
76
- `+we+`
77
- }
78
- `;else if(wt.test(We))throw new Je(u);we=(ee?we.replace(er,""):we).replace(On,"$1").replace(tr,"$1;"),we="function("+(We||"obj")+`) {
79
- `+(We?"":`obj || (obj = {});
80
- `)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join;
81
- function print() { __p += __j.call(arguments, '') }
82
- `:`;
83
- `)+we+`return __p
84
- }`;var ot=p3(function(){return bt(I,Le+"return "+we).apply(n,H)});if(ot.source=we,Tm(ot))throw ot;return ot}function lk(s){return Dt(s).toLowerCase()}function ck(s){return Dt(s).toUpperCase()}function dk(s,l,p){if(s=Dt(s),s&&(p||l===n))return D1(s);if(!s||!(l=Ar(l)))return s;var w=ci(s),A=ci(l),I=E1(w,A),H=C1(w,A)+1;return zo(w,I,H).join("")}function fk(s,l,p){if(s=Dt(s),s&&(p||l===n))return s.slice(0,T1(s)+1);if(!s||!(l=Ar(l)))return s;var w=ci(s),A=C1(w,ci(l))+1;return zo(w,0,A).join("")}function hk(s,l,p){if(s=Dt(s),s&&(p||l===n))return s.replace(Ft,"");if(!s||!(l=Ar(l)))return s;var w=ci(s),A=E1(w,ci(l));return zo(w,A).join("")}function pk(s,l){var p=O,w=F;if(Zt(l)){var A="separator"in l?l.separator:A;p="length"in l?nt(l.length):p,w="omission"in l?Ar(l.omission):w}s=Dt(s);var I=s.length;if(_s(s)){var H=ci(s);I=H.length}if(p>=I)return s;var J=p-Rs(w);if(J<1)return w;var ee=H?zo(H,0,J).join(""):s.slice(0,J);if(A===n)return ee+w;if(H&&(J+=ee.length-J),Am(A)){if(s.slice(J).search(A)){var me,ge=ee;for(A.global||(A=zp(A.source,Dt(hr.exec(A))+"g")),A.lastIndex=0;me=A.exec(ge);)var we=me.index;ee=ee.slice(0,we===n?J:we)}}else if(s.indexOf(Ar(A),J)!=J){var Pe=ee.lastIndexOf(A);Pe>-1&&(ee=ee.slice(0,Pe))}return ee+w}function mk(s){return s=Dt(s),s&&Ir.test(s)?s.replace(Nn,zR):s}var gk=Ls(function(s,l,p){return s+(p?" ":"")+l.toUpperCase()}),Rm=m4("toUpperCase");function h3(s,l,p){return s=Dt(s),l=p?n:l,l===n?VR(s)?GR(s):_R(s):s.match(l)||[]}var p3=st(function(s,l){try{return Sr(s,n,l)}catch(p){return Tm(p)?p:new Je(p)}}),yk=oo(function(s,l){return jr(l,function(p){p=Mi(p),ro(s,p,Cm(s[p],s))}),s});function vk(s){var l=s==null?0:s.length,p=Ue();return s=l?Ht(s,function(w){if(typeof w[1]!="function")throw new Kr(a);return[p(w[0]),w[1]]}):[],st(function(w){for(var A=-1;++A<l;){var I=s[A];if(Sr(I[0],this,w))return Sr(I[1],this,w)}})}function bk(s){return zO(zr(s,h))}function Om(s){return function(){return s}}function $k(s,l){return s==null||s!==s?l:s}var xk=y4(),wk=y4(!0);function vr(s){return s}function Mm(s){return G1(typeof s=="function"?s:zr(s,h))}function Dk(s){return Y1(zr(s,h))}function Ek(s,l){return Z1(s,zr(l,h))}var Ck=st(function(s,l){return function(p){return vl(p,s,l)}}),Sk=st(function(s,l){return function(p){return vl(s,p,l)}});function Fm(s,l,p){var w=Sn(l),A=Pd(l,w);p==null&&!(Zt(l)&&(A.length||!w.length))&&(p=l,l=s,s=this,A=Pd(l,Sn(l)));var I=!(Zt(p)&&"chain"in p)||!!p.chain,H=so(s);return jr(A,function(J){var ee=l[J];s[J]=ee,H&&(s.prototype[J]=function(){var me=this.__chain__;if(I||me){var ge=s(this.__wrapped__),we=ge.__actions__=mr(this.__actions__);return we.push({func:ee,args:arguments,thisArg:s}),ge.__chain__=me,ge}return ee.apply(s,Lo([this.value()],arguments))})}),s}function Tk(){return pn._===this&&(pn._=QR),this}function km(){}function Ak(s){return s=nt(s),st(function(l){return J1(l,s)})}var Pk=fm(Ht),_k=fm(v1),Rk=fm(Ip);function m3(s){return bm(s)?Lp(Mi(s)):sM(s)}function Ok(s){return function(l){return s==null?n:Pa(s,l)}}var Mk=b4(),Fk=b4(!0);function Bm(){return[]}function Im(){return!1}function kk(){return{}}function Bk(){return""}function Ik(){return!0}function Lk(s,l){if(s=nt(s),s<1||s>M)return[];var p=z,w=Hn(s,z);l=Ue(l),s-=z;for(var A=jp(w,l);++p<s;)l(p);return A}function Vk(s){return Xe(s)?Ht(s,Mi):Pr(s)?[s]:mr(k4(Dt(s)))}function Nk(s){var l=++JR;return Dt(s)+l}var jk=kd(function(s,l){return s+l},0),Kk=hm("ceil"),Uk=kd(function(s,l){return s/l},1),zk=hm("floor");function Wk(s){return s&&s.length?Ad(s,vr,Xp):n}function Hk(s,l){return s&&s.length?Ad(s,Ue(l,2),Xp):n}function Gk(s){return x1(s,vr)}function qk(s,l){return x1(s,Ue(l,2))}function Yk(s){return s&&s.length?Ad(s,vr,nm):n}function Zk(s,l){return s&&s.length?Ad(s,Ue(l,2),nm):n}var Jk=kd(function(s,l){return s*l},1),Xk=hm("round"),Qk=kd(function(s,l){return s-l},0);function eB(s){return s&&s.length?Np(s,vr):0}function tB(s,l){return s&&s.length?Np(s,Ue(l,2)):0}return R.after=DF,R.ary=H4,R.assign=c8,R.assignIn=a3,R.assignInWith=qd,R.assignWith=d8,R.at=f8,R.before=G4,R.bind=Cm,R.bindAll=yk,R.bindKey=q4,R.castArray=kF,R.chain=U4,R.chunk=zM,R.compact=WM,R.concat=HM,R.cond=vk,R.conforms=bk,R.constant=Om,R.countBy=eF,R.create=h8,R.curry=Y4,R.curryRight=Z4,R.debounce=J4,R.defaults=p8,R.defaultsDeep=m8,R.defer=EF,R.delay=CF,R.difference=GM,R.differenceBy=qM,R.differenceWith=YM,R.drop=ZM,R.dropRight=JM,R.dropRightWhile=XM,R.dropWhile=QM,R.fill=e9,R.filter=nF,R.flatMap=oF,R.flatMapDeep=aF,R.flatMapDepth=sF,R.flatten=V4,R.flattenDeep=t9,R.flattenDepth=n9,R.flip=SF,R.flow=xk,R.flowRight=wk,R.fromPairs=r9,R.functions=w8,R.functionsIn=D8,R.groupBy=uF,R.initial=o9,R.intersection=a9,R.intersectionBy=s9,R.intersectionWith=u9,R.invert=C8,R.invertBy=S8,R.invokeMap=cF,R.iteratee=Mm,R.keyBy=dF,R.keys=Sn,R.keysIn=yr,R.map=Kd,R.mapKeys=A8,R.mapValues=P8,R.matches=Dk,R.matchesProperty=Ek,R.memoize=zd,R.merge=_8,R.mergeWith=s3,R.method=Ck,R.methodOf=Sk,R.mixin=Fm,R.negate=Wd,R.nthArg=Ak,R.omit=R8,R.omitBy=O8,R.once=TF,R.orderBy=fF,R.over=Pk,R.overArgs=AF,R.overEvery=_k,R.overSome=Rk,R.partial=Sm,R.partialRight=X4,R.partition=hF,R.pick=M8,R.pickBy=u3,R.property=m3,R.propertyOf=Ok,R.pull=f9,R.pullAll=j4,R.pullAllBy=h9,R.pullAllWith=p9,R.pullAt=m9,R.range=Mk,R.rangeRight=Fk,R.rearg=PF,R.reject=gF,R.remove=g9,R.rest=_F,R.reverse=Dm,R.sampleSize=vF,R.set=k8,R.setWith=B8,R.shuffle=bF,R.slice=y9,R.sortBy=wF,R.sortedUniq=E9,R.sortedUniqBy=C9,R.split=ok,R.spread=RF,R.tail=S9,R.take=T9,R.takeRight=A9,R.takeRightWhile=P9,R.takeWhile=_9,R.tap=W9,R.throttle=OF,R.thru=jd,R.toArray=r3,R.toPairs=l3,R.toPairsIn=c3,R.toPath=Vk,R.toPlainObject=o3,R.transform=I8,R.unary=MF,R.union=R9,R.unionBy=O9,R.unionWith=M9,R.uniq=F9,R.uniqBy=k9,R.uniqWith=B9,R.unset=L8,R.unzip=Em,R.unzipWith=K4,R.update=V8,R.updateWith=N8,R.values=js,R.valuesIn=j8,R.without=I9,R.words=h3,R.wrap=FF,R.xor=L9,R.xorBy=V9,R.xorWith=N9,R.zip=j9,R.zipObject=K9,R.zipObjectDeep=U9,R.zipWith=z9,R.entries=l3,R.entriesIn=c3,R.extend=a3,R.extendWith=qd,Fm(R,R),R.add=jk,R.attempt=p3,R.camelCase=W8,R.capitalize=d3,R.ceil=Kk,R.clamp=K8,R.clone=BF,R.cloneDeep=LF,R.cloneDeepWith=VF,R.cloneWith=IF,R.conformsTo=NF,R.deburr=f3,R.defaultTo=$k,R.divide=Uk,R.endsWith=H8,R.eq=fi,R.escape=G8,R.escapeRegExp=q8,R.every=tF,R.find=rF,R.findIndex=I4,R.findKey=g8,R.findLast=iF,R.findLastIndex=L4,R.findLastKey=y8,R.floor=zk,R.forEach=z4,R.forEachRight=W4,R.forIn=v8,R.forInRight=b8,R.forOwn=$8,R.forOwnRight=x8,R.get=Pm,R.gt=jF,R.gte=KF,R.has=E8,R.hasIn=_m,R.head=N4,R.identity=vr,R.includes=lF,R.indexOf=i9,R.inRange=U8,R.invoke=T8,R.isArguments=Oa,R.isArray=Xe,R.isArrayBuffer=UF,R.isArrayLike=gr,R.isArrayLikeObject=sn,R.isBoolean=zF,R.isBuffer=Wo,R.isDate=WF,R.isElement=HF,R.isEmpty=GF,R.isEqual=qF,R.isEqualWith=YF,R.isError=Tm,R.isFinite=ZF,R.isFunction=so,R.isInteger=Q4,R.isLength=Hd,R.isMap=e3,R.isMatch=JF,R.isMatchWith=XF,R.isNaN=QF,R.isNative=e8,R.isNil=n8,R.isNull=t8,R.isNumber=t3,R.isObject=Zt,R.isObjectLike=on,R.isPlainObject=El,R.isRegExp=Am,R.isSafeInteger=r8,R.isSet=n3,R.isString=Gd,R.isSymbol=Pr,R.isTypedArray=Ns,R.isUndefined=i8,R.isWeakMap=o8,R.isWeakSet=a8,R.join=l9,R.kebabCase=Y8,R.last=Hr,R.lastIndexOf=c9,R.lowerCase=Z8,R.lowerFirst=J8,R.lt=s8,R.lte=u8,R.max=Wk,R.maxBy=Hk,R.mean=Gk,R.meanBy=qk,R.min=Yk,R.minBy=Zk,R.stubArray=Bm,R.stubFalse=Im,R.stubObject=kk,R.stubString=Bk,R.stubTrue=Ik,R.multiply=Jk,R.nth=d9,R.noConflict=Tk,R.noop=km,R.now=Ud,R.pad=X8,R.padEnd=Q8,R.padStart=ek,R.parseInt=tk,R.random=z8,R.reduce=pF,R.reduceRight=mF,R.repeat=nk,R.replace=rk,R.result=F8,R.round=Xk,R.runInContext=Q,R.sample=yF,R.size=$F,R.snakeCase=ik,R.some=xF,R.sortedIndex=v9,R.sortedIndexBy=b9,R.sortedIndexOf=$9,R.sortedLastIndex=x9,R.sortedLastIndexBy=w9,R.sortedLastIndexOf=D9,R.startCase=ak,R.startsWith=sk,R.subtract=Qk,R.sum=eB,R.sumBy=tB,R.template=uk,R.times=Lk,R.toFinite=uo,R.toInteger=nt,R.toLength=i3,R.toLower=lk,R.toNumber=Gr,R.toSafeInteger=l8,R.toString=Dt,R.toUpper=ck,R.trim=dk,R.trimEnd=fk,R.trimStart=hk,R.truncate=pk,R.unescape=mk,R.uniqueId=Nk,R.upperCase=gk,R.upperFirst=Rm,R.each=z4,R.eachRight=W4,R.first=N4,Fm(R,function(){var s={};return Ri(R,function(l,p){At.call(R.prototype,p)||(s[p]=l)}),s}(),{chain:!1}),R.VERSION=r,jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){R[s].placeholder=R}),jr(["drop","take"],function(s,l){ft.prototype[s]=function(p){p=p===n?1:bn(nt(p),0);var w=this.__filtered__&&!l?new ft(this):this.clone();return w.__filtered__?w.__takeCount__=Hn(p,w.__takeCount__):w.__views__.push({size:Hn(p,z),type:s+(w.__dir__<0?"Right":"")}),w},ft.prototype[s+"Right"]=function(p){return this.reverse()[s](p).reverse()}}),jr(["filter","map","takeWhile"],function(s,l){var p=l+1,w=p==W||p==L;ft.prototype[s]=function(A){var I=this.clone();return I.__iteratees__.push({iteratee:Ue(A,3),type:p}),I.__filtered__=I.__filtered__||w,I}}),jr(["head","last"],function(s,l){var p="take"+(l?"Right":"");ft.prototype[s]=function(){return this[p](1).value()[0]}}),jr(["initial","tail"],function(s,l){var p="drop"+(l?"":"Right");ft.prototype[s]=function(){return this.__filtered__?new ft(this):this[p](1)}}),ft.prototype.compact=function(){return this.filter(vr)},ft.prototype.find=function(s){return this.filter(s).head()},ft.prototype.findLast=function(s){return this.reverse().find(s)},ft.prototype.invokeMap=st(function(s,l){return typeof s=="function"?new ft(this):this.map(function(p){return vl(p,s,l)})}),ft.prototype.reject=function(s){return this.filter(Wd(Ue(s)))},ft.prototype.slice=function(s,l){s=nt(s);var p=this;return p.__filtered__&&(s>0||l<0)?new ft(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),l!==n&&(l=nt(l),p=l<0?p.dropRight(-l):p.take(l-s)),p)},ft.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ft.prototype.toArray=function(){return this.take(z)},Ri(ft.prototype,function(s,l){var p=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),A=R[w?"take"+(l=="last"?"Right":""):l],I=w||/^find/.test(l);A&&(R.prototype[l]=function(){var H=this.__wrapped__,J=w?[1]:arguments,ee=H instanceof ft,me=J[0],ge=ee||Xe(H),we=function(lt){var ht=A.apply(R,Lo([lt],J));return w&&Pe?ht[0]:ht};ge&&p&&typeof me=="function"&&me.length!=1&&(ee=ge=!1);var Pe=this.__chain__,Le=!!this.__actions__.length,We=I&&!Pe,ot=ee&&!Le;if(!I&&ge){H=ot?H:new ft(this);var He=s.apply(H,J);return He.__actions__.push({func:jd,args:[we],thisArg:n}),new Ur(He,Pe)}return We&&ot?s.apply(this,J):(He=this.thru(we),We?w?He.value()[0]:He.value():He)})}),jr(["pop","push","shift","sort","splice","unshift"],function(s){var l=hd[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);R.prototype[s]=function(){var A=arguments;if(w&&!this.__chain__){var I=this.value();return l.apply(Xe(I)?I:[],A)}return this[p](function(H){return l.apply(Xe(H)?H:[],A)})}}),Ri(ft.prototype,function(s,l){var p=R[l];if(p){var w=p.name+"";At.call(ks,w)||(ks[w]=[]),ks[w].push({name:l,func:p})}}),ks[Fd(n,x).name]=[{name:"wrapper",func:n}],ft.prototype.clone=mO,ft.prototype.reverse=gO,ft.prototype.value=yO,R.prototype.at=H9,R.prototype.chain=G9,R.prototype.commit=q9,R.prototype.next=Y9,R.prototype.plant=J9,R.prototype.reverse=X9,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=Q9,R.prototype.first=R.prototype.head,dl&&(R.prototype[dl]=Z9),R},Os=qR();_i?((_i.exports=Os)._=Os,Pi._=Os):pn._=Os}).call(WI)}(Nl,Nl.exports)),Nl.exports}var mC=HI();const GI=To(mC);var zm={exports:{}};/*!
85
- Copyright (c) 2018 Jed Watson.
86
- Licensed under the MIT License (MIT), see
87
- http://jedwatson.github.io/classnames
88
- */var V3;function qI(){return V3||(V3=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(o=i(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var u in o)t.call(o,u)&&o[u]&&(a=i(a,u));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(zm)),zm.exports}var YI=qI();const $y=To(YI);/*
89
- * React Tooltip
90
- * {@link https://github.com/ReactTooltip/react-tooltip}
91
- * @copyright ReactTooltip Team
92
- * @license MIT
93
- */const ZI="react-tooltip-core-styles",JI="react-tooltip-base-styles",N3={core:!1,base:!1};function j3({css:e,id:t=JI,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||N3[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=ZI),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const u=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&u.firstChild?u.insertBefore(c,u.firstChild):u.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),N3[n]=!0}const K3=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[fC(Number(i)),hC({fallbackAxisSideDirection:"start"}),NI({padding:5})],border:u})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=a;return n?(c.push(jI({element:n,padding:5})),by(e,t,{placement:r,strategy:o,middleware:c}).then(({x:d,y:f,placement:h,middlewareData:m})=>{var g,v;const $={left:`${d}px`,top:`${f}px`,border:u},{x:C,y:x}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&v!==void 0?v:"bottom",D=u&&{borderBottom:u,borderRight:u};let P=0;if(u){const E=`${u}`.match(/(\d+)px/);P=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:$,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...D,[y]:`-${4+P}px`},place:h}})):by(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:d,y:f,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${f}px`},tooltipArrowStyles:{},place:h}))},U3=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),z3=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},W3=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",xy=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>xy(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!W3(e)||!W3(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>xy(e[i],t[i]))},XI=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},H3=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(XI(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},QI=typeof window<"u"?b.useLayoutEffect:b.useEffect,qr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},eL="DEFAULT_TOOLTIP_ID",tL={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},nL=b.createContext({getTooltipData:()=>tL});function gC(e=eL){return b.useContext(nL).getTooltipData(e)}var Us={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Wm={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const rL=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:u="top",offset:c=10,events:d=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:m,wrapper:g,delayShow:v=0,delayHide:$=0,float:C=!1,hidden:x=!1,noArrow:y=!1,clickable:D=!1,closeOnEsc:P=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:k,closeEvents:S,globalCloseEvents:U,imperativeModeOnly:O,style:F,position:G,afterShow:K,afterHide:W,disableTooltip:j,content:L,contentWrapperRef:_,isOpen:M,defaultIsOpen:Y=!1,setIsOpen:V,activeAnchor:z,setActiveAnchor:re,border:oe,opacity:fe,arrowColor:ie,role:Ee="tooltip"})=>{var $e;const ne=b.useRef(null),ye=b.useRef(null),xe=b.useRef(null),he=b.useRef(null),le=b.useRef(null),[Fe,et]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[dt,Dn]=b.useState(!1),[yt,q]=b.useState(!1),[Z,te]=b.useState(null),pe=b.useRef(!1),Ce=b.useRef(null),{anchorRefs:De,setActiveAnchor:_e}=gC(t),Ve=b.useRef(!1),[mt,ut]=b.useState([]),Rt=b.useRef(!1),Pn=f||d.includes("click"),_n=Pn||(k==null?void 0:k.click)||(k==null?void 0:k.dblclick)||(k==null?void 0:k.mousedown),Yt=k?{...k}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!k&&Pn&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ln=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&Pn&&Object.assign(Ln,{mouseleave:!1,blur:!1,mouseout:!1});const tn=U?{...U}:{escape:P||!1,scroll:E||!1,resize:T||!1,clickOutsideAnchor:_n||!1};O&&(Object.assign(Yt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ln,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(tn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),QI(()=>(Rt.current=!0,()=>{Rt.current=!1}),[]);const vt=Te=>{Rt.current&&(Te&&q(!0),setTimeout(()=>{Rt.current&&(V==null||V(Te),M===void 0&&Dn(Te))},10))};b.useEffect(()=>{if(M===void 0)return()=>null;M&&q(!0);const Te=setTimeout(()=>{Dn(M)},10);return()=>{clearTimeout(Te)}},[M]),b.useEffect(()=>{if(dt!==pe.current)if(qr(le),pe.current=dt,dt)K==null||K();else{const Te=(je=>{const Ye=je.match(/^([\d.]+)(ms|s)$/);if(!Ye)return 0;const[,Ft,rn]=Ye;return Number(Ft)*(rn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));le.current=setTimeout(()=>{q(!1),te(null),W==null||W()},Te+25)}},[dt]);const Vn=Te=>{et(je=>xy(je,Te)?je:Te)},Cr=(Te=v)=>{qr(xe),yt?vt(!0):xe.current=setTimeout(()=>{vt(!0)},Te)},Rn=(Te=$)=>{qr(he),he.current=setTimeout(()=>{Ve.current||vt(!1)},Te)},er=Te=>{var je;if(!Te)return;const Ye=(je=Te.currentTarget)!==null&&je!==void 0?je:Te.target;if(!(Ye!=null&&Ye.isConnected))return re(null),void _e({current:null});v?Cr():vt(!0),re(Ye),_e({current:Ye}),qr(he)},On=()=>{D?Rn($||100):$?Rn():vt(!1),qr(xe)},tr=({x:Te,y:je})=>{var Ye;const Ft={getBoundingClientRect:()=>({x:Te,y:je,width:0,height:0,top:je,left:Te,right:Te,bottom:je})};K3({place:(Ye=Z==null?void 0:Z.place)!==null&&Ye!==void 0?Ye:u,offset:c,elementReference:Ft,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(rn=>{Vn(rn)})},Nn=Te=>{if(!Te)return;const je=Te,Ye={x:je.clientX,y:je.clientY};tr(Ye),Ce.current=Ye},En=Te=>{var je;if(!dt)return;const Ye=Te.target;Ye.isConnected&&(!((je=ne.current)===null||je===void 0)&&je.contains(Ye)||[document.querySelector(`[id='${o}']`),...mt].some(Ft=>Ft==null?void 0:Ft.contains(Ye))||(vt(!1),qr(xe)))},Ir=z3(er,50),Vt=z3(On,50),Cn=Te=>{Vt.cancel(),Ir(Te)},Ne=()=>{Ir.cancel(),Vt()},tt=b.useCallback(()=>{var Te,je;const Ye=(Te=Z==null?void 0:Z.position)!==null&&Te!==void 0?Te:G;Ye?tr(Ye):C?Ce.current&&tr(Ce.current):z!=null&&z.isConnected&&K3({place:(je=Z==null?void 0:Z.place)!==null&&je!==void 0?je:u,offset:c,elementReference:z,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(Ft=>{Rt.current&&Vn(Ft)})},[dt,z,L,F,u,Z==null?void 0:Z.place,c,h,G,Z==null?void 0:Z.position,C]);b.useEffect(()=>{var Te,je;const Ye=new Set(De);mt.forEach(gt=>{j!=null&&j(gt)||Ye.add({current:gt})});const Ft=document.querySelector(`[id='${o}']`);Ft&&!(j!=null&&j(Ft))&&Ye.add({current:Ft});const rn=()=>{vt(!1)},jn=H3(z),Kt=H3(ne.current);tn.scroll&&(window.addEventListener("scroll",rn),jn==null||jn.addEventListener("scroll",rn),Kt==null||Kt.addEventListener("scroll",rn));let an=null;tn.resize?window.addEventListener("resize",rn):z&&ne.current&&(an=dC(z,ne.current,tt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const kt=gt=>{gt.key==="Escape"&&vt(!1)};tn.escape&&window.addEventListener("keydown",kt),tn.clickOutsideAnchor&&window.addEventListener("click",En);const wt=[],li=gt=>{dt&&(gt==null?void 0:gt.target)===z||er(gt)},va=gt=>{dt&&(gt==null?void 0:gt.target)===z&&On()},hr=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Ro=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Cn}):Ro.includes(gt)&&wt.push({event:gt,listener:li}))}),Object.entries(Ln).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Ne}):Ro.includes(gt)&&wt.push({event:gt,listener:va}))}),C&&wt.push({event:"pointermove",listener:Nn});const Oo=()=>{Ve.current=!0},Mo=()=>{Ve.current=!1,On()};return D&&!_n&&((Te=ne.current)===null||Te===void 0||Te.addEventListener("mouseenter",Oo),(je=ne.current)===null||je===void 0||je.addEventListener("mouseleave",Mo)),wt.forEach(({event:gt,listener:nr})=>{Ye.forEach(pr=>{var Kn;(Kn=pr.current)===null||Kn===void 0||Kn.addEventListener(gt,nr)})}),()=>{var gt,nr;tn.scroll&&(window.removeEventListener("scroll",rn),jn==null||jn.removeEventListener("scroll",rn),Kt==null||Kt.removeEventListener("scroll",rn)),tn.resize?window.removeEventListener("resize",rn):an==null||an(),tn.clickOutsideAnchor&&window.removeEventListener("click",En),tn.escape&&window.removeEventListener("keydown",kt),D&&!_n&&((gt=ne.current)===null||gt===void 0||gt.removeEventListener("mouseenter",Oo),(nr=ne.current)===null||nr===void 0||nr.removeEventListener("mouseleave",Mo)),wt.forEach(({event:pr,listener:Kn})=>{Ye.forEach(Fo=>{var Lr;(Lr=Fo.current)===null||Lr===void 0||Lr.removeEventListener(pr,Kn)})})}},[z,tt,yt,De,mt,k,S,U,Pn,v,$]),b.useEffect(()=>{var Te,je;let Ye=(je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a)!==null&&je!==void 0?je:"";!Ye&&t&&(Ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ft=new MutationObserver(rn=>{const jn=[],Kt=[];rn.forEach(an=>{if(an.type==="attributes"&&an.attributeName==="data-tooltip-id"&&(an.target.getAttribute("data-tooltip-id")===t?jn.push(an.target):an.oldValue===t&&Kt.push(an.target)),an.type==="childList"){if(z){const kt=[...an.removedNodes].filter(wt=>wt.nodeType===1);if(Ye)try{Kt.push(...kt.filter(wt=>wt.matches(Ye))),Kt.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}kt.some(wt=>{var li;return!!(!((li=wt==null?void 0:wt.contains)===null||li===void 0)&&li.call(wt,z))&&(q(!1),vt(!1),re(null),qr(xe),qr(he),!0)})}if(Ye)try{const kt=[...an.addedNodes].filter(wt=>wt.nodeType===1);jn.push(...kt.filter(wt=>wt.matches(Ye))),jn.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}}}),(jn.length||Kt.length)&&ut(an=>[...an.filter(kt=>!Kt.includes(kt)),...jn])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,a,Z==null?void 0:Z.anchorSelect,z]),b.useEffect(()=>{tt()},[tt]),b.useEffect(()=>{if(!(_!=null&&_.current))return()=>null;const Te=new ResizeObserver(()=>{setTimeout(()=>tt())});return Te.observe(_.current),()=>{Te.disconnect()}},[L,_==null?void 0:_.current]),b.useEffect(()=>{var Te;const je=document.querySelector(`[id='${o}']`),Ye=[...mt,je];z&&Ye.includes(z)||re((Te=mt[0])!==null&&Te!==void 0?Te:je)},[o,mt,z]),b.useEffect(()=>(Y&&vt(!0),()=>{qr(xe),qr(he)}),[]),b.useEffect(()=>{var Te;let je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a;if(!je&&t&&(je=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),je)try{const Ye=Array.from(document.querySelectorAll(je));ut(Ye)}catch{ut([])}},[t,a,Z==null?void 0:Z.anchorSelect]),b.useEffect(()=>{xe.current&&(qr(xe),Cr(v))},[v]);const nn=($e=Z==null?void 0:Z.content)!==null&&$e!==void 0?$e:L,fr=dt&&Object.keys(Fe.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:Te=>{if(Te!=null&&Te.anchorSelect)try{document.querySelector(Te.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Te.anchorSelect}" is not a valid CSS selector`)}te(Te??null),Te!=null&&Te.delay?Cr(Te.delay):vt(!0)},close:Te=>{Te!=null&&Te.delay?Rn(Te.delay):vt(!1)},activeAnchor:z,place:Fe.place,isOpen:!!(yt&&!x&&nn&&fr)})),yt&&!x&&nn?b.createElement(g,{id:t,role:Ee,className:$y("react-tooltip",Us.tooltip,Wm.tooltip,Wm[i],n,`react-tooltip__place-${Fe.place}`,Us[fr?"show":"closing"],fr?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&Us.fixed,D&&Us.clickable),onTransitionEnd:Te=>{qr(le),dt||Te.propertyName!=="opacity"||(q(!1),te(null),W==null||W())},style:{...F,...Fe.tooltipStyles,opacity:fe!==void 0&&fr?fe:void 0},ref:ne},nn,b.createElement(g,{className:$y("react-tooltip-arrow",Us.arrow,Wm.arrow,r,y&&Us.noArrow),style:{...Fe.tooltipArrowStyles,background:ie?`linear-gradient(to right bottom, transparent 50%, ${ie} 50%)`:void 0},ref:ye})):null},iL=({content:e})=>b.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),oL=b.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:u,variant:c="dark",place:d="top",offset:f=10,wrapper:h="div",children:m=null,events:g=["hover"],openOnClick:v=!1,positionStrategy:$="absolute",middlewares:C,delayShow:x=0,delayHide:y=0,float:D=!1,hidden:P=!1,noArrow:E=!1,clickable:T=!1,closeOnEsc:k=!1,closeOnScroll:S=!1,closeOnResize:U=!1,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K=!1,style:W,position:j,isOpen:L,defaultIsOpen:_=!1,disableStyleInjection:M=!1,border:Y,opacity:V,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,role:Ee="tooltip"},$e)=>{const[ne,ye]=b.useState(r),[xe,he]=b.useState(i),[le,Fe]=b.useState(d),[et,dt]=b.useState(c),[Dn,yt]=b.useState(f),[q,Z]=b.useState(x),[te,pe]=b.useState(y),[Ce,De]=b.useState(D),[_e,Ve]=b.useState(P),[mt,ut]=b.useState(h),[Rt,Pn]=b.useState(g),[_n,Yt]=b.useState($),[Ln,tn]=b.useState(null),[vt,Vn]=b.useState(null),Cr=b.useRef(M),{anchorRefs:Rn,activeAnchor:er}=gC(e),On=Vt=>Vt==null?void 0:Vt.getAttributeNames().reduce((Cn,Ne)=>{var tt;return Ne.startsWith("data-tooltip-")&&(Cn[Ne.replace(/^data-tooltip-/,"")]=(tt=Vt==null?void 0:Vt.getAttribute(Ne))!==null&&tt!==void 0?tt:null),Cn},{}),tr=Vt=>{const Cn={place:Ne=>{var tt;Fe((tt=Ne)!==null&&tt!==void 0?tt:d)},content:Ne=>{ye(Ne??r)},html:Ne=>{he(Ne??i)},variant:Ne=>{var tt;dt((tt=Ne)!==null&&tt!==void 0?tt:c)},offset:Ne=>{yt(Ne===null?f:Number(Ne))},wrapper:Ne=>{var tt;ut((tt=Ne)!==null&&tt!==void 0?tt:h)},events:Ne=>{const tt=Ne==null?void 0:Ne.split(" ");Pn(tt??g)},"position-strategy":Ne=>{var tt;Yt((tt=Ne)!==null&&tt!==void 0?tt:$)},"delay-show":Ne=>{Z(Ne===null?x:Number(Ne))},"delay-hide":Ne=>{pe(Ne===null?y:Number(Ne))},float:Ne=>{De(Ne===null?D:Ne==="true")},hidden:Ne=>{Ve(Ne===null?P:Ne==="true")},"class-name":Ne=>{tn(Ne)}};Object.values(Cn).forEach(Ne=>Ne(null)),Object.entries(Vt).forEach(([Ne,tt])=>{var nn;(nn=Cn[Ne])===null||nn===void 0||nn.call(Cn,tt)})};b.useEffect(()=>{ye(r)},[r]),b.useEffect(()=>{he(i)},[i]),b.useEffect(()=>{Fe(d)},[d]),b.useEffect(()=>{dt(c)},[c]),b.useEffect(()=>{yt(f)},[f]),b.useEffect(()=>{Z(x)},[x]),b.useEffect(()=>{pe(y)},[y]),b.useEffect(()=>{De(D)},[D]),b.useEffect(()=>{Ve(P)},[P]),b.useEffect(()=>{Yt($)},[$]),b.useEffect(()=>{Cr.current!==M&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[M]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:M==="core",disableBase:M}}))},[]),b.useEffect(()=>{var Vt;const Cn=new Set(Rn);let Ne=n;if(!Ne&&e&&(Ne=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(je=>{Cn.add({current:je})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const tt=document.querySelector(`[id='${t}']`);if(tt&&Cn.add({current:tt}),!Cn.size)return()=>null;const nn=(Vt=vt??tt)!==null&&Vt!==void 0?Vt:er.current,fr=new MutationObserver(je=>{je.forEach(Ye=>{var Ft;if(!nn||Ye.type!=="attributes"||!(!((Ft=Ye.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const rn=On(nn);tr(rn)})}),Te={attributes:!0,childList:!1,subtree:!1};if(nn){const je=On(nn);tr(je),fr.observe(nn,Te)}return()=>{fr.disconnect()}},[Rn,er,vt,t,n]),b.useEffect(()=>{W!=null&&W.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Y&&!U3("border",`${Y}`)&&console.warn(`[react-tooltip] "${Y}" is not a valid \`border\`.`),W!=null&&W.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),V&&!U3("opacity",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`opacity\`.`)},[]);let Nn=m;const En=b.useRef(null);if(o){const Vt=o({content:(vt==null?void 0:vt.getAttribute("data-tooltip-content"))||ne||null,activeAnchor:vt});Nn=Vt?b.createElement("div",{ref:En,className:"react-tooltip-content-wrapper"},Vt):null}else ne&&(Nn=ne);xe&&(Nn=b.createElement(iL,{content:xe}));const Ir={forwardRef:$e,id:e,anchorId:t,anchorSelect:n,className:$y(a,Ln),classNameArrow:u,content:Nn,contentWrapperRef:En,place:le,variant:et,offset:Dn,wrapper:mt,events:Rt,openOnClick:v,positionStrategy:_n,middlewares:C,delayShow:q,delayHide:te,float:Ce,hidden:_e,noArrow:E,clickable:T,closeOnEsc:k,closeOnScroll:S,closeOnResize:U,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K,style:W,position:j,isOpen:L,defaultIsOpen:_,border:Y,opacity:V,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,activeAnchor:vt,setActiveAnchor:Vt=>Vn(Vt),role:Ee};return b.createElement(rL,{...Ir})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||j3({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||j3({css:`
94
- .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const zt=typeof document<"u"?b.useLayoutEffect:()=>{};function wn(e){const t=b.useRef(null);return zt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function aL(e){let[t,n]=b.useState(e),r=b.useRef(null),i=wn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});zt(()=>{r.current&&i()});let o=wn(a=>{r.current=a(t),i()});return[t,o]}const qf={prefix:String(Math.round(Math.random()*1e10)),current:0},yC=b.createContext(qf),sL=b.createContext(!1);let uL=!!(typeof window<"u"&&window.document&&window.document.createElement),Hm=new WeakMap;function lL(e=!1){let t=b.useContext(yC),n=b.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Hm.get(o);a==null?Hm.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Hm.delete(o))}n.current=++t.current}return n.current}function cL(e){let t=b.useContext(yC);t===qf&&!uL&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=lL(!!e),r=t===qf&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function dL(e){let t=b.useId(),[n]=b.useState(nb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${qf.prefix}`;return e||`${r}-${t}`}const fL=typeof b.useId=="function"?dL:cL;function hL(){return!1}function pL(){return!0}function mL(e){return()=>{}}function nb(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(mL,hL,pL):b.useContext(sL)}let gL=!!(typeof window<"u"&&window.document&&window.document.createElement),Jo=new Map;function Mr(e){let[t,n]=b.useState(e),r=b.useRef(null),i=fL(t),o=b.useCallback(a=>{r.current=a},[]);return gL&&(Jo.has(i)&&!Jo.get(i).includes(o)?Jo.set(i,[...Jo.get(i),o]):Jo.set(i,[o])),zt(()=>{let a=i;return()=>{Jo.delete(a)}},[i]),b.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function yL(e,t){if(e===t)return e;let n=Jo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Jo.get(t);return r?(r.forEach(i=>i(e)),e):t}function Eu(e=[]){let t=Mr(),[n,r]=aL(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return zt(i,[t,i,...e]),n}function os(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Lt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},da=e=>e&&"window"in e&&e.window===e?e:Lt(e).defaultView||window;function vC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=vC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vL(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vC(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=os(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=vL(o,a):i==="id"&&o&&a?t.id=yL(o,a):t[i]=a!==void 0?a:o}}return t}const bL=new Set(["id"]),$L=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),xL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),wL=/^(data-.*)$/;function Ao(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(bL.has(a)||n&&$L.has(a)||r&&xL.has(a)||i!=null&&i.has(a)||wL.test(a))&&(o[a]=e[a]);return o}function vi(e){if(DL())e.focus({preventScroll:!0});else{let t=EL(e);e.focus(),CL(t)}}let ef=null;function DL(){if(ef==null){ef=!1;try{document.createElement("div").focus({get preventScroll(){return ef=!0,!0}})}catch{}}return ef}function EL(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function CL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Wh(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function rb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Po(e){let t=null;return()=>(t==null&&(t=e()),t)}const Eo=Po(function(){return rb(/^Mac/i)}),SL=Po(function(){return rb(/^iPhone/i)}),bC=Po(function(){return rb(/^iPad/i)||Eo()&&navigator.maxTouchPoints>1}),Rc=Po(function(){return SL()||bC()}),Tf=Po(function(){return Eo()||Rc()}),ib=Po(function(){return Wh(/AppleWebKit/i)&&!TL()}),TL=Po(function(){return Wh(/Chrome/i)}),$C=Po(function(){return Wh(/Android/i)}),AL=Po(function(){return Wh(/Firefox/i)}),PL=b.createContext({isNative:!0,open:RL,useHref:e=>e});function Hh(){return b.useContext(PL)}function as(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}=t;AL()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Eo()?o=!0:a=!0);let d=ib()&&Eo()&&!bC()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c,bubbles:!0,cancelable:!0});as.isOpening=n,vi(e),e.dispatchEvent(d),as.isOpening=!1}as.isOpening=!1;function _L(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function RL(e,t){_L(e,n=>as(n,t))}function OL(e){let t=Hh();var n;const r=t.useHref((n=e==null?void 0:e.href)!==null&&n!==void 0?n:"");return{href:e!=null&&e.href?r:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let Ys=new Map,wy=new Set;function G3(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Ys.get(r.target);i||(i=new Set,Ys.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=Ys.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Ys.delete(r.target)),Ys.size===0)){for(let o of wy)o();wy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?G3():document.addEventListener("DOMContentLoaded",G3));function xC(e){requestAnimationFrame(()=>{Ys.size===0?e():wy.add(e)})}function Ku(){let e=b.useRef(new Map),t=b.useCallback((i,o,a,u)=>{let c=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:u}),i.addEventListener(o,a,u)},[]),n=b.useCallback((i,o,a,u)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=b.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Cu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Mr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function q3(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function ML(){return typeof window.ResizeObserver<"u"}function Y3(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(ML()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function wC(e,t){zt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function cc(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Gh(e,t){let n=e;for(cc(n,t)&&(n=n.parentElement);n&&!cc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function FL(e,t){const n=[];for(;e&&e!==document.documentElement;)cc(e,t)&&n.push(e),e=e.parentElement;return n}let kL=0;const Gm=new Map;function Oc(e){let[t,n]=b.useState();return zt(()=>{if(!e)return;let r=Gm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${kL++}`;n(i);let o=document.createElement("div");o.id=i,o.style.display="none",o.textContent=e,document.body.appendChild(o),r={refCount:0,element:o},Gm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Gm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function aa(e,t,n,r){let i=wn(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function DC(e,t){let n=Z3(e,t,"left"),r=Z3(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),f=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),m=f+e.clientWidth,g=h+e.clientHeight;n<=a?a=n-parseInt(d,10):n+i>m&&(a+=n+i-m),r<=h?u=r-parseInt(c,10):r+o>g&&(u+=r+o-g),e.scrollLeft=a,e.scrollTop=u}function Z3(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Yf(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let c=FL(e);for(let d of c)DC(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Dy(e){return e.mozInputSource===0&&e.isTrusted?!0:$C()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function BL(e){return!$C()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function EC(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ob(e,t,n){let r=b.useRef(t),i=wn(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}function Fr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),a=e!==void 0;b.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,c=b.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let $=d(a?u:g,...v);return h($,...f),a?g:$})):(a||i(d),h(d,...f))},[a,u,n]);return[u,c]}function Su(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function tf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let a=Math.pow(10,o);n=Math.round(n*a)/a}return n}function Cl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=tf(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&o>n&&(o=Math.floor(tf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(tf((n-t)/r,r))*r),o=tf(o,r),o}let Xs="default",Ey="",Af=new WeakMap;function Cy(e){if(Rc()){if(Xs==="default"){const t=Lt(e);Ey=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Xs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Af.set(e,e.style.userSelect),e.style.userSelect="none")}function jl(e){if(Rc()){if(Xs!=="disabled")return;Xs="restoring",setTimeout(()=>{xC(()=>{if(Xs==="restoring"){const t=Lt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ey||""),Ey="",Xs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Af.has(e)){let t=Af.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Af.delete(e)}}const ab=b.createContext({register:()=>{}});ab.displayName="PressResponderContext";function IL(e,t){return t.get?t.get.call(e):t.value}function CC(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function LL(e,t){var n=CC(e,t,"get");return IL(e,n)}function VL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Mc(e,t,n){VL(e,t),t.set(e,n)}function NL(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function J3(e,t,n){var r=CC(e,t,"set");return NL(e,r,n),n}function jL(e){let t=b.useContext(ab);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return wC(t,e.ref),e}var nf=new WeakMap;class rf{continuePropagation(){J3(this,nf,!1)}get shouldStopPropagation(){return LL(this,nf)}constructor(t,n,r,i){Mc(this,nf,{writable:!0,value:void 0}),J3(this,nf,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(c=f-u.left,d=h-u.top):(c=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const X3=Symbol("linkClicked");function Fc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=jL(e),[g,v]=b.useState(!1),$=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=Ku(),y=wn((S,U)=>{let O=$.current;if(a||O.didFirePressStart)return!1;let F=!0;if(O.isTriggeringEvent=!0,r){let G=new rf("pressstart",U,S);r(G),F=G.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,v(!0),F}),D=wn((S,U,O=!0)=>{let F=$.current;if(!F.didFirePressStart)return!1;F.ignoreClickAfterPress=!0,F.didFirePressStart=!1,F.isTriggeringEvent=!0;let G=!0;if(i){let K=new rf("pressend",U,S);i(K),G=K.shouldStopPropagation}if(n&&n(!1),v(!1),t&&O&&!a){let K=new rf("press",U,S);t(K),G&&(G=K.shouldStopPropagation)}return F.isTriggeringEvent=!1,G}),P=wn((S,U)=>{let O=$.current;if(a)return!1;if(o){O.isTriggeringEvent=!0;let F=new rf("pressup",U,S);return o(F),O.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=wn(S=>{let U=$.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&D(co(U.target,S),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,x(),f||jl(U.target))}),T=wn(S=>{d&&E(S)}),k=b.useMemo(()=>{let S=$.current,U={onKeyDown(F){if(qm(F.nativeEvent,F.currentTarget)&&F.currentTarget.contains(F.target)){var G;e$(F.target,F.key)&&F.preventDefault();let K=!0;if(!S.isPressed&&!F.repeat){S.target=F.currentTarget,S.isPressed=!0,K=y(F,"keyboard");let W=F.currentTarget,j=L=>{qm(L,W)&&!L.repeat&&W.contains(L.target)&&S.target&&P(co(S.target,L),"keyboard")};C(Lt(F.currentTarget),"keyup",os(j,O),!0)}K&&F.stopPropagation(),F.metaKey&&Eo()&&((G=S.metaKeyEvents)===null||G===void 0||G.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(F){if(!(F&&!F.currentTarget.contains(F.target))&&F&&F.button===0&&!S.isTriggeringEvent&&!as.isOpening){let G=!0;if(a&&F.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Dy(F.nativeEvent))){!a&&!c&&vi(F.currentTarget);let K=y(F,"virtual"),W=P(F,"virtual"),j=D(F,"virtual");G=K&&W&&j}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,G&&F.stopPropagation()}}},O=F=>{var G;if(S.isPressed&&S.target&&qm(F,S.target)){var K;e$(F.target,F.key)&&F.preventDefault();let j=F.target;D(co(S.target,F),"keyboard",S.target.contains(j)),x(),F.key!=="Enter"&&sb(S.target)&&S.target.contains(j)&&!F[X3]&&(F[X3]=!0,as(S.target,F,!1)),S.isPressed=!1,(K=S.metaKeyEvents)===null||K===void 0||K.delete(F.key)}else if(F.key==="Meta"&&(!((G=S.metaKeyEvents)===null||G===void 0)&&G.size)){var W;let j=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of j.values())(W=S.target)===null||W===void 0||W.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(BL(j.nativeEvent)){S.pointerType="virtual";return}Ym(j.currentTarget)&&j.preventDefault(),S.pointerType=j.pointerType;let L=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=j.pointerId,S.target=j.currentTarget,!a&&!c&&vi(j.currentTarget),f||Cy(S.target),L=y(j,S.pointerType),C(Lt(j.currentTarget),"pointermove",F,!1),C(Lt(j.currentTarget),"pointerup",G,!1),C(Lt(j.currentTarget),"pointercancel",W,!1)),L&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Ym(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||S.pointerType==="virtual"||j.button===0&&zs(j,j.currentTarget)&&P(j,S.pointerType||j.pointerType)};let F=j=>{j.pointerId===S.activePointerId&&(S.target&&zs(j,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,y(co(S.target,j),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(co(S.target,j),S.pointerType,!1),T(j)))},G=j=>{j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target&&(zs(j,S.target)&&S.pointerType!=null?D(co(S.target,j),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(co(S.target,j),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,x(),f||jl(S.target),"ontouchend"in S.target&&j.pointerType!=="mouse"&&C(S.target,"touchend",K,{once:!0}))},K=j=>{SC(j.currentTarget)&&j.preventDefault()},W=j=>{E(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&E(j)}}else{U.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Ym(K.currentTarget)&&K.preventDefault(),S.ignoreEmulatedMouseEvents){K.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=K.currentTarget,S.pointerType=Dy(K.nativeEvent)?"virtual":"mouse",!a&&!c&&vi(K.currentTarget),y(K,S.pointerType)&&K.stopPropagation(),C(Lt(K.currentTarget),"mouseup",F,!1)},U.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,W=y(K,S.pointerType)),W&&K.stopPropagation()},U.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(K,S.pointerType,!1),T(K)),W&&K.stopPropagation()},U.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!S.ignoreEmulatedMouseEvents&&K.button===0&&P(K,S.pointerType||"mouse")};let F=K=>{if(K.button===0){if(S.isPressed=!1,x(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&zs(K,S.target)&&S.pointerType!=null?D(co(S.target,K),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(co(S.target,K),S.pointerType,!1),S.isOverTarget=!1}};U.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let W=KL(K.nativeEvent);if(!W)return;S.activePointerId=W.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=K.currentTarget,S.pointerType="touch",!a&&!c&&vi(K.currentTarget),f||Cy(S.target),y(Ho(S.target,K),S.pointerType)&&K.stopPropagation(),C(da(K.currentTarget),"scroll",G,!0)},U.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&zs(W,K.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,j=y(Ho(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,j=D(Ho(S.target,K),S.pointerType,!1),T(Ho(S.target,K))),j&&K.stopPropagation()},U.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&zs(W,K.currentTarget)&&S.pointerType!=null?(P(Ho(S.target,K),S.pointerType),j=D(Ho(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(j=D(Ho(S.target,K),S.pointerType,!1)),j&&K.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&jl(S.target),x()},U.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),S.isPressed&&E(Ho(S.target,K)))};let G=K=>{S.isPressed&&K.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=K=>{K.currentTarget.contains(K.target)&&E(K)}}return U},[C,a,c,x,f,E,T,D,y,P]);return b.useEffect(()=>()=>{var S;f||jl((S=$.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,k)}}function sb(e){return e.tagName==="A"&&e.hasAttribute("href")}function qm(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof da(i).HTMLInputElement&&!TC(i,n)||i instanceof da(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&sb(i))&&n!=="Enter")}function KL(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Q3(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Ho(e,t){let n=0,r=0;return t.targetTouches&&t.targetTouches.length===1&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function co(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function UL(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function zL(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function zs(e,t){let n=t.getBoundingClientRect(),r=UL(e);return zL(n,r)}function Ym(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function SC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!sb(e)}function e$(e,t){return e instanceof HTMLInputElement?!TC(e,t):SC(e)}const WL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function TC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":WL.has(e.type)}function HL({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(ab.Provider,{value:t},e)}class GL{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function AC(e){let t=b.useRef({isFocused:!1,observer:null});zt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wn(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new GL("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function qL(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),a=AC(o),u=b.useCallback(c=>{const d=Lt(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),a(c))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let fs=null,YL=new Set,Jl=new Map,ss=!1,Sy=!1;function qh(e,t){for(let n of YL)n(e,t)}function ZL(e){return!(e.metaKey||!Eo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Zf(e){ss=!0,ZL(e)&&(fs="keyboard",qh("keyboard",e))}function ni(e){fs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ss=!0,qh("pointer",e))}function PC(e){Dy(e)&&(ss=!0,fs="virtual")}function _C(e){e.target===window||e.target===document||(!ss&&!Sy&&(fs="virtual",qh("virtual",e)),ss=!1,Sy=!1)}function RC(){ss=!1,Sy=!0}function t$(e){if(typeof window>"u"||Jl.get(da(e)))return;const t=da(e),n=Lt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ss=!0,r.apply(this,arguments)},n.addEventListener("keydown",Zf,!0),n.addEventListener("keyup",Zf,!0),n.addEventListener("click",PC,!0),t.addEventListener("focus",_C,!0),t.addEventListener("blur",RC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{OC(e)},{once:!0}),Jl.set(t,{focus:r})}const OC=(e,t)=>{const n=da(e),r=Lt(e);t&&r.removeEventListener("DOMContentLoaded",t),Jl.has(n)&&(n.HTMLElement.prototype.focus=Jl.get(n).focus,r.removeEventListener("keydown",Zf,!0),r.removeEventListener("keyup",Zf,!0),r.removeEventListener("click",PC,!0),n.removeEventListener("focus",_C,!0),n.removeEventListener("blur",RC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),Jl.delete(n))};function JL(e){const t=Lt(e);let n;return t.readyState!=="loading"?t$(e):(n=()=>{t$(e)},t.addEventListener("DOMContentLoaded",n)),()=>OC(e,n)}typeof document<"u"&&JL();function n$(){return fs!=="pointer"}function Jf(){return fs}function MC(e){fs=e,qh(e,null)}function Uu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),a=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=AC(a),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let Xf=!1,Zm=0;function Ty(){Xf=!0,setTimeout(()=>{Xf=!1},50)}function r$(e){e.pointerType==="touch"&&Ty()}function XL(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",r$):document.addEventListener("touchend",Ty),Zm++,()=>{Zm--,!(Zm>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",r$):document.removeEventListener("touchend",Ty))}}function QL(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=b.useState(!1),u=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(XL,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let f=(g,v)=>{if(u.pointerType=v,i||v==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:v}),n&&n(!0),a(!0)},h=(g,v)=>{if(u.pointerType="",u.target=null,v==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:v}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{Xf&&g.pointerType==="mouse"||f(g,g.pointerType)},m.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(m.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!Xf&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return b.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:c,isHovered:o}}function eV(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=wn(c=>{n&&of(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),u=wn(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=Lt(d);if(typeof PointerEvent<"u"){let h=m=>{c.isPointerDown&&of(m,t)&&u(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&of(g,t)&&u(g),c.isPointerDown=!1},m=g=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&of(g,t)&&u(g),c.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function of(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function i$(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function FC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:i$(e.onKeyDown),onKeyUp:i$(e.onKeyUp)}}}function kC(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Ku(),u=wn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=wn((f,h)=>{jl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:b.useMemo(()=>{let f={},h=()=>{Cy(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=x=>{if(x.button===0){var y,D,P,E;u(x,"mouse",x.pageX-((P=(y=i.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&P!==void 0?P:0),x.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},v=x=>{x.button===0&&(c(x,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};f.onMouseDown=x=>{x.button===0&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};let $=x=>{let y=[...x.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(y>=0){var D,P;let{pageX:k,pageY:S}=x.changedTouches[y];var E,T;u(x,"touch",k-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((T=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:k,pageY:S}}},C=x=>{[...x.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(x,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=x=>{if(x.changedTouches.length===0||i.current.id!=null)return;let{pageX:y,pageY:D,identifier:P}=x.changedTouches[0];h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:y,pageY:D},i.current.id=P,o(window,"touchmove",$,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var C,x;let P=$.pointerType||"mouse";var y,D;u($,P,$.pageX-((y=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&y!==void 0?y:0),$.pageY-((D=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},v=$=>{if($.pointerId===i.current.id){let C=$.pointerType||"mouse";c($,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1)}};f.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1))}}let m=(g,v,$)=>{h(),u(g,"keyboard",v,$),c(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,c])}}const tV=500;function BC(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=tV,accessibilityDescription:a}=e;const u=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Ku(),{pressProps:f}=Fc({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=v=>{v.preventDefault()};c(m.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=Oc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function us(e){const t=Lt(e);if(Jf()==="virtual"){let n=t.activeElement;xC(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function nV(e){const t=da(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:u}=o(e);i=a!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function rV(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function IC(e,t){return e.nodeName!=="#comment"&&nV(e)&&rV(e,t)&&(!e.parentElement||IC(e.parentElement,e))}const o$=b.createContext(null),Ay="react-aria-focus-scope-restore";let Nt=null;function iV(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),a=b.useRef(null),u=b.useRef([]),{parentNode:c}=b.useContext(o$)||{},d=b.useMemo(()=>new _y({scopeRef:u}),[u]);zt(()=>{let m=c||mn.root;if(mn.getTreeNode(m.scopeRef)&&Nt&&!Qf(Nt,m.scopeRef)){let g=mn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),mn.addNode(d)},[d,c]),zt(()=>{let m=mn.getTreeNode(u);m&&(m.contain=!!n)},[n]),zt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,v=[],$=C=>C.stopPropagation();for(;g&&g!==a.current;)v.push(g),g.addEventListener(Ay,$),g=g.nextSibling;return u.current=v,()=>{for(let C of v)C.removeEventListener(Ay,$)}},[t]),dV(u,r,n),uV(u,n),fV(u,r,n),cV(u,i),b.useEffect(()=>{const m=Lt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let v of mn.traverse())v.scopeRef&&ui(m,v.scopeRef.current)&&(g=v);g===mn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),zt(()=>()=>{var m,g,v;let $=(v=(g=mn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&v!==void 0?v:null;(u===Nt||Qf(u,Nt))&&(!$||mn.getTreeNode($))&&(Nt=$),mn.removeTreeNode(u)},[u]);let f=b.useMemo(()=>oV(u),[]),h=b.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return b.createElement(o$.Provider,{value:h},b.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,b.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function oV(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[0].previousElementSibling,d=Ka(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=Ka(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ka(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&xr(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ka(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const ub=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],aV=ub.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ub.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const sV=ub.join(':not([hidden]):not([tabindex="-1"]),');function Ka(e){return e[0].parentElement}function Kl(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function uV(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);zt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Lt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Kl(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=Ka(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let v=d.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,v=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),v&&xr(v,!0)},u=d=>{(!Nt||Qf(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):Kl(e)&&!ta(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&Py(Nt.current):Kl(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&Kl(e)&&!ta(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var f;n.current=d.target,(f=n.current)===null||f===void 0||f.focus()}else Nt.current&&Py(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),zt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function LC(e){return ta(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ta(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of mn.traverse(mn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function lV(e){return ta(e,Nt)}function Qf(e,t){var n;let r=(n=mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{us(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function VC(e,t=!0){let n=e[0].previousElementSibling,r=Ka(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Ka(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function Py(e,t=!0){xr(VC(e,t))}function cV(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Nt=e;const r=Lt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&Py(e.current)}n.current=!1},[e])}function dV(e,t,n){zt(()=>{if(t||n)return;let r=e.current;const i=Lt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:LC(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function a$(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function fV(e,t,n){const r=b.useRef(typeof document<"u"?Lt(e.current?e.current[0]:void 0).activeElement:null);zt(()=>{let i=e.current;const o=Lt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||Qf(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Kl(e)||a.isComposing)return;let u=i.activeElement;if(!ta(u,e)||!a$(e))return;let c=mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!ta(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(ta(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):LC(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=mn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=mn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore;if(t&&c&&(i.activeElement&&ta(i.activeElement,e)||i.activeElement===i.body&&a$(e))){let d=mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){s$(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&mn.getTreeNode(f.scopeRef)){let h=VC(f.scopeRef.current,!0);s$(h);return}f=f.parent}}})}}}},[e,t])}function s$(e){e.dispatchEvent(new CustomEvent(Ay,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?sV:aV,i=Lt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&IC(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Yh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(c))d.currentNode=c;else{let h=Jm(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=Jm(d);if(!h)return null;f=h}return f&&xr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=wr(r,{tabbable:i,accept:o}).nextNode();return u&&xr(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=wr(r,{tabbable:i,accept:o}),u=Jm(a);return u&&xr(u,!0),u??null}}}function Jm(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class lb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new _y({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new lb;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _y({scopeRef:null}),this.fastMap.set(null,this.root)}}class _y{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let mn=new lb,hV=b.createContext(null);function pV(e){let t=b.useContext(hV)||{};wC(t,e);let{ref:n,...r}=t;return r}function cb(e,t){let{focusProps:n}=qL(e),{keyboardProps:r}=FC(e),i=xt(n,r),o=pV(t),a=e.isDisabled?{}:o,u=b.useRef(e.autoFocus);return b.useEffect(()=>{u.current&&t.current&&us(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const mV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),gV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function yV(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return mV.has(n.script)}let t=e.split("-")[0];return gV.has(t)}const vV=Symbol.for("react-aria.i18n.locale");function NC(){let e=typeof window<"u"&&window[vV]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:yV(e)?"rtl":"ltr"}}let Ry=NC(),Ul=new Set;function u$(){Ry=NC();for(let e of Ul)e(Ry)}function bV(){let e=nb(),[t,n]=b.useState(Ry);return b.useEffect(()=>(Ul.size===0&&window.addEventListener("languagechange",u$),Ul.add(n),()=>{Ul.delete(n),Ul.size===0&&window.removeEventListener("languagechange",u$)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const $V=b.createContext(null);function Qn(){let e=bV();return b.useContext($V)||e}const xV=Symbol.for("react-aria.i18n.locale"),wV=Symbol.for("react-aria.i18n.strings");let Ws;class ga{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=DV(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[xV];if(Ws===void 0){let i=window[wV];if(!i)return null;Ws={};for(let o in i)Ws[o]=new ga({[n]:i[o]},n)}let r=Ws==null?void 0:Ws[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function DV(e,t,n="en-US"){if(t[e])return t[e];let r=EV(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function EV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const l$=new Map,c$=new Map;class jC{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=l$.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),l$.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=c$.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),c$.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const d$=new WeakMap;function CV(e){let t=d$.get(e);return t||(t=new ga(e),d$.set(e,t)),t}function KC(e,t){return t&&ga.getGlobalDictionaryForPackage(t)||CV(e)}function Xi(e,t){let{locale:n}=Qn(),r=KC(e,t);return b.useMemo(()=>new jC(n,r),[n,r])}function cu(e,t){return e-t*Math.floor(e/t)}const UC=1721426;function Ua(e,t,n,r){t=kc(e,t);let i=t-1,o=-2;return n<=2?o=0:na(t)&&(o=-1),UC-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function na(e){return e%4===0&&(e%100!==0||e%400===0)}function kc(e,t){return e==="BC"?1-t:t}function Zh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const SV={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class dr{fromJulianDay(t){let n=t,r=n-UC,i=Math.floor(r/146097),o=cu(r,146097),a=Math.floor(o/36524),u=cu(o,36524),c=Math.floor(u/1461),d=cu(u,1461),f=Math.floor(d/365),h=i*400+a*100+c*4+f+(a!==4&&f!==4?1:0),[m,g]=Zh(h),v=n-Ua(m,g,1,1),$=2;n<Ua(m,g,3,1)?$=0:na(g)&&($=1);let C=Math.floor(((v+$)*12+373)/367),x=n-Ua(m,g,C,1)+1;return new hn(m,g,C,x)}toJulianDay(t){return Ua(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return SV[na(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return na(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const TV={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function xn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Oy(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function zC(e,t){return xn(e,Jh(t))}const AV={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function db(e,t,n){let r=e.calendar.toJulianDay(e),i=n?AV[n]:FV(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function WC(e){return yo(Date.now(),e)}function Jh(e){return cr(WC(e))}function HC(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function GC(e,t){return f$(e)-f$(t)}function f$(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Xm=null;function Bc(){return Xm==null&&(Xm=new Intl.DateTimeFormat().resolvedOptions().timeZone),Xm}function Ic(e){return e.subtract({days:e.day-1})}function My(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function PV(e){return Ic(e.subtract({months:e.month-1}))}function _V(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function RV(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function dc(e,t,n){let r=db(e,t,n);return e.subtract({days:r})}function OV(e,t,n){return dc(e,t,n).add({days:6})}const h$=new Map;function MV(e){if(Intl.Locale){let n=h$.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&h$.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function FV(e){let t=MV(e);return t&&TV[t]||0}function kV(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((db(Ic(e),t,n)+r)/7)}function fb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function hb(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Tu(e){e=Qt(e,new dr);let t=kc(e.era,e.year);return qC(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function qC(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function Fy(e,t){if(t==="UTC")return 0;if(e>0&&t===Bc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=YC(e,t);return qC(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const p$=new Map;function YC(e,t){let n=p$.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),p$.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const m$=864e5;function BV(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>IV(e,t,o))}function IV(e,t,n){let r=YC(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function go(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Tu(r);if(t===Bc()&&n==="compatible"){r=Qt(r,new dr);let c=new Date,d=kc(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Tu(r),o=Fy(i-m$,t),a=Fy(i+m$,t),u=BV(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function ZC(e,t,n="compatible"){return new Date(go(e,t,n))}function yo(e,t){let n=Fy(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new hc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,c,d,f)}function cr(e){return new hn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new eh(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function g$(e){return new Lc(e.hour,e.minute,e.second,e.millisecond)}function Qt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,ls(r),r}function JC(e,t,n){if(e instanceof hc)return e.timeZone===t?e:VV(e,t);let r=go(e,t,n);return yo(r,t)}function LV(e){let t=Tu(e)-e.offset;return new Date(t)}function VV(e,t){let n=Tu(e)-e.offset;return Qt(yo(n,t),e.calendar)}const Sl=36e5;function Xh(e,t){let n=e.copy(),r="hour"in n?tS(n,t):0;ky(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,By(n),XC(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,NV(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let c=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ky(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function By(e){for(;e.month<1;)ky(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ky(e,1)}function NV(e){for(;e.day<1;)e.month--,By(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,By(e)}function XC(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function ls(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),XC(e)}function pb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function QC(e,t){return Xh(e,pb(t))}function mb(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),ls(n),n}function fc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),eS(n),n}function jV(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=af(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=af(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=af(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=af(e.hour,24),t}function eS(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function af(e,t){let n=e%t;return n<0&&(n+=t),n}function tS(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,jV(e)}function nS(e,t){let n=e.copy();return tS(n,t),n}function KV(e,t){return nS(e,pb(t))}function gb(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=vo(c,n,0,u.length-1,r==null?void 0:r.round),i.era=u[c],ls(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=vo(e.year,n,-1/0,9999,r==null?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=vo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=vo(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),ls(i),i}function yb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;a=c?12:0,u=c?23:11}i.hour=vo(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=vo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=vo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=vo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function vo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function rS(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Xh(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=go(i,e.timeZone)}else n=Tu(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=yo(n,e.timeZone);return Qt(r,e.calendar)}function UV(e,t){return rS(e,pb(t))}function zV(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,o=v?23:11}let a=Di(e),u=Qt(fc(a,{hour:i}),new dr),c=[go(u,e.timeZone,"earlier"),go(u,e.timeZone,"later")].filter(v=>yo(v,e.timeZone).day===u.day)[0],d=Qt(fc(a,{hour:o}),new dr),f=[go(d,e.timeZone,"earlier"),go(d,e.timeZone,"later")].filter(v=>yo(v,e.timeZone).day===d.day).pop(),h=Tu(e)-e.offset,m=Math.floor(h/Sl),g=h%Sl;return h=vo(m,n,Math.floor(c/Sl),Math.floor(f/Sl),r==null?void 0:r.round)*Sl+g,Qt(yo(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return yb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=gb(Di(e),t,n,r),o=go(i,e.timeZone);return Qt(yo(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function WV(e,t,n){let r=Di(e),i=fc(mb(r,t),t);if(i.compare(r)===0)return e;let o=go(i,e.timeZone,n);return Qt(yo(o,e.timeZone),e.calendar)}const HV=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function GV(e){let t=e.match(HV);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new hn(Qm(t[1],0,9999),Qm(t[2],1,12),1);return n.day=Qm(t[3],0,n.calendar.getDaysInMonth(n)),n}function Qm(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function iS(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function oS(e){let t=Qt(e,new dr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function aS(e){return`${oS(e)}T${iS(e)}`}function qV(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function YV(e){return`${aS(e)}${qV(e.offset)}[${e.timeZone}]`}function vb(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var ZV=new WeakMap;class hn{copy(){return this.era?new hn(this.calendar,this.era,this.year,this.month,this.day):new hn(this.calendar,this.year,this.month,this.day)}add(t){return Xh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(this,t)}cycle(t,n,r){return gb(this,t,n,r)}toDate(t){return ZC(this,t)}toString(){return oS(this)}compare(t){return HC(this,t)}constructor(...t){Mc(this,ZV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,ls(this)}}var JV=new WeakMap;class Lc{copy(){return new Lc(this.hour,this.minute,this.second,this.millisecond)}add(t){return nS(this,t)}subtract(t){return KV(this,t)}set(t){return fc(this,t)}cycle(t,n,r){return yb(this,t,n,r)}toString(){return iS(this)}compare(t){return GC(this,t)}constructor(t=0,n=0,r=0,i=0){Mc(this,JV,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,eS(this)}}var XV=new WeakMap;class eh{copy(){return this.era?new eh(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new eh(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Xh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(fc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return gb(this,t,n,r);default:return yb(this,t,n,r)}}toDate(t,n){return ZC(this,t,n)}toString(){return aS(this)}compare(t){let n=HC(this,t);return n===0?GC(this,Di(t)):n}constructor(...t){Mc(this,XV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ls(this)}}var QV=new WeakMap;class hc{copy(){return this.era?new hc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new hc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return rS(this,t)}subtract(t){return UV(this,t)}set(t,n){return WV(this,t,n)}cycle(t,n,r){return zV(this,t,n,r)}toDate(){return LV(this)}toString(){return YV(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-JC(t,this.timeZone).toDate().getTime()}constructor(...t){Mc(this,QV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t),u=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ls(this)}}const du=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],eN=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Pf=[1867,1911,1925,1988,2018],Xo=["meiji","taisho","showa","heisei","reiwa"];function y$(e){const t=du.findIndex(([n,r,i])=>e.year<n||e.year===n&&e.month<r||e.year===n&&e.month===r&&e.day<i);return t===-1?du.length-1:t===0?0:t-1}function eg(e){let t=Pf[Xo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new hn(e.year+t,e.month,e.day)}class tN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=y$(n);return new hn(this,Xo[r],n.year-Pf[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(eg(t))}balanceDate(t){let n=eg(t),r=y$(n);Xo[r]!==t.era&&(t.era=Xo[r],t.year=n.year-Pf[r]),this.constrainDate(t)}constrainDate(t){let n=Xo.indexOf(t.era),r=eN[n];if(r!=null){let[i,o,a]=r,u=i-Pf[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=du[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return Xo}getYearsInEra(t){let n=Xo.indexOf(t.era),r=du[n],i=du[n+1];if(i==null)return 9999-r[0]+1;let o=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&o++,o}getDaysInMonth(t){return super.getDaysInMonth(eg(t))}getMinimumMonthInYear(t){let n=v$(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=v$(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function v$(e){if(e.year===1){let t=Xo.indexOf(e.era);return du[t]}}const sS=-543;class nN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kc(n.era,n.year);return new hn(this,r-sS,n.month,n.day)}toJulianDay(t){return super.toJulianDay(b$(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(b$(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function b$(e){let[t,n]=Zh(e.year+sS);return new hn(t,n,e.month,e.day)}const th=1911;function uS(e){return e.era==="minguo"?e.year+th:1-e.year+th}function $$(e){let t=e-th;return t>0?["minguo",t]:["before_minguo",1-t]}class rN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=kc(n.era,n.year),[i,o]=$$(r);return new hn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(x$(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=$$(uS(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(x$(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-th}constructor(...t){super(...t),this.identifier="roc"}}function x$(e){let[t,n]=Zh(uS(e));return new hn(t,n,e.month,e.day)}const w$=1948320,D$=[0,31,62,93,124,155,186,216,246,276,306,336];class iN{fromJulianDay(t){let n=t-w$,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-D$[a]+1;return new hn(this,r,a+1,u)}toJulianDay(t){let n=w$-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=D$[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||cu(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const tg=78,E$=80;class oN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-tg,i=t-Ua(n.era,n.year,1,1),o;i<E$?(r--,o=na(n.year-1)?31:30,i+=o+155+90+10):(o=na(n.year)?31:30,i-=E$);let a,u;if(i<o)a=1,u=i+1;else{let c=i-o;c<155?(a=Math.floor(c/31)+2,u=c%31+1):(c-=155,a=Math.floor(c/30)+7,u=c%30+1)}return new hn(this,r,a,u)}toJulianDay(t){let n=t.year+tg,[r,i]=Zh(n),o,a;return na(i)?(o=31,a=Ua(r,i,3,21)):(o=30,a=Ua(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&na(t.year+tg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const nh=1948440,C$=1948439,ei=1300,Hs=1600,aN=460322;function rh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function lS(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+rh(t,r,1,1)))/29.5)+1),o=n-rh(t,r,i,1)+1;return new hn(e,r,i,o)}function S$(e){return(14+11*e)%30<11}class bb{fromJulianDay(t){return lS(this,nh,t)}toJulianDay(t){return rh(nh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&S$(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return S$(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class sN extends bb{fromJulianDay(t){return lS(this,C$,t)}toJulianDay(t){return rh(C$,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const uN="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Iy,fu;function _f(e){return aN+fu[e-ei]}function zl(e,t){let n=e-ei,r=1<<11-(t-1);return Iy[n]&r?30:29}function T$(e,t){let n=_f(e);for(let r=1;r<t;r++)n+=zl(e,r);return n}function A$(e){return fu[e+1-ei]-fu[e-ei]}class lN extends bb{fromJulianDay(t){let n=t-nh,r=_f(ei),i=_f(Hs);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-_f(o)+1;let c=A$(o);if(u===c){a=12;break}else if(u<c){let d=zl(o,a);for(a=1;u>d;)u-=d,a++,d=zl(o,a);break}}return new hn(this,o,a,n-T$(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>Hs?super.toJulianDay(t):nh+T$(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>Hs?super.getDaysInMonth(t):zl(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>Hs?super.getDaysInYear(t):A$(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Iy||(Iy=new Uint16Array(Uint8Array.from(atob(uN),t=>t.charCodeAt(0)).buffer)),!fu){fu=new Uint32Array(Hs-ei+1);let t=0;for(let n=ei;n<=Hs;n++){fu[n-ei]=t;for(let r=1;r<=12;r++)t+=zl(n,r)}}}}const P$=347997,cS=1080,dS=24*cS,cN=29,dN=12*cS+793,fN=cN*dS+dN;function Va(e){return cu(e*7+1,19)<7}function Rf(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return cu(3*(r+1),7)<3&&(r+=1),r}function hN(e){let t=Rf(e-1),n=Rf(e);return Rf(e+1)-n===356?2:n-t===382?1:0}function Xl(e){return Rf(e)+hN(e)}function fS(e){return Xl(e+1)-Xl(e)}function pN(e){let t=fS(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function sf(e,t){if(t>=6&&!Va(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=pN(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Va(e)?30:0:30}class mN{fromJulianDay(t){let n=t-P$,r=n*dS/fN,i=Math.floor((19*r+234)/235)+1,o=Xl(i),a=Math.floor(n-o);for(;a<1;)i--,o=Xl(i),a=Math.floor(n-o);let u=1,c=0;for(;c<a;)c+=sf(i,u),u++;u--,c-=sf(i,u);let d=a-c;return new hn(this,i,u,d)}toJulianDay(t){let n=Xl(t.year);for(let r=1;r<t.month;r++)n+=sf(t.year,r);return n+t.day+P$}getDaysInMonth(t){return sf(t.year,t.month)}getMonthsInYear(t){return Va(t.year)?13:12}getDaysInYear(t){return fS(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Va(n.year)&&!Va(t.year)&&n.month>6?t.month--:!Va(n.year)&&Va(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ly=1723856,_$=1824665,Vy=5500;function ih(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function $b(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ih(e,n,1,1))/30),i=t+1-ih(e,n,r,1);return[n,r,i]}function hS(e){return Math.floor(e%4/3)}function pS(e,t){return t%13!==0?30:hS(e)+5}class xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t),o="AM";return n<=0&&(o="AA",n+=Vy),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Vy),ih(Ly,n,t.month,t.day)}getDaysInMonth(t){return pS(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+hS(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class gN extends xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t);return n+=Vy,new hn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class yN extends xb{fromJulianDay(t){let[n,r,i]=$b(_$,t),o="CE";return n<=0&&(o="BCE",n=1-n),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ih(_$,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),pS(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function vN(e){switch(e){case"buddhist":return new nN;case"ethiopic":return new xb;case"ethioaa":return new gN;case"coptic":return new yN;case"hebrew":return new mN;case"indian":return new oN;case"islamic-civil":return new bb;case"islamic-tbla":return new sN;case"islamic-umalqura":return new lN;case"japanese":return new tN;case"persian":return new iN;case"roc":return new rN;case"gregory":default:return new dr}}let ng=new Map;class ii{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return xN()&&(this.resolvedHourCycle||(this.resolvedHourCycle=wN(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=mS(t,n),this.options=n}}const bN={true:{ja:"h11"},false:{}};function mS(e,t={}){if(typeof t.hour12=="boolean"&&$N()){t={...t};let i=bN[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ng.has(n))return ng.get(n);let r=new Intl.DateTimeFormat(e,t);return ng.set(n,r),r}let rg=null;function $N(){return rg==null&&(rg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),rg}let ig=null;function xN(){return ig==null&&(ig=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ig}function wN(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=mS(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Vi(e){e=EC(e??{},DN);let{locale:t}=Qn();return b.useMemo(()=>new ii(t,e),[t,e])}function DN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let og=new Map,Ny=!1;try{Ny=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let oh=!1;try{oh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const gS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class yS{format(t){let n="";if(!Ny&&this.options.signDisplay!=null?n=CN(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!oh){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=gS[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ny&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!oh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=EN(t,n),this.options=n}}function EN(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!oh){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=gS[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(og.has(i))return og.get(i);let o=new Intl.NumberFormat(e,t);return og.set(i,o),o}function CN(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),a=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(a,"+").replace("!!!",o)}else return e.format(n)}}const SN=new RegExp("^.*\\(.*\\).*$"),TN=["latn","arab","hanidec","deva","beng"];class vS{parse(t){return ag(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ag(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ag(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const R$=new Map;function ag(e,t,n){let r=O$(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of TN)if(i!==r.options.numberingSystem){let o=O$(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function O$(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=R$.get(n);return r||(r=new AN(e,t),R$.set(n,r)),r}class AN{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=uf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new vS(this.locale,a).parse(new yS(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&SN.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=uf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=uf(t,"."," ")),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=uf(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=_N(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const M$=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),PN=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function _N(e,t,n,r){var i,o,a,u;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=PN.map(O=>c.formatToParts(O));var m;let g=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",v=(o=f.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!v&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(v="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||a===void 0?void 0:a.value,x=(u=d.find(O=>O.type==="group"))===null||u===void 0?void 0:u.value,y=d.filter(O=>!M$.has(O.type)).map(O=>F$(O.value)),D=h.flatMap(O=>O.filter(F=>!M$.has(F.type)).map(F=>F$(F.value))),P=[...new Set([...y,...D])].sort((O,F)=>F.length-O.length),E=P.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${P.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(T.map((O,F)=>[O,F])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:v,decimal:C,group:x,literals:E,numeral:S,index:O=>String(k.get(O))}}function uf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function F$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function RN(e={}){let{locale:t}=Qn();return b.useMemo(()=>new yS(t,e),[t,e])}let sg=new Map;function bS(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(sg.has(n))return sg.get(n);let r=new Intl.Collator(t,e);return sg.set(n,r),r}function $S(e){let t=bS({usage:"search",...e}),n=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=b.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,c=a.length;for(;u+c<=o.length;u++){let d=o.slice(u,u+c);if(t.compare(a,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function ON(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:v,type:$="button"}=e,C;n==="button"?C={type:$,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:x,isPressed:y}=Fc({onPressStart:o,onPressEnd:a,onPressChange:c,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=cb(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let P=xt(D,x,Ao(e,{labelable:!0}));return{isPressed:y,buttonProps:xt(C,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var xS={};xS={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var wS={};wS={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var DS={};DS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var ES={};ES={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var CS={};CS={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var SS={};SS={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var TS={};TS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var AS={};AS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var PS={};PS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var _S={};_S={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var RS={};RS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var OS={};OS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var MS={};MS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var FS={};FS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var kS={};kS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var BS={};BS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var IS={};IS={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var LS={};LS={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var VS={};VS={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var NS={};NS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var jS={};jS={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var KS={};KS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var US={};US={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var zS={};zS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var WS={};WS={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var HS={};HS={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var GS={};GS={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var qS={};qS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var YS={};YS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var ZS={};ZS={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var JS={};JS={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var XS={};XS={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var QS={};QS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var e5={};e5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Vc={};Vc={"ar-AE":xS,"bg-BG":wS,"cs-CZ":DS,"da-DK":ES,"de-DE":CS,"el-GR":SS,"en-US":TS,"es-ES":AS,"et-EE":PS,"fi-FI":_S,"fr-FR":RS,"he-IL":OS,"hr-HR":MS,"hu-HU":FS,"it-IT":kS,"ja-JP":BS,"ko-KR":IS,"lt-LT":LS,"lv-LV":VS,"nb-NO":NS,"nl-NL":jS,"pl-PL":KS,"pt-BR":US,"pt-PT":zS,"ro-RO":WS,"ru-RU":HS,"sk-SK":GS,"sl-SI":qS,"sr-SP":YS,"sv-SE":ZS,"tr-TR":JS,"uk-UA":XS,"zh-CN":QS,"zh-TW":e5};function t5(e){return e&&e.__esModule?e.default:e}const wb=new WeakMap;function pc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function MN(e){let t=Xi(t5(Vc),"@react-aria/calendar"),n,r;var i;"highlightedRange"in e?{start:n,end:r}=e.highlightedRange||{}:n=r=(i=e.value)!==null&&i!==void 0?i:void 0;let o=Vi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:pc(n)||pc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!a&&n&&r)if(xn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Ky(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function jy(e,t,n,r){let i=Xi(t5(Vc),"@react-aria/calendar"),o=pc(e)||pc(t),a=Vi({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=Vi({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(xn(e,Ic(e))){if(xn(t,My(e)))return a.format(e.toDate(n));if(xn(t,My(t)))return r?Ky(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Ky(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Ky(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",c="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(c+=o[d].value);return t.format("dateRange",{startDate:u,endDate:c})}const n5=7e3;let Xr=null;function hu(e,t="assertive",n=n5){Xr?Xr.announce(e,t,n):(Xr=new kN,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Xr.announce(e,t,n):setTimeout(()=>{Xr!=null&&Xr.isAttached()&&(Xr==null||Xr.announce(e,t,n))},100))}function FN(e){Xr&&Xr.clear(e)}class kN{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=n5){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function BN(e){return e&&e.__esModule?e.default:e}function r5(e,t){let n=Xi(BN(Vc),"@react-aria/calendar"),r=Ao(e),i=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);q3(()=>{t.isFocused||hu(o)},[o]);let a=MN(t);q3(()=>{a&&hu(a,"polite",4e3)},[a]);let u=Eu([!!e.errorMessage,e.isInvalid,e.validationState]);wb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[c,d]=b.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,m]=b.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let v=Cu({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,v,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function IN(e,t){return r5(e,t)}function LN(e,t,n){let r=r5(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return aa(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),aa(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},aa(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function VN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qn(),o=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},a=jy(n,r,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=wb.get(t),d=Cu({"aria-label":[u,a].filter(Boolean).join(", "),"aria-labelledby":c}),f=Vi({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=Qn(),m=b.useMemo(()=>{let g=dc(Jh(t.timeZone),h);return[...new Array(7).keys()].map(v=>{let C=g.add({days:v}).toDate(t.timeZone);return f.format(C)})},[h,t.timeZone,f]);return{gridProps:xt(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}function NN(e){return e&&e.__esModule?e.default:e}function jN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=wb.get(t),u=Xi(NN(Vc),"@react-aria/calendar"),c=Vi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:pc(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&xn(t.value,r));g&&(d=!0),r=EC(r,Oy);let v=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=zC(r,t.timeZone),C=b.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(xn(r,t.value.start)||xn(r,t.value.end))&&(F=a+", "),F+=c.format(v),$?F=u.format(d?"todayDateSelected":"todayDate",{date:F}):d&&(F=u.format("dateSelected",{date:F})),t.minValue&&xn(r,t.minValue)?F+=", "+u.format("minimumDate"):t.maxValue&&xn(r,t.maxValue)&&(F+=", "+u.format("maximumDate")),F},[c,v,u,d,$,r,t,a]),x="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?x=u.format("finishRangeSelectionPrompt"):x=u.format("startRangeSelectionPrompt"));let y=Oc(x),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:k}=Fc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!g){if(xn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(xn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let G=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};F.pointerType==="touch"?E.current=setTimeout(G,200):G()}},onPressEnd(){P.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(F){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(P.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(F.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let G=r.add({days:1});t.isInvalid(G)&&(G=r.subtract({days:1})),t.isInvalid(G)||t.setFocusedDate(G)}else F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=xn(r,t.focusedDate)?0:-1),b.useEffect(()=>{f&&n.current&&(vi(n.current),Jf()!=="pointer"&&document.activeElement===n.current&&Yf(n.current,{containingElement:Gh(n.current)}))},[f,n]);let U=Vi({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),O=b.useMemo(()=>U.formatToParts(v).find(F=>F.type==="day").value,[U,v]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(F){"releasePointerCapture"in F.target&&F.target.releasePointerCapture(F.pointerId)},onContextMenu(F){F.preventDefault()}}),isPressed:k,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:O}}const Qh={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},i5={...Qh,customError:!0,valid:!1},Na={isInvalid:!1,validationDetails:Qh,validationErrors:[]},KN=b.createContext({}),Au="__formValidationState"+Date.now();function Nc(e){if(e[Au]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Au];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return UN(e)}function UN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:i5}:null,d=b.useMemo(()=>{if(!a||i==null)return null;let O=zN(a,i);return k$(O)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=b.useContext(KN),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(O=>Uy(f[O])):Uy(f[r]):[],[f,r]),[m,g]=b.useState(f),[v,$]=b.useState(!1);f!==m&&(g(f),$(!1));let C=b.useMemo(()=>k$(v?[]:h),[v,h]),x=b.useRef(Na),[y,D]=b.useState(Na),P=b.useRef(Na),E=()=>{if(!T)return;k(!1);let O=d||o||x.current;ug(O,P.current)||(P.current=O,D(O))},[T,k]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||Na,displayValidation:u==="native"?c||C||y:c||C||d||o||y,updateValidation(O){u==="aria"&&!ug(y,O)?D(O):x.current=O},resetValidation(){let O=Na;ug(O,P.current)||(P.current=O,D(O)),u==="native"&&k(!1),$(!0)},commitValidation(){u==="native"&&k(!0),$(!0)}}}function Uy(e){return e?Array.isArray(e)?e:[e]:[]}function zN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Uy(n)}return[]}function k$(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:i5}:null}function ug(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function ah(...e){let t=new Set,n=!1,r={...Qh};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function o5(e,t,n){let{validationBehavior:r,focus:i}=e;zt(()=>{if(r==="native"&&(n!=null&&n.current)){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(HN(n.current))}});let o=wn(()=>{t.resetValidation()}),a=wn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&GN(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),MC("keyboard")}c.preventDefault()}),u=wn(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",a),c.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function WN(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function HN(e){return{isInvalid:!e.validity.valid,validationDetails:WN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function GN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function ep(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Mr(t);let a=Mr(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Cu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:c}}function tp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=ep(e),u=Eu([!!t,!!n,r,i]),c=Eu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:c}}}const qN=0,YN=100,ZN=1;function JN(e){const{isDisabled:t=!1,minValue:n=qN,maxValue:r=YN,numberFormatter:i,step:o=ZN,orientation:a="horizontal"}=e;let u=b.useMemo(()=>{let z=(r-n)/10;return z=Cl(z,0,z+o,o),Math.max(z,o)},[o,r,n]),c=b.useCallback(z=>z==null?void 0:z.map((re,oe)=>{let fe=oe===0?n:z[oe-1],ie=oe===z.length-1?r:z[oe+1];return Cl(re,fe,ie,o)}),[n,r,o]),d=b.useMemo(()=>c(I$(e.value)),[e.value]),f=b.useMemo(()=>{var z;return c((z=I$(e.defaultValue))!==null&&z!==void 0?z:[n])},[e.defaultValue,n]),h=L$(e.value,e.defaultValue,e.onChange),m=L$(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Fr(d,f,h),[$,C]=b.useState(new Array(g.length).fill(!1)),x=b.useRef(new Array(g.length).fill(!0)),[y,D]=b.useState(void 0),P=b.useRef(g),E=b.useRef($);let T=z=>{P.current=z,v(z)},k=z=>{E.current=z,C(z)};function S(z){return(z-n)/(r-n)}function U(z){return z===0?n:g[z-1]}function O(z){return z===g.length-1?r:g[z+1]}function F(z){return x.current[z]}function G(z,re){x.current[z]=re}function K(z,re){if(t||!F(z))return;const oe=U(z),fe=O(z);re=Cl(re,oe,fe,o);let ie=B$(P.current,z,re);T(ie)}function W(z,re){if(t||!F(z))return;re&&(P.current=g);const oe=E.current[z];E.current=B$(E.current,z,re),k(E.current),oe&&!E.current.some(Boolean)&&m(P.current)}function j(z){return i.format(z)}function L(z,re){K(z,M(re))}function _(z){return Math.round((z-n)/o)*o+n}function M(z){const re=z*(r-n)+n;return Su(_(re),n,r)}function Y(z,re=1){let oe=Math.max(re,o);K(z,Cl(g[z]+oe,n,r,o))}function V(z,re=1){let oe=Math.max(re,o);K(z,Cl(g[z]-oe,n,r,o))}return{values:g,getThumbValue:z=>g[z],setThumbValue:K,setThumbPercent:L,isThumbDragging:z=>$[z],setThumbDragging:W,focusedThumb:y,setFocusedThumb:D,getThumbPercent:z=>S(g[z]),getValuePercent:S,getThumbValueLabel:z=>j(g[z]),getFormattedValue:j,getThumbMinValue:U,getThumbMaxValue:O,getPercentValue:M,isThumbEditable:F,setThumbEditable:G,incrementThumb:Y,decrementThumb:V,step:o,pageSize:u,orientation:a,isDisabled:t}}function B$(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function I$(e){if(e!=null)return Array.isArray(e)?e:[e]}function L$(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const V$={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function XN(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=Uu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=b.useMemo(()=>r?t:t?{...V$,...t}:V$,[r]);return{visuallyHiddenProps:{...o,style:a}}}function QN(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=XN(e);return b.createElement(n,xt(o,a),t)}const Db=new WeakMap;function zy(e,t){let n=Db.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function ej(e,t,n){let{labelProps:r,fieldProps:i}=ep(e),o=e.orientation==="vertical";var a;Db.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:c,removeGlobalListener:d}=Ku();const f=b.useRef(null),h=u==="rtl",m=b.useRef(null),{moveProps:g}=kC({onMoveStart(){m.current=null},onMove({deltaX:x,deltaY:y}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let T=o?y:x;if((o||h)&&(T=-T),m.current+=T,f.current!=null&&n.current){const k=Su(m.current/E,0,1);t.setThumbPercent(f.current,k)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let v=b.useRef(void 0),$=(x,y,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:k,left:S}=n.current.getBoundingClientRect(),U=o?E:T,K=((o?P:D)-(o?k:S))/U;(u==="rtl"||o)&&(K=1-K);let W=t.getPercentValue(K),j,L=t.values.findIndex(_=>W-_<0);if(L===0)j=L;else if(L===-1)j=t.values.length-1;else{let _=t.values[L-1],M=t.values[L];Math.abs(_-W)<Math.abs(M-W)?j=L-1:j=L}j>=0&&t.isThumbEditable(j)?(x.preventDefault(),f.current=j,t.setFocusedThumb(j),v.current=y,t.setThumbDragging(f.current,!0),t.setThumbValue(j,W),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=x=>{var y,D;((D=x.pointerId)!==null&&D!==void 0?D:(y=x.changedTouches)===null||y===void 0?void 0:y[0].identifier)===v.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(zy(t,0)))===null||x===void 0||x.focus(),MC("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||$(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||$(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){$(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((x,y)=>zy(t,y)).join(" "),"aria-live":"off"}}}function tj(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:v}=Ku(),$=Db.get(t);var C;const{labelProps:x,fieldProps:y}=ep({...e,id:zy(t,n),"aria-labelledby":`${$.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=m==="rtl",k=b.useRef(null),{keyboardProps:S}=FC({onKeyDown(L){let{getThumbMaxValue:_,getThumbMinValue:M,decrementThumb:Y,incrementThumb:V,setThumbValue:z,setThumbDragging:re,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),re(n,!0),L.key){case"PageUp":V(n,oe);break;case"PageDown":Y(n,oe);break;case"Home":z(n,M(n));break;case"End":z(n,_(n));break}re(n,!1)}}),{moveProps:U}=kC({onMoveStart(){k.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:_,pointerType:M,shiftKey:Y}){const{getThumbPercent:V,setThumbPercent:z,decrementThumb:re,incrementThumb:oe,step:fe,pageSize:ie}=t;if(!a.current)return;let{width:Ee,height:$e}=a.current.getBoundingClientRect(),ne=h?$e:Ee;if(k.current==null&&(k.current=V(n)*ne),M==="keyboard")L>0&&T||L<0&&!T||_>0?re(n,Y?ie:fe):oe(n,Y?ie:fe);else{let ye=h?_:L;(h||T)&&(ye=-ye),k.current+=ye,z(n,Su(k.current/ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:O}=cb(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let F=b.useRef(void 0),G=L=>{P(),F.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",K,!1),g(window,"touchend",K,!1),g(window,"pointerup",K,!1)},K=L=>{var _,M;((M=L.pointerId)!==null&&M!==void 0?M:(_=L.changedTouches)===null||_===void 0?void 0:_[0].identifier)===F.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",K,!1),v(window,"touchend",K,!1),v(window,"pointerup",K,!1))},W=t.getThumbPercent(n);(h||m==="rtl")&&(W=1-W);let j=f?{}:xt(S,U,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G(L.pointerId)},onTouchStart:L=>{G(L.changedTouches[0].identifier)}});return ob(u,D,L=>{t.setThumbValue(n,L)}),{inputProps:xt(O,y,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[$["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[$["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...j,style:{position:"absolute",[h?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function nj(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[c,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=cb(e,t),h=Nc({...e,value:c}),{isInvalid:m,validationErrors:g,validationDetails:v}=h.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:x,errorMessageProps:y}=tp({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=Ao(e,{labelable:!0});const P={type:a,pattern:e.pattern};return ob(t,c,d),o5(e,h,t),b.useEffect(()=>{if(t.current instanceof da(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:xt(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:x,errorMessageProps:y,isInvalid:m,validationErrors:g,validationDetails:v}}var a5={};a5={Empty:"فارغ"};var s5={};s5={Empty:"Изпразни"};var u5={};u5={Empty:"Prázdné"};var l5={};l5={Empty:"Tom"};var c5={};c5={Empty:"Leer"};var d5={};d5={Empty:"Άδειο"};var f5={};f5={Empty:"Empty"};var h5={};h5={Empty:"Vacío"};var p5={};p5={Empty:"Tühjenda"};var m5={};m5={Empty:"Tyhjä"};var g5={};g5={Empty:"Vide"};var y5={};y5={Empty:"ריק"};var v5={};v5={Empty:"Prazno"};var b5={};b5={Empty:"Üres"};var $5={};$5={Empty:"Vuoto"};var x5={};x5={Empty:"空"};var w5={};w5={Empty:"비어 있음"};var D5={};D5={Empty:"Tuščias"};var E5={};E5={Empty:"Tukšs"};var C5={};C5={Empty:"Tom"};var S5={};S5={Empty:"Leeg"};var T5={};T5={Empty:"Pusty"};var A5={};A5={Empty:"Vazio"};var P5={};P5={Empty:"Vazio"};var _5={};_5={Empty:"Gol"};var R5={};R5={Empty:"Не заполнено"};var O5={};O5={Empty:"Prázdne"};var M5={};M5={Empty:"Prazen"};var F5={};F5={Empty:"Prazno"};var k5={};k5={Empty:"Tomt"};var B5={};B5={Empty:"Boş"};var I5={};I5={Empty:"Пусто"};var L5={};L5={Empty:"空"};var V5={};V5={Empty:"空白"};var N5={};N5={"ar-AE":a5,"bg-BG":s5,"cs-CZ":u5,"da-DK":l5,"de-DE":c5,"el-GR":d5,"en-US":f5,"es-ES":h5,"et-EE":p5,"fi-FI":m5,"fr-FR":g5,"he-IL":y5,"hr-HR":v5,"hu-HU":b5,"it-IT":$5,"ja-JP":x5,"ko-KR":w5,"lt-LT":D5,"lv-LV":E5,"nb-NO":C5,"nl-NL":S5,"pl-PL":T5,"pt-BR":A5,"pt-PT":P5,"ro-RO":_5,"ru-RU":R5,"sk-SK":O5,"sl-SI":M5,"sr-SP":F5,"sv-SE":k5,"tr-TR":B5,"uk-UA":I5,"zh-CN":L5,"zh-TW":V5};function rj(e){return e&&e.__esModule?e.default:e}function ij(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:v}=e;const $=Xi(rj(N5),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let x=F=>{if(!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey||u))switch(F.key){case"PageUp":if(f){F.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(F.preventDefault(),d==null||d());break;case"PageDown":if(m){F.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(F.preventDefault(),h==null||h());break;case"Home":g&&(F.preventDefault(),g==null||g());break;case"End":v&&(F.preventDefault(),v==null||v());break}},y=b.useRef(!1),D=()=>{y.current=!0},P=()=>{y.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{y.current&&(FN("assertive"),hu(E,"assertive"))},[E]);const T=wn(F=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},F)}),k=wn(F=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},F)});let S=F=>{F.preventDefault()},{addGlobalListener:U,removeAllGlobalListeners:O}=Ku();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":a||void 0,"aria-readonly":u||void 0,"aria-required":c||void 0,onKeyDown:x,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{k(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P}}}var j5={};j5={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var K5={};K5={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var U5={};U5={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var z5={};z5={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var W5={};W5={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var H5={};H5={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var G5={};G5={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var q5={};q5={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Y5={};Y5={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Z5={};Z5={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var J5={};J5={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var X5={};X5={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Q5={};Q5={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var e2={};e2={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var t2={};t2={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var n2={};n2={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var r2={};r2={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var i2={};i2={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var o2={};o2={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var a2={};a2={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var s2={};s2={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var u2={};u2={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var l2={};l2={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var c2={};c2={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var d2={};d2={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var f2={};f2={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var h2={};h2={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var p2={};p2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var m2={};m2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var g2={};g2={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var y2={};y2={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var v2={};v2={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var b2={};b2={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var $2={};$2={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var x2={};x2={"ar-AE":j5,"bg-BG":K5,"cs-CZ":U5,"da-DK":z5,"de-DE":W5,"el-GR":H5,"en-US":G5,"es-ES":q5,"et-EE":Y5,"fi-FI":Z5,"fr-FR":J5,"he-IL":X5,"hr-HR":Q5,"hu-HU":e2,"it-IT":t2,"ja-JP":n2,"ko-KR":r2,"lt-LT":i2,"lv-LV":o2,"nb-NO":a2,"nl-NL":s2,"pl-PL":u2,"pt-BR":l2,"pt-PT":c2,"ro-RO":d2,"ru-RU":f2,"sk-SK":h2,"sl-SI":p2,"sr-SP":m2,"sv-SE":g2,"tr-TR":y2,"uk-UA":v2,"zh-CN":b2,"zh-TW":$2};const Ni={top:"top",bottom:"top",left:"left",right:"left"},sh={top:"bottom",bottom:"top",left:"right",right:"left"},oj={top:"left",left:"top"},Wy={top:"height",left:"width"},w2={width:"totalWidth",height:"totalHeight"},lf={};let Tn=typeof document<"u"?window.visualViewport:null;function N$(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var c;let d=((c=Tn==null?void 0:Tn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let v=document.documentElement;r=v.clientWidth,i=v.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=v.scrollTop||e.scrollTop,u.left=v.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=pu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(ib()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function aj(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function j$(e,t,n,r,i,o,a){var u;let c=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Wy[e]],f=r.scroll[Ni[e]]+o,h=d+r.scroll[Ni[e]]-o,m=t-c+a[e]-r[Ni[e]],g=t-c+n+a[e]-r[Ni[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function sj(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function K$(e){if(lf[e])return lf[e];let[t,n]=e.split(" "),r=Ni[t]||"right",i=oj[r];Ni[n]||(n="center");let o=Wy[r],a=Wy[i];return lf[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},lf[e]}function lg(e,t,n,r,i,o,a,u,c,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:v,crossSize:$}=r,C={};var x;C[g]=(x=e[g])!==null&&x!==void 0?x:0;var y,D,P,E;h==="center"?C[g]+=(((y=e[$])!==null&&y!==void 0?y:0)-((D=n[$])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((P=e[$])!==null&&P!==void 0?P:0)-((E=n[$])!==null&&E!==void 0?E:0)),C[g]+=o;const T=e[g]-n[$]+c+d,k=e[g]+e[$]-c-d;if(C[g]=Su(C[g],T,k),f===m){const S=u?a[v]:t[w2[v]];C[sh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[v]+i);return C}function uj(e,t,n,r,i,o,a,u){const c=r?n.height:t[w2.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,v,$,C;let x=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0))-((($=i.top)!==null&&$!==void 0?$:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,x)}function U$(e,t,n,r,i,o){let{placement:a,axis:u,size:c}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[sh[u]]-i);var h;return Math.max(0,e[c]+e[u]+e.scroll[u]-t[u]-n[u]-n[c]-((h=r[u])!==null&&h!==void 0?h:0)-r[sh[u]]-i)}function lj(e,t,n,r,i,o,a,u,c,d,f,h,m,g,v,$){let C=K$(e),{size:x,crossAxis:y,crossSize:D,placement:P,crossPlacement:E}=C,T=lg(t,u,n,C,f,h,d,m,v,$),k=f,S=U$(u,d,t,i,o+f,C);if(a&&r[x]>S){let fe=K$(`${sh[P]} ${E}`),ie=lg(t,u,n,fe,f,h,d,m,v,$);U$(u,d,t,i,o+f,fe)>S&&(C=fe,T=ie,k=f)}let U="bottom";C.axis==="top"?C.placement==="top"?U="top":C.placement==="bottom"&&(U="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?U="bottom":C.crossPlacement==="bottom"&&(U="top"));let O=j$(y,T[y],n[D],u,c,o,d);T[y]+=O;let F=uj(T,u,d,m,i,o,n.height,U);g&&g<F&&(F=g),n.height=Math.min(n.height,F),T=lg(t,u,n,C,k,h,d,m,v,$),O=j$(y,T[y],n[D],u,c,o,d),T[y]+=O;let G={},K=t[y]+.5*t[D]-T[y]-i[Ni[y]];const W=v/2+$;var j,L,_,M;const Y=Ni[y]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((L=i.right)!==null&&L!==void 0?L:0):((_=i.top)!==null&&_!==void 0?_:0)+((M=i.bottom)!==null&&M!==void 0?M:0),V=n[D]-Y-v/2-$,z=t[y]+v/2-(T[y]+i[Ni[y]]),re=t[y]+t[D]-v/2-(T[y]+i[Ni[y]]),oe=Su(K,z,re);return G[y]=Su(oe,W,V),{position:T,maxHeight:F,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:C.placement}}function cj(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?dj(r):document.documentElement,v=g===document.documentElement;const $=window.getComputedStyle(g).position;let C=!!$&&$!=="static",x=v?pu(n):z$(n,g);if(!v){let{marginTop:G,marginLeft:K}=window.getComputedStyle(n);x.top+=parseInt(G,10)||0,x.left+=parseInt(K,10)||0}let y=pu(r),D=sj(r);var P,E;y.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,k;y.height+=((T=D.top)!==null&&T!==void 0?T:0)+((k=D.bottom)!==null&&k!==void 0?k:0);let S=aj(i),U=N$(u),O=N$(g),F=u.tagName==="BODY"?pu(g):z$(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),lj(t,x,y,S,D,o,a,U,O,F,c,d,C,f,h,m)}function pu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:t+o-u,left:n+a-c,width:r,height:i}}function z$(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=pu(e);let i=pu(t),o=window.getComputedStyle(t);i.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function dj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!W$(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!W$(t);)t=t.parentElement;return t||document.documentElement}function W$(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const D2=new WeakMap;function fj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||D2.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function hj(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:v,maxHeight:$,arrowBoundaryOffset:C=0}=e,[x,y]=b.useState(null),D=[m,a,i.current,r.current,o.current,u,c,d,f,h,g,t,$,C,n],P=b.useRef(ln==null?void 0:ln.scale);b.useEffect(()=>{g&&(P.current=ln==null?void 0:ln.scale)},[g]);let E=b.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==P.current)return;let O=null;if(o.current&&o.current.contains(document.activeElement)){var F;let M=(F=document.activeElement)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=o.current.getBoundingClientRect();var G;if(O={type:"top",offset:((G=M==null?void 0:M.top)!==null&&G!==void 0?G:0)-Y.top},O.offset>Y.height/2){O.type="bottom";var K;O.offset=((K=M==null?void 0:M.bottom)!==null&&K!==void 0?K:0)-Y.bottom}}let W=i.current;if(!$&&i.current){var j;W.style.top="0px",W.style.bottom="";var L;W.style.maxHeight=((L=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let _=cj({placement:mj(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:C});if(_.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(_.position).forEach(M=>W.style[M]=_.position[M]+"px"),W.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":"",O&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),Y=o.current.getBoundingClientRect(),V=M[O.type]-Y[O.type];o.current.scrollTop+=V-O.offset}y(_)}},D);zt(E,D),pj(E),Y3({ref:i,onResize:E}),Y3({ref:r,onResize:E});let T=b.useRef(!1);zt(()=>{let O,F=()=>{T.current=!0,clearTimeout(O),O=setTimeout(()=>{T.current=!1},500),E()},G=()=>{T.current&&F()};return ln==null||ln.addEventListener("resize",F),ln==null||ln.addEventListener("scroll",G),()=>{ln==null||ln.removeEventListener("resize",F),ln==null||ln.removeEventListener("scroll",G)}},[E]);let k=b.useCallback(()=>{T.current||v==null||v()},[v,T]);fj({triggerRef:r,isOpen:g,onClose:v&&k});var S,U;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(S=x==null?void 0:x.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(U=x==null?void 0:x.placement)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function pj(e){zt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function mj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const fo=[];function gj(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;b.useEffect(()=>(i&&fo.push(t),()=>{let v=fo.indexOf(t);v>=0&&fo.splice(v,1)}),[i,t]);let c=()=>{fo[fo.length-1]===t&&n&&n()},d=v=>{(!u||u(v.target))&&fo[fo.length-1]===t&&(v.stopPropagation(),v.preventDefault())},f=v=>{(!u||u(v.target))&&(fo[fo.length-1]===t&&(v.stopPropagation(),v.preventDefault()),c())},h=v=>{v.key==="Escape"&&!a&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),c())};eV({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=Uu({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||lV(v.relatedTarget)||(!u||u(v.relatedTarget))&&(n==null||n())}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function yj(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&D2.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Mr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const cg=typeof document<"u"&&window.visualViewport,vj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let cf=0,dg;function bj(e={}){let{isDisabled:t}=e;zt(()=>{if(!t)return cf++,cf===1&&(Rc()?dg=xj():dg=$j()),()=>{cf--,cf===0&&dg()}},[t])}function $j(){return os(Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"))}function xj(){let e,t,n=d=>{e=Gh(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=Qs(e,"overscrollBehavior","contain"))},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&d.preventDefault()},i=d=>{let f=d.target;G$(f)&&f!==document.activeElement&&(d.preventDefault(),u(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""})),t&&t()},o=d=>{let f=d.target;G$(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",cg&&(cg.height<window.innerHeight?requestAnimationFrame(()=>{H$(f)}):cg.addEventListener("resize",()=>H$(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=os(Tl(window,"scroll",d),Qs(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qs(document.documentElement,"overflow","hidden"),Qs(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},c=os(Tl(document,"touchstart",n,{passive:!1,capture:!0}),Tl(document,"touchmove",r,{passive:!1,capture:!0}),Tl(document,"touchend",i,{passive:!1,capture:!0}),Tl(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),c()}}function Qs(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Tl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function H$(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=Gh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function G$(e){return e instanceof HTMLInputElement&&!vj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Al=new WeakMap,Yr=[];function E2(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=c=>{var d;let f=(d=Al.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Al.set(c,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let c of r){let d=Al.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Al.delete(c)):Al.set(c,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function wj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:c,underlayProps:d}=gj({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:f,arrowProps:h,placement:m}=hj({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return bj({isDisabled:i||!t.isOpen}),zt(()=>{if(t.isOpen&&!i&&r.current)return E2([r.current])},[i,t.isOpen,r]),{popoverProps:xt(c,f),arrowProps:h,underlayProps:d,placement:m}}const Dj=b.createContext({});function Ej(){var e;return(e=b.useContext(Dj))!==null&&e!==void 0?e:{}}const C2=b.createContext(null);function Cj(e){let t=nb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),a=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=Ej();if(!e.portalContainer&&u&&(n=u()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(iV,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(C2.Provider,{value:a},b.createElement(HL,null,c)),oa.createPortal(c,n)}function Sj(){let e=b.useContext(C2),t=e==null?void 0:e.setContain;zt(()=>{t==null||t(!0)},[t])}const np=new WeakMap;function Tj(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function S2(e,t){let n=np.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Tj(t)}`}function Hy(e){return Tf()?e.altKey:e.ctrlKey}function Zs(e){return Eo()?e.metaKey:e.ctrlKey}const Aj=1e3;function Pj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=a=>{let u=_j(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Aj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function _j(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function T2(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:$}=Qn(),C=Hh(),x=O=>{var F;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((F=r.current)===null||F===void 0)&&F.contains(O.target)))return;const G=(ie,Ee)=>{if(ie!=null){if(t.isLink(ie)&&v==="selection"&&c&&!Hy(O)){var $e;oa.flushSync(()=>{t.setFocusedKey(ie,Ee)});let ne=($e=g.current)===null||$e===void 0?void 0:$e.querySelector(`[data-key="${CSS.escape(ie.toString())}"]`),ye=t.getItemProps(ie);ne&&C.open(ne,O,ye.href,ye.routerOptions);return}if(t.setFocusedKey(ie,Ee),t.isLink(ie)&&v==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&!Hy(O)&&t.replaceSelection(ie)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,W,j;let ie=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);ie==null&&o&&(ie=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowUp":if(n.getKeyAbove){var L,_,M;let ie=t.focusedKey!=null?(L=n.getKeyAbove)===null||L===void 0?void 0:L.call(n,t.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n);ie==null&&o&&(ie=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Y,V,z;let ie=t.focusedKey!=null?(Y=n.getKeyLeftOf)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var re,oe,fe;let ie=t.focusedKey!=null?(re=n.getKeyRightOf)===null||re===void 0?void 0:re.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){O.preventDefault();let ie=n.getFirstKey(t.focusedKey,Zs(O));t.setFocusedKey(ie),ie!=null&&(Zs(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"End":if(n.getLastKey){O.preventDefault();let ie=n.getLastKey(t.focusedKey,Zs(O));t.setFocusedKey(ie),ie!=null&&(Zs(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ie=n.getKeyPageBelow(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ie=n.getKeyPageAbove(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"a":Zs(O)&&t.selectionMode==="multiple"&&u!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(O.shiftKey)r.current.focus();else{let ie=wr(r.current,{tabbable:!0}),Ee,$e;do $e=ie.lastChild(),$e&&(Ee=$e);while($e);Ee&&!Ee.contains(document.activeElement)&&vi(Ee)}break}}},y=b.useRef({top:0,left:0});aa(g,"scroll",m?void 0:()=>{var O,F,G,K;y.current={top:(G=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&G!==void 0?G:0,left:(K=(F=g.current)===null||F===void 0?void 0:F.scrollLeft)!==null&&K!==void 0?K:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var F,G;let j=_=>{_!=null&&(t.setFocusedKey(_),c&&t.replaceSelection(_))},L=O.relatedTarget;var K,W;L&&O.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?j((K=t.lastSelectedKey)!==null&&K!==void 0?K:(F=n.getLastKey)===null||F===void 0?void 0:F.call(n)):j((W=t.firstSelectedKey)!==null&&W!==void 0?W:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!m&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let j=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);j&&(j.contains(document.activeElement)||vi(j),Jf()==="keyboard"&&Yf(j,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var O,F;let W=null;var G;i==="first"&&(W=(G=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);var K;i==="last"&&(W=(K=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n))!==null&&K!==void 0?K:null);let j=t.selectedKeys;if(j.size){for(let L of j)if(t.canSelectItem(L)){W=L;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!f&&r.current&&us(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&g.current&&r.current){let O=Jf(),F=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!F)return;(O==="keyboard"||E.current)&&(DC(g.current,F),O!=="virtual"&&Yf(F,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&us(r.current),T.current=t.focusedKey,E.current=!1}),aa(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let k={onKeyDown:x,onFocus:D,onBlur:P,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:S}=Pj({keyboardDelegate:n,selectionManager:t});d||(k=xt(S,k));let U;return f||(U=t.focusedKey==null?0:-1),{collectionProps:{...k,tabIndex:U}}}function Rj(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,h=Hh(),m=_=>{if(_.pointerType==="keyboard"&&Hy(_))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):_&&_.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||_&&(Zs(_)||_.pointerType==="touch"||_.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(a?a():document.activeElement!==r.current&&r.current&&us(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),u=u||t.isDisabled(n);let g={};!o&&!u?g={tabIndex:n===t.focusedKey?0:-1,onFocus(_){_.target===r.current&&t.setFocusedKey(n)}}:u&&(g.onMouseDown=_=>{_.preventDefault()});let v=t.isLink(n)&&f==="override",$=t.isLink(n)&&f!=="selection"&&f!=="none",C=!u&&t.canSelectItem(n)&&!v,x=(c||$)&&!u,y=x&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=x&&C&&t.selectionBehavior==="replace",P=y||D,E=b.useRef(null),T=P&&C,k=b.useRef(!1),S=b.useRef(!1),U=_=>{if(c&&c(),$&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions)}},O={};i?(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,_.pointerType==="keyboard"&&(!P||Y$())&&m(_)},d?(O.onPressUp=y?void 0:_=>{_.pointerType!=="keyboard"&&C&&m(_)},O.onPress=y?U:void 0):O.onPress=_=>{if(y||D&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!q$())return;U(_)}else _.pointerType!=="keyboard"&&C&&m(_)}):(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,S.current=y,C&&(_.pointerType==="mouse"&&!y||_.pointerType==="keyboard"&&(!x||Y$()))&&m(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&P&&q$()||_.pointerType==="mouse"&&S.current)&&(P?U(_):C&&m(_))}),g["data-key"]=n,O.preventFocusOnPress=o;let{pressProps:F,isPressed:G}=Fc(O),K=D?_=>{E.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),U(_))}:void 0,{longPressProps:W}=BC({isDisabled:!T,onLongPress(_){_.pointerType==="touch"&&(m(_),t.setSelectionBehavior("toggle"))}}),j=_=>{E.current==="touch"&&k.current&&_.preventDefault()},L=t.isLink(n)?_=>{as.isOpening||_.preventDefault()}:void 0;return{itemProps:xt(g,C||y?F:{},T?W:{},{onDoubleClick:K,onDragStartCapture:j,onClick:L}),isPressed:G,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:C,hasAction:P}}function q$(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Y$(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Z${getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class A2{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!cc(n))return this.getFirstKey();let i=t;if(this.orientation==="horizontal"){let o=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>o&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!cc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Z$(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Z$(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Oj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=bS({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new A2({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,c]),{collectionProps:f}=T2({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function Mj(e,t,n){let r=Ao(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=Oj({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=Uu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=Mr(e.id);np.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=ep({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function P2(e){return null}P2.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:Fj(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];b.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function Fj(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let kj=P2;class Bj{build(t,n){return this.context=n,J$(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(b.isValidElement(n)&&n.type===b.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];b.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let c of u)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(b.isValidElement(t.element)&&t.element.type===b.Fragment){let C=[];b.Children.forEach(t.element.props.children,y=>{C.push(y)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const y of C)yield*this.getFullNode({element:y,index:x++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if(b.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=a.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=C.getCollectionNode(a.props,this.context);var u;let y=(u=t.index)!==null&&u!==void 0?u:0,D=x.next();for(;!D.done&&D.value;){let P=D.value;t.index=y;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(a,t,n,r));let k=[...this.getFullNode({...P,key:E,index:y,wrapper:Ij(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${a.key}`:a.key,i)];for(let S of k){var d,f;S.value=(f=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${fg(S.type)}> in <${fg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${fg(t.type)}> is supported.`);y++,yield S}D=x.next(k)}return}if(t.key==null||t.type==null)return;let m=this;var g,v;let $={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(v=t.textValue)!==null&&v!==void 0?v:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:J$(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${$.key}${x.key}`);let y=m.getFullNode({...x,index:C},m.getChildState(n,x),$.key,$);for(let D of y)C++,yield D}})};yield $}constructor(){this.cache=new WeakMap}}function J$(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Ij(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function fg(e){return e[0].toUpperCase()+e.slice(1)}function Lj(e,t,n){let r=b.useMemo(()=>new Bj,[]),{children:i,items:o,collection:a}=e;return b.useMemo(()=>{if(a)return a;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,a,n,t])}function rp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Vj(e){return Nj(e)}function Nj(e,t){for(let n of e)return n}function hg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...X$(e,t),t],i=[...X$(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function X$(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Q$=new WeakMap;function _2(e){let t=Q$.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(rp(o,e)):n++};return r(e),Q$.set(e,n),n}function jj(e,t,n){var r,i;let{key:o}=e,a=np.get(t);var u;let c=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var $;let C=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var x;let y=(x=e.isVirtualized)!==null&&x!==void 0?x:a==null?void 0:a.isVirtualized,D=Eu(),P=Eu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Eo()&&ib()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(y){let L=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(L)?void 0:L+1,E["aria-setsize"]=_2(t.collection)}let k=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,o)}:void 0,{itemProps:S,isPressed:U,isFocused:O,hasAction:F,allowsSelection:G}=Rj({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&v,isVirtualized:y,shouldUseVirtualFocus:C,isDisabled:c,onAction:k||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?os(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,k):void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:K}=QL({isDisabled:c||!v,onHoverStart(){n$()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=Ao(T==null?void 0:T.props);delete W.id;let j=OL(T==null?void 0:T.props);return{optionProps:{...E,...xt(W,S,K,j),id:S2(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:O,isFocusVisible:O&&n$(),isSelected:f,isDisabled:c,isPressed:U,allowsSelection:G,hasAction:F}}var R2={};R2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var O2={};O2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var M2={};M2={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var F2={};F2={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var k2={};k2={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var B2={};B2={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var I2={};I2={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var L2={};L2={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var V2={};V2={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var N2={};N2={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var j2={};j2={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var K2={};K2={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var U2={};U2={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var z2={};z2={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var W2={};W2={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var H2={};H2={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var G2={};G2={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var q2={};q2={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Y2={};Y2={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Z2={};Z2={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var J2={};J2={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var X2={};X2={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Q2={};Q2={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var eT={};eT={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var tT={};tT={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var nT={};nT={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var rT={};rT={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var iT={};iT={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var oT={};oT={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var aT={};aT={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var sT={};sT={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var uT={};uT={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var lT={};lT={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var cT={};cT={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var dT={};dT={"ar-AE":R2,"bg-BG":O2,"cs-CZ":M2,"da-DK":F2,"de-DE":k2,"el-GR":B2,"en-US":I2,"es-ES":L2,"et-EE":V2,"fi-FI":N2,"fr-FR":j2,"he-IL":K2,"hr-HR":U2,"hu-HU":z2,"it-IT":W2,"ja-JP":H2,"ko-KR":G2,"lt-LT":q2,"lv-LV":Y2,"nb-NO":Z2,"nl-NL":J2,"pl-PL":X2,"pt-BR":Q2,"pt-PT":eT,"ro-RO":tT,"ru-RU":nT,"sk-SK":rT,"sl-SI":iT,"sr-SP":oT,"sv-SE":aT,"tr-TR":sT,"uk-UA":uT,"zh-CN":lT,"zh-TW":cT};function Kj(e){return e&&e.__esModule?e.default:e}function Uj(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Mr(),{triggerProps:u,overlayProps:c}=yj({type:r},t,n),d=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},f=Xi(Kj(dT),"@react-aria/menu"),{longPressProps:h}=BC({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...c,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function zj(e){return e&&e.__esModule?e.default:e}function Wj(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=b.useRef(null);n=n??h;let m=Xi(zj(x2),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:v}=Uj({type:"listbox",isDisabled:f||d},t,n);np.set(t,{id:v.id});let{collection:$}=t,{disabledKeys:C}=t.selectionManager,x=b.useMemo(()=>a||new A2({collection:$,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,$,C,o]),{collectionProps:y}=T2({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Hh(),P=he=>{if(!he.nativeEvent.isComposing)switch(he.key){case"Enter":case"Tab":if(t.isOpen&&he.key==="Enter"&&he.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let le=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(he.key==="Enter"&&le instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(le,he,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&he.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},E=he=>{var le;let Fe=(n==null?void 0:n.current)&&n.current===he.relatedTarget,et=(le=r.current)===null||le===void 0?void 0:le.contains(he.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(he),t.setFocused(!1))},T=he=>{t.isFocused||(e.onFocus&&e.onFocus(he),t.setFocused(!0))},{isInvalid:k,validationErrors:S,validationDetails:U}=t.displayValidation,{labelProps:O,inputProps:F,descriptionProps:G,errorMessageProps:K}=nj({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:os(t.isOpen&&y.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Au]:t},i),W=he=>{if(he.pointerType==="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(null,"manual")}},j=he=>{if(he.pointerType!=="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(he.pointerType==="keyboard"||he.pointerType==="virtual"?"first":null,"manual")}},L=Cu({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),_=Cu({id:v.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),M=b.useRef(0),Y=he=>{if(f||d)return;if(he.timeStamp-M.current<500){var le;he.preventDefault(),(le=i.current)===null||le===void 0||le.focus();return}let Fe=he.target.getBoundingClientRect(),et=he.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;he.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),M.current=he.timeStamp}},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var z;let re=(z=V==null?void 0:V.parentKey)!==null&&z!==void 0?z:null;var oe;let fe=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ie=b.useRef(re),Ee=b.useRef(fe);b.useEffect(()=>{if(Tf()&&V!=null&&fe!=null&&fe!==Ee.current){let le=t.selectionManager.isSelected(fe),Fe=re!=null?t.collection.getItem(re):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var he;let dt=m.format("focusAnnouncement",{isGroupChange:(he=Fe&&re!==ie.current)!==null&&he!==void 0?he:!1,groupTitle:et,groupCount:Fe?[...rp(Fe,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:le});hu(dt)}ie.current=re,Ee.current=fe});let $e=_2(t.collection),ne=b.useRef($e),ye=b.useRef(t.isOpen);b.useEffect(()=>{let he=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||Tf());if(t.isOpen&&(he||$e!==ne.current)){let le=m.format("countAnnouncement",{optionCount:$e});hu(le)}ne.current=$e,ye.current=t.isOpen});let xe=b.useRef(t.selectedKey);return b.useEffect(()=>{if(Tf()&&t.isFocused&&t.selectedItem&&t.selectedKey!==xe.current){let he=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",le=m.format("selectedAnnouncement",{optionText:he});hu(le)}xe.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return E2([i.current,r.current].filter(he=>he!=null))},[t.isOpen,i,r]),{labelProps:O,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:j,isDisabled:f||d},inputProps:xt(F,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?S2(t,V.key):void 0,onTouchEnd:Y,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(v,_,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:G,errorMessageProps:K,isInvalid:k,validationErrors:S,validationDetails:U}}var fT={};fT={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var hT={};hT={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var pT={};pT={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var mT={};mT={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var gT={};gT={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var yT={};yT={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var vT={};vT={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var bT={};bT={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var $T={};$T={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var xT={};xT={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var wT={};wT={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var DT={};DT={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var ET={};ET={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var CT={};CT={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var ST={};ST={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var TT={};TT={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var AT={};AT={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var PT={};PT={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var _T={};_T={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var RT={};RT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var OT={};OT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var MT={};MT={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var FT={};FT={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var kT={};kT={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var BT={};BT={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var IT={};IT={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var LT={};LT={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var VT={};VT={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var NT={};NT={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var jT={};jT={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var KT={};KT={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var UT={};UT={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var zT={};zT={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var WT={};WT={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var jc={};jc={"ar-AE":fT,"bg-BG":hT,"cs-CZ":pT,"da-DK":mT,"de-DE":gT,"el-GR":yT,"en-US":vT,"es-ES":bT,"et-EE":$T,"fi-FI":xT,"fr-FR":wT,"he-IL":DT,"hr-HR":ET,"hu-HU":CT,"it-IT":ST,"ja-JP":TT,"ko-KR":AT,"lt-LT":PT,"lv-LV":_T,"nb-NO":RT,"nl-NL":OT,"pl-PL":MT,"pt-BR":FT,"pt-PT":kT,"ro-RO":BT,"ru-RU":IT,"sk-SK":LT,"sl-SI":VT,"sr-SP":NT,"sv-SE":jT,"tr-TR":KT,"uk-UA":UT,"zh-CN":zT,"zh-TW":WT};function Eb(e,t,n){let{direction:r}=Qn(),i=b.useMemo(()=>Yh(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=Fc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&a()},onPress(c){c.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function Hj(e){return e&&e.__esModule?e.default:e}const HT=new WeakMap,Ql="__role_"+Date.now(),GT="__focusManager_"+Date.now();function qT(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=tp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:m}=Uu({...e,onFocusWithin(O){var F;h.current=t.value,(F=e.onFocus)===null||F===void 0||F.call(e,O)},onBlurWithin:O=>{var F;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(F=e.onBlur)===null||F===void 0||F.call(e,O)},onFocusWithinChange:e.onFocusChange}),g=Xi(Hj(jc),"@react-aria/datepicker"),v=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(v,{[$]:t.formatValue({month:"long"})}):"",x=Oc(C),y=e[Ql]==="presentation"?c["aria-describedby"]:[x["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[GT],P=b.useMemo(()=>D||Yh(n),[D,n]),E=Eb(t,n,e[Ql]==="presentation");HT.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:P});let T=b.useRef(e.autoFocus),k;e[Ql]==="presentation"?k={role:"presentation"}:k=xt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),ob(e.inputRef,t.value,t.setValue),o5({...e,focus(){P.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let U=Ao(e);return{labelProps:{...u,onClick:()=>{P.focusFirst()}},fieldProps:xt(U,k,E,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function Gj(e,t,n){var r;let i=qT(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function qj(e){return e&&e.__esModule?e.default:e}function Yj(e,t,n){let r=Mr(),i=Mr(),o=Mr(),a=Xi(qj(jc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=tp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=Eb(t,n),$=h["aria-labelledby"]||h.id,{locale:C}=Qn(),x=t.formatValue(C,{month:"long"}),y=x?a.format("selectedDateDescription",{date:x}):"",D=Oc(y),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Ao(e),T=b.useMemo(()=>Yh(n),[n]),{focusWithinProps:k}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,v,h,D,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[Ql]:"presentation","aria-describedby":P,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Au]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:g,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function Zj(e){return e&&e.__esModule?e.default:e}function Jj(){let{locale:e}=Qn(),t=KC(Zj(jc),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new Xj(e,t)}},[e,t])}class Xj{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function Qj(e,t,n){let r=b.useRef(""),{locale:i}=Qn(),o=Jj(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:c,focusManager:d}=HT.get(t),f=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Vi({month:"long",timeZone:h.timeZone}),g=Vi({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=m.format(t.dateValue);f=M!==f?`${f} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:v}=ij({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=b.useMemo(()=>new vS(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),Y=$.parse(M);M=Y===0?"":M,M.length===0||Y===0?t.clearSegment(e.type):t.setSegment(e.type,Y),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},x=M=>{if(M.key==="a"&&(Eo()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),C();break}},{startsWith:y}=$S({sensitivity:"base"}),D=Vi({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let M=new Date;return M.setHours(0),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let M=new Date;return M.setHours(12),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),T=Vi({year:"numeric",era:"narrow",timeZone:"UTC"}),k=b.useMemo(()=>{if(e.type!=="era")return[];let M=Qt(new hn(1,1,1),t.calendar),Y=t.calendar.getEras().map(z=>{let re=M.set({year:1,month:1,day:1,era:z}).toDate("UTC"),fe=T.formatToParts(re).find(ie=>ie.type==="era").value;return{era:z,formatted:fe}}),V=eK(Y.map(z=>z.formatted));if(V)for(let z of Y)z.formatted=z.formatted.slice(V);return Y},[T,t.calendar,e.type]),S=M=>{if(t.isDisabled||t.isReadOnly)return;let Y=r.current+M;switch(e.type){case"dayPeriod":if(y(P,M))t.setSegment("dayPeriod",0);else if(y(E,M))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let V=k.find(z=>y(z.formatted,M));V&&(t.setSegment("era",V.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(Y))return;let V=$.parse(Y),z=V,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&(z=$.parse(M));break;case"h12":re=!1,V>12&&(z=$.parse(M));break}e.value!==void 0&&e.value>=12&&V>1&&(V+=12)}else e.maxValue!==void 0&&V>e.maxValue&&(z=$.parse(M));if(isNaN(V))return;let oe=z!==0||re;oe&&t.setSegment(e.type,z),e.maxValue!==void 0&&(+(V+"0")>e.maxValue||Y.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=Y;break}}},U=()=>{r.current="",n.current&&Yf(n.current,{containingElement:Gh(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=b.useRef(typeof document<"u"?document:null);aa(O,"selectionchange",()=>{var M;let Y=window.getSelection();Y!=null&&Y.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(Y==null?void 0:Y.anchorNode))&&Y.collapse(n.current)});let F=b.useRef("");aa(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&S(M.data);break}}),aa(n,"input",M=>{let{inputType:Y,data:V}=M;switch(Y){case"insertCompositionText":n.current&&(n.current.textContent=F.current),V!=null&&(y(P,V)||y(E,V))&&S(V);break}}),zt(()=>{let M=n.current;return()=>{document.activeElement===M&&(d.focusPrevious()||d.focusNext())}},[n,d]);let G=Rc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},K=b.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==K&&!t.isInvalid&&(c=void 0);let W=Mr(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":o.of(e.type),_=Cu({"aria-label":`${L}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(v,_,{id:W,...G,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:x,onFocus:U,style:{caretColor:"transparent"},onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function eK(e){e.sort();let t=e[0],n=e[e.length-1];for(let r=0;r<t.length;r++)if(t[r]!==n[r])return r;return 0}function tK(e){return e&&e.__esModule?e.default:e}function nK(e,t,n){var r,i,o;let a=Xi(tK(jc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=tp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=h["aria-labelledby"]||h.id,{locale:$}=Qn(),C=t.formatValue($,{month:"long"}),x=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",y=Oc(x),D={"aria-label":a.format("startDate"),"aria-labelledby":v},P={"aria-label":a.format("endDate"),"aria-labelledby":v},E=Mr(),T=Mr(),k=Eb(t,n),S=[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,U=b.useMemo(()=>Yh(n,{accept:_=>_.id!==E}),[n,E]),O={[GT]:U,[Ql]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=Ao(e),{focusWithinProps:G}=Uu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),K=b.useRef(Na),W=b.useRef(Na);var j,L;return{groupProps:xt(F,k,h,y,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(_){t.isOpen||e.onKeyDown&&e.onKeyDown(_)},onKeyUp(_){t.isOpen||e.onKeyUp&&e.onKeyUp(_)}}),labelProps:{...f,onClick:()=>{U.focusFirst()}},buttonProps:{...y,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${v}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${v}`},startFieldProps:{...D,...O,value:(j=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&j!==void 0?j:null,onChange:_=>t.setDateTime("start",_),autoFocus:e.autoFocus,name:e.startName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){K.current=_,t.updateValidation(ah(_,W.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...O,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:_=>t.setDateTime("end",_),name:e.endName,[Au]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){W.current=_,t.updateValidation(ah(K.current,_))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function rK(e,t){let{role:n="dialog"}=e,r=Eu();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){us(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),us(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),Sj(),{dialogProps:{...Ao(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}var Kc=e=>e.type==="checkbox",za=e=>e instanceof Date,sr=e=>e==null;const YT=e=>typeof e=="object";var fn=e=>!sr(e)&&!Array.isArray(e)&&YT(e)&&!za(e),ZT=e=>fn(e)&&e.target?Kc(e.target)?e.target.checked:e.target.value:e,iK=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,JT=(e,t)=>e.has(iK(t)),oK=e=>{const t=e.constructor&&e.constructor.prototype;return fn(t)&&t.hasOwnProperty("isPrototypeOf")},Cb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Cb&&(e instanceof Blob||r))&&(n||fn(e)))if(t=n?[]:{},!n&&!oK(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var ip=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!fn(e))return n;const r=ip(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",Sb=e=>/^\w*$/.test(e),XT=e=>ip(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=Sb(t)?[t]:XT(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let c=n;if(r!==a){const d=e[u];c=fn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}return e};const uh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ho={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},QT=b.createContext(null),op=()=>b.useContext(QT),aK=e=>{const{children:t,...n}=e;return b.createElement(QT.Provider,{value:n},t)};var eA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>fn(e)&&!Object.keys(e).length,tA=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},ec=e=>Array.isArray(e)?e:[e],nA=(e,t,n)=>!e||!t||e===t||ec(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Tb(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function sK(e){const t=op(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=b.useState(n._formState),c=b.useRef(!0),d=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=b.useRef(i);return f.current=i,Tb({disabled:r,next:h=>c.current&&nA(f.current,h.name,o)&&tA(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),b.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),b.useMemo(()=>eA(a,n,d.current,!1),[a,n])}var ji=e=>typeof e=="string",rA=(e,t,n,r,i)=>ji(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ae(n,o))):(r&&(t.watchAll=!0),n);function uK(e){const t=op(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e,u=b.useRef(r);u.current=r,Tb({disabled:o,subject:n._subjects.values,next:f=>{nA(u.current,f.name,a)&&d(br(rA(u.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=b.useState(n._getWatch(r,i));return b.useEffect(()=>n._removeUnmounted()),c}function lK(e){const t=op(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=JT(i._names.array,n),u=uK({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),c=sK({control:i,name:n,exact:!0}),d=b.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}}),[c,n]),h=b.useMemo(()=>({name:n,value:u,...ti(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:ZT(m),name:n},type:uh.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:uh.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:v=>m.setCustomValidity(v),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,c.disabled,u,i._fields]);return b.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(v,$)=>{const C=Ae(i._fields,v);C&&C._f&&(C._f.mount=$)};if(g(n,!0),m){const v=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,v),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,v)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),b.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),b.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}var iA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ex=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),tx=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const tc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ae(e,i);if(o){const{_f:a,...u}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(tc(u,t))break}else if(fn(u)&&tc(u,t))break}}};var cK=(e,t,n)=>{const r=ec(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},Ab=e=>e.type==="file",Ii=e=>typeof e=="function",lh=e=>{if(!Cb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Of=e=>ji(e),Pb=e=>e.type==="radio",ch=e=>e instanceof RegExp;const nx={value:!1,isValid:!1},rx={value:!0,isValid:!0};var oA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?rx:{value:e[0].value,isValid:!0}:rx:nx}return nx};const ix={isValid:!1,value:null};var aA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ix):ix;function ox(e,t,n="validate"){if(Of(e)||Array.isArray(e)&&e.every(Of)||ti(e)&&!e)return{type:n,message:Of(e)?e:"",ref:t}}var Gs=e=>fn(e)&&!ch(e)?e:{value:e,message:""},ax=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:c,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:v,name:$,valueAsNumber:C,mount:x}=e._f,y=Ae(n,$);if(!x||t.has($))return{};const D=u?u[0]:a,P=G=>{i&&D.reportValidity&&(D.setCustomValidity(ti(G)?"":G||""),D.reportValidity())},E={},T=Pb(a),k=Kc(a),S=T||k,U=(C||Ab(a))&&dn(a.value)&&dn(y)||lh(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,O=iA.bind(null,$,r,E),F=(G,K,W,j=ho.maxLength,L=ho.minLength)=>{const _=G?K:W;E[$]={type:G?j:L,message:_,ref:a,...O(G?j:L,_)}};if(o?!Array.isArray(y)||!y.length:c&&(!S&&(U||sr(y))||ti(y)&&!y||k&&!oA(u).isValid||T&&!aA(u).isValid)){const{value:G,message:K}=Of(c)?{value:!!c,message:c}:Gs(c);if(G&&(E[$]={type:ho.required,message:K,ref:D,...O(ho.required,K)},!r))return P(K),E}if(!U&&(!sr(h)||!sr(m))){let G,K;const W=Gs(m),j=Gs(h);if(!sr(y)&&!isNaN(y)){const L=a.valueAsNumber||y&&+y;sr(W.value)||(G=L>W.value),sr(j.value)||(K=L<j.value)}else{const L=a.valueAsDate||new Date(y),_=V=>new Date(new Date().toDateString()+" "+V),M=a.type=="time",Y=a.type=="week";ji(W.value)&&y&&(G=M?_(y)>_(W.value):Y?y>W.value:L>new Date(W.value)),ji(j.value)&&y&&(K=M?_(y)<_(j.value):Y?y<j.value:L<new Date(j.value))}if((G||K)&&(F(!!G,W.message,j.message,ho.max,ho.min),!r))return P(E[$].message),E}if((d||f)&&!U&&(ji(y)||o&&Array.isArray(y))){const G=Gs(d),K=Gs(f),W=!sr(G.value)&&y.length>+G.value,j=!sr(K.value)&&y.length<+K.value;if((W||j)&&(F(W,G.message,K.message),!r))return P(E[$].message),E}if(g&&!U&&ji(y)){const{value:G,message:K}=Gs(g);if(ch(G)&&!y.match(G)&&(E[$]={type:ho.pattern,message:K,ref:a,...O(ho.pattern,K)},!r))return P(K),E}if(v){if(Ii(v)){const G=await v(y,n),K=ox(G,D);if(K&&(E[$]={...K,...O(ho.validate,K.message)},!r))return P(K.message),E}else if(fn(v)){let G={};for(const K in v){if(!$r(G)&&!r)break;const W=ox(await v[K](y,n),D,K);W&&(G={...W,...O(K,W.message)},P(W.message),r&&(E[$]=G))}if(!$r(G)&&(E[$]={ref:D,...G},!r))return E}}return P(!0),E};function dK(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dn(e)?r++:e[t[r++]];return e}function fK(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function $n(e,t){const n=Array.isArray(t)?t:Sb(t)?[t]:XT(t),r=n.length===1?e:dK(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(fn(r)&&$r(r)||Array.isArray(r)&&fK(r))&&$n(e,n.slice(0,-1)),e}var pg=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Gy=e=>sr(e)||!YT(e);function Qo(e,t){if(Gy(e)||Gy(t))return e===t;if(za(e)&&za(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(za(o)&&za(a)||fn(o)&&fn(a)||Array.isArray(o)&&Array.isArray(a)?!Qo(o,a):o!==a)return!1}}return!0}var sA=e=>e.type==="select-multiple",hK=e=>Pb(e)||Kc(e),mg=e=>lh(e)&&e.isConnected,uA=e=>{for(const t in e)if(Ii(e[t]))return!0;return!1};function dh(e,t={}){const n=Array.isArray(e);if(fn(e)||n)for(const r in e)Array.isArray(e[r])||fn(e[r])&&!uA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},dh(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function lA(e,t,n){const r=Array.isArray(e);if(fn(e)||r)for(const i in e)Array.isArray(e[i])||fn(e[i])&&!uA(e[i])?dn(t)||Gy(n[i])?n[i]=Array.isArray(e[i])?dh(e[i],[]):{...dh(e[i])}:lA(e[i],sr(t)?{}:t[i],n[i]):n[i]=!Qo(e[i],t[i]);return n}var Pl=(e,t)=>lA(e,t,dh(t)),cA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&ji(e)?new Date(e):r?r(e):e;function gg(e){const t=e.ref;return Ab(t)?t.files:Pb(t)?aA(e.refs).value:sA(t)?[...t.selectedOptions].map(({value:n})=>n):Kc(t)?oA(e.refs).value:cA(dn(t.value)?e.ref.value:t.value,e)}var pK=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&&Tt(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},_l=e=>dn(e)?e:ch(e)?e.source:fn(e)?ch(e.value)?e.value.source:e.value:e;const sx="AsyncFunction";var mK=e=>!!e&&!!e.validate&&!!(Ii(e.validate)&&e.validate.constructor.name===sx||fn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===sx)),gK=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ux(e,t,n){const r=Ae(e,n);if(r||Sb(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var yK=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,vK=(e,t)=>!ip(Ae(e,t)).length&&$n(e,t);const bK={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function $K(e={}){let t={...bK,...e},n={submitCount:0,isDirty:!1,isLoading:Ii(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=fn(t.defaultValues)||fn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:pg(),array:pg(),state:pg()},m=ex(t.mode),g=ex(t.reValidateMode),v=t.criteriaMode===yi.all,$=q=>Z=>{clearTimeout(d),d=setTimeout(q,Z)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Z=t.resolver?$r((await S()).errors):await O(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},x=(q,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(u.mount)).forEach(te=>{te&&(Z?Tt(n.validatingFields,te,Z):$n(n.validatingFields,te))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},y=(q,Z=[],te,pe,Ce=!0,De=!0)=>{if(pe&&te&&!t.disabled){if(a.action=!0,De&&Array.isArray(Ae(r,q))){const _e=te(Ae(r,q),pe.argA,pe.argB);Ce&&Tt(r,q,_e)}if(De&&Array.isArray(Ae(n.errors,q))){const _e=te(Ae(n.errors,q),pe.argA,pe.argB);Ce&&Tt(n.errors,q,_e),vK(n.errors,q)}if(f.touchedFields&&De&&Array.isArray(Ae(n.touchedFields,q))){const _e=te(Ae(n.touchedFields,q),pe.argA,pe.argB);Ce&&Tt(n.touchedFields,q,_e)}f.dirtyFields&&(n.dirtyFields=Pl(i,o)),h.state.next({name:q,isDirty:G(q,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,q,Z)},D=(q,Z)=>{Tt(n.errors,q,Z),h.state.next({errors:n.errors})},P=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Z,te,pe)=>{const Ce=Ae(r,q);if(Ce){const De=Ae(o,q,dn(te)?Ae(i,q):te);dn(De)||pe&&pe.defaultChecked||Z?Tt(o,q,Z?De:gg(Ce._f)):j(q,De),a.mount&&C()}},T=(q,Z,te,pe,Ce)=>{let De=!1,_e=!1;const Ve={name:q};if(!t.disabled){const mt=!!(Ae(r,q)&&Ae(r,q)._f&&Ae(r,q)._f.disabled);if(!te||pe){f.isDirty&&(_e=n.isDirty,n.isDirty=Ve.isDirty=G(),De=_e!==Ve.isDirty);const ut=mt||Qo(Ae(i,q),Z);_e=!!(!mt&&Ae(n.dirtyFields,q)),ut||mt?$n(n.dirtyFields,q):Tt(n.dirtyFields,q,!0),Ve.dirtyFields=n.dirtyFields,De=De||f.dirtyFields&&_e!==!ut}if(te){const ut=Ae(n.touchedFields,q);ut||(Tt(n.touchedFields,q,te),Ve.touchedFields=n.touchedFields,De=De||f.touchedFields&&ut!==te)}De&&Ce&&h.state.next(Ve)}return De?Ve:{}},k=(q,Z,te,pe)=>{const Ce=Ae(n.errors,q),De=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&te?(c=$(()=>D(q,te)),c(t.delayError)):(clearTimeout(d),c=null,te?Tt(n.errors,q,te):$n(n.errors,q)),(te?!Qo(Ce,te):Ce)||!$r(pe)||De){const _e={...pe,...De&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:q};n={...n,..._e},h.state.next(_e)}},S=async q=>{x(q,!0);const Z=await t.resolver(o,t.context,pK(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(q),Z},U=async q=>{const{errors:Z}=await S(q);if(q)for(const te of q){const pe=Ae(Z,te);pe?Tt(n.errors,te,pe):$n(n.errors,te)}else n.errors=Z;return Z},O=async(q,Z,te={valid:!0})=>{for(const pe in q){const Ce=q[pe];if(Ce){const{_f:De,..._e}=Ce;if(De){const Ve=u.array.has(De.name),mt=Ce._f&&mK(Ce._f);mt&&f.validatingFields&&x([pe],!0);const ut=await ax(Ce,u.disabled,o,v,t.shouldUseNativeValidation&&!Z,Ve);if(mt&&f.validatingFields&&x([pe]),ut[De.name]&&(te.valid=!1,Z))break;!Z&&(Ae(ut,De.name)?Ve?cK(n.errors,ut,De.name):Tt(n.errors,De.name,ut[De.name]):$n(n.errors,De.name))}!$r(_e)&&await O(_e,Z,te)}}return te.valid},F=()=>{for(const q of u.unMount){const Z=Ae(r,q);Z&&(Z._f.refs?Z._f.refs.every(te=>!mg(te)):!mg(Z._f.ref))&&Ee(q)}u.unMount=new Set},G=(q,Z)=>!t.disabled&&(q&&Z&&Tt(o,q,Z),!Qo(z(),i)),K=(q,Z,te)=>rA(q,u,{...a.mount?o:dn(Z)?i:ji(q)?{[q]:Z}:Z},te,Z),W=q=>ip(Ae(a.mount?o:i,q,t.shouldUnregister?Ae(i,q,[]):[])),j=(q,Z,te={})=>{const pe=Ae(r,q);let Ce=Z;if(pe){const De=pe._f;De&&(!De.disabled&&Tt(o,q,cA(Z,De)),Ce=lh(De.ref)&&sr(Z)?"":Z,sA(De.ref)?[...De.ref.options].forEach(_e=>_e.selected=Ce.includes(_e.value)):De.refs?Kc(De.ref)?De.refs.length>1?De.refs.forEach(_e=>(!_e.defaultChecked||!_e.disabled)&&(_e.checked=Array.isArray(Ce)?!!Ce.find(Ve=>Ve===_e.value):Ce===_e.value)):De.refs[0]&&(De.refs[0].checked=!!Ce):De.refs.forEach(_e=>_e.checked=_e.value===Ce):Ab(De.ref)?De.ref.value="":(De.ref.value=Ce,De.ref.type||h.values.next({name:q,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&T(q,Ce,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&V(q)},L=(q,Z,te)=>{for(const pe in Z){const Ce=Z[pe],De=`${q}.${pe}`,_e=Ae(r,De);(u.array.has(q)||fn(Ce)||_e&&!_e._f)&&!za(Ce)?L(De,Ce,te):j(De,Ce,te)}},_=(q,Z,te={})=>{const pe=Ae(r,q),Ce=u.array.has(q),De=br(Z);Tt(o,q,De),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&te.shouldDirty&&h.state.next({name:q,dirtyFields:Pl(i,o),isDirty:G(q,De)})):pe&&!pe._f&&!sr(De)?L(q,De,te):j(q,De,te),tx(q,u)&&h.state.next({...n}),h.values.next({name:a.mount?q:void 0,values:{...o}})},M=async q=>{a.mount=!0;const Z=q.target;let te=Z.name,pe=!0;const Ce=Ae(r,te),De=()=>Z.type?gg(Ce._f):ZT(q),_e=Ve=>{pe=Number.isNaN(Ve)||za(Ve)&&isNaN(Ve.getTime())||Qo(Ve,Ae(o,te,Ve))};if(Ce){let Ve,mt;const ut=De(),Rt=q.type===uh.BLUR||q.type===uh.FOCUS_OUT,Pn=!gK(Ce._f)&&!t.resolver&&!Ae(n.errors,te)&&!Ce._f.deps||yK(Rt,Ae(n.touchedFields,te),n.isSubmitted,g,m),_n=tx(te,u,Rt);Tt(o,te,ut),Rt?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Yt=T(te,ut,Rt,!1),Ln=!$r(Yt)||_n;if(!Rt&&h.values.next({name:te,type:q.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&Rt?C():Rt||C()),Ln&&h.state.next({name:te,..._n?{}:Yt});if(!Rt&&_n&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([te]);if(_e(ut),pe){const vt=ux(n.errors,r,te),Vn=ux(tn,r,vt.name||te);Ve=Vn.error,te=Vn.name,mt=$r(tn)}}else x([te],!0),Ve=(await ax(Ce,u.disabled,o,v,t.shouldUseNativeValidation))[te],x([te]),_e(ut),pe&&(Ve?mt=!1:f.isValid&&(mt=await O(r,!0)));pe&&(Ce._f.deps&&V(Ce._f.deps),k(te,mt,Ve,Yt))}},Y=(q,Z)=>{if(Ae(n.errors,Z)&&q.focus)return q.focus(),1},V=async(q,Z={})=>{let te,pe;const Ce=ec(q);if(t.resolver){const De=await U(dn(q)?q:Ce);te=$r(De),pe=q?!Ce.some(_e=>Ae(De,_e)):te}else q?(pe=(await Promise.all(Ce.map(async De=>{const _e=Ae(r,De);return await O(_e&&_e._f?{[De]:_e}:_e)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=te=await O(r);return h.state.next({...!ji(q)||f.isValid&&te!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:n.errors}),Z.shouldFocus&&!pe&&tc(r,Y,q?Ce:u.mount),pe},z=q=>{const Z={...a.mount?o:i};return dn(q)?Z:ji(q)?Ae(Z,q):q.map(te=>Ae(Z,te))},re=(q,Z)=>({invalid:!!Ae((Z||n).errors,q),isDirty:!!Ae((Z||n).dirtyFields,q),error:Ae((Z||n).errors,q),isValidating:!!Ae(n.validatingFields,q),isTouched:!!Ae((Z||n).touchedFields,q)}),oe=q=>{q&&ec(q).forEach(Z=>$n(n.errors,Z)),h.state.next({errors:q?n.errors:{}})},fe=(q,Z,te)=>{const pe=(Ae(r,q,{_f:{}})._f||{}).ref,Ce=Ae(n.errors,q)||{},{ref:De,message:_e,type:Ve,...mt}=Ce;Tt(n.errors,q,{...mt,...Z,ref:pe}),h.state.next({name:q,errors:n.errors,isValid:!1}),te&&te.shouldFocus&&pe&&pe.focus&&pe.focus()},ie=(q,Z)=>Ii(q)?h.values.subscribe({next:te=>q(K(void 0,Z),te)}):K(q,Z,!0),Ee=(q,Z={})=>{for(const te of q?ec(q):u.mount)u.mount.delete(te),u.array.delete(te),Z.keepValue||($n(r,te),$n(o,te)),!Z.keepError&&$n(n.errors,te),!Z.keepDirty&&$n(n.dirtyFields,te),!Z.keepTouched&&$n(n.touchedFields,te),!Z.keepIsValidating&&$n(n.validatingFields,te),!t.shouldUnregister&&!Z.keepDefaultValue&&$n(i,te);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:G()}:{}}),!Z.keepIsValid&&C()},$e=({disabled:q,name:Z,field:te,fields:pe})=>{(ti(q)&&a.mount||q||u.disabled.has(Z))&&(q?u.disabled.add(Z):u.disabled.delete(Z),T(Z,gg(te?te._f:Ae(pe,Z)._f),!1,!1,!0))},ne=(q,Z={})=>{let te=Ae(r,q);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...Z}}),u.mount.add(q),te?$e({field:te,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:q}):E(q,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:_l(Z.min),max:_l(Z.max),minLength:_l(Z.minLength),maxLength:_l(Z.maxLength),pattern:_l(Z.pattern)}:{},name:q,onChange:M,onBlur:M,ref:Ce=>{if(Ce){ne(q,Z),te=Ae(r,q);const De=dn(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,_e=hK(De),Ve=te._f.refs||[];if(_e?Ve.find(mt=>mt===De):De===te._f.ref)return;Tt(r,q,{_f:{...te._f,..._e?{refs:[...Ve.filter(mg),De,...Array.isArray(Ae(i,q))?[{}]:[]],ref:{type:De.type,name:q}}:{ref:De}}}),E(q,!1,void 0,De)}else te=Ae(r,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(JT(u.array,q)&&a.action)&&u.unMount.add(q)}}},ye=()=>t.shouldFocusError&&tc(r,Y,u.mount),xe=q=>{ti(q)&&(h.state.next({disabled:q}),tc(r,(Z,te)=>{const pe=Ae(r,te);pe&&(Z.disabled=pe._f.disabled||q,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ce=>{Ce.disabled=pe._f.disabled||q}))},0,!1))},he=(q,Z)=>async te=>{let pe;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let Ce=br(o);if(u.disabled.size)for(const De of u.disabled)Tt(Ce,De,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:De,values:_e}=await S();n.errors=De,Ce=_e}else await O(r);if($n(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await q(Ce,te)}catch(De){pe=De}}else Z&&await Z({...n.errors},te),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},le=(q,Z={})=>{Ae(r,q)&&(dn(Z.defaultValue)?_(q,br(Ae(i,q))):(_(q,Z.defaultValue),Tt(i,q,br(Z.defaultValue))),Z.keepTouched||$n(n.touchedFields,q),Z.keepDirty||($n(n.dirtyFields,q),n.isDirty=Z.defaultValue?G(q,br(Ae(i,q))):G()),Z.keepError||($n(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Fe=(q,Z={})=>{const te=q?br(q):i,pe=br(te),Ce=$r(q),De=Ce?i:pe;if(Z.keepDefaultValues||(i=te),!Z.keepValues){if(Z.keepDirtyValues){const _e=new Set([...u.mount,...Object.keys(Pl(i,o))]);for(const Ve of Array.from(_e))Ae(n.dirtyFields,Ve)?Tt(De,Ve,Ae(o,Ve)):_(Ve,Ae(De,Ve))}else{if(Cb&&dn(q))for(const _e of u.mount){const Ve=Ae(r,_e);if(Ve&&Ve._f){const mt=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(lh(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(De),h.array.next({values:{...De}}),h.values.next({values:{...De}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!Qo(q,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?Pl(i,o):n.dirtyFields:Z.keepDefaultValues&&q?Pl(i,q):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(q,Z)=>Fe(Ii(q)?q(o):q,Z);return{control:{register:ne,unregister:Ee,getFieldState:re,handleSubmit:he,setError:fe,_executeSchema:S,_getWatch:K,_getDirty:G,_updateValid:C,_removeUnmounted:F,_updateFieldArray:y,_updateDisabledField:$e,_getFieldArray:W,_reset:Fe,_resetDefaultValues:()=>Ii(t.defaultValues)&&t.defaultValues().then(q=>{et(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:xe,_subjects:h,_proxyFormState:f,_setErrors:P,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(q){a=q},get _defaultValues(){return i},get _names(){return u},set _names(q){u=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:V,register:ne,handleSubmit:he,watch:ie,setValue:_,getValues:z,reset:et,resetField:le,clearErrors:oe,unregister:Ee,setError:fe,setFocus:(q,Z={})=>{const te=Ae(r,q),pe=te&&te._f;if(pe){const Ce=pe.refs?pe.refs[0]:pe.ref;Ce.focus&&(Ce.focus(),Z.shouldSelect&&Ii(Ce.select)&&Ce.select())}},getFieldState:re}}function xK(e={}){const t=b.useRef(void 0),n=b.useRef(void 0),[r,i]=b.useState({isDirty:!1,isValidating:!1,isLoading:Ii(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ii(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...$K(e),formState:r});const o=t.current.control;return o._options=e,Tb({subject:o._subjects.state,next:a=>{tA(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),b.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),b.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),b.useEffect(()=>{e.values&&!Qo(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),b.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),b.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=eA(r,o),t.current}function mu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function qy(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=Wa(e,t,n).subtract(o);return mc(e,a,t,n,r,i)}function Wa(e,t,n,r,i){let o=e;return t.years?o=PV(e):t.months?o=Ic(e):t.weeks&&(o=dc(e,n)),mc(e,o,t,n,r,i)}function Yy(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=Wa(e,t,n).subtract(o);return mc(e,a,t,n,r,i)}function mc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=hb(t,Wa(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=fb(t,Yy(cr(o),n,r));a&&(t=a)}return t}function qo(e,t,n){if(t){let r=hb(e,cr(t));r&&(e=r)}if(n){let r=fb(e,cr(n));r&&(e=r)}return e}function dA(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function fA(e){let t=b.useMemo(()=>new ii(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var m;let[g,v]=Fr(e.value,(m=e.defaultValue)!==null&&m!==void 0?m:null,e.onChange),$=b.useMemo(()=>g?Qt(cr(g),h):null,[g,h]),C=b.useMemo(()=>g&&"timeZone"in g?g.timeZone:n.timeZone,[g,n.timeZone]),x=b.useMemo(()=>e.focusedValue?qo(Qt(cr(e.focusedValue),h),a,u):void 0,[e.focusedValue,h,a,u]),y=b.useMemo(()=>qo(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),h):$||Qt(Jh(C),h),a,u),[e.defaultFocusedValue,$,C,h,a,u]),[D,P]=Fr(x,y,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return Wa(D,o,r,a,u);case"end":return Yy(D,o,r,a,u);case"center":default:return qy(D,o,r,a,u)}}),[k,S]=b.useState(e.autoFocus||!1),U=b.useMemo(()=>{let V={...o};return V.days?V.days--:V.days=-1,E.add(V)},[E,o]),[O,F]=b.useState(h.identifier);if(h.identifier!==O){let V=Qt(D,h);T(qy(V,o,r,a,u)),P(V),F(h.identifier)}mu(D,a,u)?P(qo(D,a,u)):D.compare(E)<0?T(Yy(D,o,r,a,u)):D.compare(U)>0&&T(Wa(D,o,r,a,u));function G(V){V=qo(V,a,u),P(V)}function K(V){if(!e.isDisabled&&!e.isReadOnly){let z=V;if(z===null){v(null);return}if(z=qo(z,a,u),z=dA(z,E,d),!z)return;z=Qt(z,(g==null?void 0:g.calendar)||new dr),g&&"hour"in g?v(g.set(z)):v(z)}}let W=b.useMemo(()=>$?d&&d($)?!0:mu($,a,u):!1,[$,d,a,u]),j=e.isInvalid||e.validationState==="invalid"||W,L=j?"invalid":null,_=b.useMemo(()=>f==="visible"?o:yg(o),[f,o]);var M,Y;return{isDisabled:(M=e.isDisabled)!==null&&M!==void 0?M:!1,isReadOnly:(Y=e.isReadOnly)!==null&&Y!==void 0?Y:!1,value:$,setValue:K,visibleRange:{start:E,end:U},minValue:a,maxValue:u,focusedDate:D,timeZone:C,validationState:L,isValueInvalid:j,setFocusedDate(V){G(V),S(!0)},focusNextDay(){G(D.add({days:1}))},focusPreviousDay(){G(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&G(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&G(D.subtract({weeks:1}))},focusNextPage(){let V=E.add(_);P(qo(D.add(_),a,u)),T(Wa(mc(D,V,_,r,a,u),_,r))},focusPreviousPage(){let V=E.subtract(_);P(qo(D.subtract(_),a,u)),T(Wa(mc(D,V,_,r,a,u),_,r))},focusSectionStart(){o.days?G(E):o.weeks?G(dc(D,r)):(o.months||o.years)&&G(Ic(D))},focusSectionEnd(){o.days?G(U):o.weeks?G(OV(D,r)):(o.months||o.years)&&G(My(D))},focusNextSection(V){if(!V&&!o.days){G(D.add(yg(o)));return}o.days?this.focusNextPage():o.weeks?G(D.add({months:1})):(o.months||o.years)&&G(D.add({years:1}))},focusPreviousSection(V){if(!V&&!o.days){G(D.subtract(yg(o)));return}o.days?this.focusPreviousPage():o.weeks?G(D.subtract({months:1})):(o.months||o.years)&&G(D.subtract({years:1}))},selectFocusedDate(){K(D)},selectDate(V){K(V)},isFocused:k,setFocused:S,isInvalid(V){return mu(V,a,u)},isSelected(V){return $!=null&&xn(V,$)&&!this.isCellDisabled(V)&&!this.isCellUnavailable(V)},isCellFocused(V){return k&&D&&xn(V,D)},isCellDisabled(V){return e.isDisabled||V.compare(E)<0||V.compare(U)>0||this.isInvalid(V)},isCellUnavailable(V){return e.isDateUnavailable?e.isDateUnavailable(V):!1},isPreviousVisibleRangeInvalid(){let V=E.subtract({days:1});return xn(V,E)||this.isInvalid(V)},isNextVisibleRangeInvalid(){let V=U.add({days:1});return xn(V,U)||this.isInvalid(V)},getDatesInWeek(V,z=E){let re=z.add({weeks:V}),oe=[];re=dc(re,r);let fe=db(re,r);for(let ie=0;ie<fe;ie++)oe.push(null);for(;oe.length<7;){oe.push(re);let ie=re.add({days:1});if(xn(re,ie))break;re=ie}for(;oe.length<7;)oe.push(null);return oe}}}function yg(e){let t={...e};for(let n in e)t[n]=1;return t}function wK(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:c,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=b.useState(null),v="center";if(f&&f.start&&f.end){let M=qy(cr(f.start),a,o,u,c).add(a).subtract({days:1});f.end.compare(M)>0&&(v="start")}let $=b.useRef(null),[C,x]=b.useState(null),y=b.useMemo(()=>hb(u,C==null?void 0:C.start),[u,C]),D=b.useMemo(()=>fb(c,C==null?void 0:C.end),[c,C]),P=fA({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:y,maxValue:D,selectionAlignment:v}),E=_=>{if(_&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=cx(_,P,-1),Y=cx(_,P,1);$.current={start:M,end:Y},x($.current)}else $.current=null,x(null)},[T,k]=b.useState(P.visibleRange);(!Oy(P.visibleRange.start,T.start)||!Oy(P.visibleRange.end,T.end))&&(E(m),k(P.visibleRange));let S=_=>{_?(g(_),E(_)):(g(null),E(null))},U=m?vg(m,P.focusedDate):f&&vg(f.start,f.end),O=_=>{if(e.isReadOnly)return;const M=qo(_,y,D),Y=dA(M,P.visibleRange.start,e.isDateUnavailable);if(Y)if(!m)S(Y);else{let V=vg(m,Y);V&&h({start:lx(V.start,f==null?void 0:f.start),end:lx(V.end,f==null?void 0:f.end)}),S(null)}},[F,G]=b.useState(!1),{isDateUnavailable:K}=e,W=b.useMemo(()=>!f||m?!1:K&&(K(f.start)||K(f.end))?!0:mu(f.start,u,c)||mu(f.end,u,c),[K,f,m,u,c]),j=e.isInvalid||e.validationState==="invalid"||W;return{...P,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:U,validationState:j?"invalid":null,isValueInvalid:j,selectFocusedDate(){O(P.focusedDate)},selectDate:O,highlightDate(_){m&&P.setFocusedDate(_)},isSelected(_){return!!(U&&_.compare(U.start)>=0&&_.compare(U.end)<=0&&!P.isCellDisabled(_)&&!P.isCellUnavailable(_))},isInvalid(_){var M,Y;return P.isInvalid(_)||mu(_,(M=$.current)===null||M===void 0?void 0:M.start,(Y=$.current)===null||Y===void 0?void 0:Y.end)},isDragging:F,setDragging:G}}function vg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function lx(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function cx(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Zy{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function DK(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function EK(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=b.useRef(!1),[,u]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,f]=b.useState(null),h=b.useMemo(()=>dx(e.selectedKeys),[e.selectedKeys]),m=b.useMemo(()=>dx(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,v]=Fr(h,m,e.onSelectionChange),$=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=b.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&x("replace");let y=b.useRef(i);return b.useEffect(()=>{i!==y.current&&(x(i),y.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!DK(D,g))&&v(D)},disabledKeys:$,disabledBehavior:o}}function dx(e,t){return e?e==="all"?"all":new mi(e):t}class CK{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let c of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,u))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?hg(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new mi(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=Vj(rp(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new mi)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function SK(e){let{filter:t,layoutDelegate:n}=e,r=EK(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(f=>t?new Zy(t(f)):new Zy(f),[t]),a=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=Lj(e,o,a),c=b.useMemo(()=>new CK(u,r,{layoutDelegate:n}),[u,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const x=d.current.getItem(r.focusedKey),y=[...d.current.getKeys()].map(S=>{const U=d.current.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const U=u.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null);var f,h;const P=((f=y==null?void 0:y.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,v;let E=Math.min(P>1?Math.max(((m=x==null?void 0:x.index)!==null&&m!==void 0?m:0)-P+1,0):(g=x==null?void 0:x.index)!==null&&g!==void 0?g:0,((v=D==null?void 0:D.length)!==null&&v!==void 0?v:0)-1),T=null,k=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!k)E++;else{k=!0;var $,C;E>(($=x==null?void 0:x.index)!==null&&$!==void 0?$:0)&&(E=(C=x==null?void 0:x.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=u},[u,c,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:c}}function TK(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=SK({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:c}}function _b(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),i=b.useCallback(()=>{n(!1)},[n]),o=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function AK(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,c]=b.useState(!1),[d,f]=b.useState(!1),[h,m]=b.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===x&&(fe(),z())};var v;let{collection:$,selectionManager:C,selectedKey:x,setSelectedKey:y,selectedItem:D,disabledKeys:P}=TK({...e,onSelectionChange:g,items:(v=e.items)!==null&&v!==void 0?v:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,k;x==null?E="":E=(k=(T=$.getItem(x))===null||T===void 0?void 0:T.textValue)!==null&&k!==void 0?k:""}let[S,U]=Fr(e.inputValue,E,e.onInputChange),O=$,F=b.useMemo(()=>e.items!=null||!n?$:PK($,S,n),[$,S,n,e.items]),[G,K]=b.useState(F),W=b.useRef("focus"),L=_b({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?W.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),_=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";(i||F.size>0||pe&&O.size>0||e.items)&&(pe&&!L.isOpen&&e.items===void 0&&c(!0),W.current=te,m(Z),L.open())},M=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";!(i||F.size>0||pe&&O.size>0||e.items)&&!L.isOpen||(pe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(W.current=te),V(Z))},Y=b.useCallback(()=>{K(u?O:F)},[u,O,F]),V=b.useCallback((Z=null)=>{L.isOpen&&Y(),m(Z),L.toggle()},[L,Y]),z=b.useCallback(()=>{L.isOpen&&(Y(),L.close())},[L,Y]),[re,oe]=b.useState(S),fe=()=>{var Z,te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";oe(pe),U(pe)};var ie,Ee;let $e=b.useRef((Ee=(ie=e.selectedKey)!==null&&ie!==void 0?ie:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var ne;let ye=b.useRef(x!=null&&(ne=(t=$.getItem(x))===null||t===void 0?void 0:t.textValue)!==null&&ne!==void 0?ne:"");b.useEffect(()=>{var Z;d&&(F.size>0||i)&&!L.isOpen&&S!==re&&r!=="manual"&&_(null,"input"),!u&&!i&&L.isOpen&&F.size===0&&z(),x!=null&&x!==$e.current&&z(),S!==re&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&y(null)),x!==$e.current&&(e.inputValue===void 0||e.selectedKey===void 0)?fe():re!==S&&oe(S);var te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";!d&&x!=null&&e.inputValue===void 0&&x===$e.current&&ye.current!==pe&&(oe(pe),U(pe)),$e.current=x,ye.current=pe});let xe=Nc({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:x}),[S,x])}),he=()=>{o&&x==null?le():Fe()},le=()=>{$e.current=null,y(null),z()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,te;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,x);var pe;let Ce=x!=null&&(pe=(te=$.getItem(x))===null||te===void 0?void 0:te.textValue)!==null&&pe!==void 0?pe:"";oe(Ce),z()}else fe(),z()};const et=()=>{if(o){var Z,te;const pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";S===pe?Fe():le()}else Fe()};let dt=()=>{L.isOpen&&C.focusedKey!=null?x===C.focusedKey?Fe():y(C.focusedKey):et()},Dn=b.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&_(null,"focus")):(a&&et(),S!==Dn.current&&xe.commitValidation()),f(Z)},q=b.useMemo(()=>L.isOpen?u?O:F:G,[L.isOpen,O,F,u,G]);return{...xe,...L,focusStrategy:h,toggle:M,open:_,close:et,selectionManager:C,selectedKey:x,setSelectedKey:y,disabledKeys:P,isFocused:d,setFocused:yt,selectedItem:D,collection:q,inputValue:S,setInputValue:U,commit:dt,revert:he}}function PK(e,t,n){return new Zy(hA(e,e,t,n))}function hA(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=hA(e,rp(o,e),n,r);[...a].some(u=>u.type==="item")&&i.push({...o,childNodes:a})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var pA={};pA={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var mA={};mA={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var gA={};gA={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var yA={};yA={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var vA={};vA={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var bA={};bA={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var $A={};$A={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var xA={};xA={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var wA={};wA={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var DA={};DA={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var EA={};EA={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var CA={};CA={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var SA={};SA={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var TA={};TA={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var AA={};AA={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var PA={};PA={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var _A={};_A={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var RA={};RA={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var OA={};OA={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var MA={};MA={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var FA={};FA={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var kA={};kA={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var BA={};BA={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var IA={};IA={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var LA={};LA={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var VA={};VA={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var NA={};NA={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var jA={};jA={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var KA={};KA={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var UA={};UA={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var zA={};zA={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var WA={};WA={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var HA={};HA={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var GA={};GA={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var qA={};qA={"ar-AE":pA,"bg-BG":mA,"cs-CZ":gA,"da-DK":yA,"de-DE":vA,"el-GR":bA,"en-US":$A,"es-ES":xA,"et-EE":wA,"fi-FI":DA,"fr-FR":EA,"he-IL":CA,"hr-HR":SA,"hu-HU":TA,"it-IT":AA,"ja-JP":PA,"ko-KR":_A,"lt-LT":RA,"lv-LV":OA,"nb-NO":MA,"nl-NL":FA,"pl-PL":kA,"pt-BR":BA,"pt-PT":IA,"ro-RO":LA,"ru-RU":VA,"sk-SK":NA,"sl-SI":jA,"sr-SP":KA,"sv-SE":UA,"tr-TR":zA,"uk-UA":WA,"zh-CN":HA,"zh-TW":GA};function _K(e){return e&&e.__esModule?e.default:e}const YA=new ga(_K(qA));function ZA(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function fh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,c=o||a||u,d=[];if(c){let f=ZA(),h=ga.getGlobalDictionaryForPackage("@react-stately/datepicker")||YA,m=new jC(f,h),g=new ii(f,$o({},i)),v=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(v))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(v))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function RK(e,t,n,r,i){var o;let a=fh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let c=fh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=ah(a,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=ga.getGlobalDictionaryForPackage("@react-stately/datepicker")||YA;d=ah(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",ZA())],validationDetails:{...Qh,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const OK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},MK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function $o(e,t){e={...t.shouldForceLeadingZeros?MK:OK,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&a===0&&(c.era="short"),c}function eu(e){return e&&"hour"in e?e:new Lc}function JA(e,t){if(e===null)return null;if(e)return Qt(e,t)}function Rl(e,t,n,r){if(e)return JA(e,n);let i=Qt(WC(r??Bc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function Rb(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=b.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function FK(e){let t=_b(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Rb(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=b.useState(null),[g,v]=b.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,$]),{minValue:x,maxValue:y,isDateUnavailable:D}=e,P=b.useMemo(()=>fh(n,x,y,D,C),[n,x,y,D,C]),E=Nc({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,k=e.validationState||(T?"invalid":null),S=(F,G)=>{r("timeZone"in G?G.set(cr(F)):Di(F,G)),m(null),v(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:F=>{let G=typeof f=="function"?f():f;c?g||G?S(F,g||eu(e.defaultValue||e.placeholderValue)):m(F):(r(F),E.commitValidation()),G&&t.setOpen(!1)},setTimeValue:F=>{h&&F?S(h,F):v(F)},granularity:o,hasTime:c,...t,setOpen(F){!F&&!n&&h&&c&&S(h,g||eu(e.defaultValue||e.placeholderValue)),t.setOpen(F)},validationState:k,isInvalid:T,formatValue(F,G){if(!u)return"";let K=$o(G,C);return new ii(F,K).format(u)},getDateFormatter(F,G){let K={...C,...G},W=$o({},K);return new ii(F,W)}}}const kK=new ga({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function BK(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?kK.getStringForLocale(e,n):"––"}const df={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},fx={year:5,month:2,day:7,hour:2,minute:15,second:15},IK={dayperiod:"dayPeriod"};function XA(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let v=b.useMemo(()=>new ii(t),[t]),$=b.useMemo(()=>n(v.resolvedOptions().calendar),[n,v]);var C;let[x,y]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var ne;return(ne=JA(x,$))!==null&&ne!==void 0?ne:null},[x,$]),[P,E]=b.useState(()=>Rl(e.placeholderValue,h,$,m)),T=D||P,k=$.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var ne;return{granularity:h,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,k]),U=b.useMemo(()=>$o({},S),[S]),O=b.useMemo(()=>new ii(t,U),[t,U]),F=b.useMemo(()=>O.resolvedOptions(),[O]),G=b.useMemo(()=>O.formatToParts(new Date).filter(ne=>df[ne.type]).reduce((ne,ye)=>(ne[ye.type]=!0,ne),{}),[O]),[K,W]=b.useState(()=>e.value||e.defaultValue?{...G}:{}),j=b.useRef(null),L=b.useRef($.identifier);b.useEffect(()=>{$.identifier!==L.current&&(L.current=$.identifier,E(ne=>Object.keys(K).length>0?Qt(ne,$):Rl(e.placeholderValue,h,$,m)))},[$,h,K,m,e.placeholderValue]),x&&Object.keys(K).length<Object.keys(G).length&&(K={...G},W(K)),x==null&&Object.keys(K).length===Object.keys(G).length&&(K={},W(K),E(Rl(e.placeholderValue,h,$,m)));let _=D&&Object.keys(K).length>=Object.keys(G).length?D:P,M=ne=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(K),xe=Object.keys(G);ne==null?(y(null),E(Rl(e.placeholderValue,h,$,m)),W({})):ye.length>=xe.length||ye.length===xe.length-1&&G.dayPeriod&&!K.dayPeriod&&j.current!=="dayPeriod"?(ne=Qt(ne,(f==null?void 0:f.calendar)||new dr),y(ne)):E(ne),j.current=null},Y=b.useMemo(()=>_.toDate(g),[_,g]),V=b.useMemo(()=>O.formatToParts(Y).map(ne=>{let ye=df[ne.type];ne.type==="era"&&$.getEras().length===1&&(ye=!1);let xe=df[ne.type]&&!K[ne.type],he=df[ne.type]?BK(ne.type,ne.value,t):null;return{type:IK[ne.type]||ne.type,text:xe?he:ne.value,...LK(_,ne.type,F),isPlaceholder:xe,placeholder:he,isEditable:ye}}),[Y,K,O,F,_,$,t]);G.era&&K.year&&!K.era?(K.era=!0,W({...K})):!G.era&&K.era&&(delete K.era,W({...K}));let z=ne=>{K[ne]=!0,ne==="year"&&G.era&&(K.era=!0),W({...K})},re=(ne,ye)=>{if(K[ne])M(VK(_,ne,ye,F));else{z(ne);let xe=Object.keys(K),he=Object.keys(G);(xe.length>=he.length||xe.length===he.length-1&&G.dayPeriod&&!K.dayPeriod)&&M(_)}},oe=b.useMemo(()=>fh(x,u,c,d,S),[x,u,c,d,S]),fe=Nc({...e,value:x,builtinValidation:oe}),ie=fe.displayValidation.isInvalid,Ee=e.validationState||(ie?"invalid":null);var $e;return{...fe,value:D,dateValue:Y,calendar:$,setValue:M,segments:V,dateFormatter:O,validationState:Ee,isInvalid:ie,granularity:h,maxGranularity:($e=e.maxGranularity)!==null&&$e!==void 0?$e:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(ne){re(ne,1)},decrement(ne){re(ne,-1)},incrementPage(ne){re(ne,fx[ne]||1)},decrementPage(ne){re(ne,-(fx[ne]||1))},setSegment(ne,ye){z(ne),M(NK(_,ne,ye,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ne=Object.keys(K),ye=Object.keys(G);ne.length===ye.length-1&&G.dayPeriod&&!K.dayPeriod&&(K={...G},W(K),M(_.copy()))},clearSegment(ne){delete K[ne],j.current=ne,W({...K});let ye=Rl(e.placeholderValue,h,$,m),xe=_;if(ne==="dayPeriod"&&"hour"in _&&"hour"in ye){let he=_.hour>=12,le=ye.hour>=12;he&&!le?xe=_.set({hour:_.hour-12}):!he&&le&&(xe=_.set({hour:_.hour+12}))}else ne in _&&(xe=_.set({[ne]:ye[ne]}));y(null),M(xe)},formatValue(ne){if(!D)return"";let ye=$o(ne,S);return new ii(t,ye).format(Y)},getDateFormatter(ne,ye){let xe={...S,...ye},he=$o({},xe);return new ii(ne,he)}}}function LK(e,t,n){switch(t){case"era":{let r=e.calendar.getEras();return{value:r.indexOf(e.era),minValue:0,maxValue:r.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:_V(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:RV(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let r=e.hour>=12;return{value:e.hour,minValue:r?12:0,maxValue:r?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function VK(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:t==="year"})}if("hour"in e)switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return e.set({hour:o?i-12:i+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:t!=="hour",hourCycle:r.hour12?12:24})}throw new Error("Unknown segment: "+t)}function NK(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e&&typeof n=="number")switch(t){case"dayPeriod":{let i=e.hour,o=i>=12;return n>=12===o?e:e.set({hour:o?i-12:i+12})}case"hour":if(r.hour12){let o=e.hour>=12;!o&&n===12&&(n=0),o&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function jK(e){var t,n;let r=_b(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=b.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let c=i||a,d=L=>{u(L||{start:null,end:null}),Ma(L)?o(L):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var v;let $=(v=e.shouldCloseOnSelect)!==null&&v!==void 0?v:!0,[C,x]=b.useState(null),[y,D]=b.useState(null);c&&Ma(c)&&(C=c,"hour"in c.start&&(y=c));let P=(L,_)=>{d({start:"timeZone"in _.start?_.start.set(cr(L.start)):Di(L.start,_.start),end:"timeZone"in _.end?_.end.set(cr(L.end)):Di(L.end,_.end)}),x(null),D(null),K.commitValidation()},E=L=>{let _=typeof $=="function"?$():$;g?Ma(L)&&(y!=null&&y.start)&&(y!=null&&y.end)?P(L,{start:(y==null?void 0:y.start)||eu(e.placeholderValue),end:(y==null?void 0:y.end)||eu(e.placeholderValue)}):x(L):Ma(L)?(d(L),K.commitValidation()):x(L),_&&r.setOpen(!1)},T=L=>{Ma(C)&&Ma(L)?P(C,L):D(L)},k=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=b.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,k]),{minValue:U,maxValue:O,isDateUnavailable:F}=e,G=b.useMemo(()=>RK(c,U,O,F,S),[c,U,O,F,S]),K=Nc({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:G}),W=K.displayValidation.isInvalid,j=e.validationState||(W?"invalid":null);return{...K,value:c,setValue:d,dateRange:C,timeRange:y,granularity:h,hasTime:g,setDate(L,_){var M,Y;E(L==="start"?{start:_,end:(M=C==null?void 0:C.end)!==null&&M!==void 0?M:null}:{start:(Y=C==null?void 0:C.start)!==null&&Y!==void 0?Y:null,end:_})},setTime(L,_){var M,Y;T(L==="start"?{start:_,end:(M=y==null?void 0:y.end)!==null&&M!==void 0?M:null}:{start:(Y=y==null?void 0:y.start)!==null&&Y!==void 0?Y:null,end:_})},setDateTime(L,_){var M,Y;d(L==="start"?{start:_,end:(M=c==null?void 0:c.end)!==null&&M!==void 0?M:null}:{start:(Y=c==null?void 0:c.start)!==null&&Y!==void 0?Y:null,end:_})},setDateRange:E,setTimeRange:T,...r,setOpen(L){!L&&!(c!=null&&c.start&&(c!=null&&c.end))&&Ma(C)&&g&&P(C,{start:(y==null?void 0:y.start)||eu(e.placeholderValue),end:(y==null?void 0:y.end)||eu(e.placeholderValue)}),r.setOpen(L)},validationState:j,isInvalid:W,formatValue(L,_){if(!c||!c.start||!c.end)return null;let M="timeZone"in c.start?c.start.timeZone:void 0,Y=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),V="timeZone"in c.end?c.end.timeZone:void 0,z=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),re=$o(_,{granularity:Y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),oe=c.start.toDate(M||"UTC"),fe=c.end.toDate(V||"UTC"),ie=new ii(L,re),Ee;if(M===V&&Y===z&&c.start.compare(c.end)!==0){try{let $e=ie.formatRangeToParts(oe,fe),ne=-1;for(let he=0;he<$e.length;he++){let le=$e[he];if(le.source==="shared"&&le.type==="literal")ne=he;else if(le.source==="endRange")break}let ye="",xe="";for(let he=0;he<$e.length;he++)he<ne?ye+=$e[he].value:he>ne&&(xe+=$e[he].value);return{start:ye,end:xe}}catch{}Ee=ie}else{let $e=$o(_,{granularity:z,timeZone:V,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ee=new ii(L,$e)}return{start:ie.format(oe),end:Ee.format(fe)}},getDateFormatter(L,_){let M={...S,..._},Y=$o({},M);return new ii(L,Y)}}}function Ma(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function KK(e){let{placeholderValue:t=new Lc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,c]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?JC(Ol(t),D||h):Ol(t)},[t,d,h]),g=b.useMemo(()=>Ol(n,f),[n,f]),v=b.useMemo(()=>Ol(r,f),[r,f]),$=b.useMemo(()=>u&&"day"in u?g$(u):u,[u]),C=b.useMemo(()=>u==null?null:Ol(u),[u]);return{...XA({...e,value:C,defaultValue:void 0,minValue:g,maxValue:v,onChange:D=>{c(f||h?D:D&&g$(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:b.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:$}}function Ol(e,t=Jh(Bc())){return e?"day"in e?e:Di(t,e):null}var Mf={exports:{}},UK=Mf.exports,hx;function zK(){return hx||(hx=1,function(e,t){(function(n,r){e.exports=r()})(UK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",d="day",f="week",h="month",m="quarter",g="year",v="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var j=["th","st","nd","rd"],L=W%100;return"["+W+(j[(L-20)%10]||j[L]||j[0])+"]"}},D=function(W,j,L){var _=String(W);return!_||_.length>=j?W:""+Array(j+1-_.length).join(L)+W},P={s:D,z:function(W){var j=-W.utcOffset(),L=Math.abs(j),_=Math.floor(L/60),M=L%60;return(j<=0?"+":"-")+D(_,2,"0")+":"+D(M,2,"0")},m:function W(j,L){if(j.date()<L.date())return-W(L,j);var _=12*(L.year()-j.year())+(L.month()-j.month()),M=j.clone().add(_,h),Y=L-M<0,V=j.clone().add(_+(Y?-1:1),h);return+(-(_+(L-M)/(Y?M-V:V-M))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:g,w:f,d,D:v,h:c,m:u,s:a,ms:o,Q:m}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",T={};T[E]=y;var k="$isDayjsObject",S=function(W){return W instanceof G||!(!W||!W[k])},U=function W(j,L,_){var M;if(!j)return E;if(typeof j=="string"){var Y=j.toLowerCase();T[Y]&&(M=Y),L&&(T[Y]=L,M=Y);var V=j.split("-");if(!M&&V.length>1)return W(V[0])}else{var z=j.name;T[z]=j,M=z}return!_&&M&&(E=M),M||!_&&E},O=function(W,j){if(S(W))return W.clone();var L=typeof j=="object"?j:{};return L.date=W,L.args=arguments,new G(L)},F=P;F.l=U,F.i=S,F.w=function(W,j){return O(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var G=function(){function W(L){this.$L=U(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[k]=!0}var j=W.prototype;return j.parse=function(L){this.$d=function(_){var M=_.date,Y=_.utc;if(M===null)return new Date(NaN);if(F.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var V=M.match(C);if(V){var z=V[2]-1||0,re=(V[7]||"0").substring(0,3);return Y?new Date(Date.UTC(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date(M)}(L),this.init()},j.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(L,_){var M=O(L);return this.startOf(_)<=M&&M<=this.endOf(_)},j.isAfter=function(L,_){return O(L)<this.startOf(_)},j.isBefore=function(L,_){return this.endOf(_)<O(L)},j.$g=function(L,_,M){return F.u(L)?this[_]:this.set(M,L)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(L,_){var M=this,Y=!!F.u(_)||_,V=F.p(L),z=function(ye,xe){var he=F.w(M.$u?Date.UTC(M.$y,xe,ye):new Date(M.$y,xe,ye),M);return Y?he:he.endOf(d)},re=function(ye,xe){return F.w(M.toDate()[ye].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xe)),M)},oe=this.$W,fe=this.$M,ie=this.$D,Ee="set"+(this.$u?"UTC":"");switch(V){case g:return Y?z(1,0):z(31,11);case h:return Y?z(1,fe):z(0,fe+1);case f:var $e=this.$locale().weekStart||0,ne=(oe<$e?oe+7:oe)-$e;return z(Y?ie-ne:ie+(6-ne),fe);case d:case v:return re(Ee+"Hours",0);case c:return re(Ee+"Minutes",1);case u:return re(Ee+"Seconds",2);case a:return re(Ee+"Milliseconds",3);default:return this.clone()}},j.endOf=function(L){return this.startOf(L,!1)},j.$set=function(L,_){var M,Y=F.p(L),V="set"+(this.$u?"UTC":""),z=(M={},M[d]=V+"Date",M[v]=V+"Date",M[h]=V+"Month",M[g]=V+"FullYear",M[c]=V+"Hours",M[u]=V+"Minutes",M[a]=V+"Seconds",M[o]=V+"Milliseconds",M)[Y],re=Y===d?this.$D+(_-this.$W):_;if(Y===h||Y===g){var oe=this.clone().set(v,1);oe.$d[z](re),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else z&&this.$d[z](re);return this.init(),this},j.set=function(L,_){return this.clone().$set(L,_)},j.get=function(L){return this[F.p(L)]()},j.add=function(L,_){var M,Y=this;L=Number(L);var V=F.p(_),z=function(fe){var ie=O(Y);return F.w(ie.date(ie.date()+Math.round(fe*L)),Y)};if(V===h)return this.set(h,this.$M+L);if(V===g)return this.set(g,this.$y+L);if(V===d)return z(1);if(V===f)return z(7);var re=(M={},M[u]=r,M[c]=i,M[a]=n,M)[V]||1,oe=this.$d.getTime()+L*re;return F.w(oe,this)},j.subtract=function(L,_){return this.add(-1*L,_)},j.format=function(L){var _=this,M=this.$locale();if(!this.isValid())return M.invalidDate||$;var Y=L||"YYYY-MM-DDTHH:mm:ssZ",V=F.z(this),z=this.$H,re=this.$m,oe=this.$M,fe=M.weekdays,ie=M.months,Ee=M.meridiem,$e=function(xe,he,le,Fe){return xe&&(xe[he]||xe(_,Y))||le[he].slice(0,Fe)},ne=function(xe){return F.s(z%12||12,xe,"0")},ye=Ee||function(xe,he,le){var Fe=xe<12?"AM":"PM";return le?Fe.toLowerCase():Fe};return Y.replace(x,function(xe,he){return he||function(le){switch(le){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return oe+1;case"MM":return F.s(oe+1,2,"0");case"MMM":return $e(M.monthsShort,oe,ie,3);case"MMMM":return $e(ie,oe);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return $e(M.weekdaysMin,_.$W,fe,2);case"ddd":return $e(M.weekdaysShort,_.$W,fe,3);case"dddd":return fe[_.$W];case"H":return String(z);case"HH":return F.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ye(z,re,!0);case"A":return ye(z,re,!1);case"m":return String(re);case"mm":return F.s(re,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return V}return null}(xe)||V.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(L,_,M){var Y,V=this,z=F.p(_),re=O(L),oe=(re.utcOffset()-this.utcOffset())*r,fe=this-re,ie=function(){return F.m(V,re)};switch(z){case g:Y=ie()/12;break;case h:Y=ie();break;case m:Y=ie()/3;break;case f:Y=(fe-oe)/6048e5;break;case d:Y=(fe-oe)/864e5;break;case c:Y=fe/i;break;case u:Y=fe/r;break;case a:Y=fe/n;break;default:Y=fe}return M?Y:F.a(Y)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return T[this.$L]},j.locale=function(L,_){if(!L)return this.$L;var M=this.clone(),Y=U(L,_,!0);return Y&&(M.$L=Y),M},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W}(),K=G.prototype;return O.prototype=K,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",d],["$M",h],["$y",g],["$D",v]].forEach(function(W){K[W[1]]=function(j){return this.$g(j,W[0],W[1])}}),O.extend=function(W,j){return W.$i||(W(j,G,O),W.$i=!0),O},O.locale=U,O.isDayjs=S,O.unix=function(W){return O(1e3*W)},O.en=T[E],O.Ls=T,O.p={},O})}(Mf)),Mf.exports}var WK=zK();const HK=To(WK);var hs=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],GK="react-international-phone-",QA=(...e)=>e.filter(t=>!!t).join(" ").trim(),qK=(...e)=>QA(...e).split(" ").map(t=>`${GK}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>QA(qK(...e),...t),YK=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,c=0;for(let d of t.split("")){if(c>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[c],c+=1):u+=d}return u},Js=e=>e?/^\d+$/.test(e):!1,ap=e=>e.replace(/\D/g,""),ZK=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom;o>=0&&a>=0||(Math.abs(o)<Math.abs(a)?e.scrollTop+=o:e.scrollTop-=a),e.style.display=n},JK=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),XK=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,o=d=>t.trimNonDigitsEnd?d.trim():d;if(!i)return r&&!i.length||n?o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):o(i);if(i=ap(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:c}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,c=YK({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${c}`)},QK=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let f=r-1;f>=0;f-=1)if(Js(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Js(n[f]))return f;return t.length}let u=0;for(let f=0;f<a;f+=1)Js(t[f])&&(u+=1);let c=0,d=0;for(let f=0;f<n.length&&(c+=1,Js(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Js(n[c])&&c<n.length;)c+=1;return c},Ff=({phone:e,prefix:t})=>e?`${t}${ap(e)}`:"";function Jy({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;c&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?uU({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,v=(g==null?void 0:g.country)??t,$=XK(m,{prefix:o,mask:aU({phone:m,country:v,defaultMask:d,disableFormatting:h}),maskChar:eP,dialCode:v.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:v;return{phone:Ff({phone:c?`${C.dialCode}${$}`:$,prefix:o}),inputValue:$,country:C}}var eU=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},tU=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,v=eU(g),$=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",x=(m==null?void 0:m.data)||void 0,y=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Ff({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Js(x)&&y!==i)return{inputValue:r,phone:Ff({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((x==null?void 0:x.length)??0),country:t};if(a&&!y.startsWith(`${i}${t.dialCode}`)&&!$){let S=y?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Ff({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=Jy({value:y,country:t,trimNonDigitsEnd:v==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),k=QK({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:y,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:v});return{phone:P,inputValue:E,cursorPosition:k,country:T}},nU=(e,t)=>{let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(e[i]!==t[i])return!1;return!0},rU=()=>{let e=b.useRef(),t=b.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},iU={size:20,overrideLastItemDebounceMS:-1};function oU(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...iU,...t},[o,a]=b.useState(e),[u,c]=b.useState([o]),[d,f]=b.useState(0),h=rU();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&nU(m,o)||m===o)return;let v=r>0,$=h.check(),C=v&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)c(x=>[...x.slice(0,d),m]);else{let x=u.length>=n;c(y=>[...y.slice(x?1:0,d+1),m]),x||f(y=>y+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var eP=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:hs,preferredCountries:[]},tP=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:c=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let v={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=b.useRef(null),C=g||$,x=W=>{Promise.resolve().then(()=>{var j;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((j=C.current)==null||j.setSelectionRange(W,W))})},[{phone:y,inputValue:D,country:P},E,T,k]=oU(()=>{let W=tu({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let j=W||tu({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:_,country:M}=Jy({value:t,country:j,insertDialCodeOnEmpty:!c,...v});return x(_.length),{phone:L,inputValue:_,country:M.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:j,country:L})=>{if(!m)return;let _=S(L);m({phone:j,inputValue:W,country:_})}}),S=b.useCallback(W=>tu({value:W,field:"iso2",countries:n}),[n]),U=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let W=C.current;if(!W)return;let j=L=>{if(!L.key)return;let _=L.ctrlKey,M=L.metaKey,Y=L.shiftKey;if(L.key.toLowerCase()==="z"){if(JK()){if(!M)return}else if(!_)return;Y?k():T()}};return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[C,T,k]);let O=W=>{W.preventDefault();let{phone:j,inputValue:L,country:_,cursorPosition:M}=tU(W,{country:U,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...v});return E({inputValue:L,phone:j,country:_.iso2}),x(M),t},F=(W,j={focusOnInput:!1})=>{let L=tu({value:W,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let _=f?"":`${r}${L.dialCode}${o}`;E({inputValue:_,phone:`${r}${L.dialCode}`,country:L.iso2}),j.focusOnInput&&Promise.resolve().then(()=>{var M;(M=C.current)==null||M.focus()})},[G,K]=b.useState(!1);return b.useEffect(()=>{if(!G){K(!0),t!==y&&(m==null||m({inputValue:D,phone:y,country:U}));return}if(t===y)return;let{phone:W,inputValue:j,country:L}=Jy({value:t,country:U,insertDialCodeOnEmpty:!c,...v});E({phone:W,inputValue:j,country:L.iso2})},[t]),{phone:y,inputValue:D,country:U,setCountry:F,handlePhoneValueChange:O,inputRef:C}},aU=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${eP}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let c=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return c.test(ap(d))});return o(a?i[a]:i.default)},gi=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},sU=e=>`Field "${e}" is not supported`,tu=({field:e,value:t,countries:n=hs})=>{if(["priority"].includes(e))throw new Error(sU(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},uU=({phone:e,countries:t=hs,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=ap(e);if(!i)return r;let o=r,a=({country:c,fullDialCodeMatch:d})=>{var m,g;let f=c.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(c.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=gi(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let v of h)if(g.startsWith(v))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let c=tu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(c):!1;o&&((u=o.country)==null?void 0:u.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},lU=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},cU="abcdefghijklmnopqrstuvwxyz",dU="1f1e6",px=cU.split("").reduce((e,t,n)=>({...e,[t]:lU(dU,n)}),{}),fU=e=>[px[e[0]],px[e[1]]].join("-"),Ob=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let c=()=>{if(n)return n;let d=fU(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},hU=1e3,pU=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=hs,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...c})=>{let d=b.useRef(null),f=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],k=[...r];for(let S of i){let U=k.findIndex(O=>gi(O).iso2===S);if(U!==-1){let O=k.splice(U,1)[0];T.push(O)}}return T.concat(k)},[r,i]),m=b.useRef({updatedAt:void 0,value:""}),g=T=>{let k=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>hU;m.current={value:k?T:`${m.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(U=>gi(U).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},v=b.useCallback(T=>h.findIndex(k=>gi(k).iso2===T),[h]),[$,C]=b.useState(v(n)),x=()=>{f.current!==n&&C(v(n))},y=b.useCallback(T=>{C(v(T.iso2)),a==null||a(T)},[a,v]),D=T=>{let k=h.length-1,S=U=>T==="prev"?U-1:T==="next"?U+1:T==="last"?k:0;C(U=>{let O=S(U);return O<0?0:O>k?k:O})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let k=gi(h[$]);y(k);return}if(T.key==="Escape"){u==null||u();return}if(T.key==="ArrowUp"){T.preventDefault(),D("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),D("next");return}if(T.key==="PageUp"){T.preventDefault(),D("first");return}if(T.key==="PageDown"){T.preventDefault(),D("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&g(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||$===void 0)return;let T=gi(h[$]).iso2;if(T===f.current)return;let k=d.current.querySelector(`[data-country="${T}"]`);k&&(ZK(d.current,k),f.current=T)},[$,h]);return b.useEffect(()=>{E()},[$,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():x())},[e]),b.useEffect(()=>{x()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[$]).iso2}-option`},h.map((T,k)=>{let S=gi(T),U=S.iso2===n,O=k===$,F=i.includes(S.iso2),G=k===i.length-1,K=o==null?void 0:o.find(W=>W.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":U,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",F&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",O&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>y(S),style:c.listItemStyle,title:S.name},b.createElement(Ob,{iso2:S.iso2,src:K==null?void 0:K.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),G?b.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},mU=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=hs,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...c})=>{let[d,f]=b.useState(!1),h=b.useMemo(()=>{if(e)return tu({value:e,field:"iso2",countries:i})},[i,e]),m=b.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),f(!0))},v=()=>{var x;let $={title:h==null?void 0:h.name,onClick:()=>f(y=>!y),onMouseDown:y=>y.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(Ob,{iso2:e,src:(x=a==null?void 0:a.find(y=>y.iso2===e))==null?void 0:x.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&b.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return u?u({children:C,rootProps:$}):b.createElement("button",{...$,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return b.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},v(),b.createElement(pU,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:$=>{f(!1),t==null||t($)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},gU=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=hs,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:v,placeholder:$,disabled:C,name:x,onFocus:y,onBlur:D,required:P,autoFocus:E,...T},k)=>{let{phone:S,inputValue:U,inputRef:O,country:F,setCountry:G,handlePhoneValueChange:K}=tP({value:e,countries:n,...T,onChange:j=>{t==null||t(j.phone,{country:j.country,inputValue:j.inputValue})}}),W=T.disableDialCodeAndPrefix&&o&&(F==null?void 0:F.dialCode);return b.useImperativeHandle(k,()=>O.current?Object.assign(O.current,{setCountry:G,state:{phone:S,inputValue:U,country:F}}):null,[O,G,S,U,F]),b.createElement("div",{ref:k,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(mU,{onSelect:j=>G(j.iso2,{focusOnInput:!a}),flags:u,selectedCountry:F.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),W&&b.createElement(gU,{dialCode:F.dialCode,prefix:T.prefix??"+",disabled:C,...g}),b.createElement("input",{onChange:K,value:U,type:"tel",ref:O,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:C,style:f,name:x,onFocus:y,onBlur:D,autoFocus:E,required:P,...v}))});var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",$="[object Promise]",C="[object RegExp]",x="[object Set]",y="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",U="[object Int8Array]",O="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,M=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,V={};V[o]=V[a]=V[E]=V[T]=V[u]=V[c]=V[k]=V[S]=V[U]=V[O]=V[F]=V[m]=V[g]=V[v]=V[C]=V[x]=V[y]=V[D]=V[G]=V[K]=V[W]=V[j]=!0,V[d]=V[f]=V[P]=!1;var z=typeof ra=="object"&&ra&&ra.Object===Object&&ra,re=typeof self=="object"&&self&&self.Object===Object&&self,oe=z||re||Function("return this")(),fe=t&&!t.nodeType&&t,ie=fe&&!0&&e&&!e.nodeType&&e,Ee=ie&&ie.exports===fe;function $e(N,ae){return N.set(ae[0],ae[1]),N}function ne(N,ae){return N.add(ae),N}function ye(N,ae){for(var ve=-1,Ie=N?N.length:0;++ve<Ie&&ae(N[ve],ve,N)!==!1;);return N}function xe(N,ae){for(var ve=-1,Ie=ae.length,yn=N.length;++ve<Ie;)N[yn+ve]=ae[ve];return N}function he(N,ae,ve,Ie){for(var yn=-1,Un=N?N.length:0;++yn<Un;)ve=ae(ve,N[yn],yn,N);return ve}function le(N,ae){for(var ve=-1,Ie=Array(N);++ve<N;)Ie[ve]=ae(ve);return Ie}function Fe(N,ae){return N==null?void 0:N[ae]}function et(N){var ae=!1;if(N!=null&&typeof N.toString!="function")try{ae=!!(N+"")}catch{}return ae}function dt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie,yn){ve[++ae]=[yn,Ie]}),ve}function Dn(N,ae){return function(ve){return N(ae(ve))}}function yt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie){ve[++ae]=Ie}),ve}var q=Array.prototype,Z=Function.prototype,te=Object.prototype,pe=oe["__core-js_shared__"],Ce=function(){var N=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),De=Z.toString,_e=te.hasOwnProperty,Ve=te.toString,mt=RegExp("^"+De.call(_e).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ee?oe.Buffer:void 0,Rt=oe.Symbol,Pn=oe.Uint8Array,_n=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Ln=te.propertyIsEnumerable,tn=q.splice,vt=Object.getOwnPropertySymbols,Vn=ut?ut.isBuffer:void 0,Cr=Dn(Object.keys,Object),Rn=ze(oe,"DataView"),er=ze(oe,"Map"),On=ze(oe,"Promise"),tr=ze(oe,"Set"),Nn=ze(oe,"WeakMap"),En=ze(Object,"create"),Ir=eo(Rn),Vt=eo(er),Cn=eo(On),Ne=eo(tr),tt=eo(Nn),nn=Rt?Rt.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function je(){this.__data__=En?En(null):{}}function Ye(N){return this.has(N)&&delete this.__data__[N]}function Ft(N){var ae=this.__data__;if(En){var ve=ae[N];return ve===r?void 0:ve}return _e.call(ae,N)?ae[N]:void 0}function rn(N){var ae=this.__data__;return En?ae[N]!==void 0:_e.call(ae,N)}function jn(N,ae){var ve=this.__data__;return ve[N]=En&&ae===void 0?r:ae,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Kt(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(N){var ae=this.__data__,ve=Ai(ae,N);if(ve<0)return!1;var Ie=ae.length-1;return ve==Ie?ae.pop():tn.call(ae,ve,1),!0}function wt(N){var ae=this.__data__,ve=Ai(ae,N);return ve<0?void 0:ae[ve][1]}function li(N){return Ai(this.__data__,N)>-1}function va(N,ae){var ve=this.__data__,Ie=Ai(ve,N);return Ie<0?ve.push([N,ae]):ve[Ie][1]=ae,this}Kt.prototype.clear=an,Kt.prototype.delete=kt,Kt.prototype.get=wt,Kt.prototype.has=li,Kt.prototype.set=va;function hr(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function Ro(){this.__data__={hash:new Te,map:new(er||Kt),string:new Te}}function Oo(N){return Ke(this,N).delete(N)}function Mo(N){return Ke(this,N).get(N)}function gt(N){return Ke(this,N).has(N)}function nr(N,ae){return Ke(this,N).set(N,ae),this}hr.prototype.clear=Ro,hr.prototype.delete=Oo,hr.prototype.get=Mo,hr.prototype.has=gt,hr.prototype.set=nr;function pr(N){this.__data__=new Kt(N)}function Kn(){this.__data__=new Kt}function Fo(N){return this.__data__.delete(N)}function Lr(N){return this.__data__.get(N)}function tl(N){return this.__data__.has(N)}function bs(N,ae){var ve=this.__data__;if(ve instanceof Kt){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([N,ae]),this;ve=this.__data__=new hr(Ie)}return ve.set(N,ae),this}pr.prototype.clear=Kn,pr.prototype.delete=Fo,pr.prototype.get=Lr,pr.prototype.has=tl,pr.prototype.set=bs;function nl(N,ae){var ve=al(N)||Rp(N)?le(N.length,String):[],Ie=ve.length,yn=!!Ie;for(var Un in N)_e.call(N,Un)&&!(yn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function ko(N,ae,ve){var Ie=N[ae];(!(_e.call(N,ae)&&ol(Ie,ve))||ve===void 0&&!(ae in N))&&(N[ae]=ve)}function Ai(N,ae){for(var ve=N.length;ve--;)if(ol(N[ve][0],ae))return ve;return-1}function ba(N,ae){return N&&be(ae,ul(ae),N)}function $a(N,ae,ve,Ie,yn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(N,yn,Un,Nr):Ie(N)),zn!==void 0)return zn;if(!Ts(N))return N;var pn=al(N);if(pn){if(zn=Mn(N),!ae)return ue(N,zn)}else{var Pi=Wt(N),_i=Pi==f||Pi==h;if(sl(N))return Ds(N,ae);if(Pi==v||Pi==o||_i&&!Un){if(et(N))return Un?N:{};if(zn=Fn(_i?{}:N),!ae)return Re(N,ba(zn,N))}else{if(!V[Pi])return Un?N:{};zn=Vr(N,Pi,$a,ae)}}Nr||(Nr=new pr);var ll=Nr.get(N);if(ll)return ll;if(Nr.set(N,zn),!pn)var As=ve?it(N):ul(N);return ye(As||N,function(Wn,Ea){As&&(Ea=Wn,Wn=N[Ea]),ko(zn,Ea,$a(Wn,ae,ve,Ie,Ea,N,Nr))}),zn}function $s(N){return Ts(N)?Yt(N):{}}function xs(N,ae,ve){var Ie=ae(N);return al(N)?Ie:xe(Ie,ve(N))}function rl(N){return Ve.call(N)}function ws(N){if(!Ts(N)||wa(N))return!1;var ae=ld(N)||et(N)?mt:M;return ae.test(eo(N))}function xa(N){if(!Da(N))return Cr(N);var ae=[];for(var ve in Object(N))_e.call(N,ve)&&ve!="constructor"&&ae.push(ve);return ae}function Ds(N,ae){if(ae)return N.slice();var ve=new N.constructor(N.length);return N.copy(ve),ve}function Qi(N){var ae=new N.constructor(N.byteLength);return new Pn(ae).set(new Pn(N)),ae}function il(N,ae){var ve=ae?Qi(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.byteLength)}function Es(N,ae,ve){var Ie=ae?ve(dt(N),!0):dt(N);return he(Ie,$e,new N.constructor)}function Bo(N){var ae=new N.constructor(N.source,_.exec(N));return ae.lastIndex=N.lastIndex,ae}function Cs(N,ae,ve){var Ie=ae?ve(yt(N),!0):yt(N);return he(Ie,ne,new N.constructor)}function B(N){return fr?Object(fr.call(N)):{}}function X(N,ae){var ve=ae?Qi(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.length)}function ue(N,ae){var ve=-1,Ie=N.length;for(ae||(ae=Array(Ie));++ve<Ie;)ae[ve]=N[ve];return ae}function be(N,ae,ve,Ie){ve||(ve={});for(var yn=-1,Un=ae.length;++yn<Un;){var Nr=ae[yn],zn=void 0;ko(ve,Nr,zn===void 0?N[Nr]:zn)}return ve}function Re(N,ae){return be(N,Ot(N),ae)}function it(N){return xs(N,ul,Ot)}function Ke(N,ae){var ve=N.__data__;return Ss(ae)?ve[typeof ae=="string"?"string":"hash"]:ve.map}function ze(N,ae){var ve=Fe(N,ae);return ws(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=rl;(Rn&&Wt(new Rn(new ArrayBuffer(1)))!=T||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=$||tr&&Wt(new tr)!=x||Nn&&Wt(new Nn)!=P)&&(Wt=function(N){var ae=Ve.call(N),ve=ae==v?N.constructor:void 0,Ie=ve?eo(ve):void 0;if(Ie)switch(Ie){case Ir:return T;case Vt:return m;case Cn:return $;case Ne:return x;case tt:return P}return ae});function Mn(N){var ae=N.length,ve=N.constructor(ae);return ae&&typeof N[0]=="string"&&_e.call(N,"index")&&(ve.index=N.index,ve.input=N.input),ve}function Fn(N){return typeof N.constructor=="function"&&!Da(N)?$s(_n(N)):{}}function Vr(N,ae,ve,Ie){var yn=N.constructor;switch(ae){case E:return Qi(N);case u:case c:return new yn(+N);case T:return il(N,Ie);case k:case S:case U:case O:case F:case G:case K:case W:case j:return X(N,Ie);case m:return Es(N,Ie,ve);case g:case y:return new yn(N);case C:return Bo(N);case x:return Cs(N,Ie,ve);case D:return B(N)}}function rr(N,ae){return ae=ae??i,!!ae&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<ae}function Ss(N){var ae=typeof N;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?N!=="__proto__":N===null}function wa(N){return!!Ce&&Ce in N}function Da(N){var ae=N&&N.constructor,ve=typeof ae=="function"&&ae.prototype||te;return N===ve}function eo(N){if(N!=null){try{return De.call(N)}catch{}try{return N+""}catch{}}return""}function _p(N){return $a(N,!0,!0)}function ol(N,ae){return N===ae||N!==N&&ae!==ae}function Rp(N){return Op(N)&&_e.call(N,"callee")&&(!Ln.call(N,"callee")||Ve.call(N)==o)}var al=Array.isArray;function ud(N){return N!=null&&Mp(N.length)&&!ld(N)}function Op(N){return Fp(N)&&ud(N)}var sl=Vn||Mt;function ld(N){var ae=Ts(N)?Ve.call(N):"";return ae==f||ae==h}function Mp(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=i}function Ts(N){var ae=typeof N;return!!N&&(ae=="object"||ae=="function")}function Fp(N){return!!N&&typeof N=="object"}function ul(N){return ud(N)?nl(N):xa(N)}function Bt(){return[]}function Mt(){return!1}e.exports=_p})(Xy,Xy.exports);var ia=Xy.exports,Qy=function(){return Qy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qy.apply(this,arguments)};function yU(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function c(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,c)}d((r=r.apply(e,[])).next())})}function vU(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function hh(e,t,n,r,i){return yU(this,void 0,void 0,function(){var o,a;return vU(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var ev=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Qy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},bU=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=ia(n);hh(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=ev(i,u);o.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=ia(t);hh(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=ev(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},$U=class extends Error{constructor(t="Unsupported"){super(t)}};function Mb(e){return new $U(e)}function xU(){return this._qualifierModel||{error:Mb(`unsupported qualifier ${this.constructor.name}`)}}let wU=class{constructor(){this._qualifierModel={}}toJson(){return xU.apply(this)}},rt=class extends wU{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof en?this.qualifierValue=n:(this.qualifierValue=new en,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},ai=class extends rt{constructor(t,n){let r;n?r=new en([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function DU(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function EU(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Mb(`unsupported action ${this.constructor.name}`)}}let CU=class{constructor(){this._actionModel={}}toJson(){return EU.apply(this)}},Ei=class extends CU{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),DU(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new ai(r)):this.qualifiers.set(n,new rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Fb extends Ei{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class sp extends Fb{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new rt("h",t)),this}static fromJson(t){const n=new sp;return t.width&&n.width(t.width),t.height&&n.height(t.height),t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function SU(){return new sp}function nP(){return new Fb("faces")}function TU(){return new Fb("ocr_text")}class AU extends Ei{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`blur_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`blur_faces${t}`))):this.addQualifier(new rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(nP()),r&&r.regionType==="ocr_text"&&i.region(TU()),r&&r.regionType==="custom"&&i.region(sp.fromJson(r)),i}}function ps(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const rP={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},PU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},iP={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},oP={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},_U={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},aP={444:"CHROMA_444",420:"CHROMA_420"},RU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},OU=ps(aP);ps(RU);const MU=ps(rP),FU=ps(PU),sP=ps(iP);ps(oP);ps(_U);class uP extends Ei{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=sP[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new en([t,`${n}`]).setDelimiter(":"):r=new en(t),new rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=iP[n]||n;return new this(o,r||i)}}class kU extends uP{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=sP[t]||t,n&&this.setLevel(n)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const n=this.createEffectQualifier(this.effectType,t);return this.addQualifier(n),this}}function up(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class BU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),a&&c.detailsLevel(a),u&&c.numOfColors(u),c}}class IU extends kU{level(t){return this._actionModel.level=t,this.setLevel(t)}}class LU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class VU extends IU{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(up(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class NU extends Ei{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`pixelate_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`pixelate_faces${t}`))):this.addQualifier(new rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(nP()),n&&n.regionType==="custom"&&i.region(SU()),i}}function jU(e){return new AU(e)}function KU(){return new uP("grayscale")}function mx(e){return new VU("colorize",e)}function UU(){return new BU}function zU(){return new LU}function WU(e){return new NU(e)}let HU=class extends Ei{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(up(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},gx=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Mb(`unsupported action ${this.constructor.name}`)}}};function GU(e){const t=e;return"error"in t&&!!t.error}function qU(){return new ai("ignore_aspect_ratio")}function YU(){return new ai("lossy")}function ZU(){return new ai("preserve_transparency")}function JU(e){return new ai("progressive",e)}function XU(){return new ai("region_relative")}function QU(){return new ai("relative")}let kb=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},lP=class extends Ei{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof kb?i=n.getValue():i=n,this._actionModel.actionType=FU[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},ez=class extends ai{constructor(t){super("progressive",t)}},tv=class extends lP{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(YU()),this}progressive(t){return t instanceof ez?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(JU(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(ZU()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}},lp=class cP{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new gx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof cP?this.actions=this.actions.concat(t.actions):this.actions.push(new gx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new tv("q",t)),this}format(t){return this.addAction(new tv("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new HU(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ei;let r=t;return typeof t=="string"&&(r=new ai(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(GU(r))return r;t.push(r)}return{actions:t}}};function yx(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class tz extends en{}class nz extends Ei{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=MU[t]||t,this.addQualifier(new rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new rt("w",t))}aspectRatio(t){if(t instanceof tz)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=yx(t),this.addQualifier(new rt("ar",yx(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(QU())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(XU())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:c}=r,d=rP[n]||n,f=new this(d,u,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?qU():a),i&&f.relative(),o&&f.regionRelative(),f}}class Bb extends rt{constructor(t){super("g",new en(t))}}class dP extends Bb{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class fP extends Bb{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class hP extends Bb{constructor(t){super(t)}}function rz(e){return new hP(e)}function pP(...e){const t=[...e];return new fP(t)}function mP(){return new dP}class Pu extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function iz(){return new Pu("ocr_text")}function oz(e){return e&&`${e}`.split(":")[0]==="auto"}function az(e){const t=Ib(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ib(e){return`${e}`.replace("g_","")}function sz(e){return{compass:Ib(e),gravityType:"direction"}}function uz(e){return Ib(e)==="ocr_text"}function lz(){return{gravityType:"ocr"}}function cz(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function dz(e){const n=e.toString().split("_"),r={object:n[0]};return n.length>1&&(n[1]==="avoid"?r.avoid=!0:r.weight=+n[1]),r}function gP(e){let t;const n=e==="auto"?new dP:e;return`${e}`.startsWith("auto:")?t=`${e}`.split(":").filter(i=>i!=="auto"):t=n.qualifierValue.values.filter(i=>i!=="auto"),{gravityType:"auto",autoFocus:t.map(dz)}}function fz(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),a=mP().autoFocus(...o);i.fallbackGravity=gP(a)}return i}function hz(e){const n=e.split(":").map(r=>new Pu(r));return new fP(n)}function pz(e){return az(e)?sz(e):uz(e)?lz():oz(e)||cz(e)?gP(e):fz(typeof e=="string"?hz(e):e)}class Lb extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Pu?t:new Pu(t);return new Lb(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class yP extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function mz(e){return e.gravityType==="direction"}function gz(e){return e.gravityType==="ocr"}function yz(e){return e.gravityType==="auto"}function vz(e){const{object:t,weight:n,avoid:r}=e,i=new Lb(new Pu(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function vP(e){const n=(e.autoFocus||[]).map(vz);return mP().autoFocus(...n)}function bz(e){const t=(e.focusOnObjects||[]).map(r=>new Pu(r)),n=pP(...t);if(e.fallbackGravity){const r=vP(e.fallbackGravity);n.fallbackGravity(r)}return n}function $z(e){return mz(e)?new hP(new yP(e.compass)):gz(e)?pP(iz()):yz(e)?vP(e):bz(e)}class Vb extends nz{gravity(t){this._actionModel.gravity=pz(t);const n=typeof t=="string"?new rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity($z(t.gravity)),n}}class Uc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const bP=100,xz=0;class wz extends Uc{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){const t=this.intensityLevel!==void 0?`:${this.intensityLevel}`:"",n=this.brightnessLevel!==void 0?this.intensityLevel!==void 0?`:${this.brightnessLevel}`:`:${bP}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var $P=wz;class Nb extends Uc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>up(n)),this}}class xP extends Nb{toString(){return`
95
- b_auto:border
96
- ${this._contrast?"_contrast":""}
97
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
98
- `.replace(/\s+/g,"")}}class wP extends Nb{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class DP extends wP{toString(){return`
99
- b_auto:border_gradient
100
- ${this._contrast?"_contrast":""}
101
- ${this._gradientColors?`:${this._gradientColors}`:""}
102
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
103
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
104
- `.replace(/\s+/g,"")}}class EP extends wP{toString(){return`
105
- b_auto:predominant_gradient
106
- ${this._contrast?"_contrast":""}
107
- ${this._gradientColors?`:${this._gradientColors}`:""}
108
- ${this._gradientDirection?`:${this._gradientDirection}`:""}
109
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
110
- `.replace(/\s+/g,"")}}class CP extends Nb{toString(){return`
111
- b_auto:predominant
112
- ${this._contrast?"_contrast":""}
113
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
114
- `.replace(/\s+/g,"")}}class SP extends Uc{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return`b_gen_fill${this._prompt?`:prompt_${this._prompt}`:""}`}}function TP(e){return`${e}`.replace("b_","")}function Dz(){return{backgroundType:"auto"}}function Ez(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function jb(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function Cz(e){return Object.assign(Object.assign({},jb(e)),{backgroundType:"border"})}function AP(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=jb(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Sz(e){return Object.assign(Object.assign({},AP(e)),{backgroundType:"borderGradient"})}function Tz(e){return{backgroundType:"color",color:TP(e)}}function Az(e){return Object.assign(Object.assign({},jb(e)),{backgroundType:"predominant"})}function Pz(e){return Object.assign(Object.assign({},AP(e)),{backgroundType:"predominantGradient"})}function _z(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function Rz(e){return TP(e)==="auto"?Dz():e instanceof $P?Ez(e):e instanceof xP?Cz(e):e instanceof DP?Sz(e):e instanceof CP?Az(e):e instanceof EP?Pz(e):e instanceof SP?_z(e):Tz(e)}function Oz(){return new kb("svg")}function Kb(){return new kb("auto")}function PP(){return new xP}function _P(){return new Uc("auto")}function RP(){return new DP}function OP(){return new EP}function MP(){return new CP}function FP(e){return new Uc(up(e))}function Mz(){return new $P}function kP(){return new SP}const BP={auto:_P,border:PP,borderGradient:RP,predominantGradient:OP,predominant:MP,color:FP,blurred:Mz,generativeFill:kP};function Fz(e){const{brightness:t,intensity:n}=e,r=BP.blurred();return r.brightness(t??xz),r.intensity(n??bP),r}function vx(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function bx(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function kz(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function Bz(e){const{backgroundType:t}=e;switch(t){case"auto":return _P();case"blurred":return Fz(e);case"border":return bx(PP(),e);case"borderGradient":return vx(RP(),e);case"predominant":return bx(MP(),e);case"predominantGradient":return vx(OP(),e);case"generativeFill":return kz(kP(),e);default:return FP(e.color)}}class Iz extends Vb{background(t){return this._actionModel.background=Rz(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(Bz(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class Lz extends Vb{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new rt("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class Vz extends Vb{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function Nz(e,t){return new Lz("crop",e,t)}function jz(e,t){return new Vz("fill",e,t)}function Kz(e,t){return new Iz("pad",e,t)}class Uz extends lP{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=aP[t];const n=new en([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new rt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new en([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new rt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=oP[n]||n,a=new this(o);if(r){const u=OU[r.toUpperCase()];u&&a.chromaSubSampling(+u)}return i&&a.quantization(i),a}}function cp(e){return new tv("f",e)}function dp(e){return new Uz(e)}function zz(){return new yP("north_east")}mx(70).color("black"),mx(40).color("white"),KU(),zU();var Wz=new lp().effect(UU()).delivery(dp("auto")).delivery(cp(Oz())),Hz=new lp().effect(WU()).delivery(dp("auto")).delivery(cp(Kb())),Gz=new lp().effect(jU(2e3)).delivery(dp("auto")).delivery(cp(Kb())),qz=new lp().resize(Kz("iw_div_2").aspectRatio(1).background(BP.auto())).resize(Nz(1,1).gravity(rz(zz()))).resize(jz().height("ih").width("iw")).delivery(dp("auto")).delivery(cp(Kb())),$x={vectorize:Wz,pixelate:Hz,blur:Gz,"predominant-color":qz},xx="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",wx={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Dx="?_a=",Yz=function(){function e(t,n,r,i,o,a,u){var c=this;this.mimeType="video",this.mimeSubTypes=wx,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=ia(n);hh(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(o,a),c.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(o){r.appendSourceTag(ia(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,a=i.codecs,u=i.transcode;return r.appendSourceTag(ia(t).transcode(u),o,r.buildMimeType(o,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var u=t.toURL(),c=u.split(Dx),d=c[1]?"".concat(Dx).concat(c[1]):"",f=a?"":".".concat(n);o.src="".concat(c[0]).concat(f).concat(d),o.type=r||"video/".concat(wx[n]||n),this.videoElement.appendChild(o)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=ia(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var o=0,a=Object.entries(t);o<a.length;o++){var u=a[o],c=u[0],d=u[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var a=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);hh(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,o),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),Zz=typeof ra=="object"&&ra&&ra.Object===Object&&ra,Jz=typeof self=="object"&&self&&self.Object===Object&&self;Zz||Jz||Function("return this")();function Ub(){return typeof window<"u"}function Xz(e){return e instanceof HTMLImageElement}function Qz(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return eW.bind(null,r,o)}function eW(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Ub()?new Promise(function(a){var u=function(){return a({lazyload:!0})},c=nW(n,u,e,t);i.cleanupCallbacks.push(function(){c(),a("canceled")})}):!1}function tW(){return window&&"IntersectionObserver"in window}function nW(e,t,n,r){try{if(!tW())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function rW(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return iW.bind(null,r)}function iW(e,t,n,r,i,o){$x[e]||(e="vectorize");var a=$x[e].actions,u=ia(n);if(a.forEach(function(d){u.addAction(d)}),!Ub())return n.transformation=u.transformation,!0;if(Xz(t)){u.transformation.actions.forEach(function(d,f){d instanceof Ei&&d.getActionTag()==="responsive"&&delete u.transformation.actions[f]});var c=ev(i,{placeholder:!0});return t.src=u.toURL(c),t.onerror=function(){t.src=xx},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=xx,d("canceled")});var f=new Image;f.src=n.toURL(c),f.onload=function(){d({placeholder:!0})},f.onerror=function(){d({placeholder:!0})}})})}}function oW(e,t,n){var r=ia(t);if(e)for(var i=0;i<e.length;i++){var o=e[i](null,r);if(!o)break}return r.toURL({trackedAnalytics:n})}function ph(e){e.cleanupCallbacks.forEach(function(t){t()})}var nv=function(e,t){return nv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},nv(e,t)};function IP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var gc=function(){return gc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},gc.apply(this,arguments)};function LP(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var yc={exports:{}},_t={};/*
115
- object-assign
116
- (c) Sindre Sorhus
117
- @license MIT
118
- */var Ex=Object.getOwnPropertySymbols,aW=Object.prototype.hasOwnProperty,sW=Object.prototype.propertyIsEnumerable;function uW(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function lW(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var VP=lW()?Object.assign:function(e,t){for(var n,r=uW(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)aW.call(n,a)&&(r[a]=n[a]);if(Ex){i=Ex(n);for(var u=0;u<i.length;u++)sW.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
119
- * react.production.min.js
120
- *
121
- * Copyright (c) Facebook, Inc. and its affiliates.
122
- *
123
- * This source code is licensed under the MIT license found in the
124
- * LICENSE file in the root directory of this source tree.
125
- */var zb=VP,Ci=typeof Symbol=="function"&&Symbol.for,zc=Ci?Symbol.for("react.element"):60103,cW=Ci?Symbol.for("react.portal"):60106,dW=Ci?Symbol.for("react.fragment"):60107,fW=Ci?Symbol.for("react.strict_mode"):60108,hW=Ci?Symbol.for("react.profiler"):60114,pW=Ci?Symbol.for("react.provider"):60109,mW=Ci?Symbol.for("react.context"):60110,gW=Ci?Symbol.for("react.forward_ref"):60112,yW=Ci?Symbol.for("react.suspense"):60113,vW=Ci?Symbol.for("react.memo"):60115,bW=Ci?Symbol.for("react.lazy"):60116,Cx=typeof Symbol=="function"&&Symbol.iterator;function Wc(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 NP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jP={};function zu(e,t,n){this.props=e,this.context=t,this.refs=jP,this.updater=n||NP}zu.prototype.isReactComponent={};zu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Wc(85));this.updater.enqueueSetState(this,e,t,"setState")};zu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function KP(){}KP.prototype=zu.prototype;function Wb(e,t,n){this.props=e,this.context=t,this.refs=jP,this.updater=n||NP}var Hb=Wb.prototype=new KP;Hb.constructor=Wb;zb(Hb,zu.prototype);Hb.isPureReactComponent=!0;var Gb={current:null},UP=Object.prototype.hasOwnProperty,zP={key:!0,ref:!0,__self:!0,__source:!0};function WP(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)UP.call(t,r)&&!zP.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:zc,type:e,key:o,ref:a,props:i,_owner:Gb.current}}function $W(e,t){return{$$typeof:zc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qb(e){return typeof e=="object"&&e!==null&&e.$$typeof===zc}function xW(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var HP=/\/+/g,mh=[];function GP(e,t,n,r){if(mh.length){var i=mh.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function qP(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>mh.length&&mh.push(e)}function rv(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case zc:case cW:o=!0}}if(o)return n(r,e,t===""?"."+bg(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){i=e[a];var u=t+bg(i,a);o+=rv(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=Cx&&e[Cx]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=t+bg(i,a++),o+=rv(i,u,n,r);else if(i==="object")throw n=""+e,Error(Wc(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function iv(e,t,n){return e==null?0:rv(e,"",t,n)}function bg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?xW(e.key):t.toString(36)}function wW(e,t){e.func.call(e.context,t,e.count++)}function DW(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?ov(e,r,n,function(o){return o}):e!=null&&(qb(e)&&(e=$W(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(HP,"$&/")+"/")+n)),r.push(e))}function ov(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(HP,"$&/")+"/"),t=GP(t,o,r,i),iv(e,DW,t),qP(t)}var YP={current:null};function _o(){var e=YP.current;if(e===null)throw Error(Wc(321));return e}var EW={ReactCurrentDispatcher:YP,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Gb,IsSomeRendererActing:{current:!1},assign:zb};_t.Children={map:function(e,t,n){if(e==null)return e;var r=[];return ov(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=GP(null,null,t,n),iv(e,wW,t),qP(t)},count:function(e){return iv(e,function(){return null},null)},toArray:function(e){var t=[];return ov(e,t,null,function(n){return n}),t},only:function(e){if(!qb(e))throw Error(Wc(143));return e}};_t.Component=zu;_t.Fragment=dW;_t.Profiler=hW;_t.PureComponent=Wb;_t.StrictMode=fW;_t.Suspense=yW;_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=EW;_t.cloneElement=function(e,t,n){if(e==null)throw Error(Wc(267,e));var r=zb({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Gb.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)UP.call(t,c)&&!zP.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:zc,type:e.type,key:i,ref:o,props:r,_owner:a}};_t.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:mW,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:pW,_context:e},e.Consumer=e};_t.createElement=WP;_t.createFactory=function(e){var t=WP.bind(null,e);return t.type=e,t};_t.createRef=function(){return{current:null}};_t.forwardRef=function(e){return{$$typeof:gW,render:e}};_t.isValidElement=qb;_t.lazy=function(e){return{$$typeof:bW,_ctor:e,_status:-1,_result:null}};_t.memo=function(e,t){return{$$typeof:vW,type:e,compare:t===void 0?null:t}};_t.useCallback=function(e,t){return _o().useCallback(e,t)};_t.useContext=function(e,t){return _o().useContext(e,t)};_t.useDebugValue=function(){};_t.useEffect=function(e,t){return _o().useEffect(e,t)};_t.useImperativeHandle=function(e,t,n){return _o().useImperativeHandle(e,t,n)};_t.useLayoutEffect=function(e,t){return _o().useLayoutEffect(e,t)};_t.useMemo=function(e,t){return _o().useMemo(e,t)};_t.useReducer=function(e,t,n){return _o().useReducer(e,t,n)};_t.useRef=function(e){return _o().useRef(e)};_t.useState=function(e){return _o().useState(e)};_t.version="16.14.0";var Pt={},CW="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",SW=CW,TW=Function.call.bind(Object.prototype.hasOwnProperty),av=function(){};if(process.env.NODE_ENV!=="production"){var AW=SW,sv={},PW=TW;av=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function ZP(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(PW(e,o)){var a;try{if(typeof e[o]!="function"){var u=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}a=e[o](t,o,r,n,null,AW)}catch(d){a=d}if(a&&!(a instanceof Error)&&av((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in sv)){sv[a.message]=!0;var c=i?i():"";av("Failed "+n+" type: "+a.message+(c??""))}}}}ZP.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(sv={})};var _W=ZP;/** @license React v16.14.0
126
- * react.development.js
127
- *
128
- * Copyright (c) Facebook, Inc. and its affiliates.
129
- *
130
- * This source code is licensed under the MIT license found in the
131
- * LICENSE file in the root directory of this source tree.
132
- */process.env.NODE_ENV!=="production"&&function(){var e=VP,t=_W,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,$=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,x=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,P=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function k(B){if(B===null||typeof B!="object")return null;var X=E&&B[E]||B[T];return typeof X=="function"?X:null}var S={current:null},U={suspense:null},O={current:null},F=/^(.*)[\\\/]/;function G(B,X,ue){var be="";if(X){var Re=X.fileName,it=Re.replace(F,"");if(/^index\./.test(it)){var Ke=Re.match(F);if(Ke){var ze=Ke[1];if(ze){var Ot=ze.replace(F,"");it=Ot+"/"+it}}}be=" (at "+it+":"+X.lineNumber+")"}else ue&&(be=" (created by "+ue+")");return`
133
- in `+(B||"Unknown")+be}var K=1;function W(B){return B._status===K?B._result:null}function j(B,X,ue){var be=X.displayName||X.name||"";return B.displayName||(be!==""?ue+"("+be+")":ue)}function L(B){if(B==null)return null;if(typeof B.tag=="number"&&oe("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case a:return"Fragment";case o:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case m:return j(B,B.render,"ForwardRef");case $:return L(B.type);case x:return L(B.render);case C:{var X=B,ue=W(X);if(ue)return L(ue);break}}return null}var _={},M=null;function Y(B){M=B}_.getCurrentStack=null,_.getStackAddendum=function(){var B="";if(M){var X=L(M.type),ue=M._owner;B+=G(X,M._source,ue&&L(ue.type))}var be=_.getCurrentStack;return be&&(B+=be()||""),B};var V={current:!1},z={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:U,ReactCurrentOwner:O,IsSomeRendererActing:V,assign:e};e(z,{ReactDebugCurrentFrame:_,ReactComponentTreeHook:{}});function re(B){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=arguments[be];fe("warn",B,ue)}}function oe(B){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=arguments[be];fe("error",B,ue)}}function fe(B,X,ue){{var be=ue.length>0&&typeof ue[ue.length-1]=="string"&&ue[ue.length-1].indexOf(`
134
- in`)===0;if(!be){var Re=z.ReactDebugCurrentFrame,it=Re.getStackAddendum();it!==""&&(X+="%s",ue=ue.concat([it]))}var Ke=ue.map(function(Wt){return""+Wt});Ke.unshift("Warning: "+X),Function.prototype.apply.call(console[B],console,Ke);try{var ze=0,Ot="Warning: "+X.replace(/%s/g,function(){return ue[ze++]});throw new Error(Ot)}catch{}}}var ie={};function Ee(B,X){{var ue=B.constructor,be=ue&&(ue.displayName||ue.name)||"ReactClass",Re=be+"."+X;if(ie[Re])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",X,be),ie[Re]=!0}}var $e={isMounted:function(B){return!1},enqueueForceUpdate:function(B,X,ue){Ee(B,"forceUpdate")},enqueueReplaceState:function(B,X,ue,be){Ee(B,"replaceState")},enqueueSetState:function(B,X,ue,be){Ee(B,"setState")}},ne={};Object.freeze(ne);function ye(B,X,ue){this.props=B,this.context=X,this.refs=ne,this.updater=ue||$e}ye.prototype.isReactComponent={},ye.prototype.setState=function(B,X){if(!(typeof B=="object"||typeof B=="function"||B==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,X,"setState")},ye.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};{var xe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},he=function(B,X){Object.defineProperty(ye.prototype,B,{get:function(){re("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var le in xe)xe.hasOwnProperty(le)&&he(le,xe[le])}function Fe(){}Fe.prototype=ye.prototype;function et(B,X,ue){this.props=B,this.context=X,this.refs=ne,this.updater=ue||$e}var dt=et.prototype=new Fe;dt.constructor=et,e(dt,ye.prototype),dt.isPureReactComponent=!0;function Dn(){var B={current:null};return Object.seal(B),B}var yt=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0},Z,te,pe;pe={};function Ce(B){if(yt.call(B,"ref")){var X=Object.getOwnPropertyDescriptor(B,"ref").get;if(X&&X.isReactWarning)return!1}return B.ref!==void 0}function De(B){if(yt.call(B,"key")){var X=Object.getOwnPropertyDescriptor(B,"key").get;if(X&&X.isReactWarning)return!1}return B.key!==void 0}function _e(B,X){var ue=function(){Z||(Z=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",X))};ue.isReactWarning=!0,Object.defineProperty(B,"key",{get:ue,configurable:!0})}function Ve(B,X){var ue=function(){te||(te=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",X))};ue.isReactWarning=!0,Object.defineProperty(B,"ref",{get:ue,configurable:!0})}function mt(B){if(typeof B.ref=="string"&&O.current&&B.__self&&O.current.stateNode!==B.__self){var X=L(O.current.type);pe[X]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',L(O.current.type),B.ref),pe[X]=!0)}}var ut=function(B,X,ue,be,Re,it,Ke){var ze={$$typeof:i,type:B,key:X,ref:ue,props:Ke,_owner:it};return ze._store={},Object.defineProperty(ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.freeze&&(Object.freeze(ze.props),Object.freeze(ze)),ze};function Rt(B,X,ue){var be,Re={},it=null,Ke=null,ze=null,Ot=null;if(X!=null){Ce(X)&&(Ke=X.ref,mt(X)),De(X)&&(it=""+X.key),ze=X.__self===void 0?null:X.__self,Ot=X.__source===void 0?null:X.__source;for(be in X)yt.call(X,be)&&!q.hasOwnProperty(be)&&(Re[be]=X[be])}var Wt=arguments.length-2;if(Wt===1)Re.children=ue;else if(Wt>1){for(var Mn=Array(Wt),Fn=0;Fn<Wt;Fn++)Mn[Fn]=arguments[Fn+2];Object.freeze&&Object.freeze(Mn),Re.children=Mn}if(B&&B.defaultProps){var Vr=B.defaultProps;for(be in Vr)Re[be]===void 0&&(Re[be]=Vr[be])}if(it||Ke){var rr=typeof B=="function"?B.displayName||B.name||"Unknown":B;it&&_e(Re,rr),Ke&&Ve(Re,rr)}return ut(B,it,Ke,ze,Ot,O.current,Re)}function Pn(B,X){var ue=ut(B.type,X,B.ref,B._self,B._source,B._owner,B.props);return ue}function _n(B,X,ue){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var be,Re=e({},B.props),it=B.key,Ke=B.ref,ze=B._self,Ot=B._source,Wt=B._owner;if(X!=null){Ce(X)&&(Ke=X.ref,Wt=O.current),De(X)&&(it=""+X.key);var Mn;B.type&&B.type.defaultProps&&(Mn=B.type.defaultProps);for(be in X)yt.call(X,be)&&!q.hasOwnProperty(be)&&(X[be]===void 0&&Mn!==void 0?Re[be]=Mn[be]:Re[be]=X[be])}var Fn=arguments.length-2;if(Fn===1)Re.children=ue;else if(Fn>1){for(var Vr=Array(Fn),rr=0;rr<Fn;rr++)Vr[rr]=arguments[rr+2];Re.children=Vr}return ut(B.type,it,Ke,ze,Ot,Wt,Re)}function Yt(B){return typeof B=="object"&&B!==null&&B.$$typeof===i}var Ln=".",tn=":";function vt(B){var X=/[=:]/g,ue={"=":"=0",":":"=2"},be=(""+B).replace(X,function(Re){return ue[Re]});return"$"+be}var Vn=!1,Cr=/\/+/g;function Rn(B){return(""+B).replace(Cr,"$&/")}var er=10,On=[];function tr(B,X,ue,be){if(On.length){var Re=On.pop();return Re.result=B,Re.keyPrefix=X,Re.func=ue,Re.context=be,Re.count=0,Re}else return{result:B,keyPrefix:X,func:ue,context:be,count:0}}function Nn(B){B.result=null,B.keyPrefix=null,B.func=null,B.context=null,B.count=0,On.length<er&&On.push(B)}function En(B,X,ue,be){var Re=typeof B;(Re==="undefined"||Re==="boolean")&&(B=null);var it=!1;if(B===null)it=!0;else switch(Re){case"string":case"number":it=!0;break;case"object":switch(B.$$typeof){case i:case o:it=!0}}if(it)return ue(be,B,X===""?Ln+Vt(B,0):X),1;var Ke,ze,Ot=0,Wt=X===""?Ln:X+tn;if(Array.isArray(B))for(var Mn=0;Mn<B.length;Mn++)Ke=B[Mn],ze=Wt+Vt(Ke,Mn),Ot+=En(Ke,ze,ue,be);else{var Fn=k(B);if(typeof Fn=="function"){Fn===B.entries&&(Vn||re("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Vn=!0);for(var Vr=Fn.call(B),rr,Ss=0;!(rr=Vr.next()).done;)Ke=rr.value,ze=Wt+Vt(Ke,Ss++),Ot+=En(Ke,ze,ue,be)}else if(Re==="object"){var wa="";wa=" If you meant to render a collection of children, use an array instead."+_.getStackAddendum();var Da=""+B;throw Error("Objects are not valid as a React child (found: "+(Da==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":Da)+")."+wa)}}return Ot}function Ir(B,X,ue){return B==null?0:En(B,"",X,ue)}function Vt(B,X){return typeof B=="object"&&B!==null&&B.key!=null?vt(B.key):X.toString(36)}function Cn(B,X,ue){var be=B.func,Re=B.context;be.call(Re,X,B.count++)}function Ne(B,X,ue){if(B==null)return B;var be=tr(null,null,X,ue);Ir(B,Cn,be),Nn(be)}function tt(B,X,ue){var be=B.result,Re=B.keyPrefix,it=B.func,Ke=B.context,ze=it.call(Ke,X,B.count++);Array.isArray(ze)?nn(ze,be,ue,function(Ot){return Ot}):ze!=null&&(Yt(ze)&&(ze=Pn(ze,Re+(ze.key&&(!X||X.key!==ze.key)?Rn(ze.key)+"/":"")+ue)),be.push(ze))}function nn(B,X,ue,be,Re){var it="";ue!=null&&(it=Rn(ue)+"/");var Ke=tr(X,it,be,Re);Ir(B,tt,Ke),Nn(Ke)}function fr(B,X,ue){if(B==null)return B;var be=[];return nn(B,be,null,X,ue),be}function Te(B){return Ir(B,function(){return null},null)}function je(B){var X=[];return nn(B,X,null,function(ue){return ue}),X}function Ye(B){if(!Yt(B))throw Error("React.Children.only expected to receive a single React element child.");return B}function Ft(B,X){X===void 0?X=null:X!==null&&typeof X!="function"&&oe("createContext: Expected the optional second argument to be a function. Instead received: %s",X);var ue={$$typeof:f,_calculateChangedBits:X,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null};ue.Provider={$$typeof:d,_context:ue};var be=!1,Re=!1;{var it={$$typeof:f,_context:ue,_calculateChangedBits:ue._calculateChangedBits};Object.defineProperties(it,{Provider:{get:function(){return Re||(Re=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),ue.Provider},set:function(Ke){ue.Provider=Ke}},_currentValue:{get:function(){return ue._currentValue},set:function(Ke){ue._currentValue=Ke}},_currentValue2:{get:function(){return ue._currentValue2},set:function(Ke){ue._currentValue2=Ke}},_threadCount:{get:function(){return ue._threadCount},set:function(Ke){ue._threadCount=Ke}},Consumer:{get:function(){return be||(be=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),ue.Consumer}}}),ue.Consumer=it}return ue._currentRenderer=null,ue._currentRenderer2=null,ue}function rn(B){var X={$$typeof:C,_ctor:B,_status:-1,_result:null};{var ue,be;Object.defineProperties(X,{defaultProps:{configurable:!0,get:function(){return ue},set:function(Re){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ue=Re,Object.defineProperty(X,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return be},set:function(Re){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),be=Re,Object.defineProperty(X,"propTypes",{enumerable:!0})}}})}return X}function jn(B){return B!=null&&B.$$typeof===$?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof B!="function"?oe("forwardRef requires a render function but was given %s.",B===null?"null":typeof B):B.length!==0&&B.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",B.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),B!=null&&(B.defaultProps!=null||B.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:m,render:B}}function Kt(B){return typeof B=="string"||typeof B=="function"||B===a||B===h||B===c||B===u||B===g||B===v||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===$||B.$$typeof===d||B.$$typeof===f||B.$$typeof===m||B.$$typeof===y||B.$$typeof===D||B.$$typeof===P||B.$$typeof===x)}function an(B,X){return Kt(B)||oe("memo: The first argument must be a component. Instead received: %s",B===null?"null":typeof B),{$$typeof:$,type:B,compare:X===void 0?null:X}}function kt(){var B=S.current;if(B===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
135
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
136
- 2. You might be breaking the Rules of Hooks
137
- 3. You might have more than one copy of React in the same app
138
- See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return B}function wt(B,X){var ue=kt();if(X!==void 0&&oe("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",X,typeof X=="number"&&Array.isArray(arguments[2])?`
139
-
140
- Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),B._context!==void 0){var be=B._context;be.Consumer===B?oe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):be.Provider===B&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return ue.useContext(B,X)}function li(B){var X=kt();return X.useState(B)}function va(B,X,ue){var be=kt();return be.useReducer(B,X,ue)}function hr(B){var X=kt();return X.useRef(B)}function Ro(B,X){var ue=kt();return ue.useEffect(B,X)}function Oo(B,X){var ue=kt();return ue.useLayoutEffect(B,X)}function Mo(B,X){var ue=kt();return ue.useCallback(B,X)}function gt(B,X){var ue=kt();return ue.useMemo(B,X)}function nr(B,X,ue){var be=kt();return be.useImperativeHandle(B,X,ue)}function pr(B,X){{var ue=kt();return ue.useDebugValue(B,X)}}var Kn;Kn=!1;function Fo(){if(O.current){var B=L(O.current.type);if(B)return`
141
-
142
- Check the render method of \``+B+"`."}return""}function Lr(B){if(B!==void 0){var X=B.fileName.replace(/^.*[\\\/]/,""),ue=B.lineNumber;return`
143
-
144
- Check your code at `+X+":"+ue+"."}return""}function tl(B){return B!=null?Lr(B.__source):""}var bs={};function nl(B){var X=Fo();if(!X){var ue=typeof B=="string"?B:B.displayName||B.name;ue&&(X=`
145
-
146
- Check the top-level render call using <`+ue+">.")}return X}function ko(B,X){if(!(!B._store||B._store.validated||B.key!=null)){B._store.validated=!0;var ue=nl(X);if(!bs[ue]){bs[ue]=!0;var be="";B&&B._owner&&B._owner!==O.current&&(be=" It was passed a child from "+L(B._owner.type)+"."),Y(B),oe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',ue,be),Y(null)}}}function Ai(B,X){if(typeof B=="object"){if(Array.isArray(B))for(var ue=0;ue<B.length;ue++){var be=B[ue];Yt(be)&&ko(be,X)}else if(Yt(B))B._store&&(B._store.validated=!0);else if(B){var Re=k(B);if(typeof Re=="function"&&Re!==B.entries)for(var it=Re.call(B),Ke;!(Ke=it.next()).done;)Yt(Ke.value)&&ko(Ke.value,X)}}}function ba(B){{var X=B.type;if(X==null||typeof X=="string")return;var ue=L(X),be;if(typeof X=="function")be=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===m||X.$$typeof===$))be=X.propTypes;else return;be?(Y(B),t(be,B.props,"prop",ue,_.getStackAddendum),Y(null)):X.PropTypes!==void 0&&!Kn&&(Kn=!0,oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")),typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $a(B){{Y(B);for(var X=Object.keys(B.props),ue=0;ue<X.length;ue++){var be=X[ue];if(be!=="children"&&be!=="key"){oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be);break}}B.ref!==null&&oe("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null)}}function $s(B,X,ue){var be=Kt(B);if(!be){var Re="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=tl(X);it?Re+=it:Re+=Fo();var Ke;B===null?Ke="null":Array.isArray(B)?Ke="array":B!==void 0&&B.$$typeof===i?(Ke="<"+(L(B.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof B,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,Re)}var ze=Rt.apply(this,arguments);if(ze==null)return ze;if(be)for(var Ot=2;Ot<arguments.length;Ot++)Ai(arguments[Ot],B);return B===a?$a(ze):ba(ze),ze}var xs=!1;function rl(B){var X=$s.bind(null,B);return X.type=B,xs||(xs=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(X,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:B}),B}}),X}function ws(B,X,ue){for(var be=_n.apply(this,arguments),Re=2;Re<arguments.length;Re++)Ai(arguments[Re],be.type);return ba(be),be}try{var xa=Object.freeze({}),Ds=new Map([[xa,null]]),Qi=new Set([xa]);Ds.set(0,0),Qi.add(0)}catch{}var il=$s,Es=ws,Bo=rl,Cs={map:fr,forEach:Ne,count:Te,toArray:je,only:Ye};Pt.Children=Cs,Pt.Component=ye,Pt.Fragment=a,Pt.Profiler=c,Pt.PureComponent=et,Pt.StrictMode=u,Pt.Suspense=g,Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,Pt.cloneElement=Es,Pt.createContext=Ft,Pt.createElement=il,Pt.createFactory=Bo,Pt.createRef=Dn,Pt.forwardRef=jn,Pt.isValidElement=Yt,Pt.lazy=rn,Pt.memo=an,Pt.useCallback=Mo,Pt.useContext=wt,Pt.useDebugValue=pr,Pt.useEffect=Ro,Pt.useImperativeHandle=nr,Pt.useLayoutEffect=Oo,Pt.useMemo=gt,Pt.useReducer=va,Pt.useRef=hr,Pt.useState=li,Pt.version=n}();process.env.NODE_ENV==="production"?yc.exports=_t:yc.exports=Pt;var nu=yc.exports,$g={sdkSemver:"1.13.1",techVersion:nu.version,sdkCode:"J"},RW=function(e){IP(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=nu.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new bU(this.imageRef.current,this.props.cldImg,this.props.plugins,$g)},t.prototype.componentDidUpdate=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$g)},t.prototype.componentWillUnmount=function(){ph(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=LP(n,["cldImg","plugins"]);if(Ub())return nu.createElement("img",gc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=oW(this.props.plugins,this.props.cldImg,$g);return nu.createElement("img",gc({},r,{src:i}))},t}(nu.Component),OW=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){IP(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=yc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new Yz(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){ph(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){ph(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return OW.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=LP(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return nu.createElement("video",gc({},r,{ref:this.attachRef}))},t})(yc.exports.Component);function MW(e){return!(typeof e!="object"||e instanceof Array)}class FW{filterOutNonSupportedKeys(t,n){const r=Object.create({});return MW(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const Sx=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Yb extends FW{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,Sx);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,Sx);return new Yb(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class vc{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class kW extends Error{constructor(t="Unsupported"){super(t)}}function Zb(e){return new kW(e)}function BW(){return this._qualifierModel||{error:Zb(`unsupported qualifier ${this.constructor.name}`)}}class IW{constructor(){this._qualifierModel={}}toJson(){return BW.apply(this)}}class fp extends IW{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof vc?this.qualifierValue=n:(this.qualifierValue=new vc,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class sa extends fp{constructor(t,n){let r;n?r=new vc([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function LW(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function VW(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Zb(`unsupported action ${this.constructor.name}`)}}class NW{constructor(){this._actionModel={}}toJson(){return VW.apply(this)}}class Jb extends NW{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),LW(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new sa(r)):this.qualifiers.set(n,new fp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new sa(t)):t instanceof sa&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function jW(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class KW extends Jb{constructor(t){super(),this._actionModel={},this.addQualifier(new fp("b",new vc(jW(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class Tx{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Zb(`unsupported action ${this.constructor.name}`)}}}function UW(e){const t=e;return"error"in t&&!!t.error}function zW(){return new sa("lossy")}function WW(){return new sa("preserve_transparency")}function HW(e){return new sa("progressive",e)}class GW extends vc{constructor(t){super(t),this.val=t}getValue(){return this.val}}function ms(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const qW={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},YW={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},ZW={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},JW={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},XW={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},QW={444:"CHROMA_444",420:"CHROMA_420"},eH={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ms(QW);ms(eH);ms(qW);const tH=ms(YW);ms(ZW);ms(JW);ms(XW);class nH extends Jb{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof GW?i=n.getValue():i=n,this._actionModel.actionType=tH[t],this._actionModel[r]=i,this.addQualifier(new fp(t,n))}}class rH extends sa{constructor(t){super("progressive",t)}}class gh extends nH{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(zW()),this}progressive(t){return t instanceof rH?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(HW(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(WW()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}}class hp{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new Tx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof hp?this.actions=this.actions.concat(t.actions):this.actions.push(new Tx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new gh("q",t)),this}format(t){return this.addAction(new gh("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new KW(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Jb;let r=t;return typeof t=="string"&&(r=new sa(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(UW(r))return r;t.push(r)}return{actions:t}}}class iH extends hp{}class oH extends hp{}function aH(e){return e.match(/^https?:\//)}function sH(e){return e.indexOf("/")<0}function uH(e){return e.match(/^v[0-9]+/)}function lH(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,o=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!o&&r?`https://${e}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${e}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function cH(e){return e||"image"}function dH(e){return e||"upload"}function fH(e,t,n){const r=n!==!1;return t?`v${t}`:uH(e)||aH(e)||sH(e)?"":r?"v1":""}function Xb(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=hH(i,r/i.length)),i.slice(0,r)+String(e))}function hH(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const pH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yh={};let Ax=0;pH.split("").forEach(e=>{let t=Ax.toString(2);t=Xb(t,6,"0"),yh[t]=e,Ax++});function mH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function gH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return Xb(t,2,"0")}).join(".")}function Px(e){let t="";const r=e.split(".").length*6,i=mH(e),o=gH(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=Xb(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(c=>{t+=yh[c]}),t}function yH(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const vH="1.21.0";function bH(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),a=i.padStart(6,"0");return yh[o]+yh[a]}function $H(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function xH(e){const t={techVersion:$H(),sdkCode:"T",sdkSemver:vH.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function _x(e){const t=xH(e),n=yH(t);try{const r=wH(n.techVersion),i=Px(n.sdkSemver),o=Px(r),a=bH(n.osVersion),u=n.feature,c=n.sdkCode,{product:d,osType:f}=n;return`D${d}${c}${i}${o}${f}${a}${u}`}catch{return"E"}}function wH(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Rx={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class DH{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new Yb(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=cH(this.assetType),n=dH(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=Rx[`${t}/${n}`],a=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(Rx).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=lH(this.cloudName,this.urlConfig),i=t?t.toString():"",o=fH(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,a.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",_x(n)),d=f.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",c&&(d+=`${d.length>0?"&":""}_a=${_x(n)}`);return d?`${u}?${d}`:u}}}class JP extends DH{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new gh("q",t)),this}format(t){return this.addAction(new gh("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class EH extends JP{constructor(t,n,r){super(t,n,r,new iH)}}class CH extends JP{constructor(t,n,r){super(t,n,r,new oH),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class SH{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new EH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new CH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var xg={exports:{}},Ox;function TH(){return Ox||(Ox=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
147
- * Prism: Lightweight, robust, elegant syntax highlighting
148
- *
149
- * @license MIT <https://opensource.org/licenses/MIT>
150
- * @author Lea Verou <https://lea.verou.me>
151
- * @namespace
152
- * @public
153
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(D){return D instanceof c?new c(D.type,y(D.content),D.alias):Array.isArray(D)?D.map(y):D.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++o}),y.__id},clone:function y(D,P){P=P||{};var E,T;switch(u.util.type(D)){case"Object":if(T=u.util.objId(D),P[T])return P[T];E={},P[T]=E;for(var k in D)D.hasOwnProperty(k)&&(E[k]=y(D[k],P));return E;case"Array":return T=u.util.objId(D),P[T]?P[T]:(E=[],P[T]=E,D.forEach(function(S,U){E[U]=y(S,P)}),E);default:return D}},getLanguage:function(y){for(;y;){var D=i.exec(y.className);if(D)return D[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,D){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(y){var D=document.getElementsByTagName("script");for(var P in D)if(D[P].src==y)return D[P]}return null}},isActive:function(y,D,P){for(var E="no-"+D;y;){var T=y.classList;if(T.contains(D))return!0;if(T.contains(E))return!1;y=y.parentElement}return!!P}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,D){var P=u.util.clone(u.languages[y]);for(var E in D)P[E]=D[E];return P},insertBefore:function(y,D,P,E){E=E||u.languages;var T=E[y],k={};for(var S in T)if(T.hasOwnProperty(S)){if(S==D)for(var U in P)P.hasOwnProperty(U)&&(k[U]=P[U]);P.hasOwnProperty(S)||(k[S]=T[S])}var O=E[y];return E[y]=k,u.languages.DFS(u.languages,function(F,G){G===O&&F!=y&&(this[F]=k)}),k},DFS:function y(D,P,E,T){T=T||{};var k=u.util.objId;for(var S in D)if(D.hasOwnProperty(S)){P.call(D,S,D[S],E||S);var U=D[S],O=u.util.type(U);O==="Object"&&!T[k(U)]?(T[k(U)]=!0,y(U,P,null,T)):O==="Array"&&!T[k(U)]&&(T[k(U)]=!0,y(U,P,S,T))}}},plugins:{},highlightAll:function(y,D){u.highlightAllUnder(document,y,D)},highlightAllUnder:function(y,D,P){var E={callback:P,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),u.hooks.run("before-all-elements-highlight",E);for(var T=0,k;k=E.elements[T++];)u.highlightElement(k,D===!0,E.callback)},highlightElement:function(y,D,P){var E=u.util.getLanguage(y),T=u.languages[E];u.util.setLanguage(y,E);var k=y.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(k,E);var S=y.textContent,U={element:y,language:E,grammar:T,code:S};function O(G){U.highlightedCode=G,u.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,u.hooks.run("after-highlight",U),u.hooks.run("complete",U),P&&P.call(U.element)}if(u.hooks.run("before-sanity-check",U),k=U.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!U.code){u.hooks.run("complete",U),P&&P.call(U.element);return}if(u.hooks.run("before-highlight",U),!U.grammar){O(u.util.encode(U.code));return}if(D&&r.Worker){var F=new Worker(u.filename);F.onmessage=function(G){O(G.data)},F.postMessage(JSON.stringify({language:U.language,code:U.code,immediateClose:!0}))}else O(u.highlight(U.code,U.grammar,U.language))},highlight:function(y,D,P){var E={code:y,grammar:D,language:P};if(u.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=u.tokenize(E.code,E.grammar),u.hooks.run("after-tokenize",E),c.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(y,D){var P=D.rest;if(P){for(var E in P)D[E]=P[E];delete D.rest}var T=new h;return m(T,T.head,y),f(y,T,D,T.head,0),v(T)},hooks:{all:{},add:function(y,D){var P=u.hooks.all;P[y]=P[y]||[],P[y].push(D)},run:function(y,D){var P=u.hooks.all[y];if(!(!P||!P.length))for(var E=0,T;T=P[E++];)T(D)}},Token:c};r.Prism=u;function c(y,D,P,E){this.type=y,this.content=D,this.alias=P,this.length=(E||"").length|0}c.stringify=function y(D,P){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(O){E+=y(O,P)}),E}var T={type:D.type,content:y(D.content,P),tag:"span",classes:["token",D.type],attributes:{},language:P},k=D.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(T.classes,k):T.classes.push(k)),u.hooks.run("wrap",T);var S="";for(var U in T.attributes)S+=" "+U+'="'+(T.attributes[U]||"").replace(/"/g,"&quot;")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+S+">"+T.content+"</"+T.tag+">"};function d(y,D,P,E){y.lastIndex=D;var T=y.exec(P);if(T&&E&&T[1]){var k=T[1].length;T.index+=k,T[0]=T[0].slice(k)}return T}function f(y,D,P,E,T,k){for(var S in P)if(!(!P.hasOwnProperty(S)||!P[S])){var U=P[S];U=Array.isArray(U)?U:[U];for(var O=0;O<U.length;++O){if(k&&k.cause==S+","+O)return;var F=U[O],G=F.inside,K=!!F.lookbehind,W=!!F.greedy,j=F.alias;if(W&&!F.pattern.global){var L=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,L+"g")}for(var _=F.pattern||F,M=E.next,Y=T;M!==D.tail&&!(k&&Y>=k.reach);Y+=M.value.length,M=M.next){var V=M.value;if(D.length>y.length)return;if(!(V instanceof c)){var z=1,re;if(W){if(re=d(_,Y,y,K),!re||re.index>=y.length)break;var Ee=re.index,oe=re.index+re[0].length,fe=Y;for(fe+=M.value.length;Ee>=fe;)M=M.next,fe+=M.value.length;if(fe-=M.value.length,Y=fe,M.value instanceof c)continue;for(var ie=M;ie!==D.tail&&(fe<oe||typeof ie.value=="string");ie=ie.next)z++,fe+=ie.value.length;z--,V=y.slice(Y,fe),re.index-=Y}else if(re=d(_,0,V,K),!re)continue;var Ee=re.index,$e=re[0],ne=V.slice(0,Ee),ye=V.slice(Ee+$e.length),xe=Y+V.length;k&&xe>k.reach&&(k.reach=xe);var he=M.prev;ne&&(he=m(D,he,ne),Y+=ne.length),g(D,he,z);var le=new c(S,G?u.tokenize($e,G):$e,j,$e);if(M=m(D,he,le),ye&&m(D,M,ye),z>1){var Fe={cause:S+","+O,reach:xe};f(y,D,P,M.prev,Y,Fe),k&&Fe.reach>k.reach&&(k.reach=Fe.reach)}}}}}}function h(){var y={value:null,prev:null,next:null},D={value:null,prev:y,next:null};y.next=D,this.head=y,this.tail=D,this.length=0}function m(y,D,P){var E=D.next,T={value:P,prev:D,next:E};return D.next=T,E.prev=T,y.length++,T}function g(y,D,P){for(var E=D.next,T=0;T<P&&E!==y.tail;T++)E=E.next;D.next=E,E.prev=D,y.length-=T}function v(y){for(var D=[],P=y.head.next;P!==y.tail;)D.push(P.value),P=P.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(y){var D=JSON.parse(y.data),P=D.language,E=D.code,T=D.immediateClose;r.postMessage(u.highlight(E,u.languages[P],P)),T&&r.close()},!1)),u;var $=u.util.currentScript();$&&(u.filename=$.src,$.hasAttribute("data-manual")&&(u.manual=!0));function C(){u.manual||u.highlightAll()}if(!u.manual){var x=document.readyState;x==="loading"||x==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return u}(t);e.exports&&(e.exports=n),typeof Li<"u"&&(Li.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function($,C){return"✖ Error "+$+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c="loading",d="loaded",f="failed",h="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+c+'"])';function m($,C,x){var y=new XMLHttpRequest;y.open("GET",$,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?C(y.responseText):y.status>=400?x(i(y.status,y.statusText)):x(o))},y.send(null)}function g($){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(C){var x=Number(C[1]),y=C[2],D=C[3];return y?D?[x,Number(D)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+h}),n.hooks.add("before-sanity-check",function($){var C=$.element;if(C.matches(h)){$.code="",C.setAttribute(u,c);var x=C.appendChild(document.createElement("CODE"));x.textContent=r;var y=C.getAttribute("data-src"),D=$.language;if(D==="none"){var P=(/\.(\w+)$/.exec(y)||[,"none"])[1];D=a[P]||P}n.util.setLanguage(x,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),m(y,function(T){C.setAttribute(u,d);var k=g(C.getAttribute("data-range"));if(k){var S=T.split(/\r\n?|\n/g),U=k[0],O=k[1]==null?S.length:k[1];U<0&&(U+=S.length),U=Math.max(0,Math.min(U-1,S.length)),O<0&&(O+=S.length),O=Math.max(0,Math.min(O,S.length)),T=S.slice(U,O).join(`
154
- `),C.hasAttribute("data-start")||C.setAttribute("data-start",String(U+1))}x.textContent=T,n.highlightElement(x)},function(T){C.setAttribute(u,f),x.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(h),y=0,D;D=x[y++];)n.highlightElement(D)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xg)),xg.exports}var AH=TH();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(m,g){return Array.prototype.slice.call((g||document).querySelectorAll(m))}function i(m,g){return m.classList.contains(g)}function o(m){m()}var a=function(){var m;return function(){if(typeof m>"u"){var g=document.createElement("div");g.style.fontSize="13px",g.style.lineHeight="1.5",g.style.padding="0",g.style.border="0",g.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(g),m=g.offsetHeight===38,document.body.removeChild(g)}return m}}();function u(m,g){var v=getComputedStyle(m),$=getComputedStyle(g);function C(x){return+x.substr(0,x.length-2)}return g.offsetTop+C($.borderTopWidth)+C($.paddingTop)-C(v.paddingTop)}function c(m){return!m||!/pre/i.test(m.nodeName)?!1:!!(m.hasAttribute("data-line")||m.id&&Prism.util.isActive(m,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(g,v,$){v=typeof v=="string"?v:g.getAttribute("data-line")||"";var C=v.replace(/\s+/g,"").split(",").filter(Boolean),x=+g.getAttribute("data-line-offset")||0,y=a()?parseInt:parseFloat,D=y(getComputedStyle(g).lineHeight),P=Prism.util.isActive(g,e),E=g.querySelector("code"),T=P?g:E||g,k=[],S=E.textContent.match(n),U=S?S.length+1:1,O=!E||T==E?0:u(g,E);C.forEach(function(K){var W=K.split("-"),j=+W[0],L=+W[1]||j;if(L=Math.min(U+x,L),!(L<j)){var _=g.querySelector('.line-highlight[data-range="'+K+'"]')||document.createElement("div");if(k.push(function(){_.setAttribute("aria-hidden","true"),_.setAttribute("data-range",K),_.className=($||"")+" line-highlight"}),P&&Prism.plugins.lineNumbers){var M=Prism.plugins.lineNumbers.getLine(g,j),Y=Prism.plugins.lineNumbers.getLine(g,L);if(M){var V=M.offsetTop+O+"px";k.push(function(){_.style.top=V})}if(Y){var z=Y.offsetTop-M.offsetTop+Y.offsetHeight+"px";k.push(function(){_.style.height=z})}}else k.push(function(){_.setAttribute("data-start",String(j)),L>j&&_.setAttribute("data-end",String(L)),_.style.top=(j-x-1)*D+O+"px",_.textContent=new Array(L-j+2).join(`
155
- `)});k.push(function(){_.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(_)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var L=F+"."+j;d=!1,location.hash=L,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Mx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},XP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Mx(i,n,e))}},PH=(e,t)=>{t.shouldUseNativeValidation&&XP(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(_H(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},_H=(e,t)=>e.some(n=>n.startsWith(t+"."));function RH(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&XP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:PH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=iA(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var wg,Fx;function OH(){if(Fx)return wg;Fx=1;var e=typeof Li=="object"&&Li&&Li.Object===Object&&Li;return wg=e,wg}var Dg,kx;function MH(){if(kx)return Dg;kx=1;var e=OH(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Dg=n,Dg}var Eg,Bx;function QP(){if(Bx)return Eg;Bx=1;var e=MH(),t=e.Symbol;return Eg=t,Eg}var Cg,Ix;function FH(){if(Ix)return Cg;Ix=1;var e=QP(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Cg=o,Cg}var Sg,Lx;function kH(){if(Lx)return Sg;Lx=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sg=n,Sg}var Tg,Vx;function BH(){if(Vx)return Tg;Vx=1;var e=QP(),t=FH(),n=kH(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Tg=a,Tg}var Ag,Nx;function IH(){if(Nx)return Ag;Nx=1;function e(t){return t!=null&&typeof t=="object"}return Ag=e,Ag}var Pg,jx;function LH(){if(jx)return Pg;jx=1;var e=BH(),t=IH(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Pg=r,Pg}var VH=LH();const NH=To(VH),e6=b.createContext({});function Hc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qb=b.createContext(null),e0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jH(e=!0){const t=b.useContext(Qb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const t0=typeof window<"u",t6=t0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Wu=Er,Zi=Er;process.env.NODE_ENV!=="production"&&(Wu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Zi=(e,t)=>{if(!e)throw new Error(t)});function n0(e){let t;return()=>(t===void 0&&(t=e()),t)}const _u=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Hi=e=>e*1e3,xo=e=>e/1e3,KH={skipAnimations:!1,useManualTiming:!1};function UH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const ff=["read","resolveKeyframes","update","preRender","render","postRender"],zH=40;function n6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ff.reduce((x,y)=>(x[y]=UH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,zH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:ff.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<ff.length;y++)a[ff[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:Co,state:Bn,steps:_g}=n6(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),r6=b.createContext({strict:!1}),Kx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ru={};for(const e in Kx)Ru[e]={isEnabled:t=>Kx[e].some(n=>!!t[n])};function WH(e){for(const t in e)Ru[t]={...Ru[t],...e[t]}}const HH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function vh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HH.has(e)}let i6=e=>!vh(e);function GH(e){e&&(i6=t=>t.startsWith("on")?!vh(t):e(t))}try{GH(require("@emotion/is-prop-valid").default)}catch{}function qH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(i6(i)||n===!0&&vh(i)||!t&&!vh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Ux=new Set;function pp(e,t,n){e||Ux.has(t)||(console.warn(t),Ux.add(t))}function YH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&pp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const mp=b.createContext({});function bc(e){return typeof e=="string"||Array.isArray(e)}function gp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const r0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i0=["initial",...r0];function yp(e){return gp(e.animate)||i0.some(t=>bc(e[t]))}function o6(e){return!!(yp(e)||e.variants)}function ZH(e,t){if(yp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bc(n)?n:void 0,animate:bc(r)?r:void 0}}return e.inherit!==!1?t:{}}function JH(e){const{initial:t,animate:n}=ZH(e,b.useContext(mp));return b.useMemo(()=>({initial:t,animate:n}),[zx(t),zx(n)])}function zx(e){return Array.isArray(e)?e.join(" "):e}const XH=Symbol.for("motionComponentSymbol");function ru(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function QH(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ru(n)&&(n.current=r))},[t])}const o0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eG="framerAppearId",a6="data-"+o0(eG),{schedule:a0,cancel:zre}=n6(queueMicrotask,!1),s6=b.createContext({});function tG(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(mp),c=b.useContext(r6),d=b.useContext(Qb),f=b.useContext(e0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(s6);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&nG(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[a6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return t6(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),a0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function nG(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:u6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&ru(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function u6(e){if(e)return e.options.allowProjection!==!1?e.projection:u6(e.parent)}function rG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&WH(e);function u(d,f){let h;const m={...b.useContext(e0),...d,layoutId:iG(d)},{isStatic:g}=m,v=JH(d),$=r(d,g);if(!g&&t0){oG(m,e);const C=aG(m);h=C.MeasureLayout,v.visualElement=tG(i,$,m,t,C.ProjectionNode)}return Do.jsxs(mp.Provider,{value:v,children:[h&&v.visualElement?Do.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,QH($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[XH]=i,c}function iG({layoutId:e}){const t=b.useContext(e6).id;return t&&e!==void 0?t+"-"+e:e}function oG(e,t){const n=b.useContext(r6).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Wu(!1,r):Zi(!1,r)}}function aG(e){const{drag:t,layout:n}=Ru;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const sG=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s0(e){return typeof e!="string"||e.includes("-")?!1:!!(sG.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function u0(e,t,n,r){if(typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const uv=e=>Array.isArray(e),uG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),lG=e=>uv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function kf(e){const t=In(e)?e.get():e;return uG(t)?t.toValue():t}function cG({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:dG(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const l6=e=>(t,n)=>{const r=b.useContext(mp),i=b.useContext(Qb),o=()=>cG(e,t,r,i);return n?o():Hc(o)};function dG(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=kf(o[m]);let{initial:a,animate:u}=e;const c=yp(e),d=o6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!gp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=u0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Hu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gs=new Set(Hu),c6=e=>t=>typeof t=="string"&&t.startsWith(e),d6=c6("--"),fG=c6("var(--"),l0=e=>fG(e)?hG.test(e.split("/*")[0].trim()):!1,hG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,f6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,So=(e,t,n)=>n>t?t:n<e?e:n,Gu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$c={...Gu,transform:e=>So(0,1,e)},hf={...Gu,default:1},Gc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=Gc("deg"),Gi=Gc("%"),Ge=Gc("px"),pG=Gc("vh"),mG=Gc("vw"),Hx={...Gi,parse:e=>Gi.parse(e)/100,transform:e=>Gi.transform(e*100)},gG={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},yG={rotate:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:hf,scaleX:hf,scaleY:hf,scaleZ:hf,skew:Yo,skewX:Yo,skewY:Yo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:$c,originX:Hx,originY:Hx,originZ:Ge},Gx={...Gu,transform:Math.round},c0={...gG,...yG,zIndex:Gx,size:Ge,fillOpacity:$c,strokeOpacity:$c,numOctaves:Gx},vG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bG=Hu.length;function $G(e,t,n){let r="",i=!0;for(let o=0;o<bG;o++){const a=Hu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=f6(u,c0[a]);if(!c){i=!1;const f=vG[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function d0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(gs.has(c)){a=!0;continue}else if(d6(c)){i[c]=d;continue}else{const f=f6(d,c0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=$G(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function qx(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function xG(e,t,n){const r=qx(t,e.x,e.width),i=qx(n,e.y,e.height);return`${r} ${i}`}const wG={offset:"stroke-dashoffset",array:"stroke-dasharray"},DG={offset:"strokeDashoffset",array:"strokeDasharray"};function EG(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?wG:DG;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function f0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(d0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=xG(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&EG(m,a,u,c,!1)}const h0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),h6=()=>({...h0(),attrs:{}}),p0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function p6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const m6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function g6(e,t,n,r){p6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(m6.has(i)?i:o0(i),t.attrs[i])}const bh={};function CG(e){Object.assign(bh,e)}function y6(e,{layout:t,layoutId:n}){return gs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bh[e]||e==="opacity")}function m0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||y6(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function v6(e,t,n){const r=m0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Hu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function SG(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Yx=["x","y","width","height","cx","cy","r"],TG={useVisualState:l6({scrapeMotionValuesFromProps:v6,createRenderState:h6,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(gs.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Yx.length;u++){const c=Yx[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>SG(n,r)),jt.render(()=>{f0(r,i,p0(n.tagName),e.transformTemplate),g6(n,r)}))}})},AG={useVisualState:l6({scrapeMotionValuesFromProps:m0,createRenderState:h0})};function b6(e,t,n){for(const r in t)!In(t[r])&&!y6(r,n)&&(e[r]=t[r])}function PG({transformTemplate:e},t){return b.useMemo(()=>{const n=h0();return d0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function _G(e,t){const n=e.style||{},r={};return b6(r,n,e),Object.assign(r,PG(e,t)),r}function RG(e,t){const n={},r=_G(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function OG(e,t,n,r){const i=b.useMemo(()=>{const o=h6();return f0(o,t,p0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};b6(o,e.style,e),i.style={...o,...i.style}}return i}function MG(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(s0(n)?OG:RG)(r,o,a,n),d=qH(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function FG(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...s0(r)?TG:AG,preloadedFeatures:e,useRender:MG(i),createVisualElement:t,Component:r};return rG(a)}}function $6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function vp(e,t,n){const r=e.getProps();return u0(r,t,n!==void 0?n:r.custom,e)}const kG=n0(()=>window.ScrollTimeline!==void 0);class BG{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(kG()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let IG=class extends BG{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function g0(e,t){return e?e[t]||e.default||e:void 0}const lv=2e4;function x6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lv;)t+=n,r=e.next(t);return t>=lv?1/0:t}function y0(e){return typeof e=="function"}function Zx(e,t){e.timeline=t,e.onfinish=null}const v0=e=>Array.isArray(e)&&typeof e[0]=="number",LG={linearEasing:void 0};function VG(e,t){const n=n0(e);return()=>{var r;return(r=LG[t])!==null&&r!==void 0?r:n()}}const $h=VG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),w6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(_u(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function D6(e){return!!(typeof e=="function"&&$h()||!e||typeof e=="string"&&(e in cv||$h())||v0(e)||Array.isArray(e)&&e.every(D6))}const Wl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function E6(e,t){if(e)return typeof e=="function"&&$h()?w6(e,t):v0(e)?Wl(e):Array.isArray(e)?e.map(n=>E6(n,t)||cv.easeOut):cv[e]}const pi={x:!1,y:!1};function C6(){return pi.x||pi.y}function NG(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function S6(e,t){const n=NG(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Jx(e){return t=>{t.pointerType==="touch"||C6()||e(t)}}function jG(e,t,n={}){const[r,i,o]=S6(e,n),a=Jx(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=Jx(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const T6=(e,t)=>t?e===t?!0:T6(e,t.parentElement):!1,b0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,KG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function UG(e){return KG.has(e.tagName)||e.tabIndex!==-1}const Hl=new WeakSet;function Xx(e){return t=>{t.key==="Enter"&&e(t)}}function Rg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zG=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xx(()=>{if(Hl.has(n))return;Rg(n,"down");const i=Xx(()=>{Rg(n,"up")}),o=()=>Rg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Qx(e){return b0(e)&&!C6()}function WG(e,t,n={}){const[r,i,o]=S6(e,n),a=u=>{const c=u.currentTarget;if(!Qx(u)||Hl.has(c))return;Hl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Qx(g)||!Hl.has(c))&&(Hl.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||T6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!UG(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>zG(d,i),i)}),o}function HG(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const A6=new Set(["width","height","top","left","right","bottom",...Hu]);let Bf;function GG(){Bf=void 0}const qi={now:()=>(Bf===void 0&&qi.set(Bn.isProcessing||KH.useManualTiming?Bn.timestamp:performance.now()),Bf),set:e=>{Bf=e,queueMicrotask(GG)}};function $0(e,t){e.indexOf(t)===-1&&e.push(t)}function x0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function qG([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let w0=class{constructor(){this.subscriptions=[]}add(t){return $0(this.subscriptions,t),()=>x0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function P6(e,t){return t?e*(1e3/t):0}const ew=30,YG=e=>!isNaN(parseFloat(e)),nc={current:void 0};let ZG=class{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=qi.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=qi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=YG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&pp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new w0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nc.current&&nc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=qi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ew)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ew);return P6(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ou(e,t){return new ZG(e,t)}function JG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ou(n))}function XG(e,t){const n=vp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=lG(o[a]);JG(e,a,u)}}function QG(e){return!!(In(e)&&e.add)}function dv(e,t){const n=e.getValue("willChange");if(QG(n))return n.add(t)}function _6(e){return e.props[a6]}const R6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eq=1e-7,tq=12;function nq(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=R6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>eq&&++u<tq);return a}function qc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>nq(o,0,1,e,n);return o=>o===0||o===1?o:R6(i(o),t,r)}const O6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,M6=e=>t=>1-e(1-t),F6=qc(.33,1.53,.69,.99),D0=M6(F6),k6=O6(D0),B6=e=>(e*=2)<1?.5*D0(e):.5*(2-Math.pow(2,-10*(e-1))),E0=e=>1-Math.sin(Math.acos(e)),I6=M6(E0),L6=O6(E0),V6=e=>/^0[^.\s]+$/u.test(e);function rq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||V6(e):!0}const rc=e=>Math.round(e*1e5)/1e5,C0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iq(e){return e==null}const oq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,S0=(e,t)=>n=>!!(typeof n=="string"&&oq.test(n)&&n.startsWith(e)||t&&!iq(n)&&Object.prototype.hasOwnProperty.call(n,t)),N6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(C0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},aq=e=>So(0,255,e),Og={...Gu,transform:e=>Math.round(aq(e))},Ha={test:S0("rgb","red"),parse:N6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Og.transform(e)+", "+Og.transform(t)+", "+Og.transform(n)+", "+rc($c.transform(r))+")"};function sq(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const fv={test:S0("#"),parse:sq,transform:Ha.transform},iu={test:S0("hsl","hue"),parse:N6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gi.transform(rc(t))+", "+Gi.transform(rc(n))+", "+rc($c.transform(r))+")"},qn={test:e=>Ha.test(e)||fv.test(e)||iu.test(e),parse:e=>Ha.test(e)?Ha.parse(e):iu.test(e)?iu.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ha.transform(e):iu.transform(e)},uq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(C0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(uq))===null||n===void 0?void 0:n.length)||0)>0}const j6="number",K6="color",cq="var",dq="var(",tw="${}",fq=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function xc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(fq,c=>(qn.test(c)?(r.color.push(o),i.push(K6),n.push(qn.parse(c))):c.startsWith(dq)?(r.var.push(o),i.push(cq),n.push(c)):(r.number.push(o),i.push(j6),n.push(parseFloat(c))),++o,tw)).split(tw);return{values:n,split:u,indexes:r,types:i}}function U6(e){return xc(e).values}function z6(e){const{split:t,types:n}=xc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===j6?o+=rc(i[a]):u===K6?o+=qn.transform(i[a]):o+=i[a]}return o}}const hq=e=>typeof e=="number"?0:e;function pq(e){const t=U6(e);return z6(e)(t.map(hq))}const fa={test:lq,parse:U6,createTransformer:z6,getAnimatableNone:pq},mq=new Set(["brightness","contrast","saturate","opacity"]);function gq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(C0)||[];if(!r)return e;const i=n.replace(r,"");let o=mq.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const yq=/\b([a-z-]*)\(.*?\)/gu,hv={...fa,getAnimatableNone:e=>{const t=e.match(yq);return t?t.map(gq).join(" "):e}},vq={...c0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},T0=e=>vq[e];function W6(e,t){let n=T0(e);return n!==hv&&(n=fa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bq=new Set(["auto","none","0"]);function $q(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!bq.has(o)&&xc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=W6(n,i)}const nw=e=>e===Gu||e===Ge,rw=(e,t)=>parseFloat(e.split(", ")[t]),iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return rw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?rw(o[1],e):0}},xq=new Set(["x","y","z"]),wq=Hu.filter(e=>!xq.has(e));function Dq(e){const t=[];return wq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:iw(4,13),y:iw(5,14)};Mu.translateX=Mu.x;Mu.translateY=Mu.y;const Xa=new Set;let pv=!1,mv=!1;function H6(){if(mv){const e=Array.from(Xa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Dq(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}mv=!1,pv=!1,Xa.forEach(e=>e.complete()),Xa.clear()}function G6(){Xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mv=!0)})}function Eq(){G6(),H6()}let A0=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xa.add(this),pv||(pv=!0,jt.read(G6),jt.resolveKeyframes(H6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const q6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Cq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sq(e){const t=Cq.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Tq=4;function Y6(e,t,n=1){Zi(n<=Tq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Sq(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return q6(a)?parseFloat(a):a}return l0(i)?Y6(i,t,n+1):i}const Z6=e=>t=>t.test(e),Aq={test:e=>e==="auto",parse:e=>e},J6=[Gu,Ge,Gi,Yo,mG,pG,Aq],ow=e=>J6.find(Z6(e));let X6=class extends A0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),l0(d))){const f=Y6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!A6.has(r)||t.length!==2)return;const[i,o]=t,a=ow(i),u=ow(o);if(a!==u)if(nw(a)&&nw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)rq(t[i])&&r.push(i);r.length&&$q(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Mu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};const aw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fa.test(e)||e==="0")&&!e.startsWith("url("));function Pq(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function _q(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=aw(i,t),u=aw(o,t);return Wu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:Pq(e)||(n==="spring"||y0(n))&&r}const Rq=e=>e!==null;function bp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Rq),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Oq=40;let Q6=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Oq?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Eq(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=qi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!_q(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(bp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const qt=(e,t,n)=>e+(t-e)*n;function Mg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Mq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Mg(c,u,e+1/3),o=Mg(c,u,e),a=Mg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function xh(e,t){return n=>n>0?t:e}const Fg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Fq=[fv,Ha,iu],kq=e=>Fq.find(t=>t.test(e));function sw(e){const t=kq(e);if(Wu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===iu&&(n=Mq(n)),n}const uw=(e,t)=>{const n=sw(e),r=sw(t);if(!n||!r)return xh(e,t);const i={...n};return o=>(i.red=Fg(n.red,r.red,o),i.green=Fg(n.green,r.green,o),i.blue=Fg(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ha.transform(i))},Bq=(e,t)=>n=>t(e(n)),Yc=(...e)=>e.reduce(Bq),gv=new Set(["none","hidden"]);function Iq(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Lq(e,t){return n=>qt(e,t,n)}function P0(e){return typeof e=="number"?Lq:typeof e=="string"?l0(e)?xh:qn.test(e)?uw:jq:Array.isArray(e)?e7:typeof e=="object"?qn.test(e)?uw:Vq:xh}function e7(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>P0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Vq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=P0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Nq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const jq=(e,t)=>{const n=fa.createTransformer(t),r=xc(e),i=xc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?Iq(e,t):Yc(e7(Nq(r,i),i.values),n):(Wu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),xh(e,t))};function t7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):P0(e)(e,t)}const Kq=5;function n7(e,t,n){const r=Math.max(t-Kq,0);return P6(n-e(r),t-r)}const Jt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},lw=.001;function Uq({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Wu(e<=Hi(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=So(Jt.minDamping,Jt.maxDamping,a),e=So(Jt.minDuration,Jt.maxDuration,xo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=yv(d,a),v=Math.exp(-h);return lw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=yv(Math.pow(d,2),a);return(-i(d)+lw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=Wq(i,o,u);if(e=Hi(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const zq=12;function Wq(e,t,n){let r=n;for(let i=1;i<zq;i++)r=r-e(r)/t(r);return r}function yv(e,t){return e*Math.sqrt(1-t*t)}const Hq=["duration","bounce"],Gq=["stiffness","damping","mass"];function cw(e,t){return t.some(n=>e[n]!==void 0)}function qq(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!cw(e,Gq)&&cw(e,Hq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*So(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=Uq(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function r7(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=qq({...n,velocity:-xo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=xo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=yv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Hi(v):n7(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(x6(P),lv),T=w6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function dw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=r7({keyframes:[m.value,v(m.value)],velocity:n7(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const Yq=qc(.42,0,1,1),Zq=qc(0,0,.58,1),i7=qc(.42,0,.58,1),Jq=e=>Array.isArray(e)&&typeof e[0]!="number",fw={linear:Er,easeIn:Yq,easeInOut:i7,easeOut:Zq,circIn:E0,circInOut:L6,circOut:I6,backIn:D0,backInOut:k6,backOut:F6,anticipate:B6},hw=e=>{if(v0(e)){Zi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return qc(t,n,r,i)}else if(typeof e=="string")return Zi(fw[e]!==void 0,`Invalid easing type '${e}'`),fw[e];return e};function Xq(e,t,n){const r=[],i=n||t7,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Yc(c,u)}r.push(u)}return r}function o7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Zi(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Xq(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=_u(e[h],e[h+1],f);return u[h](m)};return n?f=>d(So(e[0],e[o-1],f)):d}function Qq(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=_u(0,t,r);e.push(qt(n,1,i))}}function eY(e){const t=[0];return Qq(t,e.length-1),t}function tY(e,t){return e.map(n=>n*t)}function nY(e,t){return e.map(()=>t||i7).splice(0,e.length-1)}function wh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Jq(r)?r.map(hw):hw(r),o={done:!1,value:t[0]},a=tY(n&&n.length===t.length?n:eY(t),e),u=o7(a,t,{ease:Array.isArray(i)?i:nY(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const rY=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>Co(t),now:()=>Bn.isProcessing?Bn.timestamp:qi.now()}},iY={decay:dw,inertia:dw,tween:wh,keyframes:wh,spring:r7},oY=e=>e/100;let _0=class extends Q6{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||A0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=y0(n)?n:iY[n]||wh;let c,d;u!==wh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Zi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Yc(oY,t7(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=x6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=So(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=bp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?xo(t.calculatedDuration):0}get time(){return xo(this.currentTime)}set time(t){t=Hi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=xo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=rY,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const aY=new Set(["opacity","clipPath","filter","transform"]);function sY(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=E6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const uY=n0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Dh=10,lY=2e4;function cY(e){return y0(e.type)||e.type==="spring"||!D6(e.ease)}function dY(e,t){const n=new _0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<lY;)r=n.sample(o),i.push(r.value),o+=Dh;return{times:void 0,keyframes:i,duration:o-Dh,ease:"linear"}}const a7={anticipate:B6,backInOut:k6,circInOut:L6};function fY(e){return e in a7}let pw=class extends Q6{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new X6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&$h()&&fY(a)&&(a=a7[a]),cY(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=dY(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=sY(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Zx(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(bp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return xo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return xo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Hi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Er;const{animation:r}=n;Zx(r,t)}return Er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new _0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Hi(this.time);d.setWithVelocity(v.sample($-Dh).value,v.sample($).value,Dh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return uY()&&r&&aY.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const hY={type:"spring",stiffness:500,damping:25,restSpeed:10},pY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mY={type:"keyframes",duration:.8},gY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yY=(e,{keyframes:t})=>t.length>2?mY:gs.has(e)?e.startsWith("scale")?pY(t[1]):hY:gY;function vY({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const R0=(e,t,n,r={},i,o)=>a=>{const u=g0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Hi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};vY(u)||(f={...f,...yY(e,f)}),f.duration&&(f.duration=Hi(f.duration)),f.repeatDelay&&(f.repeatDelay=Hi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=bp(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new IG([])}return!o&&pw.supports(f)?new pw(f):new _0(f)};function bY({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function s7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&bY(f,h))continue;const v={delay:n,...g0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=_6(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}dv(e,h),m.start(R0(h,m,g,e.shouldReduceMotion&&A6.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&XG(e,u)})}),d}function vv(e,t,n={}){var r;const i=vp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(s7(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return $Y(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function $Y(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(xY).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function xY(e,t){return e.sortNodePosition(t)}function wY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?vp(e,t,n.custom):t;r=Promise.all(s7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const DY=i0.length;function u7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?u7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<DY;n++){const r=i0[n],i=e.props[r];(bc(i)||i===!1)&&(t[r]=i)}return t}const EY=[...r0].reverse(),CY=r0.length;function SY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>wY(e,n,r)))}function TY(e){let t=SY(e),n=mw(),r=!0;const i=c=>(d,f)=>{var h;const m=vp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=u7(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<CY;C++){const x=EY[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=bc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||gp(D)||typeof D=="boolean")continue;const k=AY(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;uv(M)&&uv(Y)?V=!$6(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=mw(),r=!0}}}function AY(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$6(t,e):!1}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mw(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}let ya=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},PY=class extends ya{constructor(t){super(t),t.animationState||(t.animationState=TY(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();gp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},_Y=0,RY=class extends ya{constructor(){super(...arguments),this.id=_Y++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const OY={animation:{Feature:PY},exit:{Feature:RY}};function wc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Zc(e){return{point:{x:e.pageX,y:e.pageY}}}const MY=e=>t=>b0(t)&&e(t,Zc(t));function ic(e,t,n,r){return wc(e,t,MY(n),r)}const gw=(e,t)=>Math.abs(e-t);function FY(e,t){const n=gw(e.x,t.x),r=gw(e.y,t.y);return Math.sqrt(n**2+r**2)}class l7{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Bg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=FY(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=kg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Bg(h.type==="pointercancel"?this.lastMoveEventInfo:kg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!b0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Zc(t),u=kg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Bg(u,this.history)),this.removeListeners=Yc(ic(this.contextWindow,"pointermove",this.handlePointerMove),ic(this.contextWindow,"pointerup",this.handlePointerUp),ic(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Co(this.updatePoint)}}function kg(e,t){return t?{point:t(e.point)}:e}function yw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bg({point:e},t){return{point:e,delta:yw(e,c7(t)),offset:yw(e,kY(t)),velocity:BY(t,.1)}}function kY(e){return e[0]}function c7(e){return e[e.length-1]}function BY(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=c7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Hi(t)));)n--;if(!r)return{x:0,y:0};const o=xo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const d7=1e-4,IY=1-d7,LY=1+d7,f7=.01,VY=0-f7,NY=0+f7;function kr(e){return e.max-e.min}function jY(e,t,n){return Math.abs(e-t)<=n}function vw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=kr(n)/kr(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=IY&&e.scale<=LY||isNaN(e.scale))&&(e.scale=1),(e.translate>=VY&&e.translate<=NY||isNaN(e.translate))&&(e.translate=0)}function oc(e,t,n,r){vw(e.x,t.x,n.x,r?r.originX:void 0),vw(e.y,t.y,n.y,r?r.originY:void 0)}function bw(e,t,n){e.min=n.min+t.min,e.max=e.min+kr(t)}function KY(e,t,n){bw(e.x,t.x,n.x),bw(e.y,t.y,n.y)}function $w(e,t,n){e.min=t.min-n.min,e.max=e.min+kr(t)}function ac(e,t,n){$w(e.x,t.x,n.x),$w(e.y,t.y,n.y)}function UY(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function xw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function zY(e,{top:t,left:n,bottom:r,right:i}){return{x:xw(e.x,n,i),y:xw(e.y,t,r)}}function ww(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function WY(e,t){return{x:ww(e.x,t.x),y:ww(e.y,t.y)}}function HY(e,t){let n=.5;const r=kr(e),i=kr(t);return i>r?n=_u(t.min,t.max-r,e.min):r>i&&(n=_u(e.min,e.max-i,t.min)),So(0,1,n)}function GY(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bv=.35;function qY(e=bv){return e===!1?e=0:e===!0&&(e=bv),{x:Dw(e,"left","right"),y:Dw(e,"top","bottom")}}function Dw(e,t,n){return{min:Ew(e,t),max:Ew(e,n)}}function Ew(e,t){return typeof e=="number"?e:e[t]||0}const Cw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ou=()=>({x:Cw(),y:Cw()}),Sw=()=>({min:0,max:0}),cn=()=>({x:Sw(),y:Sw()});function Qr(e){return[e("x"),e("y")]}function h7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function YY({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZY(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ig(e){return e===void 0||e===1}function $v({scale:e,scaleX:t,scaleY:n}){return!Ig(e)||!Ig(t)||!Ig(n)}function Ba(e){return $v(e)||p7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function p7(e){return Tw(e.x)||Tw(e.y)}function Tw(e){return e&&e!=="0%"}function Eh(e,t,n){const r=e-n,i=t*r;return n+i}function Aw(e,t,n,r,i){return i!==void 0&&(e=Eh(e,i,r)),Eh(e,n,r)+t}function xv(e,t=0,n=1,r,i){e.min=Aw(e.min,t,n,r,i),e.max=Aw(e.max,t,n,r,i)}function m7(e,{x:t,y:n}){xv(e.x,t.translate,t.scale,t.originPoint),xv(e.y,n.translate,n.scale,n.originPoint)}const Pw=.999999999999,_w=1.0000000000001;function JY(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&su(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,m7(e,a)),r&&Ba(o.latestValues)&&su(e,o.latestValues))}t.x<_w&&t.x>Pw&&(t.x=1),t.y<_w&&t.y>Pw&&(t.y=1)}function au(e,t){e.min=e.min+t,e.max=e.max+t}function Rw(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);xv(e,t,n,o,r)}function su(e,t){Rw(e.x,t.x,t.scaleX,t.scale,t.originX),Rw(e.y,t.y,t.scaleY,t.scale,t.originY)}function g7(e,t){return h7(ZY(e.getBoundingClientRect(),t))}function XY(e,t,n){const r=g7(e,n),{scroll:i}=t;return i&&(au(r.x,i.offset.x),au(r.y,i.offset.y)),r}const y7=({current:e})=>e?e.ownerDocument.defaultView:null,QY=new WeakMap;class eZ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=HG(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(Gi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=kr(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),dv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=tZ(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new l7(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:y7(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!pf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=UY(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ru(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=zY(i.layoutBox,n):this.constraints=!1,this.elastic=qY(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=GY(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ru(t))return!1;const r=t.current;Zi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=XY(r,i.root,this.visualElement.getTransformPagePoint());let a=WY(i.layout.layoutBox,o);if(n){const u=n(YY(a));this.hasMutatedConstraints=!!u,u&&(a=h7(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!pf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dv(this.visualElement,t),r.start(R0(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qr(n=>{const{drag:r}=this.getProps();if(!pf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ru(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=HY({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!pf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;QY.set(this.visualElement,this);const t=this.visualElement.current,n=ic(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ru(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=wc(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=bv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function pf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tZ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nZ extends ya{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new eZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ow=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class rZ extends ya{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new l7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:y7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ow(t),onStart:Ow(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=ic(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const If={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=Mw(e,t.target.x),r=Mw(e,t.target.y);return`${n}% ${r}%`}},iZ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fa.parse(e);if(i.length>5)return r;const o=fa.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class oZ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;CG(aZ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),If.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),a0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function v7(e){const[t,n]=jH(),r=b.useContext(e6);return Do.jsx(oZ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(s6),isPresent:t,safeToRemove:n})}const aZ={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:iZ};function sZ(e,t,n){const r=In(e)?e:Ou(e);return r.start(R0("",r,t,n)),r.animation}function uZ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const lZ=(e,t)=>e.depth-t.depth;class cZ{constructor(){this.children=[],this.isDirty=!1}add(t){$0(this.children,t),this.isDirty=!0}remove(t){x0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lZ),this.isDirty=!1,this.children.forEach(t)}}function dZ(e,t){const n=qi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Co(r),e(o-t))};return jt.read(r,!0),()=>Co(r)}const b7=["TopLeft","TopRight","BottomLeft","BottomRight"],fZ=b7.length,Fw=e=>typeof e=="string"?parseFloat(e):e,kw=e=>typeof e=="number"||Ge.test(e);function hZ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,pZ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,mZ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<fZ;a++){const u=`border${b7[a]}Radius`;let c=Bw(t,u),d=Bw(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||kw(c)===kw(d)?(e[u]=Math.max(qt(Fw(c),Fw(d),r),0),(Gi.test(d)||Gi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function Bw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pZ=$7(0,.5,I6),mZ=$7(.5,.95,Er);function $7(e,t,n){return r=>r<e?0:r>t?1:n(_u(e,t,r))}function Iw(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){Iw(e.x,t.x),Iw(e.y,t.y)}function Lw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vw(e,t,n,r,i){return e-=t,e=Eh(e,1/n,r),i!==void 0&&(e=Eh(e,1/i,r)),e}function gZ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Gi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=Vw(e.min,t,n,u,i),e.max=Vw(e.max,t,n,u,i)}function Nw(e,t,[n,r,i],o,a){gZ(e,t[n],t[r],t[i],t.scale,o,a)}const yZ=["x","scaleX","originX"],vZ=["y","scaleY","originY"];function jw(e,t,n,r){Nw(e.x,t,yZ,n?n.x:void 0,r?r.x:void 0),Nw(e.y,t,vZ,n?n.y:void 0,r?r.y:void 0)}function Kw(e){return e.translate===0&&e.scale===1}function x7(e){return Kw(e.x)&&Kw(e.y)}function Uw(e,t){return e.min===t.min&&e.max===t.max}function bZ(e,t){return Uw(e.x,t.x)&&Uw(e.y,t.y)}function zw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function w7(e,t){return zw(e.x,t.x)&&zw(e.y,t.y)}function Ww(e){return kr(e.x)/kr(e.y)}function Hw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $Z{constructor(){this.members=[]}add(t){$0(this.members,t),t.scheduleRender()}remove(t){if(x0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function xZ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const Ia={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Gl=typeof window<"u"&&window.MotionDebug!==void 0,Lg=["","X","Y","Z"],wZ={visibility:"hidden"},Gw=1e3;let DZ=0;function Vg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function D7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&D7(r)}function E7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=DZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Gl&&(Ia.totalNodes=Ia.resolvedTargetDeltas=Ia.recalculatedProjection=0),this.nodes.forEach(SZ),this.nodes.forEach(RZ),this.nodes.forEach(OZ),this.nodes.forEach(TZ),Gl&&window.MotionDebug.record(Ia)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new cZ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new w0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=uZ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=dZ(m,250),If.hasAnimatedSinceResize&&(If.hasAnimatedSinceResize=!1,this.nodes.forEach(Yw))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||IZ,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!w7(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...g0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||Yw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Co(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(MZ),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&D7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qw);return}this.isUpdating||this.nodes.forEach(PZ),this.isUpdating=!1,this.nodes.forEach(_Z),this.nodes.forEach(EZ),this.nodes.forEach(CZ),this.clearAllSnapshots();const u=qi.now();Bn.delta=So(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,_g.update.process(Bn),_g.preRender.process(Bn),_g.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,a0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AZ),this.sharedNodes.forEach(FZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!x7(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ba(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),LZ(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(VZ))){const{scroll:f}=this.root;f&&(au(c.x,f.offset.x),au(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),au(c.x,h.offset.x),au(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&su(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ba(f.latestValues)&&su(c,f.latestValues)}return Ba(this.latestValues)&&su(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ba(d.latestValues))continue;$v(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),jw(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ba(this.latestValues)&&jw(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),ac(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),KY(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),m7(this.target,this.targetDelta)):Jr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),ac(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Gl&&Ia.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$v(this.parent.latestValues)||p7(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;JY(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lw(this.prevProjectionDelta.x,this.projectionDelta.x),Lw(this.prevProjectionDelta.y,this.projectionDelta.y)),oc(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!Hw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Gl&&Ia.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ou(),this.projectionDelta=ou(),this.projectionDeltaWithTransform=ou()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=ou();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(BZ));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;Zw(h.x,a.x,E),Zw(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kZ(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&bZ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,hZ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{If.hasAnimatedSinceResize=!0,this.currentAnimation=sZ(0,Gw,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&C7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=kr(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=kr(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),su(u,f),oc(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new $Z),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Vg("z",a,d,this.animationValues);for(let f=0;f<Lg.length;f++)Vg(`rotate${Lg[f]}`,a,d,this.animationValues),Vg(`skew${Lg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wZ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=kf(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=kf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ba(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=xZ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in bh){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=bh[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?kf(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(qw),this.root.sharedNodes.clear()}}}function EZ(e){e.updateLayout()}function CZ(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(m);m.min=r[h].min,m.max=m.min+g}):C7(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=ou();oc(u,r,n.layoutBox);const c=ou();a?oc(c,e.applyTransform(i,!0),n.measuredBox):oc(c,r,n.layoutBox);const d=!x7(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();ac(v,n.layoutBox,m.layoutBox);const $=cn();ac($,r,g.layoutBox),w7(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function SZ(e){Gl&&Ia.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function TZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AZ(e){e.clearSnapshot()}function qw(e){e.clearMeasurements()}function PZ(e){e.isLayoutDirty=!1}function _Z(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function RZ(e){e.resolveTargetDelta()}function OZ(e){e.calcProjection()}function MZ(e){e.resetSkewAndRotation()}function FZ(e){e.removeLeadSnapshot()}function Zw(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jw(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function kZ(e,t,n,r){Jw(e.x,t.x,n.x,r),Jw(e.y,t.y,n.y,r)}function BZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const IZ={duration:.45,ease:[.4,0,.1,1]},Xw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Qw=Xw("applewebkit/")&&!Xw("chrome/")?Math.round:Er;function eD(e){e.min=Qw(e.min),e.max=Qw(e.max)}function LZ(e){eD(e.x),eD(e.y)}function C7(e,t,n){return e==="position"||e==="preserve-aspect"&&!jY(Ww(t),Ww(n),.2)}function VZ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const NZ=E7({attachResizeListener:(e,t)=>wc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ng={current:void 0},S7=E7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ng.current){const e=new NZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Ng.current=e}return Ng.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),jZ={pan:{Feature:rZ},drag:{Feature:nZ,ProjectionNode:S7,MeasureLayout:v7}};function tD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Zc(t)))}let KZ=class extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=jG(t,n=>(tD(this.node,n,"Start"),r=>tD(this.node,r,"End"))))}unmount(){}},UZ=class extends ya{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Yc(wc(this.node.current,"focus",()=>this.onFocus()),wc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function nD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Zc(t)))}let zZ=class extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=WG(t,n=>(nD(this.node,n,"Start"),(r,{success:i})=>nD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const wv=new WeakMap,jg=new WeakMap,WZ=e=>{const t=wv.get(e.target);t&&t(e)},HZ=e=>{e.forEach(WZ)};function GZ({root:e,...t}){const n=e||document;jg.has(n)||jg.set(n,{});const r=jg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(HZ,{root:e,...t})),r[i]}function qZ(e,t,n){const r=GZ(t);return wv.set(e,n),r.observe(e),()=>{wv.delete(e),r.unobserve(e)}}const YZ={some:0,all:1};let ZZ=class extends ya{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:YZ[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return qZ(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(JZ(t,n))&&this.startObserver()}unmount(){}};function JZ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const XZ={inView:{Feature:ZZ},tap:{Feature:zZ},focus:{Feature:UZ},hover:{Feature:KZ}},QZ={layout:{ProjectionNode:S7,MeasureLayout:v7}},Dv={current:null},T7={current:!1};function eJ(){if(T7.current=!0,!!t0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dv.current=e.matches;e.addListener(t),t()}else Dv.current=!1}const tJ=[...J6,qn,fa],nJ=e=>tJ.find(Z6(e)),rD=new WeakMap;function rJ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&pp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,Ou(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Ou(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const iD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let iJ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=qi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=yp(n),this.isVariantNode=o6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,rD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),T7.current||eJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dv.current,process.env.NODE_ENV!=="production"&&pp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){rD.delete(this.current),this.projection&&this.projection.unmount(),Co(this.notifyUpdate),Co(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=gs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ru){const n=Ru[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<iD.length;r++){const i=iD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=rJ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ou(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(q6(i)||V6(i))?i=parseFloat(i):!nJ(i)&&fa.test(n)&&(i=W6(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=u0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new w0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},A7=class extends iJ{constructor(){super(...arguments),this.KeyframeResolver=X6}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function oJ(e){return window.getComputedStyle(e)}let aJ=class extends A7{constructor(){super(...arguments),this.type="html",this.renderInstance=p6}readValueFromInstance(t,n){if(gs.has(n)){const r=T0(n);return r&&r.default||0}else{const r=oJ(t),i=(d6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return g7(t,n)}build(t,n,r){d0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return m0(t,n,r)}},sJ=class extends A7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gs.has(n)){const r=T0(n);return r&&r.default||0}return n=m6.has(n)?n:o0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v6(t,n,r)}build(t,n,r){f0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){g6(t,n,r,i)}mount(t){this.isSVGTag=p0(t.tagName),super.mount(t)}};const uJ=(e,t)=>s0(e)?new sJ(t):new aJ(t,{allowProjection:e!==b.Fragment}),lJ=FG({...OY,...XZ,...jZ,...QZ},uJ),P7=YH(lJ);function _7(e){const t=Hc(()=>Ou(e)),{isStatic:n}=b.useContext(e0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function R7(e,t){const n=_7(t()),r=()=>n.set(t());return r(),t6(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Co(r)}}),n}const cJ=e=>e&&typeof e=="object"&&e.mix,dJ=e=>cJ(e)?e.mix:void 0;function fJ(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=o7(i,o,{mixer:dJ(o[0]),...a});return t?u(r):u}function hJ(e){nc.current=[],e();const t=R7(nc.current,e);return nc.current=void 0,t}function pJ(e,t,n,r){if(typeof e=="function")return hJ(e);const i=typeof t=="function"?t:fJ(t,n,r);return Array.isArray(e)?oD(e,i):oD([e],([o])=>i(o))}function oD(e,t){const n=Hc(()=>[]);return R7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const O7=b.createContext(null);function mJ(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?qG(e,i,i+o):e}function gJ({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=Hc(()=>P7[t]),c=[],d=b.useRef(!1);Zi(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(bJ)},updateOrder:(h,m,g)=>{if(d.current)return;const v=mJ(c,h,m,g);c!==v&&(d.current=!0,r(v.map(vJ).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),Do.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Do.jsx(O7.Provider,{value:f,children:e})})}const yJ=b.forwardRef(gJ);function vJ(e){return e.value}function bJ(e,t){return e.layout.min-t.layout.min}function aD(e,t=0){return In(e)?e:_7(t)}function $J({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=Hc(()=>P7[r]),d=b.useContext(O7),f={x:aD(t.x),y:aD(t.y)},h=pJ([f.x,f.y],([$,C])=>$||C?1:"unset");Zi(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return Do.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const xJ=b.forwardRef($J),sD=new Set;function $p(e,t,n){e||sD.has(t)||(console.warn(t),sD.add(t))}function wJ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&$p(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function xp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ev=e=>Array.isArray(e);function M7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Dc(e){return typeof e=="string"||Array.isArray(e)}function uD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function O0(e,t,n,r){if(typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function wp(e,t,n){const r=e.getProps();return O0(r,t,n!==void 0?n:r.custom,e)}const M0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],F0=["initial",...M0],Jc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Jc),wo=e=>e*1e3,ua=e=>e/1e3,DJ={type:"spring",stiffness:500,damping:25,restSpeed:10},EJ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),CJ={type:"keyframes",duration:.8},SJ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TJ=(e,{keyframes:t})=>t.length>2?CJ:ys.has(e)?e.startsWith("scale")?EJ(t[1]):DJ:SJ;function F7(e,t){return e?e[t]||e.default||e:void 0}const AJ={skipAnimations:!1,useManualTiming:!1},PJ=e=>e!==null;function Dp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(PJ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const ha=e=>e;let qu=ha,cs=ha;process.env.NODE_ENV!=="production"&&(qu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},cs=(e,t)=>{if(!e)throw new Error(t)});function _J(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const mf=["read","resolveKeyframes","update","preRender","render","postRender"],RJ=40;function k7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=mf.reduce((x,y)=>(x[y]=_J(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,RJ),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:mf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<mf.length;y++)a[mf[y]].cancel(x)},state:i,steps:a}}const{schedule:Br,cancel:Cv,state:Ch,steps:die}=k7(typeof requestAnimationFrame<"u"?requestAnimationFrame:ha,!0),B7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,OJ=1e-7,MJ=12;function FJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=B7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>OJ&&++u<MJ);return a}function Xc(e,t,n,r){if(e===t&&n===r)return ha;const i=o=>FJ(o,0,1,e,n);return o=>o===0||o===1?o:B7(i(o),t,r)}const I7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,L7=e=>t=>1-e(1-t),V7=Xc(.33,1.53,.69,.99),k0=L7(V7),N7=I7(k0),j7=e=>(e*=2)<1?.5*k0(e):.5*(2-Math.pow(2,-10*(e-1))),B0=e=>1-Math.sin(Math.acos(e)),kJ=L7(B0),K7=I7(B0),U7=e=>/^0[^.\s]+$/u.test(e);function BJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||U7(e):!0}const z7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),W7=e=>t=>typeof t=="string"&&t.startsWith(e),H7=W7("--"),IJ=W7("var(--"),I0=e=>IJ(e)?LJ.test(e.split("/*")[0].trim()):!1,LJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,VJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NJ(e){const t=VJ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const jJ=4;function G7(e,t,n=1){cs(n<=jJ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=NJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return z7(a)?parseFloat(a):a}return I0(i)?G7(i,t,n+1):i}const ds=(e,t,n)=>n>t?t:n<e?e:n,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ec={...Yu,transform:e=>ds(0,1,e)},gf={...Yu,default:1},Qc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Qc("deg"),gu=Qc("%"),Ze=Qc("px"),KJ=Qc("vh"),UJ=Qc("vw"),lD={...gu,parse:e=>gu.parse(e)/100,transform:e=>gu.transform(e*100)},zJ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cD=e=>e===Yu||e===Ze,dD=(e,t)=>parseFloat(e.split(", ")[t]),fD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return dD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?dD(o[1],e):0}},WJ=new Set(["x","y","z"]),HJ=Jc.filter(e=>!WJ.has(e));function GJ(e){const t=[];return HJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:fD(4,13),y:fD(5,14)};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const q7=e=>t=>t.test(e),qJ={test:e=>e==="auto",parse:e=>e},Y7=[Yu,Ze,gu,Zo,UJ,KJ,qJ],hD=e=>Y7.find(q7(e)),Qa=new Set;let Sv=!1,Tv=!1;function Z7(){if(Tv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=GJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tv=!1,Sv=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function J7(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tv=!0)})}function YJ(){J7(),Z7()}class L0{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),Sv||(Sv=!0,Br.read(J7),Br.resolveKeyframes(Z7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sc=e=>Math.round(e*1e5)/1e5,V0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ZJ(e){return e==null}const JJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,N0=(e,t)=>n=>!!(typeof n=="string"&&JJ.test(n)&&n.startsWith(e)||t&&!ZJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),X7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(V0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},XJ=e=>ds(0,255,e),Kg={...Yu,transform:e=>Math.round(XJ(e))},Ga={test:N0("rgb","red"),parse:X7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kg.transform(e)+", "+Kg.transform(t)+", "+Kg.transform(n)+", "+sc(Ec.transform(r))+")"};function QJ(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Av={test:N0("#"),parse:QJ,transform:Ga.transform},uu={test:N0("hsl","hue"),parse:X7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gu.transform(sc(t))+", "+gu.transform(sc(n))+", "+sc(Ec.transform(r))+")"},Yn={test:e=>Ga.test(e)||Av.test(e)||uu.test(e),parse:e=>Ga.test(e)?Ga.parse(e):uu.test(e)?uu.parse(e):Av.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):uu.transform(e)},eX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tX(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(V0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(eX))===null||n===void 0?void 0:n.length)||0)>0}const Q7="number",e_="color",nX="var",rX="var(",pD="${}",iX=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Cc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(iX,c=>(Yn.test(c)?(r.color.push(o),i.push(e_),n.push(Yn.parse(c))):c.startsWith(rX)?(r.var.push(o),i.push(nX),n.push(c)):(r.number.push(o),i.push(Q7),n.push(parseFloat(c))),++o,pD)).split(pD);return{values:n,split:u,indexes:r,types:i}}function t_(e){return Cc(e).values}function n_(e){const{split:t,types:n}=Cc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===Q7?o+=sc(i[a]):u===e_?o+=Yn.transform(i[a]):o+=i[a]}return o}}const oX=e=>typeof e=="number"?0:e;function aX(e){const t=t_(e);return n_(e)(t.map(oX))}const Zu={test:tX,parse:t_,createTransformer:n_,getAnimatableNone:aX},sX=new Set(["brightness","contrast","saturate","opacity"]);function uX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(V0)||[];if(!r)return e;const i=n.replace(r,"");let o=sX.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const lX=/\b([a-z-]*)\(.*?\)/gu,Pv={...Zu,getAnimatableNone:e=>{const t=e.match(lX);return t?t.map(uX).join(" "):e}},cX={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},dX={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:gf,scaleX:gf,scaleY:gf,scaleZ:gf,skew:Zo,skewX:Zo,skewY:Zo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:Ec,originX:lD,originY:lD,originZ:Ze},mD={...Yu,transform:Math.round},j0={...cX,...dX,zIndex:mD,size:Ze,fillOpacity:Ec,strokeOpacity:Ec,numOctaves:mD},fX={...j0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Pv,WebkitFilter:Pv},K0=e=>fX[e];function r_(e,t){let n=K0(e);return n!==Pv&&(n=Zu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hX=new Set(["auto","none","0"]);function pX(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!hX.has(o)&&Cc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=r_(n,i)}class i_ extends L0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),I0(d))){const f=G7(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!zJ.has(r)||t.length!==2)return;const[i,o]=t,a=hD(i),u=hD(o);if(a!==u)if(cD(a)&&cD(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)BJ(t[i])&&r.push(i);r.length&&pX(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Fu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function U0(e){return typeof e=="function"}let Lf;function mX(){Lf=void 0}const la={now:()=>(Lf===void 0&&la.set(Ch.isProcessing||AJ.useManualTiming?Ch.timestamp:performance.now()),Lf),set:e=>{Lf=e,queueMicrotask(mX)}},gD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zu.test(e)||e==="0")&&!e.startsWith("url("));function gX(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function yX(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=gD(i,t),u=gD(o,t);return qu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:gX(e)||(n==="spring"||U0(n))&&r}const vX=40;class o_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=la.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>vX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&YJ(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=la.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!yX(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Dp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const z0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},a_=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(z0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function s_(e,t){return t?e*(1e3/t):0}const bX=5;function u_(e,t,n){const r=Math.max(t-bX,0);return s_(n-e(r),t-r)}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yD=.001;function $X({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;qu(e<=wo(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ds(Xt.minDamping,Xt.maxDamping,a),e=ds(Xt.minDuration,Xt.maxDuration,ua(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=_v(d,a),v=Math.exp(-h);return yD-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=_v(Math.pow(d,2),a);return(-i(d)+yD>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=wX(i,o,u);if(e=wo(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const xX=12;function wX(e,t,n){let r=n;for(let i=1;i<xX;i++)r=r-e(r)/t(r);return r}function _v(e,t){return e*Math.sqrt(1-t*t)}const Rv=2e4;function l_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rv;)t+=n,r=e.next(t);return t>=Rv?1/0:t}const DX=["duration","bounce"],EX=["stiffness","damping","mass"];function vD(e,t){return t.some(n=>e[n]!==void 0)}function CX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!vD(e,EX)&&vD(e,DX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ds(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=$X(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function c_(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=CX({...n,velocity:-ua(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=ua(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=_v(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?wo(v):u_(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(l_(P),Rv),T=a_(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function bD({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=c_({keyframes:[m.value,v(m.value)],velocity:u_(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const SX=Xc(.42,0,1,1),TX=Xc(0,0,.58,1),d_=Xc(.42,0,.58,1),AX=e=>Array.isArray(e)&&typeof e[0]!="number",W0=e=>Array.isArray(e)&&typeof e[0]=="number",$D={linear:ha,easeIn:SX,easeInOut:d_,easeOut:TX,circIn:B0,circInOut:K7,circOut:kJ,backIn:k0,backInOut:N7,backOut:V7,anticipate:j7},xD=e=>{if(W0(e)){cs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Xc(t,n,r,i)}else if(typeof e=="string")return cs($D[e]!==void 0,`Invalid easing type '${e}'`),$D[e];return e},PX=(e,t)=>n=>t(e(n)),Ep=(...e)=>e.reduce(PX),Cp=(e,t,n)=>e+(t-e)*n;function Ug(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _X({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Ug(c,u,e+1/3),o=Ug(c,u,e),a=Ug(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Sh(e,t){return n=>n>0?t:e}const zg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},RX=[Av,Ga,uu],OX=e=>RX.find(t=>t.test(e));function wD(e){const t=OX(e);if(qu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===uu&&(n=_X(n)),n}const DD=(e,t)=>{const n=wD(e),r=wD(t);if(!n||!r)return Sh(e,t);const i={...n};return o=>(i.red=zg(n.red,r.red,o),i.green=zg(n.green,r.green,o),i.blue=zg(n.blue,r.blue,o),i.alpha=Cp(n.alpha,r.alpha,o),Ga.transform(i))},Ov=new Set(["none","hidden"]);function MX(e,t){return Ov.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FX(e,t){return n=>Cp(e,t,n)}function H0(e){return typeof e=="number"?FX:typeof e=="string"?I0(e)?Sh:Yn.test(e)?DD:IX:Array.isArray(e)?f_:typeof e=="object"?Yn.test(e)?DD:kX:Sh}function f_(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>H0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function kX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=H0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function BX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const IX=(e,t)=>{const n=Zu.createTransformer(t),r=Cc(e),i=Cc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ov.has(e)&&!i.values.length||Ov.has(t)&&!r.values.length?MX(e,t):Ep(f_(BX(r,i),i.values),n):(qu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Sh(e,t))};function h_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Cp(e,t,n):H0(e)(e,t)}function LX(e,t,n){const r=[],i=n||h_,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||ha:t;u=Ep(c,u)}r.push(u)}return r}function VX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(cs(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=LX(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=z0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(ds(e[0],e[o-1],d)):c}function NX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=z0(0,t,r);e.push(Cp(n,1,i))}}function jX(e){const t=[0];return NX(t,e.length-1),t}function KX(e,t){return e.map(n=>n*t)}function UX(e,t){return e.map(()=>t||d_).splice(0,e.length-1)}function Th({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=AX(r)?r.map(xD):xD(r),o={done:!1,value:t[0]},a=KX(n&&n.length===t.length?n:jX(t),e),u=VX(a,t,{ease:Array.isArray(i)?i:UX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const zX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Br.update(t,!0),stop:()=>Cv(t),now:()=>Ch.isProcessing?Ch.timestamp:la.now()}},WX={decay:bD,inertia:bD,tween:Th,keyframes:Th,spring:c_},HX=e=>e/100;class G0 extends o_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||L0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=U0(n)?n:WX[n]||Th;let c,d;u!==Th&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&cs(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Ep(HX,h_(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=l_(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=ds(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Dp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?ua(t.calculatedDuration):0}get time(){return ua(this.currentTime)}set time(t){t=wo(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=zX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const GX=new Set(["opacity","clipPath","filter","transform"]);function q0(e){let t;return()=>(t===void 0&&(t=e()),t)}const qX={linearEasing:void 0};function YX(e,t){const n=q0(e);return()=>{var r;return(r=qX[t])!==null&&r!==void 0?r:n()}}const Ah=YX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function p_(e){return!!(typeof e=="function"&&Ah()||!e||typeof e=="string"&&(e in Mv||Ah())||W0(e)||Array.isArray(e)&&e.every(p_))}const ql=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ql([0,.65,.55,1]),circOut:ql([.55,0,1,.45]),backIn:ql([.31,.01,.66,-.59]),backOut:ql([.33,1.53,.69,.99])};function m_(e,t){if(e)return typeof e=="function"&&Ah()?a_(e,t):W0(e)?ql(e):Array.isArray(e)?e.map(n=>m_(n,t)||Mv.easeOut):Mv[e]}function ZX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=m_(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function ED(e,t){e.timeline=t,e.onfinish=null}const JX=q0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ph=10,XX=2e4;function QX(e){return U0(e.type)||e.type==="spring"||!p_(e.ease)}function eQ(e,t){const n=new G0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<XX;)r=n.sample(o),i.push(r.value),o+=Ph;return{times:void 0,keyframes:i,duration:o-Ph,ease:"linear"}}const g_={anticipate:j7,backInOut:N7,circInOut:K7};function tQ(e){return e in g_}class CD extends o_{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new i_(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Ah()&&tQ(a)&&(a=g_[a]),QX(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=eQ(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=ZX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(ED(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Dp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ua(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ua(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wo(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ha;const{animation:r}=n;ED(r,t)}return ha}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new G0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=wo(this.time);d.setWithVelocity(v.sample($-Ph).value,v.sample($).value,Ph)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return JX()&&r&&GX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const nQ=q0(()=>window.ScrollTimeline!==void 0);class rQ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>nQ()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function iQ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const oQ=(e,t,n,r={},i,o)=>a=>{const u=F7(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-wo(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};iQ(u)||(f={...f,...TJ(e,f)}),f.duration&&(f.duration=wo(f.duration)),f.repeatDelay&&(f.repeatDelay=wo(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Dp(f.keyframes,u);if(m!==void 0)return Br.update(()=>{f.onUpdate(m),f.onComplete()}),new rQ([])}return!o&&CD.supports(f)?new CD(f):new G0(f)},aQ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),sQ=e=>Ev(e)?e[e.length-1]||0:e;function uQ(e,t){e.indexOf(t)===-1&&e.push(t)}function lQ(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class y_{constructor(){this.subscriptions=[]}add(t){return uQ(this.subscriptions,t),()=>lQ(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const SD=30,cQ=e=>!isNaN(parseFloat(e));class dQ{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=la.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=la.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$p(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new y_);const r=this.events[t].add(n);return t==="change"?()=>{r(),Br.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=la.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>SD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,SD);return s_(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _h(e,t){return new dQ(e,t)}function fQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_h(n))}function hQ(e,t){const n=wp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=sQ(o[a]);fQ(e,a,u)}}const Y0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pQ="framerAppearId",v_="data-"+Y0(pQ);function mQ(e){return e.props[v_]}const ur=e=>!!(e&&e.getVelocity);function gQ(e){return!!(ur(e)&&e.add)}function yQ(e,t){const n=e.getValue("willChange");if(gQ(n))return n.add(t)}function vQ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function b_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&vQ(f,h))continue;const v={delay:n,...F7(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=mQ(e);if(x){const y=window.MotionHandoffAnimation(x,h,Br);y!==null&&(v.startTime=y,$=!0)}}yQ(e,h),m.start(oQ(h,m,g,e.shouldReduceMotion&&ys.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Br.update(()=>{u&&hQ(e,u)})}),d}function Fv(e,t,n={}){var r;const i=wp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(b_(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return bQ(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function bQ(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort($Q).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Fv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function $Q(e,t){return e.sortNodePosition(t)}function xQ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Fv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Fv(e,t,n);else{const i=typeof t=="function"?wp(e,t,n.custom):t;r=Promise.all(b_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const wQ=F0.length;function $_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?$_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<wQ;n++){const r=F0[n],i=e.props[r];(Dc(i)||i===!1)&&(t[r]=i)}return t}const DQ=[...M0].reverse(),EQ=M0.length;function CQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xQ(e,n,r)))}function SQ(e){let t=CQ(e),n=TD(),r=!0;const i=c=>(d,f)=>{var h;const m=wp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=$_(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<EQ;C++){const x=DQ[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=Dc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||xp(D)||typeof D=="boolean")continue;const k=TQ(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;Ev(M)&&Ev(Y)?V=!M7(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=TD(),r=!0}}}function TQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!M7(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TD(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}class Ju{constructor(t){this.isMounted=!1,this.node=t}update(){}}class AQ extends Ju{constructor(t){super(t),t.animationState||(t.animationState=SQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let PQ=0;class _Q extends Ju{constructor(){super(...arguments),this.id=PQ++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const RQ={animation:{Feature:AQ},exit:{Feature:_Q}},OQ={x:!1,y:!1};function MQ(){return OQ.y}const FQ=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function x_(e){return{point:{x:e.pageX,y:e.pageY}}}function AD(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function w_(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const PD=()=>({min:0,max:0}),D_=()=>({x:PD(),y:PD()});function kQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BQ(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function IQ(e,t){return kQ(BQ(e.getBoundingClientRect(),t))}const E_=b.createContext(null),LQ=b.createContext({}),VQ=b.createContext({}),NQ={},{schedule:jQ,cancel:fie}=k7(queueMicrotask,!1);function KQ(e){const t=ur(e)?e.get():e;return aQ(t)?t.toValue():t}function UQ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function C_(e,t){const n=UQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _D(e){return t=>{t.pointerType==="touch"||MQ()||e(t)}}function zQ(e,t,n={}){const[r,i,o]=C_(e,n),a=_D(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=_D(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function RD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Br.postRender(()=>o(t,x_(t)))}class WQ extends Ju{mount(){const{current:t}=this.node;t&&(this.unmount=zQ(t,n=>(RD(this.node,n,"Start"),r=>RD(this.node,r,"End"))))}unmount(){}}class HQ extends Ju{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ep(AD(this.node.current,"focus",()=>this.onFocus()),AD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Yl=new WeakSet;function OD(e){return t=>{t.key==="Enter"&&e(t)}}function Wg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const GQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=OD(()=>{if(Yl.has(n))return;Wg(n,"down");const i=OD(()=>{Wg(n,"up")}),o=()=>Wg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},qQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function YQ(e){return qQ.has(e.tagName)||e.tabIndex!==-1}const S_=(e,t)=>t?e===t?!0:S_(e,t.parentElement):!1;function MD(e){return FQ(e)&&!0}function ZQ(e,t,n={}){const[r,i,o]=C_(e,n),a=u=>{const c=u.currentTarget;if(!MD(u)||Yl.has(c))return;Yl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!MD(g)||!Yl.has(c))&&(Yl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||S_(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{YQ(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>GQ(d,i),i)}),o}function FD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Br.postRender(()=>o(t,x_(t)))}class JQ extends Ju{mount(){const{current:t}=this.node;t&&(this.unmount=ZQ(t,n=>(FD(this.node,n,"Start"),(r,{success:i})=>FD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const kv=new WeakMap,Hg=new WeakMap,XQ=e=>{const t=kv.get(e.target);t&&t(e)},QQ=e=>{e.forEach(XQ)};function eee({root:e,...t}){const n=e||document;Hg.has(n)||Hg.set(n,{});const r=Hg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(QQ,{root:e,...t})),r[i]}function tee(e,t,n){const r=eee(t);return kv.set(e,n),r.observe(e),()=>{kv.delete(e),r.unobserve(e)}}const nee={some:0,all:1};class ree extends Ju{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:nee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return tee(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iee(t,n))&&this.startObserver()}unmount(){}}function iee({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oee={inView:{Feature:ree},tap:{Feature:JQ},focus:{Feature:HQ},hover:{Feature:WQ}},T_=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Sp=b.createContext({}),Z0=typeof window<"u",aee=Z0?b.useLayoutEffect:b.useEffect,J0=b.createContext({strict:!1});function see(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Sp),c=b.useContext(J0),d=b.useContext(E_),f=b.useContext(T_).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(VQ);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&uee(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[v_],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return aee(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),jQ.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function uee(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:A_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&w_(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function A_(e){if(e)return e.options.allowProjection!==!1?e.projection:A_(e.parent)}function lee(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):w_(n)&&(n.current=r))},[t])}function Tp(e){return xp(e.animate)||F0.some(t=>Dc(e[t]))}function P_(e){return!!(Tp(e)||e.variants)}function cee(e,t){if(Tp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Dc(n)?n:void 0,animate:Dc(r)?r:void 0}}return e.inherit!==!1?t:{}}function dee(e){const{initial:t,animate:n}=cee(e,b.useContext(Sp));return b.useMemo(()=>({initial:t,animate:n}),[kD(t),kD(n)])}function kD(e){return Array.isArray(e)?e.join(" "):e}const BD={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ku={};for(const e in BD)ku[e]={isEnabled:t=>BD[e].some(n=>!!t[n])};function Bv(e){for(const t in e)ku[t]={...ku[t],...e[t]}}const fee=Symbol.for("motionComponentSymbol");function hee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Bv(e);function o(u,c){let d;const f={...b.useContext(T_),...u,layoutId:pee(u)},{isStatic:h}=f,m=dee(u),g=r(u,h);if(!h&&Z0){mee(f,e);const v=gee(f);d=v.MeasureLayout,m.visualElement=see(i,g,f,t,v.ProjectionNode)}return Do.jsxs(Sp.Provider,{value:m,children:[d&&m.visualElement?Do.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,lee(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[fee]=i,a}function pee({layoutId:e}){const t=b.useContext(LQ).id;return t&&e!==void 0?t+"-"+e:e}function mee(e,t){const n=b.useContext(J0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?qu(!1,r):cs(!1,r)}}function gee(e){const{drag:t,layout:n}=ku;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const yee=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function X0(e){return typeof e!="string"||e.includes("-")?!1:!!(yee.indexOf(e)>-1||/[A-Z]/u.test(e))}function __(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const R_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function O_(e,t,n,r){__(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(R_.has(i)?i:Y0(i),t.attrs[i])}function M_(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!NQ[e]||e==="opacity")}function Q0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||M_(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function F_(e,t,n){const r=Q0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Jc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function vee(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function bee({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:$ee(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const k_=e=>(t,n)=>{const r=b.useContext(Sp),i=b.useContext(E_),o=()=>bee(e,t,r,i);return n?o():vee(o)};function $ee(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=KQ(o[m]);let{initial:a,animate:u}=e;const c=Tp(e),d=P_(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!xp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=O0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const e1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),B_=()=>({...e1(),attrs:{}}),I_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,xee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wee=Jc.length;function Dee(e,t,n){let r="",i=!0;for(let o=0;o<wee;o++){const a=Jc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=I_(u,j0[a]);if(!c){i=!1;const f=xee[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function t1(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if(H7(c)){i[c]=d;continue}else{const f=I_(d,j0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=Dee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function ID(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function Eee(e,t,n){const r=ID(t,e.x,e.width),i=ID(n,e.y,e.height);return`${r} ${i}`}const Cee={offset:"stroke-dashoffset",array:"stroke-dasharray"},See={offset:"strokeDashoffset",array:"strokeDasharray"};function Tee(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Cee:See;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function n1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(t1(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Eee(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&Tee(m,a,u,c,!1)}const r1=e=>typeof e=="string"&&e.toLowerCase()==="svg",Aee={useVisualState:k_({scrapeMotionValuesFromProps:F_,createRenderState:B_,onMount:(e,t,{renderState:n,latestValues:r})=>{Br.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Br.render(()=>{n1(n,r,r1(t.tagName),e.transformTemplate),O_(t,n)})}})},Pee={useVisualState:k_({scrapeMotionValuesFromProps:Q0,createRenderState:e1})};function L_(e,t,n){for(const r in t)!ur(t[r])&&!M_(r,n)&&(e[r]=t[r])}function _ee({transformTemplate:e},t){return b.useMemo(()=>{const n=e1();return t1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ree(e,t){const n=e.style||{},r={};return L_(r,n,e),Object.assign(r,_ee(e,t)),r}function Oee(e,t){const n={},r=Ree(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Mee=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Rh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Mee.has(e)}let V_=e=>!Rh(e);function Fee(e){e&&(V_=t=>t.startsWith("on")?!Rh(t):e(t))}try{Fee(require("@emotion/is-prop-valid").default)}catch{}function kee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(V_(i)||n===!0&&Rh(i)||!t&&!Rh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Bee(e,t,n,r){const i=b.useMemo(()=>{const o=B_();return n1(o,t,r1(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};L_(o,e.style,e),i.style={...o,...i.style}}return i}function Iee(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(X0(n)?Bee:Oee)(r,o,a,n),d=kee(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function Lee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...X0(r)?Aee:Pee,preloadedFeatures:e,useRender:Iee(i),createVisualElement:t,Component:r};return hee(a)}}const Iv={current:null},N_={current:!1};function Vee(){if(N_.current=!0,!!Z0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}function Nee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&$p(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,_h(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,_h(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const LD=new WeakMap,jee=[...Y7,Yn,Zu],Kee=e=>jee.find(q7(e)),VD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Uee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=L0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=la.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Br.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Tp(n),this.isVariantNode=P_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,LD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),N_.current||Vee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&$p(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){LD.delete(this.current),this.projection&&this.projection.unmount(),Cv(this.notifyUpdate),Cv(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Br.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ku){const n=ku[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):D_()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<VD.length;r++){const i=VD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Nee(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_h(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(z7(i)||U7(i))?i=parseFloat(i):!Kee(i)&&Zu.test(n)&&(i=r_(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=O0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new y_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class j_ extends Uee{constructor(){super(...arguments),this.KeyframeResolver=i_}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function zee(e){return window.getComputedStyle(e)}class Wee extends j_{constructor(){super(...arguments),this.type="html",this.renderInstance=__}readValueFromInstance(t,n){if(ys.has(n)){const r=K0(n);return r&&r.default||0}else{const r=zee(t),i=(H7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return IQ(t,n)}build(t,n,r){t1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Q0(t,n,r)}}class Hee extends j_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=D_}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=K0(n);return r&&r.default||0}return n=R_.has(n)?n:Y0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return F_(t,n,r)}build(t,n,r){n1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){O_(t,n,r,i)}mount(t){this.isSVGTag=r1(t.tagName),super.mount(t)}}const Gee=(e,t)=>X0(e)?new Hee(t):new Wee(t,{allowProjection:e!==b.Fragment}),qee=Lee(),Yee=wJ(qee);function Zee({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!Gg(t)),i=b.useRef(void 0);if(!Gg(t)){const{renderer:o,...a}=t;i.current=o,Bv(a)}return b.useEffect(()=>{Gg(t)&&t().then(({renderer:o,...a})=>{Bv(a),i.current=o,r(!0)})},[]),Do.jsx(J0.Provider,{value:{renderer:i.current,strict:n},children:e})}function Gg(e){return typeof e=="function"}const Jee={renderer:Gee,...RQ,...oee};function K_(e){return t=>typeof t===e}var Xee=K_("function"),Qee=e=>e===null,ND=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",jD=e=>!ete(e)&&!Qee(e)&&(Xee(e)||typeof e=="object"),ete=K_("undefined");function tte(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function nte(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function rte(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!lr(n[1],t.get(n[0])))return!1;return!0}function ite(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function lr(e,t){if(e===t)return!0;if(e&&jD(e)&&t&&jD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return tte(e,t);if(e instanceof Map&&t instanceof Map)return rte(e,t);if(e instanceof Set&&t instanceof Set)return ite(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return nte(e,t);if(ND(e)&&ND(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ote=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ate=["bigint","boolean","null","number","string","symbol","undefined"];function Ap(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ste(t))return t}function Si(e){return t=>Ap(t)===e}function ste(e){return ote.includes(e)}function Xu(e){return t=>typeof t===e}function ute(e){return ate.includes(e)}var lte=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Ap(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Ap(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Xu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&&lte.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Xu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Xu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Ap(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||ute(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Xu("string");Oe.symbol=Xu("symbol");Oe.undefined=Xu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function cte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function dte(e,t,n){return U_(e,t)?[e,t].every(ke.array)?!e.some(HD(n))&&t.some(HD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(WD(n))&&Object.entries(t).some(WD(n)):t===n:!1}function KD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=Ki(e,i),c=Ki(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function UD(e,t,n){const{key:r,type:i,value:o}=n,a=Ki(e,r),u=Ki(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return dte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(i1(c)):[a,u].every(ke.plainObject)?fte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function zD(e,t,{key:n}={}){let r=Ki(e,n),i=Ki(t,n);if(!U_(r,i))throw new TypeError("Inputs have different types");if(!cte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function WD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&i1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function fte(e,t){return t.some(n=>!e.includes(n))}function HD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&i1(t)(n)):lr(e,t)}function Fl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function i1(e){return t=>e.some(n=>lr(n,t))}function U_(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ki(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Oh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return UD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?Fl(m,g):!Fl(h,g),y=Fl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(m);return Fl(h,g)&&($?Fl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=zD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=zD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return UD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,GD;function hte(){if(GD)return qg;GD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var pte=hte();const mte=To(pte);var Vf={exports:{}},gte=Vf.exports,qD;function yte(){return qD||(qD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(gte,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(Vf)),Vf.exports}var vte=yte();const z_=To(vte);var Yg,YD;function bte(){if(YD)return Yg;YD=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,Yg=n,Yg}var $te=bte();const ZD=To($te);var Zg,JD;function xte(){if(JD)return Zg;JD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Zg=C,Zg}var wte=xte();const bi=To(wte);var yf={exports:{}},vf={exports:{}},Et={};/** @license React v16.13.1
156
- * react-is.production.min.js
157
- *
158
- * Copyright (c) Facebook, Inc. and its affiliates.
159
- *
160
- * This source code is licensed under the MIT license found in the
161
- * LICENSE file in the root directory of this source tree.
162
- */var XD;function Dte(){if(XD)return Et;XD=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function D(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case c:case d:case r:case o:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case f:case v:case g:case a:return E;default:return T}}case n:return T}}}function P(E){return D(E)===d}return Et.AsyncMode=c,Et.ConcurrentMode=d,Et.ContextConsumer=u,Et.ContextProvider=a,Et.Element=t,Et.ForwardRef=f,Et.Fragment=r,Et.Lazy=v,Et.Memo=g,Et.Portal=n,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=h,Et.isAsyncMode=function(E){return P(E)||D(E)===c},Et.isConcurrentMode=P,Et.isContextConsumer=function(E){return D(E)===u},Et.isContextProvider=function(E){return D(E)===a},Et.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Et.isForwardRef=function(E){return D(E)===f},Et.isFragment=function(E){return D(E)===r},Et.isLazy=function(E){return D(E)===v},Et.isMemo=function(E){return D(E)===g},Et.isPortal=function(E){return D(E)===n},Et.isProfiler=function(E){return D(E)===o},Et.isStrictMode=function(E){return D(E)===i},Et.isSuspense=function(E){return D(E)===h},Et.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===i||E===h||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===g||E.$$typeof===a||E.$$typeof===u||E.$$typeof===f||E.$$typeof===C||E.$$typeof===x||E.$$typeof===y||E.$$typeof===$)},Et.typeOf=D,Et}var Ct={};/** @license React v16.13.1
163
- * react-is.development.js
164
- *
165
- * Copyright (c) Facebook, Inc. and its affiliates.
166
- *
167
- * This source code is licensed under the MIT license found in the
168
- * LICENSE file in the root directory of this source tree.
169
- */var QD;function Ete(){return QD||(QD=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function D(le){return typeof le=="string"||typeof le=="function"||le===r||le===d||le===o||le===i||le===h||le===m||typeof le=="object"&&le!==null&&(le.$$typeof===v||le.$$typeof===g||le.$$typeof===a||le.$$typeof===u||le.$$typeof===f||le.$$typeof===C||le.$$typeof===x||le.$$typeof===y||le.$$typeof===$)}function P(le){if(typeof le=="object"&&le!==null){var Fe=le.$$typeof;switch(Fe){case t:var et=le.type;switch(et){case c:case d:case r:case o:case i:case h:return et;default:var dt=et&&et.$$typeof;switch(dt){case u:case f:case v:case g:case a:return dt;default:return Fe}}case n:return Fe}}}var E=c,T=d,k=u,S=a,U=t,O=f,F=r,G=v,K=g,W=n,j=o,L=i,_=h,M=!1;function Y(le){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(le)||P(le)===c}function V(le){return P(le)===d}function z(le){return P(le)===u}function re(le){return P(le)===a}function oe(le){return typeof le=="object"&&le!==null&&le.$$typeof===t}function fe(le){return P(le)===f}function ie(le){return P(le)===r}function Ee(le){return P(le)===v}function $e(le){return P(le)===g}function ne(le){return P(le)===n}function ye(le){return P(le)===o}function xe(le){return P(le)===i}function he(le){return P(le)===h}Ct.AsyncMode=E,Ct.ConcurrentMode=T,Ct.ContextConsumer=k,Ct.ContextProvider=S,Ct.Element=U,Ct.ForwardRef=O,Ct.Fragment=F,Ct.Lazy=G,Ct.Memo=K,Ct.Portal=W,Ct.Profiler=j,Ct.StrictMode=L,Ct.Suspense=_,Ct.isAsyncMode=Y,Ct.isConcurrentMode=V,Ct.isContextConsumer=z,Ct.isContextProvider=re,Ct.isElement=oe,Ct.isForwardRef=fe,Ct.isFragment=ie,Ct.isLazy=Ee,Ct.isMemo=$e,Ct.isPortal=ne,Ct.isProfiler=ye,Ct.isStrictMode=xe,Ct.isSuspense=he,Ct.isValidElementType=D,Ct.typeOf=P}()),Ct}var eE;function W_(){return eE||(eE=1,process.env.NODE_ENV==="production"?vf.exports=Dte():vf.exports=Ete()),vf.exports}/*
170
- object-assign
171
- (c) Sindre Sorhus
172
- @license MIT
173
- */var Jg,tE;function Cte(){if(tE)return Jg;tE=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jg=i()?Object.assign:function(o,a){for(var u,c=r(o),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var h in u)t.call(u,h)&&(c[h]=u[h]);if(e){d=e(u);for(var m=0;m<d.length;m++)n.call(u,d[m])&&(c[d[m]]=u[d[m]])}}return c},Jg}var Xg,nE;function o1(){if(nE)return Xg;nE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xg=e,Xg}var Qg,rE;function H_(){return rE||(rE=1,Qg=Function.call.bind(Object.prototype.hasOwnProperty)),Qg}var ey,iE;function Ste(){if(iE)return ey;iE=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=o1(),n={},r=H_();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,c,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var h;try{if(typeof o[f]!="function"){var m=Error((c||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=o[f](a,f,c,u,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ey=i,ey}var ty,oE;function Tte(){if(oE)return ty;oE=1;var e=W_(),t=Cte(),n=o1(),r=H_(),i=Ste(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return ty=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(V){var z=V&&(d&&V[d]||V[f]);if(typeof z=="function")return z}var m="<<anonymous>>",g={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:y(),arrayOf:D,element:P(),elementType:E(),instanceOf:T,node:O(),objectOf:S,oneOf:k,oneOfType:U,shape:G,exact:K};function v(V,z){return V===z?V!==0||1/V===1/z:V!==V&&z!==z}function $(V,z){this.message=V,this.data=z&&typeof z=="object"?z:{},this.stack=""}$.prototype=Error.prototype;function C(V){if(process.env.NODE_ENV!=="production")var z={},re=0;function oe(ie,Ee,$e,ne,ye,xe,he){if(ne=ne||m,xe=xe||$e,he!==n){if(c){var le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Fe=ne+":"+$e;!z[Fe]&&re<3&&(o("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),z[Fe]=!0,re++)}}return Ee[$e]==null?ie?Ee[$e]===null?new $("The "+ye+" `"+xe+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new $("The "+ye+" `"+xe+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:V(Ee,$e,ne,ye,xe)}var fe=oe.bind(null,!1);return fe.isRequired=oe.bind(null,!0),fe}function x(V){function z(re,oe,fe,ie,Ee,$e){var ne=re[oe],ye=L(ne);if(ye!==V){var xe=_(ne);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+xe+"` supplied to `"+fe+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return C(z)}function y(){return C(a)}function D(V){function z(re,oe,fe,ie,Ee){if(typeof V!="function")return new $("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var $e=re[oe];if(!Array.isArray($e)){var ne=L($e);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an array."))}for(var ye=0;ye<$e.length;ye++){var xe=V($e,ye,fe,ie,Ee+"["+ye+"]",n);if(xe instanceof Error)return xe}return null}return C(z)}function P(){function V(z,re,oe,fe,ie){var Ee=z[re];if(!u(Ee)){var $e=L(Ee);return new $("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return C(V)}function E(){function V(z,re,oe,fe,ie){var Ee=z[re];if(!e.isValidElementType(Ee)){var $e=L(Ee);return new $("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return C(V)}function T(V){function z(re,oe,fe,ie,Ee){if(!(re[oe]instanceof V)){var $e=V.name||m,ne=Y(re[oe]);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected ")+("instance of `"+$e+"`."))}return null}return C(z)}function k(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function z(re,oe,fe,ie,Ee){for(var $e=re[oe],ne=0;ne<V.length;ne++)if(v($e,V[ne]))return null;var ye=JSON.stringify(V,function(he,le){var Fe=_(le);return Fe==="symbol"?String(le):le});return new $("Invalid "+ie+" `"+Ee+"` of value `"+String($e)+"` "+("supplied to `"+fe+"`, expected one of "+ye+"."))}return C(z)}function S(V){function z(re,oe,fe,ie,Ee){if(typeof V!="function")return new $("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an object."));for(var ye in $e)if(r($e,ye)){var xe=V($e,ye,fe,ie,Ee+"."+ye,n);if(xe instanceof Error)return xe}return null}return C(z)}function U(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<V.length;z++){var re=V[z];if(typeof re!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(re)+" at index "+z+"."),a}function oe(fe,ie,Ee,$e,ne){for(var ye=[],xe=0;xe<V.length;xe++){var he=V[xe],le=he(fe,ie,Ee,$e,ne,n);if(le==null)return null;le.data&&r(le.data,"expectedType")&&ye.push(le.data.expectedType)}var Fe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new $("Invalid "+$e+" `"+ne+"` supplied to "+("`"+Ee+"`"+Fe+"."))}return C(oe)}function O(){function V(z,re,oe,fe,ie){return W(z[re])?null:new $("Invalid "+fe+" `"+ie+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return C(V)}function F(V,z,re,oe,fe){return new $((V||"React class")+": "+z+" type `"+re+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function G(V){function z(re,oe,fe,ie,Ee){var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));for(var ye in V){var xe=V[ye];if(typeof xe!="function")return F(fe,ie,Ee,ye,_(xe));var he=xe($e,ye,fe,ie,Ee+"."+ye,n);if(he)return he}return null}return C(z)}function K(V){function z(re,oe,fe,ie,Ee){var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));var ye=t({},re[oe],V);for(var xe in ye){var he=V[xe];if(r(V,xe)&&typeof he!="function")return F(fe,ie,Ee,xe,_(he));if(!he)return new $("Invalid "+ie+" `"+Ee+"` key `"+xe+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(re[oe],null," ")+`
174
- Valid keys: `+JSON.stringify(Object.keys(V),null," "));var le=he($e,xe,fe,ie,Ee+"."+xe,n);if(le)return le}return null}return C(z)}function W(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(W);if(V===null||u(V))return!0;var z=h(V);if(z){var re=z.call(V),oe;if(z!==V.entries){for(;!(oe=re.next()).done;)if(!W(oe.value))return!1}else for(;!(oe=re.next()).done;){var fe=oe.value;if(fe&&!W(fe[1]))return!1}}else return!1;return!0;default:return!1}}function j(V,z){return V==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function L(V){var z=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":j(z,V)?"symbol":z}function _(V){if(typeof V>"u"||V===null)return""+V;var z=L(V);if(z==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return z}function M(V){var z=_(V);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function Y(V){return!V.constructor||!V.constructor.name?m:V.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},ty}var ny,aE;function Ate(){if(aE)return ny;aE=1;var e=o1();function t(){}function n(){}return n.resetWarningCache=t,ny=function(){function r(a,u,c,d,f,h){if(h!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},ny}var sE;function Pte(){if(sE)return yf.exports;if(sE=1,process.env.NODE_ENV!=="production"){var e=W_(),t=!0;yf.exports=Tte()(e.isElement,t)}else yf.exports=Ate()();return yf.exports}var _te=Pte();const Se=To(_te);/**!
175
- * @fileOverview Kickass library to create and place poppers near their reference elements.
176
- * @version 1.16.1
177
- * @license
178
- * Copyright (c) 2016 Federico Zivolo and contributors
179
- *
180
- * Permission is hereby granted, free of charge, to any person obtaining a copy
181
- * of this software and associated documentation files (the "Software"), to deal
182
- * in the Software without restriction, including without limitation the rights
183
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
184
- * copies of the Software, and to permit persons to whom the Software is
185
- * furnished to do so, subject to the following conditions:
186
- *
187
- * The above copyright notice and this permission notice shall be included in all
188
- * copies or substantial portions of the Software.
189
- *
190
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
191
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
192
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
193
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
194
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
195
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
196
- * SOFTWARE.
197
- */var ed=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Rte=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ed&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Ote(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Mte(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Rte))}}var Fte=ed&&window.Promise,kte=Fte?Ote:Mte;function G_(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function vs(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function a1(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function td(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=vs(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:td(a1(e))}function q_(e){return e&&e.referenceNode?e.referenceNode:e}var uE=ed&&!!(window.MSInputMethodContext&&document.documentMode),lE=ed&&/MSIE 10/.test(navigator.userAgent);function Qu(e){return e===11?uE:e===10?lE:uE||lE}function Bu(e){if(!e)return document.documentElement;for(var t=Qu(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return!r||r==="BODY"||r==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&vs(n,"position")==="static"?Bu(n):n}function Bte(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Bu(e.firstElementChild)===e}function Lv(e){return e.parentNode!==null?Lv(e.parentNode):e}function Mh(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return Bte(a)?a:Bu(a);var u=Lv(e);return u.host?Mh(u.host,t):Mh(e,Lv(t).host)}function Iu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=t==="top"?"scrollTop":"scrollLeft",r=e.nodeName;if(r==="BODY"||r==="HTML"){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function Ite(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Iu(t,"top"),i=Iu(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function cE(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function dE(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Qu(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Y_(e){var t=e.body,n=e.documentElement,r=Qu(10)&&getComputedStyle(n);return{height:dE("Height",t,n,r),width:dE("Width",t,n,r)}}var Lte=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Vte=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Lu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function pa(e){return oi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Vv(e){var t={};try{if(Qu(10)){t=e.getBoundingClientRect();var n=Iu(e,"top"),r=Iu(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o=e.nodeName==="HTML"?Y_(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,c=e.offsetWidth-a,d=e.offsetHeight-u;if(c||d){var f=vs(e);c-=cE(f,"x"),d-=cE(f,"y"),i.width-=c,i.height-=d}return pa(i)}function s1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Qu(10),i=t.nodeName==="HTML",o=Vv(e),a=Vv(t),u=td(e),c=vs(t),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=pa({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=Ite(h,t)),h}function Nte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=s1(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Iu(n),u=t?0:Iu(n,"left"),c={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return pa(c)}function Z_(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(vs(e,"position")==="fixed")return!0;var n=a1(e);return n?Z_(n):!1}function J_(e){if(!e||!e.parentElement||Qu())return document.documentElement;for(var t=e.parentElement;t&&vs(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function u1(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?J_(e):Mh(e,q_(t));if(r==="viewport")o=Nte(a,i);else{var u=void 0;r==="scrollParent"?(u=td(a1(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var c=s1(u,a,i);if(u.nodeName==="HTML"&&!Z_(a)){var d=Y_(e.ownerDocument),f=d.height,h=d.width;o.top+=c.top-c.marginTop,o.bottom=f+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var m=typeof n=="number";return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function jte(e){var t=e.width,n=e.height;return t*n}function X_(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=u1(n,r,o,i),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(u).map(function(m){return oi({key:m},u[m],{area:jte(u[m])})}).sort(function(m,g){return g.area-m.area}),d=c.filter(function(m){var g=m.width,v=m.height;return g>=n.clientWidth&&v>=n.clientHeight}),f=d.length>0?d[0].key:c[0].key,h=e.split("-")[1];return f+(h?"-"+h:"")}function Q_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?J_(t):Mh(t,q_(n));return s1(n,i,r)}function eR(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:e.offsetWidth+i,height:e.offsetHeight+r};return o}function Fh(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(n){return t[n]})}function tR(e,t,n){n=n.split("-")[0];var r=eR(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",u=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[Fh(u)],i}function nd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Kte(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=nd(e,function(i){return i[t]===n});return e.indexOf(r)}function nR(e,t,n){var r=n===void 0?e:e.slice(0,Kte(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=i.function||i.fn;i.enabled&&G_(o)&&(t.offsets.popper=pa(t.offsets.popper),t.offsets.reference=pa(t.offsets.reference),t=o(t,i))}),t}function Ute(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Q_(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=X_(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=tR(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=nR(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function rR(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function l1(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function zte(){return this.state.isDestroyed=!0,rR(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[l1("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function iR(e){var t=e.ownerDocument;return t?t.defaultView:window}function oR(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||oR(td(o.parentNode),t,n,r),r.push(o)}function Wte(e,t,n,r){n.updateBound=r,iR(e).addEventListener("resize",n.updateBound,{passive:!0});var i=td(e);return oR(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Hte(){this.state.eventsEnabled||(this.state=Wte(this.reference,this.options,this.state,this.scheduleUpdate))}function Gte(e,t){return iR(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function qte(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Gte(this.reference,this.state))}function c1(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Nv(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&c1(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Yte(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Zte(e){return Nv(e.instance.popper,e.styles),Yte(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Nv(e.arrowElement,e.arrowStyles),e}function Jte(e,t,n,r,i){var o=Q_(i,t,e,n.positionFixed),a=X_(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Nv(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Xte(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,u=function(x){return x},c=o(i.width),d=o(r.width),f=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,m=c%2===d%2,g=c%2===1&&d%2===1,v=t?f||h||m?o:a:u,$=t?o:u;return{left:v(g&&!h&&t?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:v(r.right)}}var Qte=ed&&/Firefox/i.test(navigator.userAgent);function ene(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=nd(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,u=Bu(e.instance.popper),c=Vv(u),d={position:i.position},f=Xte(e,window.devicePixelRatio<2||!Qte),h=n==="bottom"?"top":"bottom",m=r==="right"?"left":"right",g=l1("transform"),v=void 0,$=void 0;if(h==="bottom"?u.nodeName==="HTML"?$=-u.clientHeight+f.bottom:$=-c.height+f.bottom:$=f.top,m==="right"?u.nodeName==="HTML"?v=-u.clientWidth+f.right:v=-c.width+f.right:v=f.left,a&&g)d[g]="translate3d("+v+"px, "+$+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,x=m==="right"?-1:1;d[h]=$*C,d[m]=v*x,d.willChange=h+", "+m}var y={"x-placement":e.placement};return e.attributes=oi({},y,e.attributes),e.styles=oi({},d,e.styles),e.arrowStyles=oi({},e.offsets.arrow,e.arrowStyles),e}function aR(e,t,n){var r=nd(e,function(u){var c=u.name;return c===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function tne(e,t){var n;if(!aR(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",f=c?"Top":"Left",h=f.toLowerCase(),m=c?"left":"top",g=c?"bottom":"right",v=eR(r)[d];u[g]-v<a[h]&&(e.offsets.popper[h]-=a[h]-(u[g]-v)),u[h]+v>a[g]&&(e.offsets.popper[h]+=u[h]+v-a[g]),e.offsets.popper=pa(e.offsets.popper);var $=u[h]+u[d]/2-v/2,C=vs(e.instance.popper),x=parseFloat(C["margin"+f]),y=parseFloat(C["border"+f+"Width"]),D=$-e.offsets.popper[h]-x-y;return D=Math.max(Math.min(a[d]-v,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Lu(n,h,Math.round(D)),Lu(n,m,""),n),e}function nne(e){return e==="end"?"start":e==="start"?"end":e}var sR=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ry=sR.slice(3);function fE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ry.indexOf(e),r=ry.slice(n+1).concat(ry.slice(0,n));return t?r.reverse():r}var iy={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function rne(e,t){if(rR(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=u1(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Fh(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case iy.FLIP:a=[r,i];break;case iy.CLOCKWISE:a=fE(r);break;case iy.COUNTERCLOCKWISE:a=fE(r,!0);break;default:a=t.behavior}return a.forEach(function(u,c){if(r!==u||a.length===c+1)return e;r=e.placement.split("-")[0],i=Fh(r);var d=e.offsets.popper,f=e.offsets.reference,h=Math.floor,m=r==="left"&&h(d.right)>h(f.left)||r==="right"&&h(d.left)<h(f.right)||r==="top"&&h(d.bottom)>h(f.top)||r==="bottom"&&h(d.top)<h(f.bottom),g=h(d.left)<h(n.left),v=h(d.right)>h(n.right),$=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),x=r==="left"&&g||r==="right"&&v||r==="top"&&$||r==="bottom"&&C,y=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(y&&o==="start"&&g||y&&o==="end"&&v||!y&&o==="start"&&$||!y&&o==="end"&&C),P=!!t.flipVariationsByContent&&(y&&o==="start"&&v||y&&o==="end"&&g||!y&&o==="start"&&C||!y&&o==="end"&&$),E=D||P;(m||x||E)&&(e.flipped=!0,(m||x)&&(r=a[c+1]),E&&(o=nne(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=oi({},e.offsets.popper,tR(e.instance.popper,e.offsets.reference,e.placement)),e=nR(e.instance.modifiers,e,"flip"))}),e}function ine(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,u=a?"right":"bottom",c=a?"left":"top",d=a?"width":"height";return n[u]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[d]),n[c]>o(r[u])&&(e.offsets.popper[c]=o(r[u])),e}function one(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}var c=pa(u);return c[t]/100*o}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function ane(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(f){return f.trim()}),u=a.indexOf(nd(a,function(f){return f.search(/,|\s/)!==-1}));a[u]&&a[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=u!==-1?[a.slice(0,u).concat([a[u].split(c)[0]]),[a[u].split(c)[1]].concat(a.slice(u+1))]:[a];return d=d.map(function(f,h){var m=(h===1?!o:o)?"height":"width",g=!1;return f.reduce(function(v,$){return v[v.length-1]===""&&["+","-"].indexOf($)!==-1?(v[v.length-1]=$,g=!0,v):g?(v[v.length-1]+=$,g=!1,v):v.concat($)},[]).map(function(v){return one(v,m,t,n)})}),d.forEach(function(f,h){f.forEach(function(m,g){c1(m)&&(i[h]+=m*(f[g-1]==="-"?-1:1))})}),i}function sne(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],c=void 0;return c1(+n)?c=[+n,0]:c=ane(n,o,a,u),u==="left"?(o.top+=c[0],o.left-=c[1]):u==="right"?(o.top+=c[0],o.left+=c[1]):u==="top"?(o.left+=c[0],o.top-=c[1]):u==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function une(e,t){var n=t.boundariesElement||Bu(e.instance.popper);e.instance.reference===n&&(n=Bu(n));var r=l1("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var c=u1(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=c;var d=t.priority,f=e.offsets.popper,h={primary:function(g){var v=f[g];return f[g]<c[g]&&!t.escapeWithReference&&(v=Math.max(f[g],c[g])),Lu({},g,v)},secondary:function(g){var v=g==="right"?"left":"top",$=f[v];return f[g]>c[g]&&!t.escapeWithReference&&($=Math.min(f[v],c[g]-(g==="right"?f.width:f.height))),Lu({},v,$)}};return d.forEach(function(m){var g=["left","top"].indexOf(m)!==-1?"primary":"secondary";f=oi({},f,h[g](m))}),e.offsets.popper=f,e}function lne(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,u=["bottom","top"].indexOf(n)!==-1,c=u?"left":"top",d=u?"width":"height",f={start:Lu({},c,o[c]),end:Lu({},c,o[c]+o[d]-a[d])};e.offsets.popper=oi({},a,f[r])}return e}function cne(e){if(!aR(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=nd(e.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function dne(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(u?i[a?"width":"height"]:0),e.placement=Fh(t),e.offsets.popper=pa(i),e}var fne={shift:{order:100,enabled:!0,fn:lne},offset:{order:200,enabled:!0,fn:sne,offset:0},preventOverflow:{order:300,enabled:!0,fn:une,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ine},arrow:{order:500,enabled:!0,fn:tne,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:rne,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:dne},hide:{order:800,enabled:!0,fn:cne},computeStyle:{order:850,enabled:!0,fn:ene,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Zte,onLoad:Jte,gpuAcceleration:void 0}},hne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:fne},Sc=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Lte(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=kte(this.update.bind(this)),this.options=oi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(oi({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=oi({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return oi({name:a},r.options.modifiers[a])}).sort(function(a,u){return a.order-u.order}),this.modifiers.forEach(function(a){a.enabled&&G_(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Vte(e,[{key:"update",value:function(){return Ute.call(this)}},{key:"destroy",value:function(){return zte.call(this)}},{key:"enableEventListeners",value:function(){return Hte.call(this)}},{key:"disableEventListeners",value:function(){return qte.call(this)}}]),e}();Sc.Utils=(typeof window<"u"?window:global).PopperUtils;Sc.placements=sR;Sc.Defaults=hne;var pne=["innerHTML","ownerDocument","style","attributes","nodeValue"],mne=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],gne=["bigint","boolean","null","number","string","symbol","undefined"];function Pp(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(yne(t))return t}function Ti(e){return function(t){return Pp(t)===e}}function yne(e){return mne.includes(e)}function el(e){return function(t){return typeof t===e}}function vne(e){return gne.includes(e)}function ce(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ce.array(e))return"Array";if(ce.plainFunction(e))return"Function";var t=Pp(e);return t||"Object"}ce.array=Array.isArray;ce.arrayOf=function(e,t){return!ce.array(e)&&!ce.function(t)?!1:e.every(function(n){return t(n)})};ce.asyncGeneratorFunction=function(e){return Pp(e)==="AsyncGeneratorFunction"};ce.asyncFunction=Ti("AsyncFunction");ce.bigint=el("bigint");ce.boolean=function(e){return e===!0||e===!1};ce.date=Ti("Date");ce.defined=function(e){return!ce.undefined(e)};ce.domElement=function(e){return ce.object(e)&&!ce.plainObject(e)&&e.nodeType===1&&ce.string(e.nodeName)&&pne.every(function(t){return t in e})};ce.empty=function(e){return ce.string(e)&&e.length===0||ce.array(e)&&e.length===0||ce.object(e)&&!ce.map(e)&&!ce.set(e)&&Object.keys(e).length===0||ce.set(e)&&e.size===0||ce.map(e)&&e.size===0};ce.error=Ti("Error");ce.function=el("function");ce.generator=function(e){return ce.iterable(e)&&ce.function(e.next)&&ce.function(e.throw)};ce.generatorFunction=Ti("GeneratorFunction");ce.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ce.iterable=function(e){return!ce.nullOrUndefined(e)&&ce.function(e[Symbol.iterator])};ce.map=Ti("Map");ce.nan=function(e){return Number.isNaN(e)};ce.null=function(e){return e===null};ce.nullOrUndefined=function(e){return ce.null(e)||ce.undefined(e)};ce.number=function(e){return el("number")(e)&&!ce.nan(e)};ce.numericString=function(e){return ce.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ce.object=function(e){return!ce.nullOrUndefined(e)&&(ce.function(e)||typeof e=="object")};ce.oneOf=function(e,t){return ce.array(e)?e.indexOf(t)>-1:!1};ce.plainFunction=Ti("Function");ce.plainObject=function(e){if(Pp(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ce.primitive=function(e){return ce.null(e)||vne(typeof e)};ce.promise=Ti("Promise");ce.propertyOf=function(e,t,n){if(!ce.object(e)||!t)return!1;var r=e[t];return ce.function(n)?n(r):ce.defined(r)};ce.regexp=Ti("RegExp");ce.set=Ti("Set");ce.string=el("string");ce.symbol=el("symbol");ce.undefined=el("undefined");ce.weakMap=Ti("WeakMap");ce.weakSet=Ti("WeakSet");function uR(e){return function(t){return typeof t===e}}var bne=uR("function"),$ne=function(e){return e===null},hE=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},pE=function(e){return!xne(e)&&!$ne(e)&&(bne(e)||typeof e=="object")},xne=uR("undefined"),jv=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function wne(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Dr(e[r],t[r]))return!1;return!0}function Dne(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),i=e.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Ene(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=jv(e.entries()),u=a.next();!u.done;u=a.next()){var c=u.value;if(!t.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=jv(e.entries()),f=d.next();!f.done;f=d.next()){var c=f.value;if(!Dr(c[1],t.get(c[0])))return!1}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function Cne(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=jv(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Dr(e,t){if(e===t)return!0;if(e&&pE(e)&&t&&pE(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return wne(e,t);if(e instanceof Map&&t instanceof Map)return Ene(e,t);if(e instanceof Set&&t instanceof Set)return Cne(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Dne(e,t);if(hE(e)&&hE(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Dr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Sne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ce.string(n)||ce.array(n)||ce.plainObject(n)})}function Tne(e,t,n){return lR(e,t)?[e,t].every(ce.array)?!e.some(bE(n))&&t.some(bE(n)):[e,t].every(ce.plainObject)?!Object.entries(e).some(vE(n))&&Object.entries(t).some(vE(n)):t===n:!1}function mE(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,u=Ui(e,i),c=Ui(t,i),d=[u,c].every(ce.number)&&(a==="increased"?u<c:u>c);return ce.undefined(r)||(d=d&&c===r),ce.undefined(o)||(d=d&&u===o),d}function gE(e,t,n){var r=n.key,i=n.type,o=n.value,a=Ui(e,r),u=Ui(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ce.nullOrUndefined(o)){if(ce.defined(c)){if(ce.array(c)||ce.plainObject(c))return Tne(c,d,o)}else return Dr(d,o);return!1}return[a,u].every(ce.array)?!d.every(d1(c)):[a,u].every(ce.plainObject)?Ane(Object.keys(c),Object.keys(d)):![a,u].every(function(f){return ce.primitive(f)&&ce.defined(f)})&&(i==="added"?!ce.defined(a)&&ce.defined(u):ce.defined(a)&&!ce.defined(u))}function yE(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Ui(e,i),a=Ui(t,i);if(!lR(o,a))throw new TypeError("Inputs have different types");if(!Sne(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(ce.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function vE(e){return function(t){var n=t[0],r=t[1];return ce.array(e)?Dr(e,r)||e.some(function(i){return Dr(i,r)||ce.array(r)&&d1(r)(i)}):ce.plainObject(e)&&e[n]?!!e[n]&&Dr(e[n],r):Dr(e,r)}}function Ane(e,t){return t.some(function(n){return!e.includes(n)})}function bE(e){return function(t){return ce.array(e)?e.some(function(n){return Dr(n,t)||ce.array(t)&&d1(t)(n)}):Dr(e,t)}}function kl(e,t){return ce.array(e)?e.some(function(n){return Dr(n,t)}):Dr(e,t)}function d1(e){return function(t){return e.some(function(n){return Dr(n,t)})}}function lR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ce.array)||e.every(ce.number)||e.every(ce.plainObject)||e.every(ce.string)}function Ui(e,t){if(ce.plainObject(e)||ce.array(e)){if(ce.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ce.number(t)?e[t]:e}return e}function Pne(e,t){if([e,t].some(ce.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ce.plainObject(h)||ce.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,m){try{return gE(e,t,{key:h,type:"added",value:m})}catch{return!1}},r=function(h,m,g){try{var v=Ui(e,h),$=Ui(t,h),C=ce.defined(m),x=ce.defined(g);if(C||x){var y=x?kl(g,v):!kl(m,v),D=kl(m,$);return y&&D}return[v,$].every(ce.array)||[v,$].every(ce.plainObject)?!Dr(v,$):v!==$}catch{return!1}},i=function(h,m,g){if(!ce.defined(h))return!1;try{var v=Ui(e,h),$=Ui(t,h),C=ce.defined(g);return kl(m,v)&&(C?kl(g,$):!C)}catch{return!1}},o=function(h,m){return ce.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,m)):!1},a=function(h,m,g){if(!ce.defined(h))return!1;try{return mE(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var m=yE(e,t,{key:h}),g=m[0],v=m[1];return!!g.length&&!v.length}catch{return!1}},c=function(h){try{var m=yE(e,t,{key:h}),g=m[0],v=m[1];return!g.length&&!!v.length}catch{return!1}},d=function(h,m,g){if(!ce.defined(h))return!1;try{return mE(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},f=function(h,m){try{return gE(e,t,{key:h,type:"removed",value:m})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:u,filled:c,increased:d,removed:f}}function $E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$E(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$E(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ne(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,dR(r.key),r)}}function id(e,t,n){return t&&_ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t,n){return t=dR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function od(e,t){if(typeof t!="function"&&t!==null)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kv(e,t)}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function Rne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function One(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cR(e,t){if(e==null)return{};var n=One(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function po(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mne(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return po(e)}function ad(e){var t=Rne();return function(){var r=kh(e),i;if(t){var o=kh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mne(this,i)}}function Fne(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dR(e){var t=Fne(e,"string");return typeof t=="symbol"?t:String(t)}var kne={flip:{padding:20},preventOverflow:{padding:10}},Bne="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Ine="The error message is optional, but must be a string if provided.";function Lne(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Vne(e,t){return Object.hasOwnProperty.call(e,t)}function Nne(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function jne(e,t){if(typeof e!="function")throw new TypeError(Bne);if(t)throw new TypeError(Ine)}function xE(e,t,n){return jne(e,n),function(r,i,o){for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return Lne(t,r,i,o)?Vne(r,i)?e.apply(void 0,[r,i,o].concat(u)):Nne(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var pt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Bl=oa.createPortal!==void 0;function ki(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function bf(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,u=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){ce.plainObject(c)&&c.key?u.apply(console,[c.key,c.value]):u.apply(console,[c])}):u.apply(console,[n]),console.groupEnd())}function Kne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Une(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function zne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Une(e,t,i)},Kne(e,t,i,r)}function wE(){}var fR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"componentDidMount",value:function(){ki()&&(this.node||this.appendNode(),Bl||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ki()&&(Bl||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ki()||!this.node||(Bl||oa.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!ki())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Bl)return oa.createPortal(o,this.node);var u=oa.unstable_renderSubtreeIntoContainer(this,o.length>1?b.createElement("div",null,o):o[0],this.node);return a(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,u=i.target;return o?this.renderPortal():u||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Bl?this.renderReact16():null}}]),n}(b.Component);Zn(fR,"propTypes",{children:Se.oneOfType([Se.element,Se.array]),hasChildren:Se.bool,id:Se.oneOfType([Se.string,Se.number]),placement:Se.string,setRef:Se.func.isRequired,target:Se.oneOfType([Se.object,Se.string]),zIndex:Se.number});var hR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,u=a.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=u):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=u):o.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):o.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,u=i.styles,c=u.arrow,d=c.color,f=c.display,h=c.length,m=c.margin,g=c.position,v=c.spread,$={display:f,position:g},C,x=v,y=h;return o.startsWith("top")?(C="0,0 ".concat(x/2,",").concat(y," ").concat(x,",0"),$.bottom=0,$.marginLeft=m,$.marginRight=m):o.startsWith("bottom")?(C="".concat(x,",").concat(y," ").concat(x/2,",0 0,").concat(y),$.top=0,$.marginLeft=m,$.marginRight=m):o.startsWith("left")?(y=v,x=h,C="0,0 ".concat(x,",").concat(y/2," 0,").concat(y),$.right=0,$.marginTop=m,$.marginBottom=m):o.startsWith("right")&&(y=v,x=h,C="".concat(x,",").concat(y," ").concat(x,",0 0,").concat(y/2),$.left=0,$.marginTop=m,$.marginBottom=m),b.createElement("div",{className:"__floater__arrow",style:this.parentStyle},b.createElement("span",{ref:a,style:$},b.createElement("svg",{width:x,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("polygon",{points:C,fill:d}))))}}]),n}(b.Component);Zn(hR,"propTypes",{placement:Se.string.isRequired,setArrowRef:Se.func.isRequired,styles:Se.object.isRequired});var Wne=["color","height","width"];function pR(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=cR(n,Wne);return b.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},b.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}pR.propTypes={handleClick:Se.func.isRequired,styles:Se.object.isRequired};function mR(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,u=e.title,c=e.styles,d={content:b.isValidElement(t)?t:b.createElement("div",{className:"__floater__content",style:c.content},t)};return u&&(d.title=b.isValidElement(u)?u:b.createElement("div",{className:"__floater__title",style:c.title},u)),n&&(d.footer=b.isValidElement(n)?n:b.createElement("div",{className:"__floater__footer",style:c.footer},n)),(a||o)&&!ce.boolean(i)&&(d.close=b.createElement(pR,{styles:c.close,handleClick:r})),b.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}mR.propTypes={content:Se.node.isRequired,footer:Se.node,handleClick:Se.func.isRequired,open:Se.bool,positionWrapper:Se.bool.isRequired,showCloseButton:Se.bool.isRequired,styles:Se.object.isRequired,title:Se.node};var gR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,u=i.placement,c=i.hideArrow,d=i.status,f=i.styles,h=f.arrow.length,m=f.floater,g=f.floaterCentered,v=f.floaterClosing,$=f.floaterOpening,C=f.floaterWithAnimation,x=f.floaterWithComponent,y={};return c||(u.startsWith("top")?y.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?y.padding="".concat(h,"px 0 0"):u.startsWith("left")?y.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(y.padding="0 0 0 ".concat(h,"px"))),[pt.OPENING,pt.OPEN].indexOf(d)!==-1&&(y=Gt(Gt({},y),$)),d===pt.CLOSING&&(y=Gt(Gt({},y),v)),d===pt.OPEN&&!o&&(y=Gt(Gt({},y),C)),u==="center"&&(y=Gt(Gt({},y),g)),a&&(y=Gt(Gt({},y),x)),Gt(Gt({},m),y)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,u=i.hideArrow,c=i.setFloaterRef,d=i.status,f={},h=["__floater"];return o?b.isValidElement(o)?f.content=b.cloneElement(o,{closeFn:a}):f.content=o({closeFn:a}):f.content=b.createElement(mR,this.props),d===pt.OPEN&&h.push("__floater__open"),u||(f.arrow=b.createElement(hR,this.props)),b.createElement("div",{ref:c,className:h.join(" "),style:this.style},b.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n}(b.Component);Zn(gR,"propTypes",{component:Se.oneOfType([Se.func,Se.element]),content:Se.node,disableAnimation:Se.bool.isRequired,footer:Se.node,handleClick:Se.func.isRequired,hideArrow:Se.bool.isRequired,open:Se.bool,placement:Se.string.isRequired,positionWrapper:Se.bool.isRequired,setArrowRef:Se.func.isRequired,setFloaterRef:Se.func.isRequired,showCloseButton:Se.bool,status:Se.string.isRequired,styles:Se.object.isRequired,title:Se.node});var yR=function(e){od(n,e);var t=ad(n);function n(){return rd(this,n),t.apply(this,arguments)}return id(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,u=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,f=i.setWrapperRef,h=i.style,m=i.styles,g;if(o)if(b.Children.count(o)===1)if(!b.isValidElement(o))g=b.createElement("span",null,o);else{var v=ce.function(o.type)?"innerRef":"ref";g=b.cloneElement(b.Children.only(o),Zn({},v,d))}else g=o;return g?b.createElement("span",{ref:f,style:Gt(Gt({},m),h),onClick:a,onMouseEnter:u,onMouseLeave:c},g):null}}]),n}(b.Component);Zn(yR,"propTypes",{children:Se.node,handleClick:Se.func.isRequired,handleMouseEnter:Se.func.isRequired,handleMouseLeave:Se.func.isRequired,setChildRef:Se.func.isRequired,setWrapperRef:Se.func.isRequired,style:Se.object,styles:Se.object.isRequired});var Hne={zIndex:100};function Gne(e){var t=bi(Hne,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}var qne=["arrow","flip","offset"],Yne=["position","top","right","bottom","left"],f1=function(e){od(n,e);var t=ad(n);function n(r){var i;return rd(this,n),i=t.call(this,r),Zn(po(i),"setArrowRef",function(o){i.arrowRef=o}),Zn(po(i),"setChildRef",function(o){i.childRef=o}),Zn(po(i),"setFloaterRef",function(o){i.floaterRef=o}),Zn(po(i),"setWrapperRef",function(o){i.wrapperRef=o}),Zn(po(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===pt.OPENING?pt.OPEN:pt.IDLE},function(){var u=i.state.status;a(u===pt.OPEN?"open":"close",i.props)})}),Zn(po(i),"handleClick",function(){var o=i.props,a=o.event,u=o.open;if(!ce.boolean(u)){var c=i.state,d=c.positionWrapper,f=c.status;(i.event==="click"||i.event==="hover"&&d)&&(bf({title:"click",data:[{event:a,status:f===pt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Zn(po(i),"handleMouseEnter",function(){var o=i.props,a=o.event,u=o.open;if(!(ce.boolean(u)||oy())){var c=i.state.status;i.event==="hover"&&c===pt.IDLE&&(bf({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Zn(po(i),"handleMouseLeave",function(){var o=i.props,a=o.event,u=o.eventDelay,c=o.open;if(!(ce.boolean(c)||oy())){var d=i.state,f=d.status,h=d.positionWrapper;i.event==="hover"&&(bf({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),u?[pt.OPENING,pt.OPEN].indexOf(f)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(pt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:pt.INIT,statusWrapper:pt.INIT},i._isMounted=!1,i.hasMounted=!1,ki()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return id(n,[{key:"componentDidMount",value:function(){if(ki()){var i=this.state.positionWrapper,o=this.props,a=o.children,u=o.open,c=o.target;this._isMounted=!0,bf({title:"init",data:{hasChildren:!!a,hasTarget:!!c,isControlled:ce.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&c&&ce.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(ki()){var a=this.props,u=a.autoOpen,c=a.open,d=a.target,f=a.wrapperOptions,h=Pne(o,this.state),m=h.changedFrom,g=h.changed;if(i.open!==c){var v;ce.boolean(c)&&(v=c?pt.OPENING:pt.CLOSING),this.toggle(v)}(i.wrapperOptions.position!==f.position||i.target!==d)&&this.changeWrapperPosition(this.props),g("status",pt.IDLE)&&c?this.toggle(pt.OPEN):m("status",pt.INIT,pt.IDLE)&&u&&this.toggle(pt.OPEN),this.popper&&g("status",pt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",pt.OPENING)||g("status",pt.CLOSING))&&zne(this.floaterRef,"transitionend",this.handleTransitionEnd),g("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ki()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,u=this.props,c=u.disableFlip,d=u.getPopper,f=u.hideArrow,h=u.offset,m=u.placement,g=u.wrapperOptions,v=m==="top"||m==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(m==="center")this.setState({status:pt.IDLE});else if(o&&this.floaterRef){var $=this.options,C=$.arrow,x=$.flip,y=$.offset,D=cR($,qne);new Sc(o,this.floaterRef,{placement:m,modifiers:Gt({arrow:Gt({enabled:!f,element:this.arrowRef},C),flip:Gt({enabled:!c,behavior:v},x),offset:Gt({offset:"0, ".concat(h,"px")},y)},D),onCreate:function(T){var k;if(i.popper=T,!((k=i.floaterRef)!==null&&k!==void 0&&k.isConnected)){i.setState({needsUpdate:!0});return}d(T,"floater"),i._isMounted&&i.setState({currentPlacement:T.placement,status:pt.IDLE}),m!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){i.popper=T;var k=i.state.currentPlacement;i._isMounted&&T.placement!==k&&i.setState({currentPlacement:T.placement})}})}if(a){var P=ce.undefined(g.offset)?0:g.offset;new Sc(this.target,this.wrapperRef,{placement:g.placement||m,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(P,"px")},flip:{enabled:!1}},onCreate:function(T){i.wrapperPopper=T,i._isMounted&&i.setState({statusWrapper:pt.IDLE}),d(T,"wrapper"),m!==T.placement&&setTimeout(function(){T.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===pt.OPEN?pt.CLOSING:pt.OPENING;ce.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||ki()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&oy()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return bi(kne,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,u=o.positionWrapper,c=o.statusWrapper,d=this.props.styles,f=bi(Gne(d),d);if(u){var h;[pt.IDLE].indexOf(a)===-1||[pt.IDLE].indexOf(c)===-1?h=f.wrapperPosition:h=this.wrapperPopper.styles,f.wrapper=Gt(Gt({},f.wrapper),h)}if(this.target){var m=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(m.position)===-1&&(this.wrapperStyles={},u||(Yne.forEach(function(g){i.wrapperStyles[g]=m[g]}),f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return f}},{key:"target",get:function(){if(!ki())return null;var i=this.props.target;return i?ce.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,a=i.positionWrapper,u=i.status,c=this.props,d=c.children,f=c.component,h=c.content,m=c.disableAnimation,g=c.footer,v=c.hideArrow,$=c.id,C=c.open,x=c.showCloseButton,y=c.style,D=c.target,P=c.title,E=b.createElement(yR,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},d),T={};return a?T.wrapperInPortal=E:T.wrapperAsChildren=E,b.createElement("span",null,b.createElement(fR,{hasChildren:!!d,id:$,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},b.createElement(gR,{component:f,content:h,disableAnimation:m,footer:g,handleClick:this.handleClick,hideArrow:v||o==="center",open:C,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:x,status:u,styles:this.styles,title:P}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(b.Component);Zn(f1,"propTypes",{autoOpen:Se.bool,callback:Se.func,children:Se.node,component:xE(Se.oneOfType([Se.func,Se.element]),function(e){return!e.content}),content:xE(Se.node,function(e){return!e.component}),debug:Se.bool,disableAnimation:Se.bool,disableFlip:Se.bool,disableHoverToClick:Se.bool,event:Se.oneOf(["hover","click"]),eventDelay:Se.number,footer:Se.node,getPopper:Se.func,hideArrow:Se.bool,id:Se.oneOfType([Se.string,Se.number]),offset:Se.number,open:Se.bool,options:Se.object,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Se.bool,style:Se.object,styles:Se.object,target:Se.oneOfType([Se.object,Se.string]),title:Se.node,wrapperOptions:Se.shape({offset:Se.number,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Se.bool})});Zn(f1,"defaultProps",{autoOpen:!1,callback:wE,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:wE,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Zne=Object.defineProperty,Jne=(e,t,n)=>t in e?Zne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>Jne(e,typeof t!="symbol"?t+"":t,n),$t={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ri={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Qe={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},ct={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function ea(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function vR(e){return e?e.getBoundingClientRect():null}function Xne(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,a)=>o-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function bo(e){if(typeof e=="string")try{return document.querySelector(e)}catch(t){return process.env.NODE_ENV!=="production"&&console.error(t),null}return e}function Qne(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Tc(e,t,n){if(!e)return qa();const r=z_(e);if(r){if(r.isSameNode(qa()))return n?document:qa();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",qa()}return r}function sd(e,t){if(!e)return!1;const n=Tc(e,t);return n?!n.isSameNode(qa()):!1}function ere(e){return e.offsetParent!==document.body}function Vu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Qne(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Vu(e.parentNode,t):!1}function tre(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:r,visibility:i}=getComputedStyle(n);if(r==="none"||i==="hidden")return!1}n=(t=n.parentElement)!=null?t:null}return!0}function nre(e,t,n){var r,i,o;const a=vR(e),u=Tc(e,n),c=sd(e,n),d=Vu(e);let f=0,h=(r=a==null?void 0:a.top)!=null?r:0;if(c&&d){const m=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(o=u==null?void 0:u.scrollTop)!=null?o:0;h=m-g}else u instanceof HTMLElement&&(f=u.scrollTop,!c&&!Vu(e)&&(h+=f),u.isSameNode(qa())||(h+=qa().scrollTop));return Math.floor(h-t)}function rre(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=z_(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(sd(e,n)||ere(e))&&(a-=i);const u=Math.floor(a-t);return u<0?0:u}function qa(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function ire(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,u=e>a?e-a:a-e;mte.top(r,e,{duration:u<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var Il=oa.createPortal!==void 0;function bR(e=navigator.userAgent){let t=e;return typeof window>"u"?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":window.opera||e.includes(" OPR/")?t="opera":typeof window.InstallTrigger<"u"?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function Nf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Bi(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=ZD(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(b.isValidElement(e)&&!Object.values(e.props).length&&Nf(e.type)==="function"){const a=e.type({});o=Bi(a,t)}else o=ZD(n);return o}function ore(e,t){return!ke.plainObject(e)||!ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function are(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,u)=>o+o+a+a+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function DE(e){return e.disableBeacon||e.placement==="center"}function EE(){return!["chrome","safari","firefox","opera"].includes(bR())}function ma({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{ke.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function sre(e){return Object.keys(e)}function $R(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function ure(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function Uv(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Nf(e)==="string")return r(e);if(!b.isValidElement(e))return e;const{children:i}=e.props;if(Nf(i)==="string"&&i.includes("{step}"))return b.cloneElement(e,{children:r(i)});if(Array.isArray(i))return b.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):Uv(o,t,n))});if(Nf(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return Uv(o,t,n)}return e}function lre(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===Qe.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Vu(a))&&r!==n&&[Qe.BEACON,Qe.TOOLTIP].includes(n)}var cre={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},xR={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},dre={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:xR,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},fre={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},hre={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Ll={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},CE={borderRadius:4,position:"absolute"};function pre(e,t){var n,r,i,o,a;const{floaterProps:u,styles:c}=e,d=bi((n=t.floaterProps)!=null?n:{},u??{}),f=bi(c??{},(r=t.styles)!=null?r:{}),h=bi(hre,f.options||{}),m=t.placement==="center"||t.disableBeacon;let{width:g}=h;window.innerWidth>480&&(g=380),"width"in h&&(g=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const v={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},$={beacon:{...Ll,display:m?"none":"inline-block",height:h.beaconSize,position:"relative",width:h.beaconSize,zIndex:h.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:h.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${are(h.primaryColor).join(",")}, 0.2)`,border:`2px solid ${h.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:h.backgroundColor,borderRadius:5,boxSizing:"border-box",color:h.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:g},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Ll,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Ll,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Ll,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Ll,color:h.textColor,fontSize:14},overlay:{...v,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...v},overlayLegacyCenter:{...v,backgroundColor:h.overlayColor},spotlight:{...CE,backgroundColor:"gray"},spotlightLegacy:{...CE,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return bi($,f)}function mre(e){return ure(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function qs(e,t){var n,r,i,o,a,u;const c=t??{},d=bi.all([dre,mre(e),c],{isMergeableObject:ke.plainObject}),f=pre(e,d),h=sd(bo(d.target),d.disableScrollParentFix),m=bi.all([cre,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return m.offset=d.offset,m.styles=bi((i=m.styles)!=null?i:{},f.floaterStyles),m.offset+=(a=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?a:0,d.placementBeacon&&m.wrapperOptions&&(m.wrapperOptions.placement=d.placementBeacon),h&&m.options.preventOverflow&&(m.options.preventOverflow.boundariesElement="window"),{...d,locale:bi.all([xR,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:m,styles:$R(f,"floaterStyles")}}function wR(e,t=!1){return ke.plainObject(e)?e.target?!0:(ma({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ma({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function SE(e,t=!1){return ke.array(e)?e.every(n=>wR(n,t)):(ma({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var DR={action:"init",controlled:!1,index:0,lifecycle:Qe.INIT,origin:null,size:0,status:ct.IDLE},TE=sre($R(DR,"controlled","size")),gre=class{constructor(e){Be(this,"beaconPopper"),Be(this,"tooltipPopper"),Be(this,"data",new Map),Be(this,"listener"),Be(this,"store",new Map),Be(this,"addListener",i=>{this.listener=i}),Be(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),u={size:i.length,status:a};this.data.set("steps",i),a===ct.WAITING&&!o&&i.length&&(u.status=ct.RUNNING),this.setState(u)}),Be(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Be(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Be(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Be(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===ct.RUNNING&&this.setState({...this.getNextState({action:$t.CLOSE,index:o+1,origin:i})})}),Be(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==ct.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:$t.GO,index:i}),status:u?a:ct.FINISHED})}),Be(this,"info",()=>this.getState()),Be(this,"next",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState(this.getNextState({action:$t.NEXT,index:i+1}))}),Be(this,"open",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({...this.getNextState({action:$t.UPDATE,lifecycle:Qe.TOOLTIP})})}),Be(this,"prev",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState({...this.getNextState({action:$t.PREV,index:i-1})})}),Be(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:$t.RESET,index:0}),status:i?ct.RUNNING:ct.READY})}),Be(this,"skip",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({action:$t.SKIP,lifecycle:Qe.INIT,status:ct.SKIPPED})}),Be(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:$t.START,index:ke.number(i)?i:o},!0),status:a?ct.RUNNING:ct.WAITING})}),Be(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[ct.FINISHED,ct.SKIPPED].includes(a)||this.setState({...this.getNextState({action:$t.STOP,index:o+(i?1:0)}),status:ct.PAUSED})}),Be(this,"update",i=>{var o,a;if(!ore(i,TE))throw new Error(`State is not valid. Valid keys: ${TE.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:$t.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:$t.INIT,controlled:ke.number(n),continuous:t,index:ke.number(n)?n:0,lifecycle:Qe.INIT,origin:null,status:r.length?ct.READY:ct.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...DR}}getNextState(e,t=!1){var n,r,i,o,a;const{action:u,controlled:c,index:d,size:f,status:h}=this.getState(),m=ke.number(e.index)?e.index:d,g=c&&!t?d:Math.min(Math.max(m,0),f);return{action:(n=e.action)!=null?n:u,controlled:c,index:g,lifecycle:(r=e.lifecycle)!=null?r:Qe.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:f,status:g===f?ct.FINISHED:(a=e.status)!=null?a:h}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:a=null,size:u,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",u),this.store.set("status",c),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function yre(e){return new gre(e)}function vre({styles:e}){return qe.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var bre=vre,$re=class extends qe.Component{constructor(){super(...arguments),Be(this,"isActive",!1),Be(this,"resizeTimeout"),Be(this,"scrollTimeout"),Be(this,"scrollParent"),Be(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Be(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Qe.INIT,Qe.BEACON,Qe.COMPLETE,Qe.ERROR];return t||(e?r.includes(n):n!==Qe.TOOLTIP)}),Be(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,h=c>=r&&c<=r+a&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Be(this,"handleScroll",()=>{const{target:e}=this.props,t=bo(e);if(this.scrollParent!==document){const{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else Vu(t,"sticky")&&this.updateState({})}),Be(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=bo(r);this.scrollParent=Tc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&sd(i,!0)&&ma({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:a}=Oh(e,this.props);if(a("target")||a("disableScrollParentFix")){const u=bo(o);this.scrollParent=Tc(u??document.body,n,!0)}a("lifecycle",Qe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Qe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Qe.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return EE()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Xne(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:u,target:c}=this.props,d=bo(c),f=vR(d),h=Vu(d),m=nre(d,a,i);return{...EE()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=f==null?void 0:f.height)!=null?e:0)+a*2),left:Math.round(((t=f==null?void 0:f.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:m,transition:"opacity 0.2s",width:Math.round(((n=f==null?void 0:f.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a=n!=="center"&&e&&qe.createElement(bre,{styles:o});if(bR()==="safari"){const{mixBlendMode:u,zIndex:c,...d}=i;a=qe.createElement("div",{style:{...d}},a),delete i.backgroundColor}return qe.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},xre=class extends qe.Component{constructor(){super(...arguments),Be(this,"node",null)}componentDidMount(){const{id:e}=this.props;ea()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Il||this.renderReact15())}componentDidUpdate(){ea()&&(Il||this.renderReact15())}componentWillUnmount(){!ea()||!this.node||(Il||$f.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ea())return;const{children:e}=this.props;this.node&&$f.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ea()||!Il)return null;const{children:e}=this.props;return this.node?$f.createPortal(e,this.node):null}render(){return Il?this.renderReact16():null}},wre=class{constructor(e,t){if(Be(this,"element"),Be(this,"options"),Be(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Be(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),Be(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Be(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Be(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Be(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),Be(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),Be(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Be(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Be(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Dre=class extends qe.Component{constructor(e){if(super(e),Be(this,"beacon",null),Be(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
198
- @keyframes joyride-beacon-inner {
199
- 20% {
200
- opacity: 0.9;
201
- }
202
-
203
- 90% {
204
- opacity: 0.7;
205
- }
206
- }
207
-
208
- @keyframes joyride-beacon-outer {
209
- 0% {
210
- transform: scale(1);
211
- }
212
-
213
- 45% {
214
- opacity: 0.7;
215
- transform: scale(0.75);
216
- }
217
-
218
- 100% {
219
- opacity: 0.9;
220
- transform: scale(1);
221
- }
222
- }
223
- `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Bi(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Ere({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Cre=Ere;function Sre(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Cre,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Bi($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Bi($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var Tre=Sre,Are=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Bi(a),g=Bi(u),v=Bi(c),$=Bi(d),C=Bi(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Bi(f,{step:t+1,steps:i});x=Uv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(Tre,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Pre=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(Are,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ma({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Oh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=bo(m.target),k=!!T;k&&tre(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:DE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ma({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new wre(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return DE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=bo(a.target);return!wR(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(f1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Dre,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},ER=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;qs(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=yre({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ma({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ea())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;SE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ea())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Oh(e,this.props),{changed:y,changedFrom:D}=Oh(t,this.state),P=qs(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=bo(P.target);if(E&&(SE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=qs(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=qs(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=qs(this.props,d[t]),h=bo(f.target),m=lre({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=sd(h,o),v=Tc(h,o);let $=Math.floor(rre(h,u,o))||0;ma({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&ire($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!ea())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=qs(this.props,u[e]);d.step=qe.createElement(Pre,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(xre,{id:"react-joyride-portal"},qe.createElement($re,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(ER,"defaultProps",fre);var _re=ER;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=fA;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=zC;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Bc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=kV;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Gj;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=qT;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=JN;exports.$293f70390ea03370$export$497855f14858aa34=jj;exports.$32489daedd52963e$export$1315d136e6f7581=Qj;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Cj;exports.$36a0ac60f04457c5$export$136073280381448e=jN;exports.$3c0fc76039f1c516$export$60e84778edff6d26=XA;exports.$40df3f8667284809$export$d55e7ee900f34e93=rK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=LN;exports.$47b897dc8cdb026b$export$8d15029008292ae=tj;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=QN;exports.$6057a3d2a53a12fd$export$42df105a73306d51=Yj;exports.$64244302c3013299$export$dd0bbc9b26defe37=vN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=ON;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=nK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=jK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=IN;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=wK;exports.$a916eb452884faea$export$b7a616150fdb9f44=RN;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=AK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=FK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$S;exports.$bcca50147b47f54d$export$56b2c08e277f365=ej;exports.$c132121280ec012d$export$50eacbbf140a3141=Mj;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=kj;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Wj;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=VN;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=KK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=wj;exports.$fae977aafc393c5c$export$6b862160d295c8e=GV;exports.ACTIONS=$t;exports.AdvancedImage=RW;exports.Cloudinary=SH;exports.EVENTS=ri;exports.FormProvider=aK;exports.LazyMotion=Zee;exports.M=oL;exports.M$1=gi;exports.R=hs;exports.ReorderGroup=yJ;exports.ReorderItem=xJ;exports.STATUS=ct;exports._=GI;exports.autoUpdate=dC;exports.components_default=_re;exports.dayjs=HK;exports.domAnimation=Jee;exports.dt=QE;exports.ee=tP;exports.flip=zI;exports.isNumber=NH;exports.lazyload=Qz;exports.lodashExports=mC;exports.lt=Yv;exports.m=Yee;exports.mt=lI;exports.nt=aI;exports.o=RH;exports.offset=UI;exports.ot=sI;exports.placeholder=rW;exports.prismExports=AH;exports.q=Ob;exports.useController=lK;exports.useFloating=KI;exports.useForm=xK;exports.useFormContext=op;