@fluidattacks/design 3.5.0 → 3.6.1

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 (160) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/components/@core/index.js +1 -1
  3. package/dist/components/accordion/accordion-content/index.js +1 -1
  4. package/dist/components/accordion/index.js +1 -1
  5. package/dist/components/alert/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/button/types.d.ts +3 -0
  8. package/dist/components/card/card-header/index.js +1 -1
  9. package/dist/components/card/card-with-image/index.js +1 -1
  10. package/dist/components/card/card-with-input/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/carousel/index.js +1 -1
  15. package/dist/components/checkbox/index.js +1 -1
  16. package/dist/components/cloud-image/index.js +1 -1
  17. package/dist/components/code-snippet/index.js +1 -1
  18. package/dist/components/code-snippet/location-code/index.js +1 -1
  19. package/dist/components/colors/index.js +1 -1
  20. package/dist/components/confirm-dialog/index.js +1 -1
  21. package/dist/components/container/index.js +1 -1
  22. package/dist/components/content-card/category-tag/index.js +1 -1
  23. package/dist/components/content-card/event-date/index.js +1 -1
  24. package/dist/components/content-card/index.js +1 -1
  25. package/dist/components/content-card-carousel/index.js +1 -1
  26. package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
  27. package/dist/components/divider/index.js +1 -1
  28. package/dist/components/empty-state/empty-button/index.js +1 -1
  29. package/dist/components/empty-state/index.js +1 -1
  30. package/dist/components/file-preview/index.js +1 -1
  31. package/dist/components/form/index.d.ts +2 -1
  32. package/dist/components/form/index.js +1 -1
  33. package/dist/components/form/types.d.ts +6 -5
  34. package/dist/components/grid-container/index.js +1 -1
  35. package/dist/components/group-selector/index.js +1 -1
  36. package/dist/components/group-selector/option-container/index.js +1 -1
  37. package/dist/components/icon/index.js +1 -1
  38. package/dist/components/icon-button/index.js +1 -1
  39. package/dist/components/indicator-card/index.js +1 -1
  40. package/dist/components/info-sidebar/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/index.d.ts +1 -1
  42. package/dist/components/inputs/fields/combobox/index.js +1 -1
  43. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  44. package/dist/components/inputs/fields/combobox/types.d.ts +1 -5
  45. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  46. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  47. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  48. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  49. package/dist/components/inputs/fields/date/index.d.ts +1 -1
  50. package/dist/components/inputs/fields/date/index.js +1 -1
  51. package/dist/components/inputs/fields/date/types.d.ts +3 -5
  52. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  53. package/dist/components/inputs/fields/date-range/index.d.ts +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.d.ts +1 -1
  57. package/dist/components/inputs/fields/date-time/index.js +1 -1
  58. package/dist/components/inputs/fields/editable/index.js +1 -1
  59. package/dist/components/inputs/fields/input/index.d.ts +1 -1
  60. package/dist/components/inputs/fields/input/index.js +1 -1
  61. package/dist/components/inputs/fields/input-file/index.d.ts +1 -1
  62. package/dist/components/inputs/fields/input-file/index.js +1 -1
  63. package/dist/components/inputs/fields/input-tags/index.d.ts +1 -1
  64. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  65. package/dist/components/inputs/fields/number/index.d.ts +1 -1
  66. package/dist/components/inputs/fields/number/index.js +1 -1
  67. package/dist/components/inputs/fields/number-range/index.d.ts +1 -1
  68. package/dist/components/inputs/fields/number-range/index.js +1 -1
  69. package/dist/components/inputs/fields/phone/index.d.ts +1 -1
  70. package/dist/components/inputs/fields/phone/index.js +1 -1
  71. package/dist/components/inputs/fields/text-area/index.d.ts +1 -1
  72. package/dist/components/inputs/fields/text-area/index.js +1 -1
  73. package/dist/components/inputs/index.js +1 -1
  74. package/dist/components/inputs/label/index.js +1 -1
  75. package/dist/components/inputs/outline-container/index.js +1 -1
  76. package/dist/components/inputs/styles.d.ts +3 -1
  77. package/dist/components/inputs/types.d.ts +3 -5
  78. package/dist/components/inputs/utils/action-button/index.js +1 -1
  79. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  80. package/dist/components/inputs/utils/date-selector/index.d.ts +1 -1
  81. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  82. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  83. package/dist/components/inputs/utils/dialog/index.js +1 -1
  84. package/dist/components/inputs/utils/number-field/index.d.ts +1 -4
  85. package/dist/components/inputs/utils/number-field/index.js +1 -1
  86. package/dist/components/inputs/utils/popover/index.js +1 -1
  87. package/dist/components/inputs/utils/types.d.ts +4 -1
  88. package/dist/components/interactive-card/icon/index.js +1 -1
  89. package/dist/components/interactive-card/index.js +1 -1
  90. package/dist/components/language-selector/index.js +1 -1
  91. package/dist/components/language-selector/item-list/index.js +1 -1
  92. package/dist/components/link/index.js +1 -1
  93. package/dist/components/list-item/index.js +1 -1
  94. package/dist/components/little-flag/index.js +1 -1
  95. package/dist/components/loading/index.js +1 -1
  96. package/dist/components/logo/index.js +1 -1
  97. package/dist/components/logo-carousel/index.js +1 -1
  98. package/dist/components/menu/index.js +1 -1
  99. package/dist/components/message-banner/index.js +1 -1
  100. package/dist/components/modal/index.js +1 -1
  101. package/dist/components/modal/modal-confirm/index.js +1 -1
  102. package/dist/components/modal/modal-footer/index.js +1 -1
  103. package/dist/components/modal/modal-header/index.js +1 -1
  104. package/dist/components/notification/index.js +1 -1
  105. package/dist/components/notification-sign/index.js +1 -1
  106. package/dist/components/number-input/index.js +1 -1
  107. package/dist/components/oauth-selector/index.js +1 -1
  108. package/dist/components/oauth-selector/option-container/index.js +1 -1
  109. package/dist/components/plan-card/index.js +1 -1
  110. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  111. package/dist/components/pop-up/description/index.js +1 -1
  112. package/dist/components/pop-up/index.js +1 -1
  113. package/dist/components/premium-feature/index.js +1 -1
  114. package/dist/components/priority-score/index.js +1 -1
  115. package/dist/components/progress/index.js +1 -1
  116. package/dist/components/progress-bar/index.js +1 -1
  117. package/dist/components/radio-button/index.js +1 -1
  118. package/dist/components/scroll-button/index.js +1 -1
  119. package/dist/components/search/index.js +1 -1
  120. package/dist/components/search-bar/index.js +1 -1
  121. package/dist/components/search-bar/item-searching/index.js +1 -1
  122. package/dist/components/severity-badge/index.js +1 -1
  123. package/dist/components/severity-overview/badge/index.js +1 -1
  124. package/dist/components/severity-overview/index.js +1 -1
  125. package/dist/components/show-on-hover/index.js +1 -1
  126. package/dist/components/slide-out-menu/index.js +1 -1
  127. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  128. package/dist/components/slider/index.js +1 -1
  129. package/dist/components/slider/thumb/index.js +1 -1
  130. package/dist/components/step-lapse/index.js +1 -1
  131. package/dist/components/table-button/index.js +1 -1
  132. package/dist/components/tabs/fixed-tabs/index.js +1 -1
  133. package/dist/components/tabs/index.d.ts +2 -4
  134. package/dist/components/tabs/index.js +1 -1
  135. package/dist/components/tabs/styles.d.ts +5 -2
  136. package/dist/components/tabs/tab/index.d.ts +1 -1
  137. package/dist/components/tabs/tab/index.js +1 -1
  138. package/dist/components/tabs/types.d.ts +8 -0
  139. package/dist/components/tag/index.js +1 -1
  140. package/dist/components/timeline/card/index.js +1 -1
  141. package/dist/components/timeline/index.js +1 -1
  142. package/dist/components/toggle/index.js +1 -1
  143. package/dist/components/toggle-buttons/index.js +1 -1
  144. package/dist/components/tooltip/index.js +1 -1
  145. package/dist/components/tour/index.js +1 -1
  146. package/dist/components/typography/heading/index.js +1 -1
  147. package/dist/components/typography/index.js +1 -1
  148. package/dist/components/typography/span/index.js +1 -1
  149. package/dist/components/typography/text/index.js +1 -1
  150. package/dist/components/web-form/index.js +1 -1
  151. package/dist/components-C59CBzCj.js +3188 -0
  152. package/dist/{components-CGvzmRsn.mjs → components-DS1UVPkm.mjs} +3143 -2835
  153. package/dist/hooks/index.js +1 -1
  154. package/dist/index.js +1 -1
  155. package/dist/utils/date.d.ts +2 -1
  156. package/dist/vendor-BC9dYdeh.js +223 -0
  157. package/dist/{vendor-C3FxgoUJ.mjs → vendor-WdqNSr9B.mjs} +12713 -11309
  158. package/package.json +2 -1
  159. package/dist/components-B4aUPqYW.js +0 -3169
  160. package/dist/vendor-DF-1WGUy.js +0 -223
@@ -1,223 +0,0 @@
1
- "use strict";require('./assets/vendor.css');const b=require("react"),xo=require("react-dom"),Ih=require("react/jsx-runtime");function x3(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 Ve=x3(b),Uc=x3(xo);var Mn=function(){return Mn=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},Mn.apply(this,arguments)};function sa(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 Q_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var X_=/^((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)-.*))$/,e9=Q_(function(e){return X_.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ou=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rt="-ms-",Ns="-moz-",gt="-webkit-",w3="comm",Ud="rule",og="decl",t9="@import",D3="@keyframes",n9="@layer",E3=Math.abs,ag=String.fromCharCode,Lh=Object.assign;function r9(e,t){return pn(e,0)^45?(((t<<2^pn(e,0))<<2^pn(e,1))<<2^pn(e,2))<<2^pn(e,3):0}function C3(e){return e.trim()}function Ii(e,t){return(e=t.exec(e))?e[0]:e}function Qe(e,t,n){return e.replace(t,n)}function zc(e,t,n){return e.indexOf(t,n)}function pn(e,t){return e.charCodeAt(t)|0}function $u(e,t,n){return e.slice(t,n)}function di(e){return e.length}function S3(e){return e.length}function Os(e,t){return t.push(e),e}function i9(e,t){return e.map(t).join("")}function qb(e,t){return e.filter(function(n){return!Ii(n,t)})}var zd=1,xu=1,A3=0,Nr=0,Zt=0,Vu="";function Wd(e,t,n,r,i,o,u,l){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:zd,column:xu,length:u,return:"",siblings:l}}function co(e,t){return Lh(Wd("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Za(e){for(;e.root;)e=co(e.root,{children:[e]});Os(e,e.siblings)}function o9(){return Zt}function a9(){return Zt=Nr>0?pn(Vu,--Nr):0,xu--,Zt===10&&(xu=1,zd--),Zt}function Jr(){return Zt=Nr<A3?pn(Vu,Nr++):0,xu++,Zt===10&&(xu=1,zd++),Zt}function ia(){return pn(Vu,Nr)}function Wc(){return Nr}function Hd(e,t){return $u(Vu,e,t)}function Vh(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 u9(e){return zd=xu=1,A3=di(Vu=e),Nr=0,[]}function s9(e){return Vu="",e}function Lp(e){return C3(Hd(Nr-1,Nh(e===91?e+2:e===40?e+1:e)))}function l9(e){for(;(Zt=ia())&&Zt<33;)Jr();return Vh(e)>2||Vh(Zt)>3?"":" "}function c9(e,t){for(;--t&&Jr()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return Hd(e,Wc()+(t<6&&ia()==32&&Jr()==32))}function Nh(e){for(;Jr();)switch(Zt){case e:return Nr;case 34:case 39:e!==34&&e!==39&&Nh(Zt);break;case 40:e===41&&Nh(e);break;case 92:Jr();break}return Nr}function d9(e,t){for(;Jr()&&e+Zt!==57;)if(e+Zt===84&&ia()===47)break;return"/*"+Hd(t,Nr-1)+"*"+ag(e===47?e:Jr())}function f9(e){for(;!Vh(ia());)Jr();return Hd(e,Nr)}function p9(e){return s9(Hc("",null,null,null,[""],e=u9(e),0,[0],e))}function Hc(e,t,n,r,i,o,u,l,c){for(var d=0,p=0,h=u,g=0,m=0,x=0,w=1,C=1,$=1,v=0,D="",P=i,E=o,T=r,F=D;C;)switch(x=v,v=Jr()){case 40:if(x!=108&&pn(F,h-1)==58){zc(F+=Qe(Lp(v),"&","&\f"),"&\f",E3(d?l[d-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:F+=Lp(v);break;case 9:case 10:case 13:case 32:F+=l9(x);break;case 92:F+=c9(Wc()-1,7);continue;case 47:switch(ia()){case 42:case 47:Os(h9(d9(Jr(),Wc()),t,n,c),c);break;default:F+="/"}break;case 123*w:l[d++]=di(F)*$;case 125*w:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+p:$==-1&&(F=Qe(F,/\f/g,"")),m>0&&di(F)-h&&Os(m>32?Zb(F+";",r,n,h-1,c):Zb(Qe(F," ","")+";",r,n,h-2,c),c);break;case 59:F+=";";default:if(Os(T=Yb(F,t,n,d,p,i,l,D,P=[],E=[],h,o),o),v===123)if(p===0)Hc(F,t,T,T,P,o,h,l,E);else switch(g===99&&pn(F,3)===110?100:g){case 100:case 108:case 109:case 115:Hc(e,T,T,r&&Os(Yb(e,T,T,0,0,i,l,D,i,P=[],h,E),E),i,E,h,l,r?P:E);break;default:Hc(F,T,T,T,[""],E,0,l,E)}}d=p=m=0,w=$=1,D=F="",h=u;break;case 58:h=1+di(F),m=x;default:if(w<1){if(v==123)--w;else if(v==125&&w++==0&&a9()==125)continue}switch(F+=ag(v),v*w){case 38:$=p>0?1:(F+="\f",-1);break;case 44:l[d++]=(di(F)-1)*$,$=1;break;case 64:ia()===45&&(F+=Lp(Jr())),g=ia(),p=h=di(D=F+=f9(Wc())),v++;break;case 45:x===45&&di(F)==2&&(w=0)}}return o}function Yb(e,t,n,r,i,o,u,l,c,d,p,h){for(var g=i-1,m=i===0?o:[""],x=S3(m),w=0,C=0,$=0;w<r;++w)for(var v=0,D=$u(e,g+1,g=E3(C=u[w])),P=e;v<x;++v)(P=C3(C>0?m[v]+" "+D:Qe(D,/&\f/g,m[v])))&&(c[$++]=P);return Wd(e,t,n,i===0?Ud:l,c,d,p,h)}function h9(e,t,n,r){return Wd(e,t,n,w3,ag(o9()),$u(e,2,-2),0,r)}function Zb(e,t,n,r,i){return Wd(e,t,n,og,$u(e,0,r),$u(e,r+1,-1),r,i)}function T3(e,t,n){switch(r9(e,t)){case 5103:return gt+"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 gt+e+e;case 4789:return Ns+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gt+e+Ns+e+Rt+e+e;case 5936:switch(pn(e,t+11)){case 114:return gt+e+Rt+Qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gt+e+Rt+Qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gt+e+Rt+Qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return gt+e+Rt+e+e;case 6165:return gt+e+Rt+"flex-"+e+e;case 5187:return gt+e+Qe(e,/(\w+).+(:[^]+)/,gt+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return gt+e+Rt+"flex-item-"+Qe(e,/flex-|-self/g,"")+(Ii(e,/flex-|baseline/)?"":Rt+"grid-row-"+Qe(e,/flex-|-self/g,""))+e;case 4675:return gt+e+Rt+"flex-line-pack"+Qe(e,/align-content|flex-|-self/g,"")+e;case 5548:return gt+e+Rt+Qe(e,"shrink","negative")+e;case 5292:return gt+e+Rt+Qe(e,"basis","preferred-size")+e;case 6060:return gt+"box-"+Qe(e,"-grow","")+gt+e+Rt+Qe(e,"grow","positive")+e;case 4554:return gt+Qe(e,/([^-])(transform)/g,"$1"+gt+"$2")+e;case 6187:return Qe(Qe(Qe(e,/(zoom-|grab)/,gt+"$1"),/(image-set)/,gt+"$1"),e,"")+e;case 5495:case 3959:return Qe(e,/(image-set\([^]*)/,gt+"$1$`$1");case 4968:return Qe(Qe(e,/(.+:)(flex-)?(.*)/,gt+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gt+e+e;case 4200:if(!Ii(e,/flex-|baseline/))return Rt+"grid-column-align"+$u(e,t)+e;break;case 2592:case 3360:return Rt+Qe(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ii(r.props,/grid-\w+-end/)})?~zc(e+(n=n[t].value),"span",0)?e:Rt+Qe(e,"-start","")+e+Rt+"grid-row-span:"+(~zc(n,"span",0)?Ii(n,/\d+/):+Ii(n,/\d+/)-+Ii(e,/\d+/))+";":Rt+Qe(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ii(r.props,/grid-\w+-start/)})?e:Rt+Qe(Qe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Qe(e,/(.+)-inline(.+)/,gt+"$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(di(e)-1-t>6)switch(pn(e,t+1)){case 109:if(pn(e,t+4)!==45)break;case 102:return Qe(e,/(.+:)(.+)-([^]+)/,"$1"+gt+"$2-$3$1"+Ns+(pn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zc(e,"stretch",0)?T3(Qe(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Qe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,u,l,c,d){return Rt+i+":"+o+d+(u?Rt+i+"-span:"+(l?c:+c-+o)+d:"")+e});case 4949:if(pn(e,t+6)===121)return Qe(e,":",":"+gt)+e;break;case 6444:switch(pn(e,pn(e,14)===45?18:11)){case 120:return Qe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+gt+(pn(e,14)===45?"inline-":"")+"box$3$1"+gt+"$2$3$1"+Rt+"$2box$3")+e;case 100:return Qe(e,":",":"+Rt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Qe(e,"scroll-","scroll-snap-")+e}return e}function od(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function m9(e,t,n,r){switch(e.type){case n9:if(e.children.length)break;case t9:case og:return e.return=e.return||e.value;case w3:return"";case D3:return e.return=e.value+"{"+od(e.children,r)+"}";case Ud:if(!di(e.value=e.props.join(",")))return""}return di(n=od(e.children,r))?e.return=e.value+"{"+n+"}":""}function g9(e){var t=S3(e);return function(n,r,i,o){for(var u="",l=0;l<t;l++)u+=e[l](n,r,i,o)||"";return u}}function y9(e){return function(t){t.root||(t=t.return)&&e(t)}}function v9(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case og:e.return=T3(e.value,e.length,n);return;case D3:return od([co(e,{value:Qe(e.value,"@","@"+gt)})],r);case Ud:if(e.length)return i9(n=e.props,function(i){switch(Ii(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Za(co(e,{props:[Qe(i,/:(read-\w+)/,":"+Ns+"$1")]})),Za(co(e,{props:[i]})),Lh(e,{props:qb(n,r)});break;case"::placeholder":Za(co(e,{props:[Qe(i,/:(plac\w+)/,":"+gt+"input-$1")]})),Za(co(e,{props:[Qe(i,/:(plac\w+)/,":"+Ns+"$1")]})),Za(co(e,{props:[Qe(i,/:(plac\w+)/,Rt+"input-$1")]})),Za(co(e,{props:[i]})),Lh(e,{props:qb(n,r)});break}return""})}}var b9={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},la=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",P3="active",_3="data-styled-version",Gd="6.1.14",ug=`/*!sc*/
2
- `,ad=typeof window<"u"&&"HTMLElement"in window,$9=!!(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"),Jb=/invalid hook call/i,wc=new Set,x9=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(u){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];Jb.test(u)?(o=!1,wc.delete(r)):i.apply(void 0,sa([u],l,!1))},b.useRef(),o&&!wc.has(r)&&(console.warn(r),wc.add(r))}catch(u){Jb.test(u.message)&&wc.delete(r)}finally{console.error=i}}},qd=Object.freeze([]),wu=Object.freeze({});function w9(e,t,n){return n===void 0&&(n=wu),e.theme!==n.theme&&e.theme||t||n.theme}var Kh=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"]),D9=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,E9=/(^-|-$)/g;function Qb(e){return e.replace(D9,"-").replace(E9,"")}var C9=/(a)(d)/gi,Dc=52,Xb=function(e){return String.fromCharCode(e+(e>25?39:97))};function jh(e){var t,n="";for(t=Math.abs(e);t>Dc;t=t/Dc|0)n=Xb(t%Dc)+n;return(Xb(t%Dc)+n).replace(C9,"$1-$2")}var Vp,R3=5381,Yo=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},O3=function(e){return Yo(R3,e)};function F3(e){return jh(O3(e)>>>0)}function M3(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Np(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var k3=typeof Symbol=="function"&&Symbol.for,B3=k3?Symbol.for("react.memo"):60115,S9=k3?Symbol.for("react.forward_ref"):60112,A9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},T9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},I3={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},P9=((Vp={})[S9]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vp[B3]=I3,Vp);function e0(e){return("type"in(t=e)&&t.type.$$typeof)===B3?I3:"$$typeof"in e?P9[e.$$typeof]:A9;var t}var _9=Object.defineProperty,R9=Object.getOwnPropertyNames,t0=Object.getOwnPropertySymbols,O9=Object.getOwnPropertyDescriptor,F9=Object.getPrototypeOf,n0=Object.prototype;function L3(e,t,n){if(typeof t!="string"){if(n0){var r=F9(t);r&&r!==n0&&L3(e,r,n)}var i=R9(t);t0&&(i=i.concat(t0(t)));for(var o=e0(e),u=e0(t),l=0;l<i.length;++l){var c=i[l];if(!(c in T9||n&&n[c]||u&&c in u||o&&c in o)){var d=O9(t,c);try{_9(e,c,d)}catch{}}}}return e}function ca(e){return typeof e=="function"}function sg(e){return typeof e=="object"&&"styledComponentId"in e}function Qo(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Uh(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Du(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function zh(e,t,n){if(n===void 0&&(n=!1),!n&&!Du(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=zh(e[r],t[r]);else if(Du(t))for(var r in t)e[r]=zh(e[r],t[r]);return e}function lg(e,t){Object.defineProperty(e,"toString",{value:t})}var M9=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 k9(){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(u){n=n.replace(/%[a-z]/,u)}),n}function vi(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(k9.apply(void 0,sa([M9[e]],t,!1)).trim())}var B9=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 vi(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var u=i;u<o;u++)this.groupSizes[u]=0}for(var l=this.indexOfGroup(t+1),c=(u=0,n.length);u<c;u++)this.tag.insertRule(l,n[u])&&(this.groupSizes[t]++,l++)},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,u=i;u<o;u++)n+="".concat(this.tag.getRule(u)).concat(ug);return n},e}(),I9=1<<30,Gc=new Map,ud=new Map,qc=1,Ec=function(e){if(Gc.has(e))return Gc.get(e);for(;ud.has(qc);)qc++;var t=qc++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>I9))throw vi(16,"".concat(t));return Gc.set(e,t),ud.set(t,e),t},L9=function(e,t){qc=t+1,Gc.set(e,t),ud.set(t,e)},V9="style[".concat(la,"][").concat(_3,'="').concat(Gd,'"]'),N9=new RegExp("^".concat(la,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),K9=function(e,t,n){for(var r,i=n.split(","),o=0,u=i.length;o<u;o++)(r=i[o])&&e.registerName(t,r)},j9=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(ug),i=[],o=0,u=r.length;o<u;o++){var l=r[o].trim();if(l){var c=l.match(N9);if(c){var d=0|parseInt(c[1],10),p=c[2];d!==0&&(L9(p,d),K9(e,p,c[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(l)}}},r0=function(e){for(var t=document.querySelectorAll(V9),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(la)!==P3&&(j9(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function U9(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var V3=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(l){var c=Array.from(l.querySelectorAll("style[".concat(la,"]")));return c[c.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(la,P3),r.setAttribute(_3,Gd);var u=U9();return u&&r.setAttribute("nonce",u),n.insertBefore(r,o),r},z9=function(){function e(t){this.element=V3(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 u=r[i];if(u.ownerNode===n)return u}throw vi(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}(),W9=function(){function e(t){this.element=V3(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}(),H9=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}(),i0=ad,G9={isServer:!ad,useCSSOMInjection:!$9},N3=function(){function e(t,n,r){t===void 0&&(t=wu),n===void 0&&(n={});var i=this;this.options=Mn(Mn({},G9),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&ad&&i0&&(i0=!1,r0(this)),lg(this,function(){return function(o){for(var u=o.getTag(),l=u.length,c="",d=function(h){var g=function($){return ud.get($)}(h);if(g===void 0)return"continue";var m=o.names.get(g),x=u.getGroup(h);if(m===void 0||!m.size||x.length===0)return"continue";var w="".concat(la,".g").concat(h,'[id="').concat(g,'"]'),C="";m!==void 0&&m.forEach(function($){$.length>0&&(C+="".concat($,","))}),c+="".concat(x).concat(w,'{content:"').concat(C,'"}').concat(ug)},p=0;p<l;p++)d(p);return c}(i)})}return e.registerId=function(t){return Ec(t)},e.prototype.rehydrate=function(){!this.server&&ad&&r0(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Mn(Mn({},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 H9(i):r?new z9(i):new W9(i)}(this.options),new B9(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(Ec(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(Ec(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ec(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),q9=/&/g,Y9=/^\s*\/\/.*$/gm;function K3(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=K3(n.children,t)),n})}function Z9(e){var t,n,r,i=wu,o=i.options,u=o===void 0?wu:o,l=i.plugins,c=l===void 0?qd:l,d=function(g,m,x){return x.startsWith(n)&&x.endsWith(n)&&x.replaceAll(n,"").length>0?".".concat(t):g},p=c.slice();p.push(function(g){g.type===Ud&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(q9,n).replace(r,d))}),u.prefix&&p.push(v9),p.push(m9);var h=function(g,m,x,w){m===void 0&&(m=""),x===void 0&&(x=""),w===void 0&&(w="&"),t=w,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var C=g.replace(Y9,""),$=p9(x||m?"".concat(x," ").concat(m," { ").concat(C," }"):C);u.namespace&&($=K3($,u.namespace));var v=[];return od($,g9(p.concat(y9(function(D){return v.push(D)})))),v};return h.hash=c.length?c.reduce(function(g,m){return m.name||vi(15),Yo(g,m.name)},R3).toString():"",h}var J9=new N3,Wh=Z9(),j3=b.createContext({shouldForwardProp:void 0,styleSheet:J9,stylis:Wh});j3.Consumer;b.createContext(void 0);function o0(){return b.useContext(j3)}var Hh=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Wh);var u=r.name+o.hash;i.hasNameForId(r.id,u)||i.insertRules(r.id,u,o(r.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,lg(this,function(){throw vi(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Wh),this.name+t.hash},e}(),Q9=function(e){return e>="A"&&e<="Z"};function a0(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Q9(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var U3=function(e){return e==null||e===!1||e===""},z3=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!U3(o)&&(Array.isArray(o)&&o.isCss||ca(o)?r.push("".concat(a0(i),":"),o,";"):Du(o)?r.push.apply(r,sa(sa(["".concat(i," {")],z3(o),!1),["}"],!1)):r.push("".concat(a0(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in b9||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function oa(e,t,n,r){if(U3(e))return[];if(sg(e))return[".".concat(e.styledComponentId)];if(ca(e)){if(!ca(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 Hh||Du(i)||i===null||console.error("".concat(M3(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.")),oa(i,t,n,r)}var o;return e instanceof Hh?n?(e.inject(n,r),[e.getName(r)]):[e]:Du(e)?z3(e):Array.isArray(e)?Array.prototype.concat.apply(qd,e.map(function(u){return oa(u,t,n,r)})):[e.toString()]}function X9(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ca(n)&&!sg(n))return!1}return!0}var eR=O3(Gd),tR=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&X9(t),this.componentId=n,this.baseHash=Yo(eR,n),this.baseStyle=r,N3.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=Qo(i,this.staticRulesId);else{var o=Uh(oa(this.rules,t,n,r)),u=jh(Yo(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,u)){var l=r(o,".".concat(u),void 0,this.componentId);n.insertRules(this.componentId,u,l)}i=Qo(i,u),this.staticRulesId=u}else{for(var c=Yo(this.baseHash,r.hash),d="",p=0;p<this.rules.length;p++){var h=this.rules[p];if(typeof h=="string")d+=h,process.env.NODE_ENV!=="production"&&(c=Yo(c,h));else if(h){var g=Uh(oa(h,t,n,r));c=Yo(c,g+p),d+=g}}if(d){var m=jh(c>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(d,".".concat(m),void 0,this.componentId)),i=Qo(i,m)}}return i},e}(),Ws=b.createContext(void 0);Ws.Consumer;function nR(){var e=b.useContext(Ws);if(!e)throw vi(18);return e}function rR(e){var t=b.useContext(Ws),n=b.useMemo(function(){return function(r,i){if(!r)throw vi(14);if(ca(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw vi(7);return o}if(Array.isArray(r)||typeof r!="object")throw vi(8);return i?Mn(Mn({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?b.createElement(Ws.Provider,{value:n},e.children):null}var Kp={},u0=new Set;function iR(e,t,n){var r=sg(e),i=e,o=!Np(e),u=t.attrs,l=u===void 0?qd:u,c=t.componentId,d=c===void 0?function(P,E){var T=typeof P!="string"?"sc":Qb(P);Kp[T]=(Kp[T]||0)+1;var F="".concat(T,"-").concat(F3(Gd+T+Kp[T]));return E?"".concat(E,"-").concat(F):F}(t.displayName,t.parentComponentId):c,p=t.displayName,h=p===void 0?function(P){return Np(P)?"styled.".concat(P):"Styled(".concat(M3(P),")")}(e):p,g=t.displayName&&t.componentId?"".concat(Qb(t.displayName),"-").concat(t.componentId):t.componentId||d,m=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var w=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;x=function(P,E){return w(P,E)&&C(P,E)}}else x=w}var $=new tR(n,g,r?i.componentStyle:void 0);function v(P,E){return function(T,F,S){var j=T.attrs,k=T.componentStyle,B=T.defaultProps,Z=T.foldedComponentIds,V=T.styledComponentId,q=T.target,H=b.useContext(Ws),z=o0(),I=T.shouldForwardProp||z.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(V);var N=w9(F,H,B)||wu,Q=function(ne,ve,ye){for(var X,ge=Mn(Mn({},ve),{className:void 0,theme:ye}),be=0;be<ne.length;be+=1){var pe=ca(X=ne[be])?X(ge):X;for(var ae in pe)ge[ae]=ae==="className"?Qo(ge[ae],pe[ae]):ae==="style"?Mn(Mn({},ge[ae]),pe[ae]):pe[ae]}return ve.className&&(ge.className=Qo(ge.className,ve.className)),ge}(j,F,N),L=Q.as||q,U={};for(var ie in Q)Q[ie]===void 0||ie[0]==="$"||ie==="as"||ie==="theme"&&Q.theme===N||(ie==="forwardedAs"?U.as=Q.forwardedAs:I&&!I(ie,L)||(U[ie]=Q[ie],I||process.env.NODE_ENV!=="development"||e9(ie)||u0.has(ie)||!Kh.has(L)||(u0.add(ie),console.warn('styled-components: it looks like an unknown prop "'.concat(ie,'" 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(ne,ve){var ye=o0(),X=ne.generateAndInjectStyles(ve,ye.styleSheet,ye.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue(X),X}(k,Q);process.env.NODE_ENV!=="production"&&T.warnTooManyClasses&&T.warnTooManyClasses(oe);var me=Qo(Z,V);return oe&&(me+=" "+oe),Q.className&&(me+=" "+Q.className),U[Np(L)&&!Kh.has(L)?"class":"className"]=me,S&&(U.ref=S),b.createElement(L,U)}(D,P,E)}v.displayName=h;var D=b.forwardRef(v);return D.attrs=m,D.componentStyle=$,D.displayName=h,D.shouldForwardProp=x,D.foldedComponentIds=r?Qo(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=g,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=[],F=1;F<arguments.length;F++)T[F-1]=arguments[F];for(var S=0,j=T;S<j.length;S++)zh(E,j[S],!0);return E}({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(x9(h,g),D.warnTooManyClasses=function(P,E){var T={},F=!1;return function(S){if(!F&&(T[S]=!0,Object.keys(T).length>=200)){var j=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(P).concat(j,`.
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 />`),F=!0,T={}}}}(h,g)),lg(D,function(){return".".concat(D.styledComponentId)}),o&&L3(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function s0(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 l0=function(e){return Object.assign(e,{isCss:!0})};function cg(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ca(e)||Du(e))return l0(oa(s0(qd,sa([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?oa(r):l0(oa(s0(r,t)))}function Gh(e,t,n){if(n===void 0&&(n=wu),!t)throw vi(1,t);var r=function(i){for(var o=[],u=1;u<arguments.length;u++)o[u-1]=arguments[u];return e(t,n,cg.apply(void 0,sa([i],o,!1)))};return r.attrs=function(i){return Gh(e,t,Mn(Mn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Gh(e,t,Mn(Mn({},n),i))},r}var W3=function(e){return Gh(iR,e)},H3=W3;Kh.forEach(function(e){H3[e]=W3(e)});function oR(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=Uh(cg.apply(void 0,sa([e],t,!1))),i=F3(r);return new Hh(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 Cc="__sc-".concat(la,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Cc]||(window[Cc]=0),window[Cc]===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[Cc]+=1);const Eu=Math.min,aa=Math.max,sd=Math.round,Sc=Math.floor,bi=e=>({x:e,y:e}),aR={left:"right",right:"left",bottom:"top",top:"bottom"},uR={start:"end",end:"start"};function qh(e,t,n){return aa(e,Eu(t,n))}function ul(e,t){return typeof e=="function"?e(t):e}function da(e){return e.split("-")[0]}function sl(e){return e.split("-")[1]}function G3(e){return e==="x"?"y":"x"}function dg(e){return e==="y"?"height":"width"}function Cu(e){return["top","bottom"].includes(da(e))?"y":"x"}function fg(e){return G3(Cu(e))}function sR(e,t,n){n===void 0&&(n=!1);const r=sl(e),i=fg(e),o=dg(i);let u=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(u=ld(u)),[u,ld(u)]}function lR(e){const t=ld(e);return[Yh(e),t,Yh(t)]}function Yh(e){return e.replace(/start|end/g,t=>uR[t])}function cR(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:u;default:return[]}}function dR(e,t,n,r){const i=sl(e);let o=cR(da(e),n==="start",r);return i&&(o=o.map(u=>u+"-"+i),t&&(o=o.concat(o.map(Yh)))),o}function ld(e){return e.replace(/left|right|bottom|top/g,t=>aR[t])}function fR(e){return{top:0,right:0,bottom:0,left:0,...e}}function q3(e){return typeof e!="number"?fR(e):{top:e,right:e,bottom:e,left:e}}function cd(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 c0(e,t,n){let{reference:r,floating:i}=e;const o=Cu(t),u=fg(t),l=dg(u),c=da(t),d=o==="y",p=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let m;switch(c){case"top":m={x:p,y:r.y-i.height};break;case"bottom":m={x:p,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-i.width,y:h};break;default:m={x:r.x,y:r.y}}switch(sl(t)){case"start":m[u]-=g*(n&&d?-1:1);break;case"end":m[u]+=g*(n&&d?-1:1);break}return m}const pR=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:u}=n,l=o.filter(Boolean),c=await(u.isRTL==null?void 0:u.isRTL(t));let d=await u.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:h}=c0(d,r,c),g=r,m={},x=0;for(let w=0;w<l.length;w++){const{name:C,fn:$}=l[w],{x:v,y:D,data:P,reset:E}=await $({x:p,y:h,initialPlacement:r,placement:g,strategy:i,middlewareData:m,rects:d,platform:u,elements:{reference:e,floating:t}});p=v??p,h=D??h,m={...m,[C]:{...m[C],...P}},E&&x<=50&&(x++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(d=E.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:p,y:h}=c0(d,g,c)),w=-1)}return{x:p,y:h,placement:g,strategy:i,middlewareData:m}};async function Y3(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:u,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:g=!1,padding:m=0}=ul(t,e),x=q3(m),C=l[g?h==="floating"?"reference":"floating":h],$=cd(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(l.floating)),boundary:d,rootBoundary:p,strategy:c})),v=h==="floating"?{x:r,y:i,width:u.floating.width,height:u.floating.height}:u.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.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=cd(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:D,strategy:c}):v);return{top:($.top-E.top+x.top)/P.y,bottom:(E.bottom-$.bottom+x.bottom)/P.y,left:($.left-E.left+x.left)/P.x,right:(E.right-$.right+x.right)/P.x}}const hR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:u,elements:l,middlewareData:c}=t,{element:d,padding:p=0}=ul(e,t)||{};if(d==null)return{};const h=q3(p),g={x:n,y:r},m=fg(i),x=dg(m),w=await u.getDimensions(d),C=m==="y",$=C?"top":"left",v=C?"bottom":"right",D=C?"clientHeight":"clientWidth",P=o.reference[x]+o.reference[m]-g[m]-o.floating[x],E=g[m]-o.reference[m],T=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d));let F=T?T[D]:0;(!F||!await(u.isElement==null?void 0:u.isElement(T)))&&(F=l.floating[D]||o.floating[x]);const S=P/2-E/2,j=F/2-w[x]/2-1,k=Eu(h[$],j),B=Eu(h[v],j),Z=k,V=F-w[x]-B,q=F/2-w[x]/2+S,H=qh(Z,q,V),z=!c.arrow&&sl(i)!=null&&q!==H&&o.reference[x]/2-(q<Z?k:B)-w[x]/2<0,I=z?q<Z?q-Z:q-V:0;return{[m]:g[m]+I,data:{[m]:H,centerOffset:q-H-I,...z&&{alignmentOffset:I}},reset:z}}}),mR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:u,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...C}=ul(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const $=da(i),v=Cu(l),D=da(l)===l,P=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=g||(D||!w?[ld(l)]:lR(l)),T=x!=="none";!g&&T&&E.push(...dR(l,w,x,P));const F=[l,...E],S=await Y3(t,C),j=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(p&&j.push(S[$]),h){const q=sR(i,u,P);j.push(S[q[0]],S[q[1]])}if(k=[...k,{placement:i,overflows:j}],!j.every(q=>q<=0)){var B,Z;const q=(((B=o.flip)==null?void 0:B.index)||0)+1,H=F[q];if(H)return{data:{index:q,overflows:k},reset:{placement:H}};let z=(Z=k.filter(I=>I.overflows[0]<=0).sort((I,N)=>I.overflows[1]-N.overflows[1])[0])==null?void 0:Z.placement;if(!z)switch(m){case"bestFit":{var V;const I=(V=k.filter(N=>{if(T){const Q=Cu(N.placement);return Q===v||Q==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(Q=>Q>0).reduce((Q,L)=>Q+L,0)]).sort((N,Q)=>N[1]-Q[1])[0])==null?void 0:V[0];I&&(z=I);break}case"initialPlacement":z=l;break}if(i!==z)return{reset:{placement:z}}}return{}}}};async function gR(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),u=da(n),l=sl(n),c=Cu(n)==="y",d=["left","top"].includes(u)?-1:1,p=o&&c?-1:1,h=ul(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(m=l==="end"?x*-1:x),c?{x:m*p,y:g*d}:{x:g*d,y:m*p}}const yR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:u,middlewareData:l}=t,c=await gR(t,e);return u===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:u}}}}},vR=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:u=!1,limiter:l={fn:C=>{let{x:$,y:v}=C;return{x:$,y:v}}},...c}=ul(e,t),d={x:n,y:r},p=await Y3(t,c),h=Cu(da(i)),g=G3(h);let m=d[g],x=d[h];if(o){const C=g==="y"?"top":"left",$=g==="y"?"bottom":"right",v=m+p[C],D=m-p[$];m=qh(v,m,D)}if(u){const C=h==="y"?"top":"left",$=h==="y"?"bottom":"right",v=x+p[C],D=x-p[$];x=qh(v,x,D)}const w=l.fn({...t,[g]:m,[h]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:o,[h]:u}}}}}};function Yd(){return typeof window<"u"}function Nu(e){return Z3(e)?(e.nodeName||"").toLowerCase():"#document"}function mr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xi(e){var t;return(t=(Z3(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Z3(e){return Yd()?e instanceof Node||e instanceof mr(e).Node:!1}function Qr(e){return Yd()?e instanceof Element||e instanceof mr(e).Element:!1}function $i(e){return Yd()?e instanceof HTMLElement||e instanceof mr(e).HTMLElement:!1}function d0(e){return!Yd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mr(e).ShadowRoot}function ll(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function bR(e){return["table","td","th"].includes(Nu(e))}function Zd(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function pg(e){const t=hg(),n=Qr(e)?Xr(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 $R(e){let t=So(e);for(;$i(t)&&!Su(t);){if(pg(t))return t;if(Zd(t))return null;t=So(t)}return null}function hg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Su(e){return["html","body","#document"].includes(Nu(e))}function Xr(e){return mr(e).getComputedStyle(e)}function Jd(e){return Qr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function So(e){if(Nu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||d0(e)&&e.host||xi(e);return d0(t)?t.host:t}function J3(e){const t=So(e);return Su(t)?e.ownerDocument?e.ownerDocument.body:e.body:$i(t)&&ll(t)?t:J3(t)}function Hs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=J3(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),u=mr(i);if(o){const l=Zh(u);return t.concat(u,u.visualViewport||[],ll(i)?i:[],l&&n?Hs(l):[])}return t.concat(i,Hs(i,[],n))}function Zh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q3(e){const t=Xr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$i(e),o=i?e.offsetWidth:n,u=i?e.offsetHeight:r,l=sd(n)!==o||sd(r)!==u;return l&&(n=o,r=u),{width:n,height:r,$:l}}function mg(e){return Qr(e)?e:e.contextElement}function fu(e){const t=mg(e);if(!$i(t))return bi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Q3(t);let u=(o?sd(n.width):n.width)/r,l=(o?sd(n.height):n.height)/i;return(!u||!Number.isFinite(u))&&(u=1),(!l||!Number.isFinite(l))&&(l=1),{x:u,y:l}}const xR=bi(0);function X3(e){const t=mr(e);return!hg()||!t.visualViewport?xR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mr(e)?!1:t}function fa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=mg(e);let u=bi(1);t&&(r?Qr(r)&&(u=fu(r)):u=fu(e));const l=wR(o,n,r)?X3(o):bi(0);let c=(i.left+l.x)/u.x,d=(i.top+l.y)/u.y,p=i.width/u.x,h=i.height/u.y;if(o){const g=mr(o),m=r&&Qr(r)?mr(r):r;let x=g,w=Zh(x);for(;w&&r&&m!==x;){const C=fu(w),$=w.getBoundingClientRect(),v=Xr(w),D=$.left+(w.clientLeft+parseFloat(v.paddingLeft))*C.x,P=$.top+(w.clientTop+parseFloat(v.paddingTop))*C.y;c*=C.x,d*=C.y,p*=C.x,h*=C.y,c+=D,d+=P,x=mr(w),w=Zh(x)}}return cd({width:p,height:h,x:c,y:d})}function gg(e,t){const n=Jd(e).scrollLeft;return t?t.left+n:fa(xi(e)).left+n}function e$(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:gg(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function DR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",u=xi(r),l=t?Zd(t.floating):!1;if(r===u||l&&o)return n;let c={scrollLeft:0,scrollTop:0},d=bi(1);const p=bi(0),h=$i(r);if((h||!h&&!o)&&((Nu(r)!=="body"||ll(u))&&(c=Jd(r)),$i(r))){const m=fa(r);d=fu(r),p.x=m.x+r.clientLeft,p.y=m.y+r.clientTop}const g=u&&!h&&!o?e$(u,c,!0):bi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+g.x,y:n.y*d.y-c.scrollTop*d.y+p.y+g.y}}function ER(e){return Array.from(e.getClientRects())}function CR(e){const t=xi(e),n=Jd(e),r=e.ownerDocument.body,i=aa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=aa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+gg(e);const l=-n.scrollTop;return Xr(r).direction==="rtl"&&(u+=aa(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:u,y:l}}function SR(e,t){const n=mr(e),r=xi(e),i=n.visualViewport;let o=r.clientWidth,u=r.clientHeight,l=0,c=0;if(i){o=i.width,u=i.height;const d=hg();(!d||d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:u,x:l,y:c}}function AR(e,t){const n=fa(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=$i(e)?fu(e):bi(1),u=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,d=r*o.y;return{width:u,height:l,x:c,y:d}}function f0(e,t,n){let r;if(t==="viewport")r=SR(e,n);else if(t==="document")r=CR(xi(e));else if(Qr(t))r=AR(t,n);else{const i=X3(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return cd(r)}function t$(e,t){const n=So(e);return n===t||!Qr(n)||Su(n)?!1:Xr(n).position==="fixed"||t$(n,t)}function TR(e,t){const n=t.get(e);if(n)return n;let r=Hs(e,[],!1).filter(l=>Qr(l)&&Nu(l)!=="body"),i=null;const o=Xr(e).position==="fixed";let u=o?So(e):e;for(;Qr(u)&&!Su(u);){const l=Xr(u),c=pg(u);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ll(u)&&!c&&t$(e,u))?r=r.filter(p=>p!==u):i=l,u=So(u)}return t.set(e,r),r}function PR(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const u=[...n==="clippingAncestors"?Zd(t)?[]:TR(t,this._c):[].concat(n),r],l=u[0],c=u.reduce((d,p)=>{const h=f0(t,p,i);return d.top=aa(h.top,d.top),d.right=Eu(h.right,d.right),d.bottom=Eu(h.bottom,d.bottom),d.left=aa(h.left,d.left),d},f0(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function _R(e){const{width:t,height:n}=Q3(e);return{width:t,height:n}}function RR(e,t,n){const r=$i(t),i=xi(t),o=n==="fixed",u=fa(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=bi(0);if(r||!r&&!o)if((Nu(t)!=="body"||ll(i))&&(l=Jd(t)),r){const g=fa(t,!0,o,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else i&&(c.x=gg(i));const d=i&&!r&&!o?e$(i,l):bi(0),p=u.left+l.scrollLeft-c.x-d.x,h=u.top+l.scrollTop-c.y-d.y;return{x:p,y:h,width:u.width,height:u.height}}function jp(e){return Xr(e).position==="static"}function p0(e,t){if(!$i(e)||Xr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xi(e)===n&&(n=n.ownerDocument.body),n}function n$(e,t){const n=mr(e);if(Zd(e))return n;if(!$i(e)){let i=So(e);for(;i&&!Su(i);){if(Qr(i)&&!jp(i))return i;i=So(i)}return n}let r=p0(e,t);for(;r&&bR(r)&&jp(r);)r=p0(r,t);return r&&Su(r)&&jp(r)&&!pg(r)?n:r||$R(e)||n}const OR=async function(e){const t=this.getOffsetParent||n$,n=this.getDimensions,r=await n(e.floating);return{reference:RR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function FR(e){return Xr(e).direction==="rtl"}const MR={convertOffsetParentRelativeRectToViewportRelativeRect:DR,getDocumentElement:xi,getClippingRect:PR,getOffsetParent:n$,getElementRects:OR,getClientRects:ER,getDimensions:_R,getScale:fu,isElement:Qr,isRTL:FR};function r$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function kR(e,t){let n=null,r;const i=xi(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function u(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:p,top:h,width:g,height:m}=d;if(l||t(),!g||!m)return;const x=Sc(h),w=Sc(i.clientWidth-(p+g)),C=Sc(i.clientHeight-(h+m)),$=Sc(p),D={rootMargin:-x+"px "+-w+"px "+-C+"px "+-$+"px",threshold:aa(0,Eu(1,c))||1};let P=!0;function E(T){const F=T[0].intersectionRatio;if(F!==c){if(!P)return u();F?u(!1,F):r=setTimeout(()=>{u(!1,1e-7)},1e3)}F===1&&!r$(d,e.getBoundingClientRect())&&u(),P=!1}try{n=new IntersectionObserver(E,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,D)}n.observe(e)}return u(!0),o}function i$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=mg(e),p=i||o?[...d?Hs(d):[],...Hs(t)]:[];p.forEach($=>{i&&$.addEventListener("scroll",n,{passive:!0}),o&&$.addEventListener("resize",n)});const h=d&&l?kR(d,n):null;let g=-1,m=null;u&&(m=new ResizeObserver($=>{let[v]=$;v&&v.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var D;(D=m)==null||D.observe(t)})),n()}),d&&!c&&m.observe(d),m.observe(t));let x,w=c?fa(e):null;c&&C();function C(){const $=fa(e);w&&!r$(w,$)&&n(),w=$,x=requestAnimationFrame(C)}return n(),()=>{var $;p.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),h==null||h(),($=m)==null||$.disconnect(),m=null,c&&cancelAnimationFrame(x)}}const o$=yR,BR=vR,a$=mR,IR=hR,Jh=(e,t,n)=>{const r=new Map,i={platform:MR,...n},o={...i.platform,_c:r};return pR(e,t,{...i,platform:o})};var Yc=typeof document<"u"?b.useLayoutEffect:b.useEffect;function dd(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(!dd(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)&&!dd(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function u$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function h0(e,t){const n=u$(e);return Math.round(t*n)/n}function Up(e){const t=Ve.useRef(e);return Yc(()=>{t.current=e}),t}function LR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:u}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[p,h]=Ve.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=Ve.useState(r);dd(g,r)||m(r);const[x,w]=Ve.useState(null),[C,$]=Ve.useState(null),v=Ve.useCallback(N=>{N!==T.current&&(T.current=N,w(N))},[]),D=Ve.useCallback(N=>{N!==F.current&&(F.current=N,$(N))},[]),P=o||x,E=u||C,T=Ve.useRef(null),F=Ve.useRef(null),S=Ve.useRef(p),j=c!=null,k=Up(c),B=Up(i),Z=Up(d),V=Ve.useCallback(()=>{if(!T.current||!F.current)return;const N={placement:t,strategy:n,middleware:g};B.current&&(N.platform=B.current),Jh(T.current,F.current,N).then(Q=>{const L={...Q,isPositioned:Z.current!==!1};q.current&&!dd(S.current,L)&&(S.current=L,Uc.flushSync(()=>{h(L)}))})},[g,t,n,B,Z]);Yc(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(N=>({...N,isPositioned:!1})))},[d]);const q=Ve.useRef(!1);Yc(()=>(q.current=!0,()=>{q.current=!1}),[]),Yc(()=>{if(P&&(T.current=P),E&&(F.current=E),P&&E){if(k.current)return k.current(P,E,V);V()}},[P,E,V,k,j]);const H=Ve.useMemo(()=>({reference:T,floating:F,setReference:v,setFloating:D}),[v,D]),z=Ve.useMemo(()=>({reference:P,floating:E}),[P,E]),I=Ve.useMemo(()=>{const N={position:n,left:0,top:0};if(!z.floating)return N;const Q=h0(z.floating,p.x),L=h0(z.floating,p.y);return l?{...N,transform:"translate("+Q+"px, "+L+"px)",...u$(z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:L}},[n,l,z.floating,p.x,p.y]);return Ve.useMemo(()=>({...p,update:V,refs:H,elements:z,floatingStyles:I}),[p,V,H,z,I])}const VR=(e,t)=>({...o$(e),options:[e,t]}),NR=(e,t)=>({...a$(e),options:[e,t]});var Fs={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 KR=Fs.exports,m0;function jR(){return m0||(m0=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.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",h=1,g=2,m=4,x=1,w=2,C=1,$=2,v=4,D=8,P=16,E=32,T=64,F=128,S=256,j=512,k=30,B="...",Z=800,V=16,q=1,H=2,z=3,I=1/0,N=9007199254740991,Q=17976931348623157e292,L=NaN,U=4294967295,ie=U-1,oe=U>>>1,me=[["ary",F],["bind",C],["bindKey",$],["curry",D],["curryRight",P],["flip",j],["partial",E],["partialRight",T],["rearg",S]],ne="[object Arguments]",ve="[object Array]",ye="[object AsyncFunction]",X="[object Boolean]",ge="[object Date]",be="[object DOMException]",pe="[object Error]",ae="[object Function]",Re="[object GeneratorFunction]",et="[object Map]",it="[object Number]",hn="[object Null]",st="[object Object]",mn="[object Promise]",Ae="[object Proxy]",ze="[object RegExp]",je="[object Set]",Jt="[object String]",wn="[object Symbol]",gn="[object Undefined]",Qt="[object WeakMap]",qn="[object WeakSet]",sn="[object ArrayBuffer]",Xt="[object DataView]",Bn="[object Float32Array]",ar="[object Float64Array]",en="[object Int8Array]",Yn="[object Int16Array]",tn="[object Int32Array]",yt="[object Uint8Array]",ur="[object Uint8ClampedArray]",sr="[object Uint16Array]",yn="[object Uint32Array]",In=/\b__p \+= '';/g,vn=/\b(__p \+=) '' \+/g,Ln=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dn=/&(?:amp|lt|gt|quot|#39);/g,ln=/[&<>"']/g,br=RegExp(Dn.source),Tt=RegExp(ln.source),cn=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Ge=/<%=([\s\S]+?)%>/g,Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zn=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fe=/[\\^$.*+?()[\]{}|]/g,Ne=RegExp(Fe.source),Dt=/^\s+/,Kt=/\s/,En=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_t=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,Et=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ft=/[()=,{}\[\]\/\s]/,jr=/\\(\\)?/g,Oo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jn=/\w*$/,qi=/^[-+]0x[0-9a-f]+$/i,Yi=/^0b[01]+$/i,Zi=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,Vn=/^(?:0|[1-9]\d*)$/,Qn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cn=/($^)/,Ji=/['\n\r\u2028\u2029\\]/g,$r="\\ud800-\\udfff",Ju="\\u0300-\\u036f",Aa="\\ufe20-\\ufe2f",Qu="\\u20d0-\\u20ff",Qi=Ju+Aa+Qu,oi="\\u2700-\\u27bf",Fo="a-z\\xdf-\\xf6\\xf8-\\xff",Mo="\\xac\\xb1\\xd7\\xf7",Ta="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Pa="\\u2000-\\u206f",Xu=" \\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",_a="A-Z\\xc0-\\xd6\\xd8-\\xde",ko="\\ufe0e\\ufe0f",Ra=Mo+Ta+Pa+Xu,Di="['’]",es="["+$r+"]",Oa="["+Ra+"]",Xi="["+Qi+"]",Fa="\\d+",R="["+oi+"]",G="["+Fo+"]",re="[^"+$r+Ra+Fa+oi+Fo+_a+"]",fe="\\ud83c[\\udffb-\\udfff]",De="(?:"+Xi+"|"+fe+")",Ze="[^"+$r+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="["+_a+"]",Ft="\\u200d",bn="(?:"+G+"|"+re+")",$n="(?:"+xt+"|"+re+")",xr="(?:"+Di+"(?:d|ll|m|re|s|t|ve))?",Nn="(?:"+Di+"(?:D|LL|M|RE|S|T|VE))?",Ma=De+"?",Bo="["+ko+"]?",Io="(?:"+Ft+"(?:"+[Ze,Me,Be].join("|")+")"+Bo+Ma+")*",Ei="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_f="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ts=Bo+Ma+Io,Rf="(?:"+[R,Me,Be].join("|")+")"+ts,ns="(?:"+[Ze+Xi+"?",Xi,Me,Be,es].join("|")+")",kl=RegExp(Di,"g"),Of=RegExp(Xi,"g"),rs=RegExp(fe+"(?="+fe+")|"+ns+ts,"g"),Bl=RegExp([xt+"?"+G+"+"+xr+"(?="+[Oa,xt,"$"].join("|")+")",$n+"+"+Nn+"(?="+[Oa,xt+bn,"$"].join("|")+")",xt+"?"+bn+"+"+xr,xt+"+"+Nn,_f,Ei,Fa,Rf].join("|"),"g"),Ff=RegExp("["+Ft+$r+Qi+ko+"]"),ka=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mf=["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"],is=-1,Ct={};Ct[Bn]=Ct[ar]=Ct[en]=Ct[Yn]=Ct[tn]=Ct[yt]=Ct[ur]=Ct[sr]=Ct[yn]=!0,Ct[ne]=Ct[ve]=Ct[sn]=Ct[X]=Ct[Xt]=Ct[ge]=Ct[pe]=Ct[ae]=Ct[et]=Ct[it]=Ct[st]=Ct[ze]=Ct[je]=Ct[Jt]=Ct[Qt]=!1;var wt={};wt[ne]=wt[ve]=wt[sn]=wt[Xt]=wt[X]=wt[ge]=wt[Bn]=wt[ar]=wt[en]=wt[Yn]=wt[tn]=wt[et]=wt[it]=wt[st]=wt[ze]=wt[je]=wt[Jt]=wt[wn]=wt[yt]=wt[ur]=wt[sr]=wt[yn]=!0,wt[pe]=wt[ae]=wt[Qt]=!1;var M={À:"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"},ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},de={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Pe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,Sn=parseInt,wr=typeof ou=="object"&&ou&&ou.Object===Object&&ou,An=typeof self=="object"&&self&&self.Object===Object&&self,qt=wr||An||Function("return this")(),ai=t&&!t.nodeType&&t,ui=ai&&!0&&e&&!e.nodeType&&e,os=ui&&ui.exports===ai,Ba=os&&wr.process,Tn=function(){try{var Y=ui&&ui.require&&ui.require("util").types;return Y||Ba&&Ba.binding&&Ba.binding("util")}catch{}}(),Lo=Tn&&Tn.isArrayBuffer,zy=Tn&&Tn.isDate,Wy=Tn&&Tn.isMap,Hy=Tn&&Tn.isRegExp,Gy=Tn&&Tn.isSet,qy=Tn&&Tn.isTypedArray;function lr(Y,se,te){switch(te.length){case 0:return Y.call(se);case 1:return Y.call(se,te[0]);case 2:return Y.call(se,te[0],te[1]);case 3:return Y.call(se,te[0],te[1],te[2])}return Y.apply(se,te)}function xS(Y,se,te,Ce){for(var Ue=-1,lt=Y==null?0:Y.length;++Ue<lt;){var rn=Y[Ue];se(Ce,rn,te(rn),Y)}return Ce}function Dr(Y,se){for(var te=-1,Ce=Y==null?0:Y.length;++te<Ce&&se(Y[te],te,Y)!==!1;);return Y}function wS(Y,se){for(var te=Y==null?0:Y.length;te--&&se(Y[te],te,Y)!==!1;);return Y}function Yy(Y,se){for(var te=-1,Ce=Y==null?0:Y.length;++te<Ce;)if(!se(Y[te],te,Y))return!1;return!0}function eo(Y,se){for(var te=-1,Ce=Y==null?0:Y.length,Ue=0,lt=[];++te<Ce;){var rn=Y[te];se(rn,te,Y)&&(lt[Ue++]=rn)}return lt}function Il(Y,se){var te=Y==null?0:Y.length;return!!te&&Ia(Y,se,0)>-1}function kf(Y,se,te){for(var Ce=-1,Ue=Y==null?0:Y.length;++Ce<Ue;)if(te(se,Y[Ce]))return!0;return!1}function Mt(Y,se){for(var te=-1,Ce=Y==null?0:Y.length,Ue=Array(Ce);++te<Ce;)Ue[te]=se(Y[te],te,Y);return Ue}function to(Y,se){for(var te=-1,Ce=se.length,Ue=Y.length;++te<Ce;)Y[Ue+te]=se[te];return Y}function Bf(Y,se,te,Ce){var Ue=-1,lt=Y==null?0:Y.length;for(Ce&&lt&&(te=Y[++Ue]);++Ue<lt;)te=se(te,Y[Ue],Ue,Y);return te}function DS(Y,se,te,Ce){var Ue=Y==null?0:Y.length;for(Ce&&Ue&&(te=Y[--Ue]);Ue--;)te=se(te,Y[Ue],Ue,Y);return te}function If(Y,se){for(var te=-1,Ce=Y==null?0:Y.length;++te<Ce;)if(se(Y[te],te,Y))return!0;return!1}var ES=Lf("length");function CS(Y){return Y.split("")}function SS(Y){return Y.match(Et)||[]}function Zy(Y,se,te){var Ce;return te(Y,function(Ue,lt,rn){if(se(Ue,lt,rn))return Ce=lt,!1}),Ce}function Ll(Y,se,te,Ce){for(var Ue=Y.length,lt=te+(Ce?1:-1);Ce?lt--:++lt<Ue;)if(se(Y[lt],lt,Y))return lt;return-1}function Ia(Y,se,te){return se===se?LS(Y,se,te):Ll(Y,Jy,te)}function AS(Y,se,te,Ce){for(var Ue=te-1,lt=Y.length;++Ue<lt;)if(Ce(Y[Ue],se))return Ue;return-1}function Jy(Y){return Y!==Y}function Qy(Y,se){var te=Y==null?0:Y.length;return te?Nf(Y,se)/te:L}function Lf(Y){return function(se){return se==null?n:se[Y]}}function Vf(Y){return function(se){return Y==null?n:Y[se]}}function Xy(Y,se,te,Ce,Ue){return Ue(Y,function(lt,rn,St){te=Ce?(Ce=!1,lt):se(te,lt,rn,St)}),te}function TS(Y,se){var te=Y.length;for(Y.sort(se);te--;)Y[te]=Y[te].value;return Y}function Nf(Y,se){for(var te,Ce=-1,Ue=Y.length;++Ce<Ue;){var lt=se(Y[Ce]);lt!==n&&(te=te===n?lt:te+lt)}return te}function Kf(Y,se){for(var te=-1,Ce=Array(Y);++te<Y;)Ce[te]=se(te);return Ce}function PS(Y,se){return Mt(se,function(te){return[te,Y[te]]})}function ev(Y){return Y&&Y.slice(0,iv(Y)+1).replace(Dt,"")}function cr(Y){return function(se){return Y(se)}}function jf(Y,se){return Mt(se,function(te){return Y[te]})}function as(Y,se){return Y.has(se)}function tv(Y,se){for(var te=-1,Ce=Y.length;++te<Ce&&Ia(se,Y[te],0)>-1;);return te}function nv(Y,se){for(var te=Y.length;te--&&Ia(se,Y[te],0)>-1;);return te}function _S(Y,se){for(var te=Y.length,Ce=0;te--;)Y[te]===se&&++Ce;return Ce}var RS=Vf(M),OS=Vf(ee);function FS(Y){return"\\"+Pe[Y]}function MS(Y,se){return Y==null?n:Y[se]}function La(Y){return Ff.test(Y)}function kS(Y){return ka.test(Y)}function BS(Y){for(var se,te=[];!(se=Y.next()).done;)te.push(se.value);return te}function Uf(Y){var se=-1,te=Array(Y.size);return Y.forEach(function(Ce,Ue){te[++se]=[Ue,Ce]}),te}function rv(Y,se){return function(te){return Y(se(te))}}function no(Y,se){for(var te=-1,Ce=Y.length,Ue=0,lt=[];++te<Ce;){var rn=Y[te];(rn===se||rn===p)&&(Y[te]=p,lt[Ue++]=te)}return lt}function Vl(Y){var se=-1,te=Array(Y.size);return Y.forEach(function(Ce){te[++se]=Ce}),te}function IS(Y){var se=-1,te=Array(Y.size);return Y.forEach(function(Ce){te[++se]=[Ce,Ce]}),te}function LS(Y,se,te){for(var Ce=te-1,Ue=Y.length;++Ce<Ue;)if(Y[Ce]===se)return Ce;return-1}function VS(Y,se,te){for(var Ce=te+1;Ce--;)if(Y[Ce]===se)return Ce;return Ce}function Va(Y){return La(Y)?KS(Y):ES(Y)}function Ur(Y){return La(Y)?jS(Y):CS(Y)}function iv(Y){for(var se=Y.length;se--&&Kt.test(Y.charAt(se)););return se}var NS=Vf(de);function KS(Y){for(var se=rs.lastIndex=0;rs.test(Y);)++se;return se}function jS(Y){return Y.match(rs)||[]}function US(Y){return Y.match(Bl)||[]}var zS=function Y(se){se=se==null?qt:Na.defaults(qt.Object(),se,Na.pick(qt,Mf));var te=se.Array,Ce=se.Date,Ue=se.Error,lt=se.Function,rn=se.Math,St=se.Object,zf=se.RegExp,WS=se.String,Er=se.TypeError,Nl=te.prototype,HS=lt.prototype,Ka=St.prototype,Kl=se["__core-js_shared__"],jl=HS.toString,vt=Ka.hasOwnProperty,GS=0,ov=function(){var a=/[^.]+$/.exec(Kl&&Kl.keys&&Kl.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ul=Ka.toString,qS=jl.call(St),YS=qt._,ZS=zf("^"+jl.call(vt).replace(Fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zl=os?se.Buffer:n,ro=se.Symbol,Wl=se.Uint8Array,av=zl?zl.allocUnsafe:n,Hl=rv(St.getPrototypeOf,St),uv=St.create,sv=Ka.propertyIsEnumerable,Gl=Nl.splice,lv=ro?ro.isConcatSpreadable:n,us=ro?ro.iterator:n,Vo=ro?ro.toStringTag:n,ql=function(){try{var a=zo(St,"defineProperty");return a({},"",{}),a}catch{}}(),JS=se.clearTimeout!==qt.clearTimeout&&se.clearTimeout,QS=Ce&&Ce.now!==qt.Date.now&&Ce.now,XS=se.setTimeout!==qt.setTimeout&&se.setTimeout,Yl=rn.ceil,Zl=rn.floor,Wf=St.getOwnPropertySymbols,e6=zl?zl.isBuffer:n,cv=se.isFinite,t6=Nl.join,n6=rv(St.keys,St),on=rn.max,Pn=rn.min,r6=Ce.now,i6=se.parseInt,dv=rn.random,o6=Nl.reverse,Hf=zo(se,"DataView"),ss=zo(se,"Map"),Gf=zo(se,"Promise"),ja=zo(se,"Set"),ls=zo(se,"WeakMap"),cs=zo(St,"create"),Jl=ls&&new ls,Ua={},a6=Wo(Hf),u6=Wo(ss),s6=Wo(Gf),l6=Wo(ja),c6=Wo(ls),Ql=ro?ro.prototype:n,ds=Ql?Ql.valueOf:n,fv=Ql?Ql.toString:n;function _(a){if(jt(a)&&!We(a)&&!(a instanceof rt)){if(a instanceof Cr)return a;if(vt.call(a,"__wrapped__"))return pb(a)}return new Cr(a)}var za=function(){function a(){}return function(s){if(!Bt(s))return{};if(uv)return uv(s);a.prototype=s;var f=new a;return a.prototype=n,f}}();function Xl(){}function Cr(a,s){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}_.templateSettings={escape:cn,evaluate:Oe,interpolate:Ge,variable:"",imports:{_}},_.prototype=Xl.prototype,_.prototype.constructor=_,Cr.prototype=za(Xl.prototype),Cr.prototype.constructor=Cr;function rt(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function d6(){var a=new rt(this.__wrapped__);return a.__actions__=Xn(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=Xn(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=Xn(this.__views__),a}function f6(){if(this.__filtered__){var a=new rt(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function p6(){var a=this.__wrapped__.value(),s=this.__dir__,f=We(a),y=s<0,A=f?a.length:0,O=CA(0,A,this.__views__),K=O.start,W=O.end,J=W-K,le=y?W:K-1,ce=this.__iteratees__,he=ce.length,we=0,_e=Pn(J,this.__takeCount__);if(!f||!y&&A==J&&_e==J)return Bv(a,this.__actions__);var Ie=[];e:for(;J--&&we<_e;){le+=s;for(var Je=-1,Le=a[le];++Je<he;){var tt=ce[Je],ot=tt.iteratee,pr=tt.type,Un=ot(Le);if(pr==H)Le=Un;else if(!Un){if(pr==q)continue e;break e}}Ie[we++]=Le}return Ie}rt.prototype=za(Xl.prototype),rt.prototype.constructor=rt;function No(a){var s=-1,f=a==null?0:a.length;for(this.clear();++s<f;){var y=a[s];this.set(y[0],y[1])}}function h6(){this.__data__=cs?cs(null):{},this.size=0}function m6(a){var s=this.has(a)&&delete this.__data__[a];return this.size-=s?1:0,s}function g6(a){var s=this.__data__;if(cs){var f=s[a];return f===c?n:f}return vt.call(s,a)?s[a]:n}function y6(a){var s=this.__data__;return cs?s[a]!==n:vt.call(s,a)}function v6(a,s){var f=this.__data__;return this.size+=this.has(a)?0:1,f[a]=cs&&s===n?c:s,this}No.prototype.clear=h6,No.prototype.delete=m6,No.prototype.get=g6,No.prototype.has=y6,No.prototype.set=v6;function Ci(a){var s=-1,f=a==null?0:a.length;for(this.clear();++s<f;){var y=a[s];this.set(y[0],y[1])}}function b6(){this.__data__=[],this.size=0}function $6(a){var s=this.__data__,f=ec(s,a);if(f<0)return!1;var y=s.length-1;return f==y?s.pop():Gl.call(s,f,1),--this.size,!0}function x6(a){var s=this.__data__,f=ec(s,a);return f<0?n:s[f][1]}function w6(a){return ec(this.__data__,a)>-1}function D6(a,s){var f=this.__data__,y=ec(f,a);return y<0?(++this.size,f.push([a,s])):f[y][1]=s,this}Ci.prototype.clear=b6,Ci.prototype.delete=$6,Ci.prototype.get=x6,Ci.prototype.has=w6,Ci.prototype.set=D6;function Si(a){var s=-1,f=a==null?0:a.length;for(this.clear();++s<f;){var y=a[s];this.set(y[0],y[1])}}function E6(){this.size=0,this.__data__={hash:new No,map:new(ss||Ci),string:new No}}function C6(a){var s=fc(this,a).delete(a);return this.size-=s?1:0,s}function S6(a){return fc(this,a).get(a)}function A6(a){return fc(this,a).has(a)}function T6(a,s){var f=fc(this,a),y=f.size;return f.set(a,s),this.size+=f.size==y?0:1,this}Si.prototype.clear=E6,Si.prototype.delete=C6,Si.prototype.get=S6,Si.prototype.has=A6,Si.prototype.set=T6;function Ko(a){var s=-1,f=a==null?0:a.length;for(this.__data__=new Si;++s<f;)this.add(a[s])}function P6(a){return this.__data__.set(a,c),this}function _6(a){return this.__data__.has(a)}Ko.prototype.add=Ko.prototype.push=P6,Ko.prototype.has=_6;function zr(a){var s=this.__data__=new Ci(a);this.size=s.size}function R6(){this.__data__=new Ci,this.size=0}function O6(a){var s=this.__data__,f=s.delete(a);return this.size=s.size,f}function F6(a){return this.__data__.get(a)}function M6(a){return this.__data__.has(a)}function k6(a,s){var f=this.__data__;if(f instanceof Ci){var y=f.__data__;if(!ss||y.length<i-1)return y.push([a,s]),this.size=++f.size,this;f=this.__data__=new Si(y)}return f.set(a,s),this.size=f.size,this}zr.prototype.clear=R6,zr.prototype.delete=O6,zr.prototype.get=F6,zr.prototype.has=M6,zr.prototype.set=k6;function pv(a,s){var f=We(a),y=!f&&Ho(a),A=!f&&!y&&so(a),O=!f&&!y&&!A&&qa(a),K=f||y||A||O,W=K?Kf(a.length,WS):[],J=W.length;for(var le in a)(s||vt.call(a,le))&&!(K&&(le=="length"||A&&(le=="offset"||le=="parent")||O&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||_i(le,J)))&&W.push(le);return W}function hv(a){var s=a.length;return s?a[ip(0,s-1)]:n}function B6(a,s){return pc(Xn(a),jo(s,0,a.length))}function I6(a){return pc(Xn(a))}function qf(a,s,f){(f!==n&&!Wr(a[s],f)||f===n&&!(s in a))&&Ai(a,s,f)}function fs(a,s,f){var y=a[s];(!(vt.call(a,s)&&Wr(y,f))||f===n&&!(s in a))&&Ai(a,s,f)}function ec(a,s){for(var f=a.length;f--;)if(Wr(a[f][0],s))return f;return-1}function L6(a,s,f,y){return io(a,function(A,O,K){s(y,A,f(A),K)}),y}function mv(a,s){return a&&li(s,dn(s),a)}function V6(a,s){return a&&li(s,tr(s),a)}function Ai(a,s,f){s=="__proto__"&&ql?ql(a,s,{configurable:!0,enumerable:!0,value:f,writable:!0}):a[s]=f}function Yf(a,s){for(var f=-1,y=s.length,A=te(y),O=a==null;++f<y;)A[f]=O?n:Pp(a,s[f]);return A}function jo(a,s,f){return a===a&&(f!==n&&(a=a<=f?a:f),s!==n&&(a=a>=s?a:s)),a}function Sr(a,s,f,y,A,O){var K,W=s&h,J=s&g,le=s&m;if(f&&(K=A?f(a,y,A,O):f(a)),K!==n)return K;if(!Bt(a))return a;var ce=We(a);if(ce){if(K=AA(a),!W)return Xn(a,K)}else{var he=_n(a),we=he==ae||he==Re;if(so(a))return Vv(a,W);if(he==st||he==ne||we&&!A){if(K=J||we?{}:ib(a),!W)return J?gA(a,V6(K,a)):mA(a,mv(K,a))}else{if(!wt[he])return A?a:{};K=TA(a,he,W)}}O||(O=new zr);var _e=O.get(a);if(_e)return _e;O.set(a,K),Fb(a)?a.forEach(function(Le){K.add(Sr(Le,s,f,Le,a,O))}):Rb(a)&&a.forEach(function(Le,tt){K.set(tt,Sr(Le,s,f,tt,a,O))});var Ie=le?J?mp:hp:J?tr:dn,Je=ce?n:Ie(a);return Dr(Je||a,function(Le,tt){Je&&(tt=Le,Le=a[tt]),fs(K,tt,Sr(Le,s,f,tt,a,O))}),K}function N6(a){var s=dn(a);return function(f){return gv(f,a,s)}}function gv(a,s,f){var y=f.length;if(a==null)return!y;for(a=St(a);y--;){var A=f[y],O=s[A],K=a[A];if(K===n&&!(A in a)||!O(K))return!1}return!0}function yv(a,s,f){if(typeof a!="function")throw new Er(u);return bs(function(){a.apply(n,f)},s)}function ps(a,s,f,y){var A=-1,O=Il,K=!0,W=a.length,J=[],le=s.length;if(!W)return J;f&&(s=Mt(s,cr(f))),y?(O=kf,K=!1):s.length>=i&&(O=as,K=!1,s=new Ko(s));e:for(;++A<W;){var ce=a[A],he=f==null?ce:f(ce);if(ce=y||ce!==0?ce:0,K&&he===he){for(var we=le;we--;)if(s[we]===he)continue e;J.push(ce)}else O(s,he,y)||J.push(ce)}return J}var io=zv(si),vv=zv(Jf,!0);function K6(a,s){var f=!0;return io(a,function(y,A,O){return f=!!s(y,A,O),f}),f}function tc(a,s,f){for(var y=-1,A=a.length;++y<A;){var O=a[y],K=s(O);if(K!=null&&(W===n?K===K&&!fr(K):f(K,W)))var W=K,J=O}return J}function j6(a,s,f,y){var A=a.length;for(f=qe(f),f<0&&(f=-f>A?0:A+f),y=y===n||y>A?A:qe(y),y<0&&(y+=A),y=f>y?0:kb(y);f<y;)a[f++]=s;return a}function bv(a,s){var f=[];return io(a,function(y,A,O){s(y,A,O)&&f.push(y)}),f}function xn(a,s,f,y,A){var O=-1,K=a.length;for(f||(f=_A),A||(A=[]);++O<K;){var W=a[O];s>0&&f(W)?s>1?xn(W,s-1,f,y,A):to(A,W):y||(A[A.length]=W)}return A}var Zf=Wv(),$v=Wv(!0);function si(a,s){return a&&Zf(a,s,dn)}function Jf(a,s){return a&&$v(a,s,dn)}function nc(a,s){return eo(s,function(f){return Ri(a[f])})}function Uo(a,s){s=ao(s,a);for(var f=0,y=s.length;a!=null&&f<y;)a=a[ci(s[f++])];return f&&f==y?a:n}function xv(a,s,f){var y=s(a);return We(a)?y:to(y,f(a))}function Kn(a){return a==null?a===n?gn:hn:Vo&&Vo in St(a)?EA(a):IA(a)}function Qf(a,s){return a>s}function U6(a,s){return a!=null&&vt.call(a,s)}function z6(a,s){return a!=null&&s in St(a)}function W6(a,s,f){return a>=Pn(s,f)&&a<on(s,f)}function Xf(a,s,f){for(var y=f?kf:Il,A=a[0].length,O=a.length,K=O,W=te(O),J=1/0,le=[];K--;){var ce=a[K];K&&s&&(ce=Mt(ce,cr(s))),J=Pn(ce.length,J),W[K]=!f&&(s||A>=120&&ce.length>=120)?new Ko(K&&ce):n}ce=a[0];var he=-1,we=W[0];e:for(;++he<A&&le.length<J;){var _e=ce[he],Ie=s?s(_e):_e;if(_e=f||_e!==0?_e:0,!(we?as(we,Ie):y(le,Ie,f))){for(K=O;--K;){var Je=W[K];if(!(Je?as(Je,Ie):y(a[K],Ie,f)))continue e}we&&we.push(Ie),le.push(_e)}}return le}function H6(a,s,f,y){return si(a,function(A,O,K){s(y,f(A),O,K)}),y}function hs(a,s,f){s=ao(s,a),a=sb(a,s);var y=a==null?a:a[ci(Tr(s))];return y==null?n:lr(y,a,f)}function wv(a){return jt(a)&&Kn(a)==ne}function G6(a){return jt(a)&&Kn(a)==sn}function q6(a){return jt(a)&&Kn(a)==ge}function ms(a,s,f,y,A){return a===s?!0:a==null||s==null||!jt(a)&&!jt(s)?a!==a&&s!==s:Y6(a,s,f,y,ms,A)}function Y6(a,s,f,y,A,O){var K=We(a),W=We(s),J=K?ve:_n(a),le=W?ve:_n(s);J=J==ne?st:J,le=le==ne?st:le;var ce=J==st,he=le==st,we=J==le;if(we&&so(a)){if(!so(s))return!1;K=!0,ce=!1}if(we&&!ce)return O||(O=new zr),K||qa(a)?tb(a,s,f,y,A,O):wA(a,s,J,f,y,A,O);if(!(f&x)){var _e=ce&&vt.call(a,"__wrapped__"),Ie=he&&vt.call(s,"__wrapped__");if(_e||Ie){var Je=_e?a.value():a,Le=Ie?s.value():s;return O||(O=new zr),A(Je,Le,f,y,O)}}return we?(O||(O=new zr),DA(a,s,f,y,A,O)):!1}function Z6(a){return jt(a)&&_n(a)==et}function ep(a,s,f,y){var A=f.length,O=A,K=!y;if(a==null)return!O;for(a=St(a);A--;){var W=f[A];if(K&&W[2]?W[1]!==a[W[0]]:!(W[0]in a))return!1}for(;++A<O;){W=f[A];var J=W[0],le=a[J],ce=W[1];if(K&&W[2]){if(le===n&&!(J in a))return!1}else{var he=new zr;if(y)var we=y(le,ce,J,a,s,he);if(!(we===n?ms(ce,le,x|w,y,he):we))return!1}}return!0}function Dv(a){if(!Bt(a)||OA(a))return!1;var s=Ri(a)?ZS:Zi;return s.test(Wo(a))}function J6(a){return jt(a)&&Kn(a)==ze}function Q6(a){return jt(a)&&_n(a)==je}function X6(a){return jt(a)&&bc(a.length)&&!!Ct[Kn(a)]}function Ev(a){return typeof a=="function"?a:a==null?nr:typeof a=="object"?We(a)?Av(a[0],a[1]):Sv(a):Hb(a)}function tp(a){if(!vs(a))return n6(a);var s=[];for(var f in St(a))vt.call(a,f)&&f!="constructor"&&s.push(f);return s}function eA(a){if(!Bt(a))return BA(a);var s=vs(a),f=[];for(var y in a)y=="constructor"&&(s||!vt.call(a,y))||f.push(y);return f}function np(a,s){return a<s}function Cv(a,s){var f=-1,y=er(a)?te(a.length):[];return io(a,function(A,O,K){y[++f]=s(A,O,K)}),y}function Sv(a){var s=yp(a);return s.length==1&&s[0][2]?ab(s[0][0],s[0][1]):function(f){return f===a||ep(f,a,s)}}function Av(a,s){return bp(a)&&ob(s)?ab(ci(a),s):function(f){var y=Pp(f,a);return y===n&&y===s?_p(f,a):ms(s,y,x|w)}}function rc(a,s,f,y,A){a!==s&&Zf(s,function(O,K){if(A||(A=new zr),Bt(O))tA(a,s,K,f,rc,y,A);else{var W=y?y(xp(a,K),O,K+"",a,s,A):n;W===n&&(W=O),qf(a,K,W)}},tr)}function tA(a,s,f,y,A,O,K){var W=xp(a,f),J=xp(s,f),le=K.get(J);if(le){qf(a,f,le);return}var ce=O?O(W,J,f+"",a,s,K):n,he=ce===n;if(he){var we=We(J),_e=!we&&so(J),Ie=!we&&!_e&&qa(J);ce=J,we||_e||Ie?We(W)?ce=W:zt(W)?ce=Xn(W):_e?(he=!1,ce=Vv(J,!0)):Ie?(he=!1,ce=Nv(J,!0)):ce=[]:$s(J)||Ho(J)?(ce=W,Ho(W)?ce=Bb(W):(!Bt(W)||Ri(W))&&(ce=ib(J))):he=!1}he&&(K.set(J,ce),A(ce,J,y,O,K),K.delete(J)),qf(a,f,ce)}function Tv(a,s){var f=a.length;if(f)return s+=s<0?f:0,_i(s,f)?a[s]:n}function Pv(a,s,f){s.length?s=Mt(s,function(O){return We(O)?function(K){return Uo(K,O.length===1?O[0]:O)}:O}):s=[nr];var y=-1;s=Mt(s,cr(ke()));var A=Cv(a,function(O,K,W){var J=Mt(s,function(le){return le(O)});return{criteria:J,index:++y,value:O}});return TS(A,function(O,K){return hA(O,K,f)})}function nA(a,s){return _v(a,s,function(f,y){return _p(a,y)})}function _v(a,s,f){for(var y=-1,A=s.length,O={};++y<A;){var K=s[y],W=Uo(a,K);f(W,K)&&gs(O,ao(K,a),W)}return O}function rA(a){return function(s){return Uo(s,a)}}function rp(a,s,f,y){var A=y?AS:Ia,O=-1,K=s.length,W=a;for(a===s&&(s=Xn(s)),f&&(W=Mt(a,cr(f)));++O<K;)for(var J=0,le=s[O],ce=f?f(le):le;(J=A(W,ce,J,y))>-1;)W!==a&&Gl.call(W,J,1),Gl.call(a,J,1);return a}function Rv(a,s){for(var f=a?s.length:0,y=f-1;f--;){var A=s[f];if(f==y||A!==O){var O=A;_i(A)?Gl.call(a,A,1):up(a,A)}}return a}function ip(a,s){return a+Zl(dv()*(s-a+1))}function iA(a,s,f,y){for(var A=-1,O=on(Yl((s-a)/(f||1)),0),K=te(O);O--;)K[y?O:++A]=a,a+=f;return K}function op(a,s){var f="";if(!a||s<1||s>N)return f;do s%2&&(f+=a),s=Zl(s/2),s&&(a+=a);while(s);return f}function Xe(a,s){return wp(ub(a,s,nr),a+"")}function oA(a){return hv(Ya(a))}function aA(a,s){var f=Ya(a);return pc(f,jo(s,0,f.length))}function gs(a,s,f,y){if(!Bt(a))return a;s=ao(s,a);for(var A=-1,O=s.length,K=O-1,W=a;W!=null&&++A<O;){var J=ci(s[A]),le=f;if(J==="__proto__"||J==="constructor"||J==="prototype")return a;if(A!=K){var ce=W[J];le=y?y(ce,J,W):n,le===n&&(le=Bt(ce)?ce:_i(s[A+1])?[]:{})}fs(W,J,le),W=W[J]}return a}var Ov=Jl?function(a,s){return Jl.set(a,s),a}:nr,uA=ql?function(a,s){return ql(a,"toString",{configurable:!0,enumerable:!1,value:Op(s),writable:!0})}:nr;function sA(a){return pc(Ya(a))}function Ar(a,s,f){var y=-1,A=a.length;s<0&&(s=-s>A?0:A+s),f=f>A?A:f,f<0&&(f+=A),A=s>f?0:f-s>>>0,s>>>=0;for(var O=te(A);++y<A;)O[y]=a[y+s];return O}function lA(a,s){var f;return io(a,function(y,A,O){return f=s(y,A,O),!f}),!!f}function ic(a,s,f){var y=0,A=a==null?y:a.length;if(typeof s=="number"&&s===s&&A<=oe){for(;y<A;){var O=y+A>>>1,K=a[O];K!==null&&!fr(K)&&(f?K<=s:K<s)?y=O+1:A=O}return A}return ap(a,s,nr,f)}function ap(a,s,f,y){var A=0,O=a==null?0:a.length;if(O===0)return 0;s=f(s);for(var K=s!==s,W=s===null,J=fr(s),le=s===n;A<O;){var ce=Zl((A+O)/2),he=f(a[ce]),we=he!==n,_e=he===null,Ie=he===he,Je=fr(he);if(K)var Le=y||Ie;else le?Le=Ie&&(y||we):W?Le=Ie&&we&&(y||!_e):J?Le=Ie&&we&&!_e&&(y||!Je):_e||Je?Le=!1:Le=y?he<=s:he<s;Le?A=ce+1:O=ce}return Pn(O,ie)}function Fv(a,s){for(var f=-1,y=a.length,A=0,O=[];++f<y;){var K=a[f],W=s?s(K):K;if(!f||!Wr(W,J)){var J=W;O[A++]=K===0?0:K}}return O}function Mv(a){return typeof a=="number"?a:fr(a)?L:+a}function dr(a){if(typeof a=="string")return a;if(We(a))return Mt(a,dr)+"";if(fr(a))return fv?fv.call(a):"";var s=a+"";return s=="0"&&1/a==-1/0?"-0":s}function oo(a,s,f){var y=-1,A=Il,O=a.length,K=!0,W=[],J=W;if(f)K=!1,A=kf;else if(O>=i){var le=s?null:$A(a);if(le)return Vl(le);K=!1,A=as,J=new Ko}else J=s?[]:W;e:for(;++y<O;){var ce=a[y],he=s?s(ce):ce;if(ce=f||ce!==0?ce:0,K&&he===he){for(var we=J.length;we--;)if(J[we]===he)continue e;s&&J.push(he),W.push(ce)}else A(J,he,f)||(J!==W&&J.push(he),W.push(ce))}return W}function up(a,s){return s=ao(s,a),a=sb(a,s),a==null||delete a[ci(Tr(s))]}function kv(a,s,f,y){return gs(a,s,f(Uo(a,s)),y)}function oc(a,s,f,y){for(var A=a.length,O=y?A:-1;(y?O--:++O<A)&&s(a[O],O,a););return f?Ar(a,y?0:O,y?O+1:A):Ar(a,y?O+1:0,y?A:O)}function Bv(a,s){var f=a;return f instanceof rt&&(f=f.value()),Bf(s,function(y,A){return A.func.apply(A.thisArg,to([y],A.args))},f)}function sp(a,s,f){var y=a.length;if(y<2)return y?oo(a[0]):[];for(var A=-1,O=te(y);++A<y;)for(var K=a[A],W=-1;++W<y;)W!=A&&(O[A]=ps(O[A]||K,a[W],s,f));return oo(xn(O,1),s,f)}function Iv(a,s,f){for(var y=-1,A=a.length,O=s.length,K={};++y<A;){var W=y<O?s[y]:n;f(K,a[y],W)}return K}function lp(a){return zt(a)?a:[]}function cp(a){return typeof a=="function"?a:nr}function ao(a,s){return We(a)?a:bp(a,s)?[a]:fb(pt(a))}var cA=Xe;function uo(a,s,f){var y=a.length;return f=f===n?y:f,!s&&f>=y?a:Ar(a,s,f)}var Lv=JS||function(a){return qt.clearTimeout(a)};function Vv(a,s){if(s)return a.slice();var f=a.length,y=av?av(f):new a.constructor(f);return a.copy(y),y}function dp(a){var s=new a.constructor(a.byteLength);return new Wl(s).set(new Wl(a)),s}function dA(a,s){var f=s?dp(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function fA(a){var s=new a.constructor(a.source,Jn.exec(a));return s.lastIndex=a.lastIndex,s}function pA(a){return ds?St(ds.call(a)):{}}function Nv(a,s){var f=s?dp(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function Kv(a,s){if(a!==s){var f=a!==n,y=a===null,A=a===a,O=fr(a),K=s!==n,W=s===null,J=s===s,le=fr(s);if(!W&&!le&&!O&&a>s||O&&K&&J&&!W&&!le||y&&K&&J||!f&&J||!A)return 1;if(!y&&!O&&!le&&a<s||le&&f&&A&&!y&&!O||W&&f&&A||!K&&A||!J)return-1}return 0}function hA(a,s,f){for(var y=-1,A=a.criteria,O=s.criteria,K=A.length,W=f.length;++y<K;){var J=Kv(A[y],O[y]);if(J){if(y>=W)return J;var le=f[y];return J*(le=="desc"?-1:1)}}return a.index-s.index}function jv(a,s,f,y){for(var A=-1,O=a.length,K=f.length,W=-1,J=s.length,le=on(O-K,0),ce=te(J+le),he=!y;++W<J;)ce[W]=s[W];for(;++A<K;)(he||A<O)&&(ce[f[A]]=a[A]);for(;le--;)ce[W++]=a[A++];return ce}function Uv(a,s,f,y){for(var A=-1,O=a.length,K=-1,W=f.length,J=-1,le=s.length,ce=on(O-W,0),he=te(ce+le),we=!y;++A<ce;)he[A]=a[A];for(var _e=A;++J<le;)he[_e+J]=s[J];for(;++K<W;)(we||A<O)&&(he[_e+f[K]]=a[A++]);return he}function Xn(a,s){var f=-1,y=a.length;for(s||(s=te(y));++f<y;)s[f]=a[f];return s}function li(a,s,f,y){var A=!f;f||(f={});for(var O=-1,K=s.length;++O<K;){var W=s[O],J=y?y(f[W],a[W],W,f,a):n;J===n&&(J=a[W]),A?Ai(f,W,J):fs(f,W,J)}return f}function mA(a,s){return li(a,vp(a),s)}function gA(a,s){return li(a,nb(a),s)}function ac(a,s){return function(f,y){var A=We(f)?xS:L6,O=s?s():{};return A(f,a,ke(y,2),O)}}function Wa(a){return Xe(function(s,f){var y=-1,A=f.length,O=A>1?f[A-1]:n,K=A>2?f[2]:n;for(O=a.length>3&&typeof O=="function"?(A--,O):n,K&&jn(f[0],f[1],K)&&(O=A<3?n:O,A=1),s=St(s);++y<A;){var W=f[y];W&&a(s,W,y,O)}return s})}function zv(a,s){return function(f,y){if(f==null)return f;if(!er(f))return a(f,y);for(var A=f.length,O=s?A:-1,K=St(f);(s?O--:++O<A)&&y(K[O],O,K)!==!1;);return f}}function Wv(a){return function(s,f,y){for(var A=-1,O=St(s),K=y(s),W=K.length;W--;){var J=K[a?W:++A];if(f(O[J],J,O)===!1)break}return s}}function yA(a,s,f){var y=s&C,A=ys(a);function O(){var K=this&&this!==qt&&this instanceof O?A:a;return K.apply(y?f:this,arguments)}return O}function Hv(a){return function(s){s=pt(s);var f=La(s)?Ur(s):n,y=f?f[0]:s.charAt(0),A=f?uo(f,1).join(""):s.slice(1);return y[a]()+A}}function Ha(a){return function(s){return Bf(zb(Ub(s).replace(kl,"")),a,"")}}function ys(a){return function(){var s=arguments;switch(s.length){case 0:return new a;case 1:return new a(s[0]);case 2:return new a(s[0],s[1]);case 3:return new a(s[0],s[1],s[2]);case 4:return new a(s[0],s[1],s[2],s[3]);case 5:return new a(s[0],s[1],s[2],s[3],s[4]);case 6:return new a(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new a(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var f=za(a.prototype),y=a.apply(f,s);return Bt(y)?y:f}}function vA(a,s,f){var y=ys(a);function A(){for(var O=arguments.length,K=te(O),W=O,J=Ga(A);W--;)K[W]=arguments[W];var le=O<3&&K[0]!==J&&K[O-1]!==J?[]:no(K,J);if(O-=le.length,O<f)return Jv(a,s,uc,A.placeholder,n,K,le,n,n,f-O);var ce=this&&this!==qt&&this instanceof A?y:a;return lr(ce,this,K)}return A}function Gv(a){return function(s,f,y){var A=St(s);if(!er(s)){var O=ke(f,3);s=dn(s),f=function(W){return O(A[W],W,A)}}var K=a(s,f,y);return K>-1?A[O?s[K]:K]:n}}function qv(a){return Pi(function(s){var f=s.length,y=f,A=Cr.prototype.thru;for(a&&s.reverse();y--;){var O=s[y];if(typeof O!="function")throw new Er(u);if(A&&!K&&dc(O)=="wrapper")var K=new Cr([],!0)}for(y=K?y:f;++y<f;){O=s[y];var W=dc(O),J=W=="wrapper"?gp(O):n;J&&$p(J[0])&&J[1]==(F|D|E|S)&&!J[4].length&&J[9]==1?K=K[dc(J[0])].apply(K,J[3]):K=O.length==1&&$p(O)?K[W]():K.thru(O)}return function(){var le=arguments,ce=le[0];if(K&&le.length==1&&We(ce))return K.plant(ce).value();for(var he=0,we=f?s[he].apply(this,le):ce;++he<f;)we=s[he].call(this,we);return we}})}function uc(a,s,f,y,A,O,K,W,J,le){var ce=s&F,he=s&C,we=s&$,_e=s&(D|P),Ie=s&j,Je=we?n:ys(a);function Le(){for(var tt=arguments.length,ot=te(tt),pr=tt;pr--;)ot[pr]=arguments[pr];if(_e)var Un=Ga(Le),hr=_S(ot,Un);if(y&&(ot=jv(ot,y,A,_e)),O&&(ot=Uv(ot,O,K,_e)),tt-=hr,_e&&tt<le){var Wt=no(ot,Un);return Jv(a,s,uc,Le.placeholder,f,ot,Wt,W,J,le-tt)}var Hr=he?f:this,Fi=we?Hr[a]:a;return tt=ot.length,W?ot=LA(ot,W):Ie&&tt>1&&ot.reverse(),ce&&J<tt&&(ot.length=J),this&&this!==qt&&this instanceof Le&&(Fi=Je||ys(Fi)),Fi.apply(Hr,ot)}return Le}function Yv(a,s){return function(f,y){return H6(f,a,s(y),{})}}function sc(a,s){return function(f,y){var A;if(f===n&&y===n)return s;if(f!==n&&(A=f),y!==n){if(A===n)return y;typeof f=="string"||typeof y=="string"?(f=dr(f),y=dr(y)):(f=Mv(f),y=Mv(y)),A=a(f,y)}return A}}function fp(a){return Pi(function(s){return s=Mt(s,cr(ke())),Xe(function(f){var y=this;return a(s,function(A){return lr(A,y,f)})})})}function lc(a,s){s=s===n?" ":dr(s);var f=s.length;if(f<2)return f?op(s,a):s;var y=op(s,Yl(a/Va(s)));return La(s)?uo(Ur(y),0,a).join(""):y.slice(0,a)}function bA(a,s,f,y){var A=s&C,O=ys(a);function K(){for(var W=-1,J=arguments.length,le=-1,ce=y.length,he=te(ce+J),we=this&&this!==qt&&this instanceof K?O:a;++le<ce;)he[le]=y[le];for(;J--;)he[le++]=arguments[++W];return lr(we,A?f:this,he)}return K}function Zv(a){return function(s,f,y){return y&&typeof y!="number"&&jn(s,f,y)&&(f=y=n),s=Oi(s),f===n?(f=s,s=0):f=Oi(f),y=y===n?s<f?1:-1:Oi(y),iA(s,f,y,a)}}function cc(a){return function(s,f){return typeof s=="string"&&typeof f=="string"||(s=Pr(s),f=Pr(f)),a(s,f)}}function Jv(a,s,f,y,A,O,K,W,J,le){var ce=s&D,he=ce?K:n,we=ce?n:K,_e=ce?O:n,Ie=ce?n:O;s|=ce?E:T,s&=~(ce?T:E),s&v||(s&=-4);var Je=[a,s,A,_e,he,Ie,we,W,J,le],Le=f.apply(n,Je);return $p(a)&&lb(Le,Je),Le.placeholder=y,cb(Le,a,s)}function pp(a){var s=rn[a];return function(f,y){if(f=Pr(f),y=y==null?0:Pn(qe(y),292),y&&cv(f)){var A=(pt(f)+"e").split("e"),O=s(A[0]+"e"+(+A[1]+y));return A=(pt(O)+"e").split("e"),+(A[0]+"e"+(+A[1]-y))}return s(f)}}var $A=ja&&1/Vl(new ja([,-0]))[1]==I?function(a){return new ja(a)}:kp;function Qv(a){return function(s){var f=_n(s);return f==et?Uf(s):f==je?IS(s):PS(s,a(s))}}function Ti(a,s,f,y,A,O,K,W){var J=s&$;if(!J&&typeof a!="function")throw new Er(u);var le=y?y.length:0;if(le||(s&=-97,y=A=n),K=K===n?K:on(qe(K),0),W=W===n?W:qe(W),le-=A?A.length:0,s&T){var ce=y,he=A;y=A=n}var we=J?n:gp(a),_e=[a,s,f,y,A,ce,he,O,K,W];if(we&&kA(_e,we),a=_e[0],s=_e[1],f=_e[2],y=_e[3],A=_e[4],W=_e[9]=_e[9]===n?J?0:a.length:on(_e[9]-le,0),!W&&s&(D|P)&&(s&=-25),!s||s==C)var Ie=yA(a,s,f);else s==D||s==P?Ie=vA(a,s,W):(s==E||s==(C|E))&&!A.length?Ie=bA(a,s,f,y):Ie=uc.apply(n,_e);var Je=we?Ov:lb;return cb(Je(Ie,_e),a,s)}function Xv(a,s,f,y){return a===n||Wr(a,Ka[f])&&!vt.call(y,f)?s:a}function eb(a,s,f,y,A,O){return Bt(a)&&Bt(s)&&(O.set(s,a),rc(a,s,n,eb,O),O.delete(s)),a}function xA(a){return $s(a)?n:a}function tb(a,s,f,y,A,O){var K=f&x,W=a.length,J=s.length;if(W!=J&&!(K&&J>W))return!1;var le=O.get(a),ce=O.get(s);if(le&&ce)return le==s&&ce==a;var he=-1,we=!0,_e=f&w?new Ko:n;for(O.set(a,s),O.set(s,a);++he<W;){var Ie=a[he],Je=s[he];if(y)var Le=K?y(Je,Ie,he,s,a,O):y(Ie,Je,he,a,s,O);if(Le!==n){if(Le)continue;we=!1;break}if(_e){if(!If(s,function(tt,ot){if(!as(_e,ot)&&(Ie===tt||A(Ie,tt,f,y,O)))return _e.push(ot)})){we=!1;break}}else if(!(Ie===Je||A(Ie,Je,f,y,O))){we=!1;break}}return O.delete(a),O.delete(s),we}function wA(a,s,f,y,A,O,K){switch(f){case Xt:if(a.byteLength!=s.byteLength||a.byteOffset!=s.byteOffset)return!1;a=a.buffer,s=s.buffer;case sn:return!(a.byteLength!=s.byteLength||!O(new Wl(a),new Wl(s)));case X:case ge:case it:return Wr(+a,+s);case pe:return a.name==s.name&&a.message==s.message;case ze:case Jt:return a==s+"";case et:var W=Uf;case je:var J=y&x;if(W||(W=Vl),a.size!=s.size&&!J)return!1;var le=K.get(a);if(le)return le==s;y|=w,K.set(a,s);var ce=tb(W(a),W(s),y,A,O,K);return K.delete(a),ce;case wn:if(ds)return ds.call(a)==ds.call(s)}return!1}function DA(a,s,f,y,A,O){var K=f&x,W=hp(a),J=W.length,le=hp(s),ce=le.length;if(J!=ce&&!K)return!1;for(var he=J;he--;){var we=W[he];if(!(K?we in s:vt.call(s,we)))return!1}var _e=O.get(a),Ie=O.get(s);if(_e&&Ie)return _e==s&&Ie==a;var Je=!0;O.set(a,s),O.set(s,a);for(var Le=K;++he<J;){we=W[he];var tt=a[we],ot=s[we];if(y)var pr=K?y(ot,tt,we,s,a,O):y(tt,ot,we,a,s,O);if(!(pr===n?tt===ot||A(tt,ot,f,y,O):pr)){Je=!1;break}Le||(Le=we=="constructor")}if(Je&&!Le){var Un=a.constructor,hr=s.constructor;Un!=hr&&"constructor"in a&&"constructor"in s&&!(typeof Un=="function"&&Un instanceof Un&&typeof hr=="function"&&hr instanceof hr)&&(Je=!1)}return O.delete(a),O.delete(s),Je}function Pi(a){return wp(ub(a,n,gb),a+"")}function hp(a){return xv(a,dn,vp)}function mp(a){return xv(a,tr,nb)}var gp=Jl?function(a){return Jl.get(a)}:kp;function dc(a){for(var s=a.name+"",f=Ua[s],y=vt.call(Ua,s)?f.length:0;y--;){var A=f[y],O=A.func;if(O==null||O==a)return A.name}return s}function Ga(a){var s=vt.call(_,"placeholder")?_:a;return s.placeholder}function ke(){var a=_.iteratee||Fp;return a=a===Fp?Ev:a,arguments.length?a(arguments[0],arguments[1]):a}function fc(a,s){var f=a.__data__;return RA(s)?f[typeof s=="string"?"string":"hash"]:f.map}function yp(a){for(var s=dn(a),f=s.length;f--;){var y=s[f],A=a[y];s[f]=[y,A,ob(A)]}return s}function zo(a,s){var f=MS(a,s);return Dv(f)?f:n}function EA(a){var s=vt.call(a,Vo),f=a[Vo];try{a[Vo]=n;var y=!0}catch{}var A=Ul.call(a);return y&&(s?a[Vo]=f:delete a[Vo]),A}var vp=Wf?function(a){return a==null?[]:(a=St(a),eo(Wf(a),function(s){return sv.call(a,s)}))}:Bp,nb=Wf?function(a){for(var s=[];a;)to(s,vp(a)),a=Hl(a);return s}:Bp,_n=Kn;(Hf&&_n(new Hf(new ArrayBuffer(1)))!=Xt||ss&&_n(new ss)!=et||Gf&&_n(Gf.resolve())!=mn||ja&&_n(new ja)!=je||ls&&_n(new ls)!=Qt)&&(_n=function(a){var s=Kn(a),f=s==st?a.constructor:n,y=f?Wo(f):"";if(y)switch(y){case a6:return Xt;case u6:return et;case s6:return mn;case l6:return je;case c6:return Qt}return s});function CA(a,s,f){for(var y=-1,A=f.length;++y<A;){var O=f[y],K=O.size;switch(O.type){case"drop":a+=K;break;case"dropRight":s-=K;break;case"take":s=Pn(s,a+K);break;case"takeRight":a=on(a,s-K);break}}return{start:a,end:s}}function SA(a){var s=a.match(_t);return s?s[1].split(Ut):[]}function rb(a,s,f){s=ao(s,a);for(var y=-1,A=s.length,O=!1;++y<A;){var K=ci(s[y]);if(!(O=a!=null&&f(a,K)))break;a=a[K]}return O||++y!=A?O:(A=a==null?0:a.length,!!A&&bc(A)&&_i(K,A)&&(We(a)||Ho(a)))}function AA(a){var s=a.length,f=new a.constructor(s);return s&&typeof a[0]=="string"&&vt.call(a,"index")&&(f.index=a.index,f.input=a.input),f}function ib(a){return typeof a.constructor=="function"&&!vs(a)?za(Hl(a)):{}}function TA(a,s,f){var y=a.constructor;switch(s){case sn:return dp(a);case X:case ge:return new y(+a);case Xt:return dA(a,f);case Bn:case ar:case en:case Yn:case tn:case yt:case ur:case sr:case yn:return Nv(a,f);case et:return new y;case it:case Jt:return new y(a);case ze:return fA(a);case je:return new y;case wn:return pA(a)}}function PA(a,s){var f=s.length;if(!f)return a;var y=f-1;return s[y]=(f>1?"& ":"")+s[y],s=s.join(f>2?", ":" "),a.replace(En,`{
66
- /* [wrapped with `+s+`] */
67
- `)}function _A(a){return We(a)||Ho(a)||!!(lv&&a&&a[lv])}function _i(a,s){var f=typeof a;return s=s??N,!!s&&(f=="number"||f!="symbol"&&Vn.test(a))&&a>-1&&a%1==0&&a<s}function jn(a,s,f){if(!Bt(f))return!1;var y=typeof s;return(y=="number"?er(f)&&_i(s,f.length):y=="string"&&s in f)?Wr(f[s],a):!1}function bp(a,s){if(We(a))return!1;var f=typeof a;return f=="number"||f=="symbol"||f=="boolean"||a==null||fr(a)?!0:Zn.test(a)||!Nt.test(a)||s!=null&&a in St(s)}function RA(a){var s=typeof a;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?a!=="__proto__":a===null}function $p(a){var s=dc(a),f=_[s];if(typeof f!="function"||!(s in rt.prototype))return!1;if(a===f)return!0;var y=gp(f);return!!y&&a===y[0]}function OA(a){return!!ov&&ov in a}var FA=Kl?Ri:Ip;function vs(a){var s=a&&a.constructor,f=typeof s=="function"&&s.prototype||Ka;return a===f}function ob(a){return a===a&&!Bt(a)}function ab(a,s){return function(f){return f==null?!1:f[a]===s&&(s!==n||a in St(f))}}function MA(a){var s=yc(a,function(y){return f.size===d&&f.clear(),y}),f=s.cache;return s}function kA(a,s){var f=a[1],y=s[1],A=f|y,O=A<(C|$|F),K=y==F&&f==D||y==F&&f==S&&a[7].length<=s[8]||y==(F|S)&&s[7].length<=s[8]&&f==D;if(!(O||K))return a;y&C&&(a[2]=s[2],A|=f&C?0:v);var W=s[3];if(W){var J=a[3];a[3]=J?jv(J,W,s[4]):W,a[4]=J?no(a[3],p):s[4]}return W=s[5],W&&(J=a[5],a[5]=J?Uv(J,W,s[6]):W,a[6]=J?no(a[5],p):s[6]),W=s[7],W&&(a[7]=W),y&F&&(a[8]=a[8]==null?s[8]:Pn(a[8],s[8])),a[9]==null&&(a[9]=s[9]),a[0]=s[0],a[1]=A,a}function BA(a){var s=[];if(a!=null)for(var f in St(a))s.push(f);return s}function IA(a){return Ul.call(a)}function ub(a,s,f){return s=on(s===n?a.length-1:s,0),function(){for(var y=arguments,A=-1,O=on(y.length-s,0),K=te(O);++A<O;)K[A]=y[s+A];A=-1;for(var W=te(s+1);++A<s;)W[A]=y[A];return W[s]=f(K),lr(a,this,W)}}function sb(a,s){return s.length<2?a:Uo(a,Ar(s,0,-1))}function LA(a,s){for(var f=a.length,y=Pn(s.length,f),A=Xn(a);y--;){var O=s[y];a[y]=_i(O,f)?A[O]:n}return a}function xp(a,s){if(!(s==="constructor"&&typeof a[s]=="function")&&s!="__proto__")return a[s]}var lb=db(Ov),bs=XS||function(a,s){return qt.setTimeout(a,s)},wp=db(uA);function cb(a,s,f){var y=s+"";return wp(a,PA(y,VA(SA(y),f)))}function db(a){var s=0,f=0;return function(){var y=r6(),A=V-(y-f);if(f=y,A>0){if(++s>=Z)return arguments[0]}else s=0;return a.apply(n,arguments)}}function pc(a,s){var f=-1,y=a.length,A=y-1;for(s=s===n?y:s;++f<s;){var O=ip(f,A),K=a[O];a[O]=a[f],a[f]=K}return a.length=s,a}var fb=MA(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(xe,function(f,y,A,O){s.push(A?O.replace(jr,"$1"):y||f)}),s});function ci(a){if(typeof a=="string"||fr(a))return a;var s=a+"";return s=="0"&&1/a==-1/0?"-0":s}function Wo(a){if(a!=null){try{return jl.call(a)}catch{}try{return a+""}catch{}}return""}function VA(a,s){return Dr(me,function(f){var y="_."+f[0];s&f[1]&&!Il(a,y)&&a.push(y)}),a.sort()}function pb(a){if(a instanceof rt)return a.clone();var s=new Cr(a.__wrapped__,a.__chain__);return s.__actions__=Xn(a.__actions__),s.__index__=a.__index__,s.__values__=a.__values__,s}function NA(a,s,f){(f?jn(a,s,f):s===n)?s=1:s=on(qe(s),0);var y=a==null?0:a.length;if(!y||s<1)return[];for(var A=0,O=0,K=te(Yl(y/s));A<y;)K[O++]=Ar(a,A,A+=s);return K}function KA(a){for(var s=-1,f=a==null?0:a.length,y=0,A=[];++s<f;){var O=a[s];O&&(A[y++]=O)}return A}function jA(){var a=arguments.length;if(!a)return[];for(var s=te(a-1),f=arguments[0],y=a;y--;)s[y-1]=arguments[y];return to(We(f)?Xn(f):[f],xn(s,1))}var UA=Xe(function(a,s){return zt(a)?ps(a,xn(s,1,zt,!0)):[]}),zA=Xe(function(a,s){var f=Tr(s);return zt(f)&&(f=n),zt(a)?ps(a,xn(s,1,zt,!0),ke(f,2)):[]}),WA=Xe(function(a,s){var f=Tr(s);return zt(f)&&(f=n),zt(a)?ps(a,xn(s,1,zt,!0),n,f):[]});function HA(a,s,f){var y=a==null?0:a.length;return y?(s=f||s===n?1:qe(s),Ar(a,s<0?0:s,y)):[]}function GA(a,s,f){var y=a==null?0:a.length;return y?(s=f||s===n?1:qe(s),s=y-s,Ar(a,0,s<0?0:s)):[]}function qA(a,s){return a&&a.length?oc(a,ke(s,3),!0,!0):[]}function YA(a,s){return a&&a.length?oc(a,ke(s,3),!0):[]}function ZA(a,s,f,y){var A=a==null?0:a.length;return A?(f&&typeof f!="number"&&jn(a,s,f)&&(f=0,y=A),j6(a,s,f,y)):[]}function hb(a,s,f){var y=a==null?0:a.length;if(!y)return-1;var A=f==null?0:qe(f);return A<0&&(A=on(y+A,0)),Ll(a,ke(s,3),A)}function mb(a,s,f){var y=a==null?0:a.length;if(!y)return-1;var A=y-1;return f!==n&&(A=qe(f),A=f<0?on(y+A,0):Pn(A,y-1)),Ll(a,ke(s,3),A,!0)}function gb(a){var s=a==null?0:a.length;return s?xn(a,1):[]}function JA(a){var s=a==null?0:a.length;return s?xn(a,I):[]}function QA(a,s){var f=a==null?0:a.length;return f?(s=s===n?1:qe(s),xn(a,s)):[]}function XA(a){for(var s=-1,f=a==null?0:a.length,y={};++s<f;){var A=a[s];y[A[0]]=A[1]}return y}function yb(a){return a&&a.length?a[0]:n}function eT(a,s,f){var y=a==null?0:a.length;if(!y)return-1;var A=f==null?0:qe(f);return A<0&&(A=on(y+A,0)),Ia(a,s,A)}function tT(a){var s=a==null?0:a.length;return s?Ar(a,0,-1):[]}var nT=Xe(function(a){var s=Mt(a,lp);return s.length&&s[0]===a[0]?Xf(s):[]}),rT=Xe(function(a){var s=Tr(a),f=Mt(a,lp);return s===Tr(f)?s=n:f.pop(),f.length&&f[0]===a[0]?Xf(f,ke(s,2)):[]}),iT=Xe(function(a){var s=Tr(a),f=Mt(a,lp);return s=typeof s=="function"?s:n,s&&f.pop(),f.length&&f[0]===a[0]?Xf(f,n,s):[]});function oT(a,s){return a==null?"":t6.call(a,s)}function Tr(a){var s=a==null?0:a.length;return s?a[s-1]:n}function aT(a,s,f){var y=a==null?0:a.length;if(!y)return-1;var A=y;return f!==n&&(A=qe(f),A=A<0?on(y+A,0):Pn(A,y-1)),s===s?VS(a,s,A):Ll(a,Jy,A,!0)}function uT(a,s){return a&&a.length?Tv(a,qe(s)):n}var sT=Xe(vb);function vb(a,s){return a&&a.length&&s&&s.length?rp(a,s):a}function lT(a,s,f){return a&&a.length&&s&&s.length?rp(a,s,ke(f,2)):a}function cT(a,s,f){return a&&a.length&&s&&s.length?rp(a,s,n,f):a}var dT=Pi(function(a,s){var f=a==null?0:a.length,y=Yf(a,s);return Rv(a,Mt(s,function(A){return _i(A,f)?+A:A}).sort(Kv)),y});function fT(a,s){var f=[];if(!(a&&a.length))return f;var y=-1,A=[],O=a.length;for(s=ke(s,3);++y<O;){var K=a[y];s(K,y,a)&&(f.push(K),A.push(y))}return Rv(a,A),f}function Dp(a){return a==null?a:o6.call(a)}function pT(a,s,f){var y=a==null?0:a.length;return y?(f&&typeof f!="number"&&jn(a,s,f)?(s=0,f=y):(s=s==null?0:qe(s),f=f===n?y:qe(f)),Ar(a,s,f)):[]}function hT(a,s){return ic(a,s)}function mT(a,s,f){return ap(a,s,ke(f,2))}function gT(a,s){var f=a==null?0:a.length;if(f){var y=ic(a,s);if(y<f&&Wr(a[y],s))return y}return-1}function yT(a,s){return ic(a,s,!0)}function vT(a,s,f){return ap(a,s,ke(f,2),!0)}function bT(a,s){var f=a==null?0:a.length;if(f){var y=ic(a,s,!0)-1;if(Wr(a[y],s))return y}return-1}function $T(a){return a&&a.length?Fv(a):[]}function xT(a,s){return a&&a.length?Fv(a,ke(s,2)):[]}function wT(a){var s=a==null?0:a.length;return s?Ar(a,1,s):[]}function DT(a,s,f){return a&&a.length?(s=f||s===n?1:qe(s),Ar(a,0,s<0?0:s)):[]}function ET(a,s,f){var y=a==null?0:a.length;return y?(s=f||s===n?1:qe(s),s=y-s,Ar(a,s<0?0:s,y)):[]}function CT(a,s){return a&&a.length?oc(a,ke(s,3),!1,!0):[]}function ST(a,s){return a&&a.length?oc(a,ke(s,3)):[]}var AT=Xe(function(a){return oo(xn(a,1,zt,!0))}),TT=Xe(function(a){var s=Tr(a);return zt(s)&&(s=n),oo(xn(a,1,zt,!0),ke(s,2))}),PT=Xe(function(a){var s=Tr(a);return s=typeof s=="function"?s:n,oo(xn(a,1,zt,!0),n,s)});function _T(a){return a&&a.length?oo(a):[]}function RT(a,s){return a&&a.length?oo(a,ke(s,2)):[]}function OT(a,s){return s=typeof s=="function"?s:n,a&&a.length?oo(a,n,s):[]}function Ep(a){if(!(a&&a.length))return[];var s=0;return a=eo(a,function(f){if(zt(f))return s=on(f.length,s),!0}),Kf(s,function(f){return Mt(a,Lf(f))})}function bb(a,s){if(!(a&&a.length))return[];var f=Ep(a);return s==null?f:Mt(f,function(y){return lr(s,n,y)})}var FT=Xe(function(a,s){return zt(a)?ps(a,s):[]}),MT=Xe(function(a){return sp(eo(a,zt))}),kT=Xe(function(a){var s=Tr(a);return zt(s)&&(s=n),sp(eo(a,zt),ke(s,2))}),BT=Xe(function(a){var s=Tr(a);return s=typeof s=="function"?s:n,sp(eo(a,zt),n,s)}),IT=Xe(Ep);function LT(a,s){return Iv(a||[],s||[],fs)}function VT(a,s){return Iv(a||[],s||[],gs)}var NT=Xe(function(a){var s=a.length,f=s>1?a[s-1]:n;return f=typeof f=="function"?(a.pop(),f):n,bb(a,f)});function $b(a){var s=_(a);return s.__chain__=!0,s}function KT(a,s){return s(a),a}function hc(a,s){return s(a)}var jT=Pi(function(a){var s=a.length,f=s?a[0]:0,y=this.__wrapped__,A=function(O){return Yf(O,a)};return s>1||this.__actions__.length||!(y instanceof rt)||!_i(f)?this.thru(A):(y=y.slice(f,+f+(s?1:0)),y.__actions__.push({func:hc,args:[A],thisArg:n}),new Cr(y,this.__chain__).thru(function(O){return s&&!O.length&&O.push(n),O}))});function UT(){return $b(this)}function zT(){return new Cr(this.value(),this.__chain__)}function WT(){this.__values__===n&&(this.__values__=Mb(this.value()));var a=this.__index__>=this.__values__.length,s=a?n:this.__values__[this.__index__++];return{done:a,value:s}}function HT(){return this}function GT(a){for(var s,f=this;f instanceof Xl;){var y=pb(f);y.__index__=0,y.__values__=n,s?A.__wrapped__=y:s=y;var A=y;f=f.__wrapped__}return A.__wrapped__=a,s}function qT(){var a=this.__wrapped__;if(a instanceof rt){var s=a;return this.__actions__.length&&(s=new rt(this)),s=s.reverse(),s.__actions__.push({func:hc,args:[Dp],thisArg:n}),new Cr(s,this.__chain__)}return this.thru(Dp)}function YT(){return Bv(this.__wrapped__,this.__actions__)}var ZT=ac(function(a,s,f){vt.call(a,f)?++a[f]:Ai(a,f,1)});function JT(a,s,f){var y=We(a)?Yy:K6;return f&&jn(a,s,f)&&(s=n),y(a,ke(s,3))}function QT(a,s){var f=We(a)?eo:bv;return f(a,ke(s,3))}var XT=Gv(hb),eP=Gv(mb);function tP(a,s){return xn(mc(a,s),1)}function nP(a,s){return xn(mc(a,s),I)}function rP(a,s,f){return f=f===n?1:qe(f),xn(mc(a,s),f)}function xb(a,s){var f=We(a)?Dr:io;return f(a,ke(s,3))}function wb(a,s){var f=We(a)?wS:vv;return f(a,ke(s,3))}var iP=ac(function(a,s,f){vt.call(a,f)?a[f].push(s):Ai(a,f,[s])});function oP(a,s,f,y){a=er(a)?a:Ya(a),f=f&&!y?qe(f):0;var A=a.length;return f<0&&(f=on(A+f,0)),$c(a)?f<=A&&a.indexOf(s,f)>-1:!!A&&Ia(a,s,f)>-1}var aP=Xe(function(a,s,f){var y=-1,A=typeof s=="function",O=er(a)?te(a.length):[];return io(a,function(K){O[++y]=A?lr(s,K,f):hs(K,s,f)}),O}),uP=ac(function(a,s,f){Ai(a,f,s)});function mc(a,s){var f=We(a)?Mt:Cv;return f(a,ke(s,3))}function sP(a,s,f,y){return a==null?[]:(We(s)||(s=s==null?[]:[s]),f=y?n:f,We(f)||(f=f==null?[]:[f]),Pv(a,s,f))}var lP=ac(function(a,s,f){a[f?0:1].push(s)},function(){return[[],[]]});function cP(a,s,f){var y=We(a)?Bf:Xy,A=arguments.length<3;return y(a,ke(s,4),f,A,io)}function dP(a,s,f){var y=We(a)?DS:Xy,A=arguments.length<3;return y(a,ke(s,4),f,A,vv)}function fP(a,s){var f=We(a)?eo:bv;return f(a,vc(ke(s,3)))}function pP(a){var s=We(a)?hv:oA;return s(a)}function hP(a,s,f){(f?jn(a,s,f):s===n)?s=1:s=qe(s);var y=We(a)?B6:aA;return y(a,s)}function mP(a){var s=We(a)?I6:sA;return s(a)}function gP(a){if(a==null)return 0;if(er(a))return $c(a)?Va(a):a.length;var s=_n(a);return s==et||s==je?a.size:tp(a).length}function yP(a,s,f){var y=We(a)?If:lA;return f&&jn(a,s,f)&&(s=n),y(a,ke(s,3))}var vP=Xe(function(a,s){if(a==null)return[];var f=s.length;return f>1&&jn(a,s[0],s[1])?s=[]:f>2&&jn(s[0],s[1],s[2])&&(s=[s[0]]),Pv(a,xn(s,1),[])}),gc=QS||function(){return qt.Date.now()};function bP(a,s){if(typeof s!="function")throw new Er(u);return a=qe(a),function(){if(--a<1)return s.apply(this,arguments)}}function Db(a,s,f){return s=f?n:s,s=a&&s==null?a.length:s,Ti(a,F,n,n,n,n,s)}function Eb(a,s){var f;if(typeof s!="function")throw new Er(u);return a=qe(a),function(){return--a>0&&(f=s.apply(this,arguments)),a<=1&&(s=n),f}}var Cp=Xe(function(a,s,f){var y=C;if(f.length){var A=no(f,Ga(Cp));y|=E}return Ti(a,y,s,f,A)}),Cb=Xe(function(a,s,f){var y=C|$;if(f.length){var A=no(f,Ga(Cb));y|=E}return Ti(s,y,a,f,A)});function Sb(a,s,f){s=f?n:s;var y=Ti(a,D,n,n,n,n,n,s);return y.placeholder=Sb.placeholder,y}function Ab(a,s,f){s=f?n:s;var y=Ti(a,P,n,n,n,n,n,s);return y.placeholder=Ab.placeholder,y}function Tb(a,s,f){var y,A,O,K,W,J,le=0,ce=!1,he=!1,we=!0;if(typeof a!="function")throw new Er(u);s=Pr(s)||0,Bt(f)&&(ce=!!f.leading,he="maxWait"in f,O=he?on(Pr(f.maxWait)||0,s):O,we="trailing"in f?!!f.trailing:we);function _e(Wt){var Hr=y,Fi=A;return y=A=n,le=Wt,K=a.apply(Fi,Hr),K}function Ie(Wt){return le=Wt,W=bs(tt,s),ce?_e(Wt):K}function Je(Wt){var Hr=Wt-J,Fi=Wt-le,Gb=s-Hr;return he?Pn(Gb,O-Fi):Gb}function Le(Wt){var Hr=Wt-J,Fi=Wt-le;return J===n||Hr>=s||Hr<0||he&&Fi>=O}function tt(){var Wt=gc();if(Le(Wt))return ot(Wt);W=bs(tt,Je(Wt))}function ot(Wt){return W=n,we&&y?_e(Wt):(y=A=n,K)}function pr(){W!==n&&Lv(W),le=0,y=J=A=W=n}function Un(){return W===n?K:ot(gc())}function hr(){var Wt=gc(),Hr=Le(Wt);if(y=arguments,A=this,J=Wt,Hr){if(W===n)return Ie(J);if(he)return Lv(W),W=bs(tt,s),_e(J)}return W===n&&(W=bs(tt,s)),K}return hr.cancel=pr,hr.flush=Un,hr}var $P=Xe(function(a,s){return yv(a,1,s)}),xP=Xe(function(a,s,f){return yv(a,Pr(s)||0,f)});function wP(a){return Ti(a,j)}function yc(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new Er(u);var f=function(){var y=arguments,A=s?s.apply(this,y):y[0],O=f.cache;if(O.has(A))return O.get(A);var K=a.apply(this,y);return f.cache=O.set(A,K)||O,K};return f.cache=new(yc.Cache||Si),f}yc.Cache=Si;function vc(a){if(typeof a!="function")throw new Er(u);return function(){var s=arguments;switch(s.length){case 0:return!a.call(this);case 1:return!a.call(this,s[0]);case 2:return!a.call(this,s[0],s[1]);case 3:return!a.call(this,s[0],s[1],s[2])}return!a.apply(this,s)}}function DP(a){return Eb(2,a)}var EP=cA(function(a,s){s=s.length==1&&We(s[0])?Mt(s[0],cr(ke())):Mt(xn(s,1),cr(ke()));var f=s.length;return Xe(function(y){for(var A=-1,O=Pn(y.length,f);++A<O;)y[A]=s[A].call(this,y[A]);return lr(a,this,y)})}),Sp=Xe(function(a,s){var f=no(s,Ga(Sp));return Ti(a,E,n,s,f)}),Pb=Xe(function(a,s){var f=no(s,Ga(Pb));return Ti(a,T,n,s,f)}),CP=Pi(function(a,s){return Ti(a,S,n,n,n,s)});function SP(a,s){if(typeof a!="function")throw new Er(u);return s=s===n?s:qe(s),Xe(a,s)}function AP(a,s){if(typeof a!="function")throw new Er(u);return s=s==null?0:on(qe(s),0),Xe(function(f){var y=f[s],A=uo(f,0,s);return y&&to(A,y),lr(a,this,A)})}function TP(a,s,f){var y=!0,A=!0;if(typeof a!="function")throw new Er(u);return Bt(f)&&(y="leading"in f?!!f.leading:y,A="trailing"in f?!!f.trailing:A),Tb(a,s,{leading:y,maxWait:s,trailing:A})}function PP(a){return Db(a,1)}function _P(a,s){return Sp(cp(s),a)}function RP(){if(!arguments.length)return[];var a=arguments[0];return We(a)?a:[a]}function OP(a){return Sr(a,m)}function FP(a,s){return s=typeof s=="function"?s:n,Sr(a,m,s)}function MP(a){return Sr(a,h|m)}function kP(a,s){return s=typeof s=="function"?s:n,Sr(a,h|m,s)}function BP(a,s){return s==null||gv(a,s,dn(s))}function Wr(a,s){return a===s||a!==a&&s!==s}var IP=cc(Qf),LP=cc(function(a,s){return a>=s}),Ho=wv(function(){return arguments}())?wv:function(a){return jt(a)&&vt.call(a,"callee")&&!sv.call(a,"callee")},We=te.isArray,VP=Lo?cr(Lo):G6;function er(a){return a!=null&&bc(a.length)&&!Ri(a)}function zt(a){return jt(a)&&er(a)}function NP(a){return a===!0||a===!1||jt(a)&&Kn(a)==X}var so=e6||Ip,KP=zy?cr(zy):q6;function jP(a){return jt(a)&&a.nodeType===1&&!$s(a)}function UP(a){if(a==null)return!0;if(er(a)&&(We(a)||typeof a=="string"||typeof a.splice=="function"||so(a)||qa(a)||Ho(a)))return!a.length;var s=_n(a);if(s==et||s==je)return!a.size;if(vs(a))return!tp(a).length;for(var f in a)if(vt.call(a,f))return!1;return!0}function zP(a,s){return ms(a,s)}function WP(a,s,f){f=typeof f=="function"?f:n;var y=f?f(a,s):n;return y===n?ms(a,s,n,f):!!y}function Ap(a){if(!jt(a))return!1;var s=Kn(a);return s==pe||s==be||typeof a.message=="string"&&typeof a.name=="string"&&!$s(a)}function HP(a){return typeof a=="number"&&cv(a)}function Ri(a){if(!Bt(a))return!1;var s=Kn(a);return s==ae||s==Re||s==ye||s==Ae}function _b(a){return typeof a=="number"&&a==qe(a)}function bc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=N}function Bt(a){var s=typeof a;return a!=null&&(s=="object"||s=="function")}function jt(a){return a!=null&&typeof a=="object"}var Rb=Wy?cr(Wy):Z6;function GP(a,s){return a===s||ep(a,s,yp(s))}function qP(a,s,f){return f=typeof f=="function"?f:n,ep(a,s,yp(s),f)}function YP(a){return Ob(a)&&a!=+a}function ZP(a){if(FA(a))throw new Ue(o);return Dv(a)}function JP(a){return a===null}function QP(a){return a==null}function Ob(a){return typeof a=="number"||jt(a)&&Kn(a)==it}function $s(a){if(!jt(a)||Kn(a)!=st)return!1;var s=Hl(a);if(s===null)return!0;var f=vt.call(s,"constructor")&&s.constructor;return typeof f=="function"&&f instanceof f&&jl.call(f)==qS}var Tp=Hy?cr(Hy):J6;function XP(a){return _b(a)&&a>=-9007199254740991&&a<=N}var Fb=Gy?cr(Gy):Q6;function $c(a){return typeof a=="string"||!We(a)&&jt(a)&&Kn(a)==Jt}function fr(a){return typeof a=="symbol"||jt(a)&&Kn(a)==wn}var qa=qy?cr(qy):X6;function e7(a){return a===n}function t7(a){return jt(a)&&_n(a)==Qt}function n7(a){return jt(a)&&Kn(a)==qn}var r7=cc(np),i7=cc(function(a,s){return a<=s});function Mb(a){if(!a)return[];if(er(a))return $c(a)?Ur(a):Xn(a);if(us&&a[us])return BS(a[us]());var s=_n(a),f=s==et?Uf:s==je?Vl:Ya;return f(a)}function Oi(a){if(!a)return a===0?a:0;if(a=Pr(a),a===I||a===-1/0){var s=a<0?-1:1;return s*Q}return a===a?a:0}function qe(a){var s=Oi(a),f=s%1;return s===s?f?s-f:s:0}function kb(a){return a?jo(qe(a),0,U):0}function Pr(a){if(typeof a=="number")return a;if(fr(a))return L;if(Bt(a)){var s=typeof a.valueOf=="function"?a.valueOf():a;a=Bt(s)?s+"":s}if(typeof a!="string")return a===0?a:+a;a=ev(a);var f=Yi.test(a);return f||ut.test(a)?Sn(a.slice(2),f?2:8):qi.test(a)?L:+a}function Bb(a){return li(a,tr(a))}function o7(a){return a?jo(qe(a),-9007199254740991,N):a===0?a:0}function pt(a){return a==null?"":dr(a)}var a7=Wa(function(a,s){if(vs(s)||er(s)){li(s,dn(s),a);return}for(var f in s)vt.call(s,f)&&fs(a,f,s[f])}),Ib=Wa(function(a,s){li(s,tr(s),a)}),xc=Wa(function(a,s,f,y){li(s,tr(s),a,y)}),u7=Wa(function(a,s,f,y){li(s,dn(s),a,y)}),s7=Pi(Yf);function l7(a,s){var f=za(a);return s==null?f:mv(f,s)}var c7=Xe(function(a,s){a=St(a);var f=-1,y=s.length,A=y>2?s[2]:n;for(A&&jn(s[0],s[1],A)&&(y=1);++f<y;)for(var O=s[f],K=tr(O),W=-1,J=K.length;++W<J;){var le=K[W],ce=a[le];(ce===n||Wr(ce,Ka[le])&&!vt.call(a,le))&&(a[le]=O[le])}return a}),d7=Xe(function(a){return a.push(n,eb),lr(Lb,n,a)});function f7(a,s){return Zy(a,ke(s,3),si)}function p7(a,s){return Zy(a,ke(s,3),Jf)}function h7(a,s){return a==null?a:Zf(a,ke(s,3),tr)}function m7(a,s){return a==null?a:$v(a,ke(s,3),tr)}function g7(a,s){return a&&si(a,ke(s,3))}function y7(a,s){return a&&Jf(a,ke(s,3))}function v7(a){return a==null?[]:nc(a,dn(a))}function b7(a){return a==null?[]:nc(a,tr(a))}function Pp(a,s,f){var y=a==null?n:Uo(a,s);return y===n?f:y}function $7(a,s){return a!=null&&rb(a,s,U6)}function _p(a,s){return a!=null&&rb(a,s,z6)}var x7=Yv(function(a,s,f){s!=null&&typeof s.toString!="function"&&(s=Ul.call(s)),a[s]=f},Op(nr)),w7=Yv(function(a,s,f){s!=null&&typeof s.toString!="function"&&(s=Ul.call(s)),vt.call(a,s)?a[s].push(f):a[s]=[f]},ke),D7=Xe(hs);function dn(a){return er(a)?pv(a):tp(a)}function tr(a){return er(a)?pv(a,!0):eA(a)}function E7(a,s){var f={};return s=ke(s,3),si(a,function(y,A,O){Ai(f,s(y,A,O),y)}),f}function C7(a,s){var f={};return s=ke(s,3),si(a,function(y,A,O){Ai(f,A,s(y,A,O))}),f}var S7=Wa(function(a,s,f){rc(a,s,f)}),Lb=Wa(function(a,s,f,y){rc(a,s,f,y)}),A7=Pi(function(a,s){var f={};if(a==null)return f;var y=!1;s=Mt(s,function(O){return O=ao(O,a),y||(y=O.length>1),O}),li(a,mp(a),f),y&&(f=Sr(f,h|g|m,xA));for(var A=s.length;A--;)up(f,s[A]);return f});function T7(a,s){return Vb(a,vc(ke(s)))}var P7=Pi(function(a,s){return a==null?{}:nA(a,s)});function Vb(a,s){if(a==null)return{};var f=Mt(mp(a),function(y){return[y]});return s=ke(s),_v(a,f,function(y,A){return s(y,A[0])})}function _7(a,s,f){s=ao(s,a);var y=-1,A=s.length;for(A||(A=1,a=n);++y<A;){var O=a==null?n:a[ci(s[y])];O===n&&(y=A,O=f),a=Ri(O)?O.call(a):O}return a}function R7(a,s,f){return a==null?a:gs(a,s,f)}function O7(a,s,f,y){return y=typeof y=="function"?y:n,a==null?a:gs(a,s,f,y)}var Nb=Qv(dn),Kb=Qv(tr);function F7(a,s,f){var y=We(a),A=y||so(a)||qa(a);if(s=ke(s,4),f==null){var O=a&&a.constructor;A?f=y?new O:[]:Bt(a)?f=Ri(O)?za(Hl(a)):{}:f={}}return(A?Dr:si)(a,function(K,W,J){return s(f,K,W,J)}),f}function M7(a,s){return a==null?!0:up(a,s)}function k7(a,s,f){return a==null?a:kv(a,s,cp(f))}function B7(a,s,f,y){return y=typeof y=="function"?y:n,a==null?a:kv(a,s,cp(f),y)}function Ya(a){return a==null?[]:jf(a,dn(a))}function I7(a){return a==null?[]:jf(a,tr(a))}function L7(a,s,f){return f===n&&(f=s,s=n),f!==n&&(f=Pr(f),f=f===f?f:0),s!==n&&(s=Pr(s),s=s===s?s:0),jo(Pr(a),s,f)}function V7(a,s,f){return s=Oi(s),f===n?(f=s,s=0):f=Oi(f),a=Pr(a),W6(a,s,f)}function N7(a,s,f){if(f&&typeof f!="boolean"&&jn(a,s,f)&&(s=f=n),f===n&&(typeof s=="boolean"?(f=s,s=n):typeof a=="boolean"&&(f=a,a=n)),a===n&&s===n?(a=0,s=1):(a=Oi(a),s===n?(s=a,a=0):s=Oi(s)),a>s){var y=a;a=s,s=y}if(f||a%1||s%1){var A=dv();return Pn(a+A*(s-a+nn("1e-"+((A+"").length-1))),s)}return ip(a,s)}var K7=Ha(function(a,s,f){return s=s.toLowerCase(),a+(f?jb(s):s)});function jb(a){return Rp(pt(a).toLowerCase())}function Ub(a){return a=pt(a),a&&a.replace(Qn,RS).replace(Of,"")}function j7(a,s,f){a=pt(a),s=dr(s);var y=a.length;f=f===n?y:jo(qe(f),0,y);var A=f;return f-=s.length,f>=0&&a.slice(f,A)==s}function U7(a){return a=pt(a),a&&Tt.test(a)?a.replace(ln,OS):a}function z7(a){return a=pt(a),a&&Ne.test(a)?a.replace(Fe,"\\$&"):a}var W7=Ha(function(a,s,f){return a+(f?"-":"")+s.toLowerCase()}),H7=Ha(function(a,s,f){return a+(f?" ":"")+s.toLowerCase()}),G7=Hv("toLowerCase");function q7(a,s,f){a=pt(a),s=qe(s);var y=s?Va(a):0;if(!s||y>=s)return a;var A=(s-y)/2;return lc(Zl(A),f)+a+lc(Yl(A),f)}function Y7(a,s,f){a=pt(a),s=qe(s);var y=s?Va(a):0;return s&&y<s?a+lc(s-y,f):a}function Z7(a,s,f){a=pt(a),s=qe(s);var y=s?Va(a):0;return s&&y<s?lc(s-y,f)+a:a}function J7(a,s,f){return f||s==null?s=0:s&&(s=+s),i6(pt(a).replace(Dt,""),s||0)}function Q7(a,s,f){return(f?jn(a,s,f):s===n)?s=1:s=qe(s),op(pt(a),s)}function X7(){var a=arguments,s=pt(a[0]);return a.length<3?s:s.replace(a[1],a[2])}var e_=Ha(function(a,s,f){return a+(f?"_":"")+s.toLowerCase()});function t_(a,s,f){return f&&typeof f!="number"&&jn(a,s,f)&&(s=f=n),f=f===n?U:f>>>0,f?(a=pt(a),a&&(typeof s=="string"||s!=null&&!Tp(s))&&(s=dr(s),!s&&La(a))?uo(Ur(a),0,f):a.split(s,f)):[]}var n_=Ha(function(a,s,f){return a+(f?" ":"")+Rp(s)});function r_(a,s,f){return a=pt(a),f=f==null?0:jo(qe(f),0,a.length),s=dr(s),a.slice(f,f+s.length)==s}function i_(a,s,f){var y=_.templateSettings;f&&jn(a,s,f)&&(s=n),a=pt(a),s=xc({},s,y,Xv);var A=xc({},s.imports,y.imports,Xv),O=dn(A),K=jf(A,O),W,J,le=0,ce=s.interpolate||Cn,he="__p += '",we=zf((s.escape||Cn).source+"|"+ce.source+"|"+(ce===Ge?Oo:Cn).source+"|"+(s.evaluate||Cn).source+"|$","g"),_e="//# sourceURL="+(vt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++is+"]")+`
68
- `;a.replace(we,function(Le,tt,ot,pr,Un,hr){return ot||(ot=pr),he+=a.slice(le,hr).replace(Ji,FS),tt&&(W=!0,he+=`' +
69
- __e(`+tt+`) +
70
- '`),Un&&(J=!0,he+=`';
71
- `+Un+`;
72
- __p += '`),ot&&(he+=`' +
73
- ((__t = (`+ot+`)) == null ? '' : __t) +
74
- '`),le=hr+Le.length,Le}),he+=`';
75
- `;var Ie=vt.call(s,"variable")&&s.variable;if(!Ie)he=`with (obj) {
76
- `+he+`
77
- }
78
- `;else if(ft.test(Ie))throw new Ue(l);he=(J?he.replace(In,""):he).replace(vn,"$1").replace(Ln,"$1;"),he="function("+(Ie||"obj")+`) {
79
- `+(Ie?"":`obj || (obj = {});
80
- `)+"var __t, __p = ''"+(W?", __e = _.escape":"")+(J?`, __j = Array.prototype.join;
81
- function print() { __p += __j.call(arguments, '') }
82
- `:`;
83
- `)+he+`return __p
84
- }`;var Je=Wb(function(){return lt(O,_e+"return "+he).apply(n,K)});if(Je.source=he,Ap(Je))throw Je;return Je}function o_(a){return pt(a).toLowerCase()}function a_(a){return pt(a).toUpperCase()}function u_(a,s,f){if(a=pt(a),a&&(f||s===n))return ev(a);if(!a||!(s=dr(s)))return a;var y=Ur(a),A=Ur(s),O=tv(y,A),K=nv(y,A)+1;return uo(y,O,K).join("")}function s_(a,s,f){if(a=pt(a),a&&(f||s===n))return a.slice(0,iv(a)+1);if(!a||!(s=dr(s)))return a;var y=Ur(a),A=nv(y,Ur(s))+1;return uo(y,0,A).join("")}function l_(a,s,f){if(a=pt(a),a&&(f||s===n))return a.replace(Dt,"");if(!a||!(s=dr(s)))return a;var y=Ur(a),A=tv(y,Ur(s));return uo(y,A).join("")}function c_(a,s){var f=k,y=B;if(Bt(s)){var A="separator"in s?s.separator:A;f="length"in s?qe(s.length):f,y="omission"in s?dr(s.omission):y}a=pt(a);var O=a.length;if(La(a)){var K=Ur(a);O=K.length}if(f>=O)return a;var W=f-Va(y);if(W<1)return y;var J=K?uo(K,0,W).join(""):a.slice(0,W);if(A===n)return J+y;if(K&&(W+=J.length-W),Tp(A)){if(a.slice(W).search(A)){var le,ce=J;for(A.global||(A=zf(A.source,pt(Jn.exec(A))+"g")),A.lastIndex=0;le=A.exec(ce);)var he=le.index;J=J.slice(0,he===n?W:he)}}else if(a.indexOf(dr(A),W)!=W){var we=J.lastIndexOf(A);we>-1&&(J=J.slice(0,we))}return J+y}function d_(a){return a=pt(a),a&&br.test(a)?a.replace(Dn,NS):a}var f_=Ha(function(a,s,f){return a+(f?" ":"")+s.toUpperCase()}),Rp=Hv("toUpperCase");function zb(a,s,f){return a=pt(a),s=f?n:s,s===n?kS(a)?US(a):SS(a):a.match(s)||[]}var Wb=Xe(function(a,s){try{return lr(a,n,s)}catch(f){return Ap(f)?f:new Ue(f)}}),p_=Pi(function(a,s){return Dr(s,function(f){f=ci(f),Ai(a,f,Cp(a[f],a))}),a});function h_(a){var s=a==null?0:a.length,f=ke();return a=s?Mt(a,function(y){if(typeof y[1]!="function")throw new Er(u);return[f(y[0]),y[1]]}):[],Xe(function(y){for(var A=-1;++A<s;){var O=a[A];if(lr(O[0],this,y))return lr(O[1],this,y)}})}function m_(a){return N6(Sr(a,h))}function Op(a){return function(){return a}}function g_(a,s){return a==null||a!==a?s:a}var y_=qv(),v_=qv(!0);function nr(a){return a}function Fp(a){return Ev(typeof a=="function"?a:Sr(a,h))}function b_(a){return Sv(Sr(a,h))}function $_(a,s){return Av(a,Sr(s,h))}var x_=Xe(function(a,s){return function(f){return hs(f,a,s)}}),w_=Xe(function(a,s){return function(f){return hs(a,f,s)}});function Mp(a,s,f){var y=dn(s),A=nc(s,y);f==null&&!(Bt(s)&&(A.length||!y.length))&&(f=s,s=a,a=this,A=nc(s,dn(s)));var O=!(Bt(f)&&"chain"in f)||!!f.chain,K=Ri(a);return Dr(A,function(W){var J=s[W];a[W]=J,K&&(a.prototype[W]=function(){var le=this.__chain__;if(O||le){var ce=a(this.__wrapped__),he=ce.__actions__=Xn(this.__actions__);return he.push({func:J,args:arguments,thisArg:a}),ce.__chain__=le,ce}return J.apply(a,to([this.value()],arguments))})}),a}function D_(){return qt._===this&&(qt._=YS),this}function kp(){}function E_(a){return a=qe(a),Xe(function(s){return Tv(s,a)})}var C_=fp(Mt),S_=fp(Yy),A_=fp(If);function Hb(a){return bp(a)?Lf(ci(a)):rA(a)}function T_(a){return function(s){return a==null?n:Uo(a,s)}}var P_=Zv(),__=Zv(!0);function Bp(){return[]}function Ip(){return!1}function R_(){return{}}function O_(){return""}function F_(){return!0}function M_(a,s){if(a=qe(a),a<1||a>N)return[];var f=U,y=Pn(a,U);s=ke(s),a-=U;for(var A=Kf(y,s);++f<a;)s(f);return A}function k_(a){return We(a)?Mt(a,ci):fr(a)?[a]:Xn(fb(pt(a)))}function B_(a){var s=++GS;return pt(a)+s}var I_=sc(function(a,s){return a+s},0),L_=pp("ceil"),V_=sc(function(a,s){return a/s},1),N_=pp("floor");function K_(a){return a&&a.length?tc(a,nr,Qf):n}function j_(a,s){return a&&a.length?tc(a,ke(s,2),Qf):n}function U_(a){return Qy(a,nr)}function z_(a,s){return Qy(a,ke(s,2))}function W_(a){return a&&a.length?tc(a,nr,np):n}function H_(a,s){return a&&a.length?tc(a,ke(s,2),np):n}var G_=sc(function(a,s){return a*s},1),q_=pp("round"),Y_=sc(function(a,s){return a-s},0);function Z_(a){return a&&a.length?Nf(a,nr):0}function J_(a,s){return a&&a.length?Nf(a,ke(s,2)):0}return _.after=bP,_.ary=Db,_.assign=a7,_.assignIn=Ib,_.assignInWith=xc,_.assignWith=u7,_.at=s7,_.before=Eb,_.bind=Cp,_.bindAll=p_,_.bindKey=Cb,_.castArray=RP,_.chain=$b,_.chunk=NA,_.compact=KA,_.concat=jA,_.cond=h_,_.conforms=m_,_.constant=Op,_.countBy=ZT,_.create=l7,_.curry=Sb,_.curryRight=Ab,_.debounce=Tb,_.defaults=c7,_.defaultsDeep=d7,_.defer=$P,_.delay=xP,_.difference=UA,_.differenceBy=zA,_.differenceWith=WA,_.drop=HA,_.dropRight=GA,_.dropRightWhile=qA,_.dropWhile=YA,_.fill=ZA,_.filter=QT,_.flatMap=tP,_.flatMapDeep=nP,_.flatMapDepth=rP,_.flatten=gb,_.flattenDeep=JA,_.flattenDepth=QA,_.flip=wP,_.flow=y_,_.flowRight=v_,_.fromPairs=XA,_.functions=v7,_.functionsIn=b7,_.groupBy=iP,_.initial=tT,_.intersection=nT,_.intersectionBy=rT,_.intersectionWith=iT,_.invert=x7,_.invertBy=w7,_.invokeMap=aP,_.iteratee=Fp,_.keyBy=uP,_.keys=dn,_.keysIn=tr,_.map=mc,_.mapKeys=E7,_.mapValues=C7,_.matches=b_,_.matchesProperty=$_,_.memoize=yc,_.merge=S7,_.mergeWith=Lb,_.method=x_,_.methodOf=w_,_.mixin=Mp,_.negate=vc,_.nthArg=E_,_.omit=A7,_.omitBy=T7,_.once=DP,_.orderBy=sP,_.over=C_,_.overArgs=EP,_.overEvery=S_,_.overSome=A_,_.partial=Sp,_.partialRight=Pb,_.partition=lP,_.pick=P7,_.pickBy=Vb,_.property=Hb,_.propertyOf=T_,_.pull=sT,_.pullAll=vb,_.pullAllBy=lT,_.pullAllWith=cT,_.pullAt=dT,_.range=P_,_.rangeRight=__,_.rearg=CP,_.reject=fP,_.remove=fT,_.rest=SP,_.reverse=Dp,_.sampleSize=hP,_.set=R7,_.setWith=O7,_.shuffle=mP,_.slice=pT,_.sortBy=vP,_.sortedUniq=$T,_.sortedUniqBy=xT,_.split=t_,_.spread=AP,_.tail=wT,_.take=DT,_.takeRight=ET,_.takeRightWhile=CT,_.takeWhile=ST,_.tap=KT,_.throttle=TP,_.thru=hc,_.toArray=Mb,_.toPairs=Nb,_.toPairsIn=Kb,_.toPath=k_,_.toPlainObject=Bb,_.transform=F7,_.unary=PP,_.union=AT,_.unionBy=TT,_.unionWith=PT,_.uniq=_T,_.uniqBy=RT,_.uniqWith=OT,_.unset=M7,_.unzip=Ep,_.unzipWith=bb,_.update=k7,_.updateWith=B7,_.values=Ya,_.valuesIn=I7,_.without=FT,_.words=zb,_.wrap=_P,_.xor=MT,_.xorBy=kT,_.xorWith=BT,_.zip=IT,_.zipObject=LT,_.zipObjectDeep=VT,_.zipWith=NT,_.entries=Nb,_.entriesIn=Kb,_.extend=Ib,_.extendWith=xc,Mp(_,_),_.add=I_,_.attempt=Wb,_.camelCase=K7,_.capitalize=jb,_.ceil=L_,_.clamp=L7,_.clone=OP,_.cloneDeep=MP,_.cloneDeepWith=kP,_.cloneWith=FP,_.conformsTo=BP,_.deburr=Ub,_.defaultTo=g_,_.divide=V_,_.endsWith=j7,_.eq=Wr,_.escape=U7,_.escapeRegExp=z7,_.every=JT,_.find=XT,_.findIndex=hb,_.findKey=f7,_.findLast=eP,_.findLastIndex=mb,_.findLastKey=p7,_.floor=N_,_.forEach=xb,_.forEachRight=wb,_.forIn=h7,_.forInRight=m7,_.forOwn=g7,_.forOwnRight=y7,_.get=Pp,_.gt=IP,_.gte=LP,_.has=$7,_.hasIn=_p,_.head=yb,_.identity=nr,_.includes=oP,_.indexOf=eT,_.inRange=V7,_.invoke=D7,_.isArguments=Ho,_.isArray=We,_.isArrayBuffer=VP,_.isArrayLike=er,_.isArrayLikeObject=zt,_.isBoolean=NP,_.isBuffer=so,_.isDate=KP,_.isElement=jP,_.isEmpty=UP,_.isEqual=zP,_.isEqualWith=WP,_.isError=Ap,_.isFinite=HP,_.isFunction=Ri,_.isInteger=_b,_.isLength=bc,_.isMap=Rb,_.isMatch=GP,_.isMatchWith=qP,_.isNaN=YP,_.isNative=ZP,_.isNil=QP,_.isNull=JP,_.isNumber=Ob,_.isObject=Bt,_.isObjectLike=jt,_.isPlainObject=$s,_.isRegExp=Tp,_.isSafeInteger=XP,_.isSet=Fb,_.isString=$c,_.isSymbol=fr,_.isTypedArray=qa,_.isUndefined=e7,_.isWeakMap=t7,_.isWeakSet=n7,_.join=oT,_.kebabCase=W7,_.last=Tr,_.lastIndexOf=aT,_.lowerCase=H7,_.lowerFirst=G7,_.lt=r7,_.lte=i7,_.max=K_,_.maxBy=j_,_.mean=U_,_.meanBy=z_,_.min=W_,_.minBy=H_,_.stubArray=Bp,_.stubFalse=Ip,_.stubObject=R_,_.stubString=O_,_.stubTrue=F_,_.multiply=G_,_.nth=uT,_.noConflict=D_,_.noop=kp,_.now=gc,_.pad=q7,_.padEnd=Y7,_.padStart=Z7,_.parseInt=J7,_.random=N7,_.reduce=cP,_.reduceRight=dP,_.repeat=Q7,_.replace=X7,_.result=_7,_.round=q_,_.runInContext=Y,_.sample=pP,_.size=gP,_.snakeCase=e_,_.some=yP,_.sortedIndex=hT,_.sortedIndexBy=mT,_.sortedIndexOf=gT,_.sortedLastIndex=yT,_.sortedLastIndexBy=vT,_.sortedLastIndexOf=bT,_.startCase=n_,_.startsWith=r_,_.subtract=Y_,_.sum=Z_,_.sumBy=J_,_.template=i_,_.times=M_,_.toFinite=Oi,_.toInteger=qe,_.toLength=kb,_.toLower=o_,_.toNumber=Pr,_.toSafeInteger=o7,_.toString=pt,_.toUpper=a_,_.trim=u_,_.trimEnd=s_,_.trimStart=l_,_.truncate=c_,_.unescape=d_,_.uniqueId=B_,_.upperCase=f_,_.upperFirst=Rp,_.each=xb,_.eachRight=wb,_.first=yb,Mp(_,function(){var a={};return si(_,function(s,f){vt.call(_.prototype,f)||(a[f]=s)}),a}(),{chain:!1}),_.VERSION=r,Dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){_[a].placeholder=_}),Dr(["drop","take"],function(a,s){rt.prototype[a]=function(f){f=f===n?1:on(qe(f),0);var y=this.__filtered__&&!s?new rt(this):this.clone();return y.__filtered__?y.__takeCount__=Pn(f,y.__takeCount__):y.__views__.push({size:Pn(f,U),type:a+(y.__dir__<0?"Right":"")}),y},rt.prototype[a+"Right"]=function(f){return this.reverse()[a](f).reverse()}}),Dr(["filter","map","takeWhile"],function(a,s){var f=s+1,y=f==q||f==z;rt.prototype[a]=function(A){var O=this.clone();return O.__iteratees__.push({iteratee:ke(A,3),type:f}),O.__filtered__=O.__filtered__||y,O}}),Dr(["head","last"],function(a,s){var f="take"+(s?"Right":"");rt.prototype[a]=function(){return this[f](1).value()[0]}}),Dr(["initial","tail"],function(a,s){var f="drop"+(s?"":"Right");rt.prototype[a]=function(){return this.__filtered__?new rt(this):this[f](1)}}),rt.prototype.compact=function(){return this.filter(nr)},rt.prototype.find=function(a){return this.filter(a).head()},rt.prototype.findLast=function(a){return this.reverse().find(a)},rt.prototype.invokeMap=Xe(function(a,s){return typeof a=="function"?new rt(this):this.map(function(f){return hs(f,a,s)})}),rt.prototype.reject=function(a){return this.filter(vc(ke(a)))},rt.prototype.slice=function(a,s){a=qe(a);var f=this;return f.__filtered__&&(a>0||s<0)?new rt(f):(a<0?f=f.takeRight(-a):a&&(f=f.drop(a)),s!==n&&(s=qe(s),f=s<0?f.dropRight(-s):f.take(s-a)),f)},rt.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},rt.prototype.toArray=function(){return this.take(U)},si(rt.prototype,function(a,s){var f=/^(?:filter|find|map|reject)|While$/.test(s),y=/^(?:head|last)$/.test(s),A=_[y?"take"+(s=="last"?"Right":""):s],O=y||/^find/.test(s);A&&(_.prototype[s]=function(){var K=this.__wrapped__,W=y?[1]:arguments,J=K instanceof rt,le=W[0],ce=J||We(K),he=function(tt){var ot=A.apply(_,to([tt],W));return y&&we?ot[0]:ot};ce&&f&&typeof le=="function"&&le.length!=1&&(J=ce=!1);var we=this.__chain__,_e=!!this.__actions__.length,Ie=O&&!we,Je=J&&!_e;if(!O&&ce){K=Je?K:new rt(this);var Le=a.apply(K,W);return Le.__actions__.push({func:hc,args:[he],thisArg:n}),new Cr(Le,we)}return Ie&&Je?a.apply(this,W):(Le=this.thru(he),Ie?y?Le.value()[0]:Le.value():Le)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(a){var s=Nl[a],f=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",y=/^(?:pop|shift)$/.test(a);_.prototype[a]=function(){var A=arguments;if(y&&!this.__chain__){var O=this.value();return s.apply(We(O)?O:[],A)}return this[f](function(K){return s.apply(We(K)?K:[],A)})}}),si(rt.prototype,function(a,s){var f=_[s];if(f){var y=f.name+"";vt.call(Ua,y)||(Ua[y]=[]),Ua[y].push({name:s,func:f})}}),Ua[uc(n,$).name]=[{name:"wrapper",func:n}],rt.prototype.clone=d6,rt.prototype.reverse=f6,rt.prototype.value=p6,_.prototype.at=jT,_.prototype.chain=UT,_.prototype.commit=zT,_.prototype.next=WT,_.prototype.plant=GT,_.prototype.reverse=qT,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=YT,_.prototype.first=_.prototype.head,us&&(_.prototype[us]=HT),_},Na=zS();ui?((ui.exports=Na)._=Na,ai._=Na):qt._=Na}).call(KR)}(Fs,Fs.exports)),Fs.exports}var s$=jR();const UR=$a(s$);var zp={exports:{}};/*!
85
- Copyright (c) 2018 Jed Watson.
86
- Licensed under the MIT License (MIT), see
87
- http://jedwatson.github.io/classnames
88
- */var g0;function zR(){return g0||(g0=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",u=0;u<arguments.length;u++){var l=arguments[u];l&&(o=i(o,r(l)))}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 u="";for(var l in o)t.call(o,l)&&o[l]&&(u=i(u,l));return u}function i(o,u){return u?o?o+" "+u:o+u:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(zp)),zp.exports}var WR=zR();const Qh=$a(WR);/*
89
- * React Tooltip
90
- * {@link https://github.com/ReactTooltip/react-tooltip}
91
- * @copyright ReactTooltip Team
92
- * @license MIT
93
- */const HR="react-tooltip-core-styles",GR="react-tooltip-base-styles",y0={core:!1,base:!1};function v0({css:e,id:t=GR,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||y0[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=HR),r||(r={});const{insertAt:u}=r;if(document.getElementById(t))return;const l=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",u==="top"&&l.firstChild?l.insertBefore(c,l.firstChild):l.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),y0[n]=!0}const b0=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:u=[o$(Number(i)),a$({fallbackAxisSideDirection:"start"}),BR({padding:5})],border:l})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=u;return n?(c.push(IR({element:n,padding:5})),Jh(e,t,{placement:r,strategy:o,middleware:c}).then(({x:d,y:p,placement:h,middlewareData:g})=>{var m,x;const w={left:`${d}px`,top:`${p}px`,border:l},{x:C,y:$}=(m=g.arrow)!==null&&m!==void 0?m:{x:0,y:0},v=(x={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&x!==void 0?x:"bottom",D=l&&{borderBottom:l,borderRight:l};let P=0;if(l){const E=`${l}`.match(/(\d+)px/);P=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:w,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:$!=null?`${$}px`:"",right:"",bottom:"",...D,[v]:`-${4+P}px`},place:h}})):Jh(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:d,y:p,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${p}px`},tooltipArrowStyles:{},place:h}))},$0=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),x0=(e,t,n)=>{let r=null;const i=function(...o){const u=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(u,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},w0=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",Xh=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>Xh(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!w0(e)||!w0(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>Xh(e[i],t[i]))},qR=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"})},D0=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(qR(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},YR=typeof window<"u"?b.useLayoutEffect:b.useEffect,_r=e=>{e.current&&(clearTimeout(e.current),e.current=null)},ZR="DEFAULT_TOOLTIP_ID",JR={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},QR=b.createContext({getTooltipData:()=>JR});function l$(e=ZR){return b.useContext(QR).getTooltipData(e)}var Ja={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"},Wp={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 XR=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:u,place:l="top",offset:c=10,events:d=["hover"],openOnClick:p=!1,positionStrategy:h="absolute",middlewares:g,wrapper:m,delayShow:x=0,delayHide:w=0,float:C=!1,hidden:$=!1,noArrow:v=!1,clickable:D=!1,closeOnEsc:P=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:F,closeEvents:S,globalCloseEvents:j,imperativeModeOnly:k,style:B,position:Z,afterShow:V,afterHide:q,disableTooltip:H,content:z,contentWrapperRef:I,isOpen:N,defaultIsOpen:Q=!1,setIsOpen:L,activeAnchor:U,setActiveAnchor:ie,border:oe,opacity:me,arrowColor:ne,role:ve="tooltip"})=>{var ye;const X=b.useRef(null),ge=b.useRef(null),be=b.useRef(null),pe=b.useRef(null),ae=b.useRef(null),[Re,et]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[it,hn]=b.useState(!1),[st,mn]=b.useState(!1),[Ae,ze]=b.useState(null),je=b.useRef(!1),Jt=b.useRef(null),{anchorRefs:wn,setActiveAnchor:gn}=l$(t),Qt=b.useRef(!1),[qn,sn]=b.useState([]),Xt=b.useRef(!1),Bn=p||d.includes("click"),ar=Bn||(F==null?void 0:F.click)||(F==null?void 0:F.dblclick)||(F==null?void 0:F.mousedown),en=F?{...F}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!F&&Bn&&Object.assign(en,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Yn=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&Bn&&Object.assign(Yn,{mouseleave:!1,blur:!1,mouseout:!1});const tn=j?{...j}:{escape:P||!1,scroll:E||!1,resize:T||!1,clickOutsideAnchor:ar||!1};k&&(Object.assign(en,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Yn,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(tn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),YR(()=>(Xt.current=!0,()=>{Xt.current=!1}),[]);const yt=xe=>{Xt.current&&(xe&&mn(!0),setTimeout(()=>{Xt.current&&(L==null||L(xe),N===void 0&&hn(xe))},10))};b.useEffect(()=>{if(N===void 0)return()=>null;N&&mn(!0);const xe=setTimeout(()=>{hn(N)},10);return()=>{clearTimeout(xe)}},[N]),b.useEffect(()=>{if(it!==je.current)if(_r(ae),je.current=it,it)V==null||V();else{const xe=(Fe=>{const Ne=Fe.match(/^([\d.]+)(ms|s)$/);if(!Ne)return 0;const[,Dt,Kt]=Ne;return Number(Dt)*(Kt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ae.current=setTimeout(()=>{mn(!1),ze(null),q==null||q()},xe+25)}},[it]);const ur=xe=>{et(Fe=>Xh(Fe,xe)?Fe:xe)},sr=(xe=x)=>{_r(be),st?yt(!0):be.current=setTimeout(()=>{yt(!0)},xe)},yn=(xe=w)=>{_r(pe),pe.current=setTimeout(()=>{Qt.current||yt(!1)},xe)},In=xe=>{var Fe;if(!xe)return;const Ne=(Fe=xe.currentTarget)!==null&&Fe!==void 0?Fe:xe.target;if(!(Ne!=null&&Ne.isConnected))return ie(null),void gn({current:null});x?sr():yt(!0),ie(Ne),gn({current:Ne}),_r(pe)},vn=()=>{D?yn(w||100):w?yn():yt(!1),_r(be)},Ln=({x:xe,y:Fe})=>{var Ne;const Dt={getBoundingClientRect:()=>({x:xe,y:Fe,width:0,height:0,top:Fe,left:xe,right:xe,bottom:Fe})};b0({place:(Ne=Ae==null?void 0:Ae.place)!==null&&Ne!==void 0?Ne:l,offset:c,elementReference:Dt,tooltipReference:X.current,tooltipArrowReference:ge.current,strategy:h,middlewares:g,border:oe}).then(Kt=>{ur(Kt)})},Dn=xe=>{if(!xe)return;const Fe=xe,Ne={x:Fe.clientX,y:Fe.clientY};Ln(Ne),Jt.current=Ne},ln=xe=>{var Fe;if(!it)return;const Ne=xe.target;Ne.isConnected&&(!((Fe=X.current)===null||Fe===void 0)&&Fe.contains(Ne)||[document.querySelector(`[id='${o}']`),...qn].some(Dt=>Dt==null?void 0:Dt.contains(Ne))||(yt(!1),_r(be)))},br=x0(In,50),Tt=x0(vn,50),cn=xe=>{Tt.cancel(),br(xe)},Oe=()=>{br.cancel(),Tt()},Ge=b.useCallback(()=>{var xe,Fe;const Ne=(xe=Ae==null?void 0:Ae.position)!==null&&xe!==void 0?xe:Z;Ne?Ln(Ne):C?Jt.current&&Ln(Jt.current):U!=null&&U.isConnected&&b0({place:(Fe=Ae==null?void 0:Ae.place)!==null&&Fe!==void 0?Fe:l,offset:c,elementReference:U,tooltipReference:X.current,tooltipArrowReference:ge.current,strategy:h,middlewares:g,border:oe}).then(Dt=>{Xt.current&&ur(Dt)})},[it,U,z,B,l,Ae==null?void 0:Ae.place,c,h,Z,Ae==null?void 0:Ae.position,C]);b.useEffect(()=>{var xe,Fe;const Ne=new Set(wn);qn.forEach(ut=>{H!=null&&H(ut)||Ne.add({current:ut})});const Dt=document.querySelector(`[id='${o}']`);Dt&&!(H!=null&&H(Dt))&&Ne.add({current:Dt});const Kt=()=>{yt(!1)},En=D0(U),_t=D0(X.current);tn.scroll&&(window.addEventListener("scroll",Kt),En==null||En.addEventListener("scroll",Kt),_t==null||_t.addEventListener("scroll",Kt));let Ut=null;tn.resize?window.addEventListener("resize",Kt):U&&X.current&&(Ut=i$(U,X.current,Ge,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Et=ut=>{ut.key==="Escape"&&yt(!1)};tn.escape&&window.addEventListener("keydown",Et),tn.clickOutsideAnchor&&window.addEventListener("click",ln);const ft=[],jr=ut=>{it&&(ut==null?void 0:ut.target)===U||In(ut)},Oo=ut=>{it&&(ut==null?void 0:ut.target)===U&&vn()},Jn=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],qi=["click","dblclick","mousedown","mouseup"];Object.entries(en).forEach(([ut,Vn])=>{Vn&&(Jn.includes(ut)?ft.push({event:ut,listener:cn}):qi.includes(ut)&&ft.push({event:ut,listener:jr}))}),Object.entries(Yn).forEach(([ut,Vn])=>{Vn&&(Jn.includes(ut)?ft.push({event:ut,listener:Oe}):qi.includes(ut)&&ft.push({event:ut,listener:Oo}))}),C&&ft.push({event:"pointermove",listener:Dn});const Yi=()=>{Qt.current=!0},Zi=()=>{Qt.current=!1,vn()};return D&&!ar&&((xe=X.current)===null||xe===void 0||xe.addEventListener("mouseenter",Yi),(Fe=X.current)===null||Fe===void 0||Fe.addEventListener("mouseleave",Zi)),ft.forEach(({event:ut,listener:Vn})=>{Ne.forEach(Qn=>{var Cn;(Cn=Qn.current)===null||Cn===void 0||Cn.addEventListener(ut,Vn)})}),()=>{var ut,Vn;tn.scroll&&(window.removeEventListener("scroll",Kt),En==null||En.removeEventListener("scroll",Kt),_t==null||_t.removeEventListener("scroll",Kt)),tn.resize?window.removeEventListener("resize",Kt):Ut==null||Ut(),tn.clickOutsideAnchor&&window.removeEventListener("click",ln),tn.escape&&window.removeEventListener("keydown",Et),D&&!ar&&((ut=X.current)===null||ut===void 0||ut.removeEventListener("mouseenter",Yi),(Vn=X.current)===null||Vn===void 0||Vn.removeEventListener("mouseleave",Zi)),ft.forEach(({event:Qn,listener:Cn})=>{Ne.forEach(Ji=>{var $r;($r=Ji.current)===null||$r===void 0||$r.removeEventListener(Qn,Cn)})})}},[U,Ge,st,wn,qn,F,S,j,Bn,x,w]),b.useEffect(()=>{var xe,Fe;let Ne=(Fe=(xe=Ae==null?void 0:Ae.anchorSelect)!==null&&xe!==void 0?xe:u)!==null&&Fe!==void 0?Fe:"";!Ne&&t&&(Ne=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Dt=new MutationObserver(Kt=>{const En=[],_t=[];Kt.forEach(Ut=>{if(Ut.type==="attributes"&&Ut.attributeName==="data-tooltip-id"&&(Ut.target.getAttribute("data-tooltip-id")===t?En.push(Ut.target):Ut.oldValue===t&&_t.push(Ut.target)),Ut.type==="childList"){if(U){const Et=[...Ut.removedNodes].filter(ft=>ft.nodeType===1);if(Ne)try{_t.push(...Et.filter(ft=>ft.matches(Ne))),_t.push(...Et.flatMap(ft=>[...ft.querySelectorAll(Ne)]))}catch{}Et.some(ft=>{var jr;return!!(!((jr=ft==null?void 0:ft.contains)===null||jr===void 0)&&jr.call(ft,U))&&(mn(!1),yt(!1),ie(null),_r(be),_r(pe),!0)})}if(Ne)try{const Et=[...Ut.addedNodes].filter(ft=>ft.nodeType===1);En.push(...Et.filter(ft=>ft.matches(Ne))),En.push(...Et.flatMap(ft=>[...ft.querySelectorAll(Ne)]))}catch{}}}),(En.length||_t.length)&&sn(Ut=>[...Ut.filter(Et=>!_t.includes(Et)),...En])});return Dt.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Dt.disconnect()}},[t,u,Ae==null?void 0:Ae.anchorSelect,U]),b.useEffect(()=>{Ge()},[Ge]),b.useEffect(()=>{if(!(I!=null&&I.current))return()=>null;const xe=new ResizeObserver(()=>{setTimeout(()=>Ge())});return xe.observe(I.current),()=>{xe.disconnect()}},[z,I==null?void 0:I.current]),b.useEffect(()=>{var xe;const Fe=document.querySelector(`[id='${o}']`),Ne=[...qn,Fe];U&&Ne.includes(U)||ie((xe=qn[0])!==null&&xe!==void 0?xe:Fe)},[o,qn,U]),b.useEffect(()=>(Q&&yt(!0),()=>{_r(be),_r(pe)}),[]),b.useEffect(()=>{var xe;let Fe=(xe=Ae==null?void 0:Ae.anchorSelect)!==null&&xe!==void 0?xe:u;if(!Fe&&t&&(Fe=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Fe)try{const Ne=Array.from(document.querySelectorAll(Fe));sn(Ne)}catch{sn([])}},[t,u,Ae==null?void 0:Ae.anchorSelect]),b.useEffect(()=>{be.current&&(_r(be),sr(x))},[x]);const Nt=(ye=Ae==null?void 0:Ae.content)!==null&&ye!==void 0?ye:z,Zn=it&&Object.keys(Re.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:xe=>{if(xe!=null&&xe.anchorSelect)try{document.querySelector(xe.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${xe.anchorSelect}" is not a valid CSS selector`)}ze(xe??null),xe!=null&&xe.delay?sr(xe.delay):yt(!0)},close:xe=>{xe!=null&&xe.delay?yn(xe.delay):yt(!1)},activeAnchor:U,place:Re.place,isOpen:!!(st&&!$&&Nt&&Zn)})),st&&!$&&Nt?b.createElement(m,{id:t,role:ve,className:Qh("react-tooltip",Ja.tooltip,Wp.tooltip,Wp[i],n,`react-tooltip__place-${Re.place}`,Ja[Zn?"show":"closing"],Zn?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&Ja.fixed,D&&Ja.clickable),onTransitionEnd:xe=>{_r(ae),it||xe.propertyName!=="opacity"||(mn(!1),ze(null),q==null||q())},style:{...B,...Re.tooltipStyles,opacity:me!==void 0&&Zn?me:void 0},ref:X},Nt,b.createElement(m,{className:Qh("react-tooltip-arrow",Ja.arrow,Wp.arrow,r,v&&Ja.noArrow),style:{...Re.tooltipArrowStyles,background:ne?`linear-gradient(to right bottom, transparent 50%, ${ne} 50%)`:void 0},ref:ge})):null},e8=({content:e})=>b.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),t8=b.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:u,classNameArrow:l,variant:c="dark",place:d="top",offset:p=10,wrapper:h="div",children:g=null,events:m=["hover"],openOnClick:x=!1,positionStrategy:w="absolute",middlewares:C,delayShow:$=0,delayHide:v=0,float:D=!1,hidden:P=!1,noArrow:E=!1,clickable:T=!1,closeOnEsc:F=!1,closeOnScroll:S=!1,closeOnResize:j=!1,openEvents:k,closeEvents:B,globalCloseEvents:Z,imperativeModeOnly:V=!1,style:q,position:H,isOpen:z,defaultIsOpen:I=!1,disableStyleInjection:N=!1,border:Q,opacity:L,arrowColor:U,setIsOpen:ie,afterShow:oe,afterHide:me,disableTooltip:ne,role:ve="tooltip"},ye)=>{const[X,ge]=b.useState(r),[be,pe]=b.useState(i),[ae,Re]=b.useState(d),[et,it]=b.useState(c),[hn,st]=b.useState(p),[mn,Ae]=b.useState($),[ze,je]=b.useState(v),[Jt,wn]=b.useState(D),[gn,Qt]=b.useState(P),[qn,sn]=b.useState(h),[Xt,Bn]=b.useState(m),[ar,en]=b.useState(w),[Yn,tn]=b.useState(null),[yt,ur]=b.useState(null),sr=b.useRef(N),{anchorRefs:yn,activeAnchor:In}=l$(e),vn=Tt=>Tt==null?void 0:Tt.getAttributeNames().reduce((cn,Oe)=>{var Ge;return Oe.startsWith("data-tooltip-")&&(cn[Oe.replace(/^data-tooltip-/,"")]=(Ge=Tt==null?void 0:Tt.getAttribute(Oe))!==null&&Ge!==void 0?Ge:null),cn},{}),Ln=Tt=>{const cn={place:Oe=>{var Ge;Re((Ge=Oe)!==null&&Ge!==void 0?Ge:d)},content:Oe=>{ge(Oe??r)},html:Oe=>{pe(Oe??i)},variant:Oe=>{var Ge;it((Ge=Oe)!==null&&Ge!==void 0?Ge:c)},offset:Oe=>{st(Oe===null?p:Number(Oe))},wrapper:Oe=>{var Ge;sn((Ge=Oe)!==null&&Ge!==void 0?Ge:h)},events:Oe=>{const Ge=Oe==null?void 0:Oe.split(" ");Bn(Ge??m)},"position-strategy":Oe=>{var Ge;en((Ge=Oe)!==null&&Ge!==void 0?Ge:w)},"delay-show":Oe=>{Ae(Oe===null?$:Number(Oe))},"delay-hide":Oe=>{je(Oe===null?v:Number(Oe))},float:Oe=>{wn(Oe===null?D:Oe==="true")},hidden:Oe=>{Qt(Oe===null?P:Oe==="true")},"class-name":Oe=>{tn(Oe)}};Object.values(cn).forEach(Oe=>Oe(null)),Object.entries(Tt).forEach(([Oe,Ge])=>{var Nt;(Nt=cn[Oe])===null||Nt===void 0||Nt.call(cn,Ge)})};b.useEffect(()=>{ge(r)},[r]),b.useEffect(()=>{pe(i)},[i]),b.useEffect(()=>{Re(d)},[d]),b.useEffect(()=>{it(c)},[c]),b.useEffect(()=>{st(p)},[p]),b.useEffect(()=>{Ae($)},[$]),b.useEffect(()=>{je(v)},[v]),b.useEffect(()=>{wn(D)},[D]),b.useEffect(()=>{Qt(P)},[P]),b.useEffect(()=>{en(w)},[w]),b.useEffect(()=>{sr.current!==N&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[N]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:N==="core",disableBase:N}}))},[]),b.useEffect(()=>{var Tt;const cn=new Set(yn);let Oe=n;if(!Oe&&e&&(Oe=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Oe)try{document.querySelectorAll(Oe).forEach(Fe=>{cn.add({current:Fe})})}catch{console.warn(`[react-tooltip] "${Oe}" is not a valid CSS selector`)}const Ge=document.querySelector(`[id='${t}']`);if(Ge&&cn.add({current:Ge}),!cn.size)return()=>null;const Nt=(Tt=yt??Ge)!==null&&Tt!==void 0?Tt:In.current,Zn=new MutationObserver(Fe=>{Fe.forEach(Ne=>{var Dt;if(!Nt||Ne.type!=="attributes"||!(!((Dt=Ne.attributeName)===null||Dt===void 0)&&Dt.startsWith("data-tooltip-")))return;const Kt=vn(Nt);Ln(Kt)})}),xe={attributes:!0,childList:!1,subtree:!1};if(Nt){const Fe=vn(Nt);Ln(Fe),Zn.observe(Nt,xe)}return()=>{Zn.disconnect()}},[yn,In,yt,t,n]),b.useEffect(()=>{q!=null&&q.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Q&&!$0("border",`${Q}`)&&console.warn(`[react-tooltip] "${Q}" is not a valid \`border\`.`),q!=null&&q.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),L&&!$0("opacity",`${L}`)&&console.warn(`[react-tooltip] "${L}" is not a valid \`opacity\`.`)},[]);let Dn=g;const ln=b.useRef(null);if(o){const Tt=o({content:(yt==null?void 0:yt.getAttribute("data-tooltip-content"))||X||null,activeAnchor:yt});Dn=Tt?b.createElement("div",{ref:ln,className:"react-tooltip-content-wrapper"},Tt):null}else X&&(Dn=X);be&&(Dn=b.createElement(e8,{content:be}));const br={forwardRef:ye,id:e,anchorId:t,anchorSelect:n,className:Qh(u,Yn),classNameArrow:l,content:Dn,contentWrapperRef:ln,place:ae,variant:et,offset:hn,wrapper:qn,events:Xt,openOnClick:x,positionStrategy:ar,middlewares:C,delayShow:mn,delayHide:ze,float:Jt,hidden:gn,noArrow:E,clickable:T,closeOnEsc:F,closeOnScroll:S,closeOnResize:j,openEvents:k,closeEvents:B,globalCloseEvents:Z,imperativeModeOnly:V,style:q,position:H,isOpen:z,defaultIsOpen:I,border:Q,opacity:L,arrowColor:U,setIsOpen:ie,afterShow:oe,afterHide:me,disableTooltip:ne,activeAnchor:yt,setActiveAnchor:Tt=>ur(Tt),role:ve};return b.createElement(XR,{...br})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||v0({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||v0({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 Ot=typeof document<"u"?b.useLayoutEffect:()=>{};function un(e){const t=b.useRef(null);return Ot(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function n8(e){let[t,n]=b.useState(e),r=b.useRef(null),i=un(()=>{if(!r.current)return;let u=r.current.next();if(u.done){r.current=null;return}t===u.value?i():n(u.value)});Ot(()=>{r.current&&i()});let o=un(u=>{r.current=u(t),i()});return[t,o]}const fd={prefix:String(Math.round(Math.random()*1e10)),current:0},c$=b.createContext(fd),r8=b.createContext(!1);let i8=!!(typeof window<"u"&&window.document&&window.document.createElement),Hp=new WeakMap;function o8(e=!1){let t=b.useContext(c$),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 u=Hp.get(o);u==null?Hp.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==u.state&&(t.current=u.id,Hp.delete(o))}n.current=++t.current}return n.current}function a8(e){let t=b.useContext(c$);t===fd&&!i8&&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=o8(!!e),r=t===fd&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function u8(e){let t=b.useId(),[n]=b.useState(yg()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${fd.prefix}`;return e||`${r}-${t}`}const s8=typeof b.useId=="function"?u8:a8;function l8(){return!1}function c8(){return!0}function d8(e){return()=>{}}function yg(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(d8,l8,c8):b.useContext(r8)}let f8=!!(typeof window<"u"&&window.document&&window.document.createElement),ho=new Map;function gr(e){let[t,n]=b.useState(e),r=b.useRef(null),i=s8(t),o=b.useCallback(u=>{r.current=u},[]);return f8&&(ho.has(i)&&!ho.get(i).includes(o)?ho.set(i,[...ho.get(i),o]):ho.set(i,[o])),Ot(()=>{let u=i;return()=>{ho.delete(u)}},[i]),b.useEffect(()=>{let u=r.current;u&&(r.current=null,n(u))}),i}function p8(e,t){if(e===t)return e;let n=ho.get(e);if(n)return n.forEach(i=>i(t)),t;let r=ho.get(t);return r?(r.forEach(i=>i(e)),e):t}function Au(e=[]){let t=gr(),[n,r]=n8(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Ot(i,[t,i,...e]),n}function pa(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const At=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ao=e=>e&&"window"in e&&e.window===e?e:At(e).defaultView||window;function d$(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=d$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function h8(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=d$(e))&&(r&&(r+=" "),r+=t);return r}function dt(...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],u=r[i];typeof o=="function"&&typeof u=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=pa(o,u):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof u=="string"?t[i]=h8(o,u):i==="id"&&o&&u?t.id=p8(o,u):t[i]=u!==void 0?u:o}}return t}const m8=new Set(["id"]),g8=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),y8=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),v8=/^(data-.*)$/;function Wi(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(m8.has(u)||n&&g8.has(u)||r&&y8.has(u)||i!=null&&i.has(u)||v8.test(u))&&(o[u]=e[u]);return o}function Yr(e){if(b8())e.focus({preventScroll:!0});else{let t=$8(e);e.focus(),x8(t)}}let Ac=null;function b8(){if(Ac==null){Ac=!1;try{document.createElement("div").focus({get preventScroll(){return Ac=!0,!0}})}catch{}}return Ac}function $8(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 x8(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Qd(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 vg(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 Hi(e){let t=null;return()=>(t==null&&(t=e()),t)}const zi=Hi(function(){return vg(/^Mac/i)}),w8=Hi(function(){return vg(/^iPhone/i)}),f$=Hi(function(){return vg(/^iPad/i)||zi()&&navigator.maxTouchPoints>1}),cl=Hi(function(){return w8()||f$()}),Zc=Hi(function(){return zi()||cl()}),bg=Hi(function(){return Qd(/AppleWebKit/i)&&!D8()}),D8=Hi(function(){return Qd(/Chrome/i)}),p$=Hi(function(){return Qd(/Android/i)}),E8=Hi(function(){return Qd(/Firefox/i)}),C8=b.createContext({isNative:!0,open:A8,useHref:e=>e});function Xd(){return b.useContext(C8)}function ha(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:u,altKey:l,shiftKey:c}=t;E8()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(zi()?o=!0:u=!0);let d=bg()&&zi()&&!f$()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:u,altKey:l,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:u,altKey:l,shiftKey:c,bubbles:!0,cancelable:!0});ha.isOpening=n,Yr(e),e.dispatchEvent(d),ha.isOpening=!1}ha.isOpening=!1;function S8(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 A8(e,t){S8(e,n=>ha(n,t))}function T8(e){let t=Xd();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 nu=new Map,em=new Set;function E0(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=nu.get(r.target);i||(i=new Set,nu.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=nu.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),nu.delete(r.target)),nu.size===0)){for(let o of em)o();em.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?E0():document.addEventListener("DOMContentLoaded",E0));function h$(e){requestAnimationFrame(()=>{nu.size===0?e():em.add(e)})}function Ku(){let e=b.useRef(new Map),t=b.useCallback((i,o,u,l)=>{let c=l!=null&&l.once?(...d)=>{e.current.delete(u),u(...d)}:u;e.current.set(u,{type:o,eventTarget:i,fn:c,options:l}),i.addEventListener(o,u,l)},[]),n=b.useCallback((i,o,u,l)=>{var c;let d=((c=e.current.get(u))===null||c===void 0?void 0:c.fn)||u;i.removeEventListener(o,d,l),e.current.delete(u)},[]),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 Tu(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=gr(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 C0(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 P8(){return typeof window.ResizeObserver<"u"}function S0(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(P8()){const o=new window.ResizeObserver(u=>{u.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 m$(e,t){Ot(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Gs(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 ef(e,t){let n=e;for(Gs(n,t)&&(n=n.parentElement);n&&!Gs(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function _8(e,t){const n=[];for(;e&&e!==document.documentElement;)Gs(e,t)&&n.push(e),e=e.parentElement;return n}let R8=0;const Gp=new Map;function dl(e){let[t,n]=b.useState();return Ot(()=>{if(!e)return;let r=Gp.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${R8++}`;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},Gp.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),Gp.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function wo(e,t,n,r){let i=un(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let u=e.current;return u.addEventListener(t,i,r),()=>{u.removeEventListener(t,i,r)}},[e,t,r,o,i])}function g$(e,t){let n=A0(e,t,"left"),r=A0(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,u=e.scrollLeft,l=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),p=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),g=p+e.clientWidth,m=h+e.clientHeight;n<=u?u=n-parseInt(d,10):n+i>g&&(u+=n+i-g),r<=h?l=r-parseInt(c,10):r+o>m&&(l+=r+o-m),e.scrollLeft=u,e.scrollTop=l}function A0(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 pd(e,t){if(e&&document.contains(e)){let u=document.scrollingElement||document.documentElement;if(window.getComputedStyle(u).overflow==="hidden"){let c=_8(e);for(let d of c)g$(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:p,top:h}=e.getBoundingClientRect();if(Math.abs(c-p)>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 tm(e){return e.mozInputSource===0&&e.isTrusted?!0:p$()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function O8(e){return!p$()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function y$(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function $g(e,t,n){let r=b.useRef(t),i=un(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let u=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return u==null||u.addEventListener("reset",i),()=>{u==null||u.removeEventListener("reset",i)}},[e,i])}function yr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),u=e!==void 0;b.useEffect(()=>{let d=o.current;d!==u&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),o.current=u},[u]);let l=u?e:r,c=b.useCallback((d,...p)=>{let h=(g,...m)=>{n&&(Object.is(l,g)||n(g,...m)),u||(l=g)};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((m,...x)=>{let w=d(u?l:m,...x);return h(w,...p),u?m:w})):(u||i(d),h(d,...p))},[u,l,n]);return[l,c]}function Pu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Tc(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let u=Math.pow(10,o);n=Math.round(n*u)/u}return n}function xs(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=Tc(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(Tc(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(Tc((n-t)/r,r))*r),o=Tc(o,r),o}let au="default",nm="",Jc=new WeakMap;function rm(e){if(cl()){if(au==="default"){const t=At(e);nm=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}au="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Jc.set(e,e.style.userSelect),e.style.userSelect="none")}function Ms(e){if(cl()){if(au!=="disabled")return;au="restoring",setTimeout(()=>{h$(()=>{if(au==="restoring"){const t=At(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=nm||""),nm="",au="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Jc.has(e)){let t=Jc.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Jc.delete(e)}}const xg=b.createContext({register:()=>{}});xg.displayName="PressResponderContext";function F8(e,t){return t.get?t.get.call(e):t.value}function v$(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function M8(e,t){var n=v$(e,t,"get");return F8(e,n)}function k8(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fl(e,t,n){k8(e,t),t.set(e,n)}function B8(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 T0(e,t,n){var r=v$(e,t,"set");return B8(e,r,n),n}function I8(e){let t=b.useContext(xg);if(t){let{register:n,...r}=t;e=dt(r,e),n()}return m$(t,e.ref),e}var Pc=new WeakMap;class _c{continuePropagation(){T0(this,Pc,!1)}get shouldStopPropagation(){return M8(this,Pc)}constructor(t,n,r,i){fl(this,Pc,{writable:!0,value:void 0}),T0(this,Pc,!0);var o;let u=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const l=u==null?void 0:u.getBoundingClientRect();let c,d=0,p,h=null;r.clientX!=null&&r.clientY!=null&&(p=r.clientX,h=r.clientY),l&&(p!=null&&h!=null?(c=p-l.left,d=h-l.top):(c=l.width/2,d=l.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 P0=Symbol("linkClicked");function pl(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:u,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:p,ref:h,...g}=I8(e),[m,x]=b.useState(!1),w=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:$}=Ku(),v=un((S,j)=>{let k=w.current;if(u||k.didFirePressStart)return!1;let B=!0;if(k.isTriggeringEvent=!0,r){let Z=new _c("pressstart",j,S);r(Z),B=Z.shouldStopPropagation}return n&&n(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,x(!0),B}),D=un((S,j,k=!0)=>{let B=w.current;if(!B.didFirePressStart)return!1;B.ignoreClickAfterPress=!0,B.didFirePressStart=!1,B.isTriggeringEvent=!0;let Z=!0;if(i){let V=new _c("pressend",j,S);i(V),Z=V.shouldStopPropagation}if(n&&n(!1),x(!1),t&&k&&!u){let V=new _c("press",j,S);t(V),Z&&(Z=V.shouldStopPropagation)}return B.isTriggeringEvent=!1,Z}),P=un((S,j)=>{let k=w.current;if(u)return!1;if(o){k.isTriggeringEvent=!0;let B=new _c("pressup",j,S);return o(B),k.isTriggeringEvent=!1,B.shouldStopPropagation}return!0}),E=un(S=>{let j=w.current;j.isPressed&&j.target&&(j.isOverTarget&&j.pointerType!=null&&D(Mi(j.target,S),j.pointerType,!1),j.isPressed=!1,j.isOverTarget=!1,j.activePointerId=null,j.pointerType=null,$(),p||Ms(j.target))}),T=un(S=>{d&&E(S)}),F=b.useMemo(()=>{let S=w.current,j={onKeyDown(B){if(qp(B.nativeEvent,B.currentTarget)&&B.currentTarget.contains(B.target)){var Z;R0(B.target,B.key)&&B.preventDefault();let V=!0;if(!S.isPressed&&!B.repeat){S.target=B.currentTarget,S.isPressed=!0,V=v(B,"keyboard");let q=B.currentTarget,H=z=>{qp(z,q)&&!z.repeat&&q.contains(z.target)&&S.target&&P(Mi(S.target,z),"keyboard")};C(At(B.currentTarget),"keyup",pa(H,k),!0)}V&&B.stopPropagation(),B.metaKey&&zi()&&((Z=S.metaKeyEvents)===null||Z===void 0||Z.set(B.key,B.nativeEvent))}else B.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(B){if(!(B&&!B.currentTarget.contains(B.target))&&B&&B.button===0&&!S.isTriggeringEvent&&!ha.isOpening){let Z=!0;if(u&&B.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||tm(B.nativeEvent))){!u&&!c&&Yr(B.currentTarget);let V=v(B,"virtual"),q=P(B,"virtual"),H=D(B,"virtual");Z=V&&q&&H}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,Z&&B.stopPropagation()}}},k=B=>{var Z;if(S.isPressed&&S.target&&qp(B,S.target)){var V;R0(B.target,B.key)&&B.preventDefault();let H=B.target;D(Mi(S.target,B),"keyboard",S.target.contains(H)),$(),B.key!=="Enter"&&wg(S.target)&&S.target.contains(H)&&!B[P0]&&(B[P0]=!0,ha(S.target,B,!1)),S.isPressed=!1,(V=S.metaKeyEvents)===null||V===void 0||V.delete(B.key)}else if(B.key==="Meta"&&(!((Z=S.metaKeyEvents)===null||Z===void 0)&&Z.size)){var q;let H=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let z of H.values())(q=S.target)===null||q===void 0||q.dispatchEvent(new KeyboardEvent("keyup",z))}};if(typeof PointerEvent<"u"){j.onPointerDown=H=>{if(H.button!==0||!H.currentTarget.contains(H.target))return;if(O8(H.nativeEvent)){S.pointerType="virtual";return}Yp(H.currentTarget)&&H.preventDefault(),S.pointerType=H.pointerType;let z=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=H.pointerId,S.target=H.currentTarget,!u&&!c&&Yr(H.currentTarget),p||rm(S.target),z=v(H,S.pointerType),C(At(H.currentTarget),"pointermove",B,!1),C(At(H.currentTarget),"pointerup",Z,!1),C(At(H.currentTarget),"pointercancel",q,!1)),z&&H.stopPropagation()},j.onMouseDown=H=>{H.currentTarget.contains(H.target)&&H.button===0&&(Yp(H.currentTarget)&&H.preventDefault(),H.stopPropagation())},j.onPointerUp=H=>{!H.currentTarget.contains(H.target)||S.pointerType==="virtual"||H.button===0&&Qa(H,H.currentTarget)&&P(H,S.pointerType||H.pointerType)};let B=H=>{H.pointerId===S.activePointerId&&(S.target&&Qa(H,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,v(Mi(S.target,H),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(Mi(S.target,H),S.pointerType,!1),T(H)))},Z=H=>{H.pointerId===S.activePointerId&&S.isPressed&&H.button===0&&S.target&&(Qa(H,S.target)&&S.pointerType!=null?D(Mi(S.target,H),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(Mi(S.target,H),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,$(),p||Ms(S.target),"ontouchend"in S.target&&H.pointerType!=="mouse"&&C(S.target,"touchend",V,{once:!0}))},V=H=>{b$(H.currentTarget)&&H.preventDefault()},q=H=>{E(H)};j.onDragStart=H=>{H.currentTarget.contains(H.target)&&E(H)}}else{j.onMouseDown=V=>{if(V.button!==0||!V.currentTarget.contains(V.target))return;if(Yp(V.currentTarget)&&V.preventDefault(),S.ignoreEmulatedMouseEvents){V.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=V.currentTarget,S.pointerType=tm(V.nativeEvent)?"virtual":"mouse",!u&&!c&&Yr(V.currentTarget),v(V,S.pointerType)&&V.stopPropagation(),C(At(V.currentTarget),"mouseup",B,!1)},j.onMouseEnter=V=>{if(!V.currentTarget.contains(V.target))return;let q=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,q=v(V,S.pointerType)),q&&V.stopPropagation()},j.onMouseLeave=V=>{if(!V.currentTarget.contains(V.target))return;let q=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,q=D(V,S.pointerType,!1),T(V)),q&&V.stopPropagation()},j.onMouseUp=V=>{V.currentTarget.contains(V.target)&&!S.ignoreEmulatedMouseEvents&&V.button===0&&P(V,S.pointerType||"mouse")};let B=V=>{if(V.button===0){if(S.isPressed=!1,$(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Qa(V,S.target)&&S.pointerType!=null?D(Mi(S.target,V),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(Mi(S.target,V),S.pointerType,!1),S.isOverTarget=!1}};j.onTouchStart=V=>{if(!V.currentTarget.contains(V.target))return;let q=L8(V.nativeEvent);if(!q)return;S.activePointerId=q.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=V.currentTarget,S.pointerType="touch",!u&&!c&&Yr(V.currentTarget),p||rm(S.target),v(lo(S.target,V),S.pointerType)&&V.stopPropagation(),C(Ao(V.currentTarget),"scroll",Z,!0)},j.onTouchMove=V=>{if(!V.currentTarget.contains(V.target))return;if(!S.isPressed){V.stopPropagation();return}let q=_0(V.nativeEvent,S.activePointerId),H=!0;q&&Qa(q,V.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,H=v(lo(S.target,V),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,H=D(lo(S.target,V),S.pointerType,!1),T(lo(S.target,V))),H&&V.stopPropagation()},j.onTouchEnd=V=>{if(!V.currentTarget.contains(V.target))return;if(!S.isPressed){V.stopPropagation();return}let q=_0(V.nativeEvent,S.activePointerId),H=!0;q&&Qa(q,V.currentTarget)&&S.pointerType!=null?(P(lo(S.target,V),S.pointerType),H=D(lo(S.target,V),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(H=D(lo(S.target,V),S.pointerType,!1)),H&&V.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!p&&Ms(S.target),$()},j.onTouchCancel=V=>{V.currentTarget.contains(V.target)&&(V.stopPropagation(),S.isPressed&&E(lo(S.target,V)))};let Z=V=>{S.isPressed&&V.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};j.onDragStart=V=>{V.currentTarget.contains(V.target)&&E(V)}}return j},[C,u,c,$,p,E,T,D,v,P]);return b.useEffect(()=>()=>{var S;p||Ms((S=w.current.target)!==null&&S!==void 0?S:void 0)},[p]),{isPressed:l||m,pressProps:dt(g,F)}}function wg(e){return e.tagName==="A"&&e.hasAttribute("href")}function qp(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Ao(i).HTMLInputElement&&!$$(i,n)||i instanceof Ao(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&wg(i))&&n!=="Enter")}function L8(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function _0(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 lo(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 Mi(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 V8(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 N8(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Qa(e,t){let n=t.getBoundingClientRect(),r=V8(e);return N8(n,r)}function Yp(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function b$(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!wg(e)}function R0(e,t){return e instanceof HTMLInputElement?!$$(e,t):b$(e)}const K8=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $$(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":K8.has(e.type)}function j8({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(xg.Provider,{value:t},e)}class U8{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 x$(e){let t=b.useRef({isFocused:!1,observer:null});Ot(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=un(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=u=>{t.current.isFocused=!1,i.disabled&&n(new U8("blur",u)),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 u;(u=t.current.observer)===null||u===void 0||u.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function z8(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]),u=x$(o),l=b.useCallback(c=>{const d=At(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),u(c))},[i,n,u]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?o:void 0}}}let xa=null,W8=new Set,Ks=new Map,ma=!1,im=!1;function tf(e,t){for(let n of W8)n(e,t)}function H8(e){return!(e.metaKey||!zi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function hd(e){ma=!0,H8(e)&&(xa="keyboard",tf("keyboard",e))}function kr(e){xa="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ma=!0,tf("pointer",e))}function w$(e){tm(e)&&(ma=!0,xa="virtual")}function D$(e){e.target===window||e.target===document||(!ma&&!im&&(xa="virtual",tf("virtual",e)),ma=!1,im=!1)}function E$(){ma=!1,im=!0}function O0(e){if(typeof window>"u"||Ks.get(Ao(e)))return;const t=Ao(e),n=At(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ma=!0,r.apply(this,arguments)},n.addEventListener("keydown",hd,!0),n.addEventListener("keyup",hd,!0),n.addEventListener("click",w$,!0),t.addEventListener("focus",D$,!0),t.addEventListener("blur",E$,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",kr,!0),n.addEventListener("pointermove",kr,!0),n.addEventListener("pointerup",kr,!0)):(n.addEventListener("mousedown",kr,!0),n.addEventListener("mousemove",kr,!0),n.addEventListener("mouseup",kr,!0)),t.addEventListener("beforeunload",()=>{C$(e)},{once:!0}),Ks.set(t,{focus:r})}const C$=(e,t)=>{const n=Ao(e),r=At(e);t&&r.removeEventListener("DOMContentLoaded",t),Ks.has(n)&&(n.HTMLElement.prototype.focus=Ks.get(n).focus,r.removeEventListener("keydown",hd,!0),r.removeEventListener("keyup",hd,!0),r.removeEventListener("click",w$,!0),n.removeEventListener("focus",D$,!0),n.removeEventListener("blur",E$,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",kr,!0),r.removeEventListener("pointermove",kr,!0),r.removeEventListener("pointerup",kr,!0)):(r.removeEventListener("mousedown",kr,!0),r.removeEventListener("mousemove",kr,!0),r.removeEventListener("mouseup",kr,!0)),Ks.delete(n))};function G8(e){const t=At(e);let n;return t.readyState!=="loading"?O0(e):(n=()=>{O0(e)},t.addEventListener("DOMContentLoaded",n)),()=>C$(e,n)}typeof document<"u"&&G8();function F0(){return xa!=="pointer"}function md(){return xa}function S$(e){xa=e,tf(e,null)}function ju(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),u=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),l=x$(u),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,l(d))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:u}}}let gd=!1,Zp=0;function om(){gd=!0,setTimeout(()=>{gd=!1},50)}function M0(e){e.pointerType==="touch"&&om()}function q8(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",M0):document.addEventListener("touchend",om),Zp++,()=>{Zp--,!(Zp>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",M0):document.removeEventListener("touchend",om))}}function Y8(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,u]=b.useState(!1),l=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(q8,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let p=(m,x)=>{if(l.pointerType=x,i||x==="touch"||l.isHovered||!m.currentTarget.contains(m.target))return;l.isHovered=!0;let w=m.currentTarget;l.target=w,t&&t({type:"hoverstart",target:w,pointerType:x}),n&&n(!0),u(!0)},h=(m,x)=>{if(l.pointerType="",l.target=null,x==="touch"||!l.isHovered)return;l.isHovered=!1;let w=m.currentTarget;r&&r({type:"hoverend",target:w,pointerType:x}),n&&n(!1),u(!1)},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{gd&&m.pointerType==="mouse"||p(m,m.pointerType)},g.onPointerLeave=m=>{!i&&m.currentTarget.contains(m.target)&&h(m,m.pointerType)}):(g.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!l.ignoreEmulatedMouseEvents&&!gd&&p(m,"mouse"),l.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!i&&m.currentTarget.contains(m.target)&&h(m,"mouse")}),{hoverProps:g,triggerHoverEnd:h}},[t,n,r,i,l]);return b.useEffect(()=>{i&&d({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:c,isHovered:o}}function Z8(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),u=un(c=>{n&&Rc(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),l=un(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,p=At(d);if(typeof PointerEvent<"u"){let h=g=>{c.isPointerDown&&Rc(g,t)&&l(g),c.isPointerDown=!1};return p.addEventListener("pointerdown",u,!0),p.addEventListener("pointerup",h,!0),()=>{p.removeEventListener("pointerdown",u,!0),p.removeEventListener("pointerup",h,!0)}}else{let h=m=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&Rc(m,t)&&l(m),c.isPointerDown=!1},g=m=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&Rc(m,t)&&l(m),c.isPointerDown=!1};return p.addEventListener("mousedown",u,!0),p.addEventListener("mouseup",h,!0),p.addEventListener("touchstart",u,!0),p.addEventListener("touchend",g,!0),()=>{p.removeEventListener("mousedown",u,!0),p.removeEventListener("mouseup",h,!0),p.removeEventListener("touchstart",u,!0),p.removeEventListener("touchend",g,!0)}}},[t,r,u,l])}function Rc(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 k0(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 A$(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:k0(e.onKeyDown),onKeyUp:k0(e.onKeyUp)}}}function T$(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:u}=Ku(),l=un((p,h,g,m)=>{g===0&&m===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey})),n==null||n({type:"move",pointerType:h,deltaX:g,deltaY:m,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey}))}),c=un((p,h)=>{Ms(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:p.shiftKey,metaKey:p.metaKey,ctrlKey:p.ctrlKey,altKey:p.altKey}))});return{moveProps:b.useMemo(()=>{let p={},h=()=>{rm(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let m=$=>{if($.button===0){var v,D,P,E;l($,"mouse",$.pageX-((P=(v=i.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&P!==void 0?P:0),$.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},x=$=>{$.button===0&&(c($,"mouse"),u(window,"mousemove",m,!1),u(window,"mouseup",x,!1))};p.onMouseDown=$=>{$.button===0&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},o(window,"mousemove",m,!1),o(window,"mouseup",x,!1))};let w=$=>{let v=[...$.changedTouches].findIndex(({identifier:F})=>F===i.current.id);if(v>=0){var D,P;let{pageX:F,pageY:S}=$.changedTouches[v];var E,T;l($,"touch",F-((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:F,pageY:S}}},C=$=>{[...$.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c($,"touch"),i.current.id=null,u(window,"touchmove",w),u(window,"touchend",C),u(window,"touchcancel",C))};p.onTouchStart=$=>{if($.changedTouches.length===0||i.current.id!=null)return;let{pageX:v,pageY:D,identifier:P}=$.changedTouches[0];h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:v,pageY:D},i.current.id=P,o(window,"touchmove",w,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let m=w=>{if(w.pointerId===i.current.id){var C,$;let P=w.pointerType||"mouse";var v,D;l(w,P,w.pageX-((v=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&v!==void 0?v:0),w.pageY-((D=($=i.current.lastPosition)===null||$===void 0?void 0:$.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY}}},x=w=>{if(w.pointerId===i.current.id){let C=w.pointerType||"mouse";c(w,C),i.current.id=null,u(window,"pointermove",m,!1),u(window,"pointerup",x,!1),u(window,"pointercancel",x,!1)}};p.onPointerDown=w=>{w.button===0&&i.current.id==null&&(h(),w.stopPropagation(),w.preventDefault(),i.current.lastPosition={pageX:w.pageX,pageY:w.pageY},i.current.id=w.pointerId,o(window,"pointermove",m,!1),o(window,"pointerup",x,!1),o(window,"pointercancel",x,!1))}}let g=(m,x,w)=>{h(),l(m,"keyboard",x,w),c(m,"keyboard")};return p.onKeyDown=m=>{switch(m.key){case"Left":case"ArrowLeft":m.preventDefault(),m.stopPropagation(),g(m,-1,0);break;case"Right":case"ArrowRight":m.preventDefault(),m.stopPropagation(),g(m,1,0);break;case"Up":case"ArrowUp":m.preventDefault(),m.stopPropagation(),g(m,0,-1);break;case"Down":case"ArrowDown":m.preventDefault(),m.stopPropagation(),g(m,0,1);break}},p},[i,o,u,l,c])}}const J8=500;function P$(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=J8,accessibilityDescription:u}=e;const l=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Ku(),{pressProps:p}=pl({isDisabled:t,onPressStart(g){if(g.continuePropagation(),(g.pointerType==="mouse"||g.pointerType==="touch")&&(n&&n({...g,type:"longpressstart"}),l.current=setTimeout(()=>{g.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...g,type:"longpress"}),l.current=void 0},o),g.pointerType==="touch")){let m=x=>{x.preventDefault()};c(g.target,"contextmenu",m,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(g.target,"contextmenu",m)},30)},{once:!0})}},onPressEnd(g){l.current&&clearTimeout(l.current),r&&(g.pointerType==="mouse"||g.pointerType==="touch")&&r({...g,type:"longpressend"})}}),h=dl(i&&!t?u:void 0);return{longPressProps:dt(p,h)}}function ga(e){const t=At(e);if(md()==="virtual"){let n=t.activeElement;h$(()=>{t.activeElement===n&&e.isConnected&&Yr(e)})}else Yr(e)}function Q8(e){const t=Ao(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:u,visibility:l}=o(e);i=u!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function X8(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 _$(e,t){return e.nodeName!=="#comment"&&Q8(e)&&X8(e,t)&&(!e.parentElement||_$(e.parentElement,e))}const B0=b.createContext(null),am="react-aria-focus-scope-restore";let Pt=null;function eO(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),u=b.useRef(null),l=b.useRef([]),{parentNode:c}=b.useContext(B0)||{},d=b.useMemo(()=>new sm({scopeRef:l}),[l]);Ot(()=>{let g=c||Yt.root;if(Yt.getTreeNode(g.scopeRef)&&Pt&&!yd(Pt,g.scopeRef)){let m=Yt.getTreeNode(Pt);m&&(g=m)}g.addChild(d),Yt.addNode(d)},[d,c]),Ot(()=>{let g=Yt.getTreeNode(l);g&&(g.contain=!!n)},[n]),Ot(()=>{var g;let m=(g=o.current)===null||g===void 0?void 0:g.nextSibling,x=[],w=C=>C.stopPropagation();for(;m&&m!==u.current;)x.push(m),m.addEventListener(am,w),m=m.nextSibling;return l.current=x,()=>{for(let C of x)C.removeEventListener(am,w)}},[t]),uO(l,r,n),iO(l,n),sO(l,r,n),aO(l,i),b.useEffect(()=>{const g=At(l.current?l.current[0]:void 0).activeElement;let m=null;if(Kr(g,l.current)){for(let x of Yt.traverse())x.scopeRef&&Kr(g,x.scopeRef.current)&&(m=x);m===Yt.getTreeNode(l)&&(Pt=m.scopeRef)}},[l]),Ot(()=>()=>{var g,m,x;let w=(x=(m=Yt.getTreeNode(l))===null||m===void 0||(g=m.parent)===null||g===void 0?void 0:g.scopeRef)!==null&&x!==void 0?x:null;(l===Pt||yd(l,Pt))&&(!w||Yt.getTreeNode(w))&&(Pt=w),Yt.removeTreeNode(l)},[l]);let p=b.useMemo(()=>tO(l),[]),h=b.useMemo(()=>({focusManager:p,parentNode:d}),[d,p]);return b.createElement(B0.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:u}))}function tO(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:u}=t,l=r||At(n[0]).activeElement,c=n[0].previousElementSibling,d=Xo(n),p=ir(d,{tabbable:i,accept:u},n);p.currentNode=Kr(l,n)?l:c;let h=p.nextNode();return!h&&o&&(p.currentNode=c,h=p.nextNode()),h&&rr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:u}=t,l=r||At(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=Xo(n),p=ir(d,{tabbable:i,accept:u},n);p.currentNode=Kr(l,n)?l:c;let h=p.previousNode();return!h&&o&&(p.currentNode=c,h=p.previousNode()),h&&rr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Xo(n),u=ir(o,{tabbable:r,accept:i},n);u.currentNode=n[0].previousElementSibling;let l=u.nextNode();return l&&rr(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Xo(n),u=ir(o,{tabbable:r,accept:i},n);u.currentNode=n[n.length-1].nextElementSibling;let l=u.previousNode();return l&&rr(l,!0),l}}}const Dg=["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]"],nO=Dg.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Dg.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const rO=Dg.join(':not([hidden]):not([tabindex="-1"]),');function Xo(e){return e[0].parentElement}function ks(e){let t=Yt.getTreeNode(Pt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function iO(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);Ot(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=At(i?i[0]:void 0);let u=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!ks(e)||d.isComposing)return;let p=o.activeElement,h=e.current;if(!h||!Kr(p,h))return;let g=Xo(h),m=ir(g,{tabbable:!0},h);if(!p)return;m.currentNode=p;let x=d.shiftKey?m.previousNode():m.nextNode();x||(m.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,x=d.shiftKey?m.previousNode():m.nextNode()),d.preventDefault(),x&&rr(x,!0)},l=d=>{(!Pt||yd(Pt,e))&&Kr(d.target,e.current)?(Pt=e,n.current=d.target):ks(e)&&!yo(d.target,e)?n.current?n.current.focus():Pt&&Pt.current&&um(Pt.current):ks(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&ks(e)&&!yo(o.activeElement,e))if(Pt=e,o.body.contains(d.target)){var p;n.current=d.target,(p=n.current)===null||p===void 0||p.focus()}else Pt.current&&um(Pt.current)})};return o.addEventListener("keydown",u,!1),o.addEventListener("focusin",l,!1),i==null||i.forEach(d=>d.addEventListener("focusin",l,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",u,!1),o.removeEventListener("focusin",l,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",l,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),Ot(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function R$(e){return yo(e)}function Kr(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function yo(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Yt.traverse(Yt.getTreeNode(t)))if(n&&Kr(e,n.current))return!0;return!1}function oO(e){return yo(e,Pt)}function yd(e,t){var n;let r=(n=Yt.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function rr(e,t=!1){if(e!=null&&!t)try{ga(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function O$(e,t=!0){let n=e[0].previousElementSibling,r=Xo(e),i=ir(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Xo(e),i=ir(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function um(e,t=!0){rr(O$(e,t))}function aO(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Pt=e;const r=At(e.current?e.current[0]:void 0);!Kr(r.activeElement,Pt.current)&&e.current&&um(e.current)}n.current=!1},[e])}function uO(e,t,n){Ot(()=>{if(t||n)return;let r=e.current;const i=At(r?r[0]:void 0);let o=u=>{let l=u.target;Kr(l,e.current)?Pt=e:R$(l)||(Pt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(u=>u.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(u=>u.removeEventListener("focusin",o,!1))}},[e,t,n])}function I0(e){let t=Yt.getTreeNode(Pt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function sO(e,t,n){const r=b.useRef(typeof document<"u"?At(e.current?e.current[0]:void 0).activeElement:null);Ot(()=>{let i=e.current;const o=At(i?i[0]:void 0);if(!t||n)return;let u=()=>{(!Pt||yd(Pt,e))&&Kr(o.activeElement,e.current)&&(Pt=e)};return o.addEventListener("focusin",u,!1),i==null||i.forEach(l=>l.addEventListener("focusin",u,!1)),()=>{o.removeEventListener("focusin",u,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",u,!1))}},[e,n]),Ot(()=>{const i=At(e.current?e.current[0]:void 0);if(!t)return;let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!ks(e)||u.isComposing)return;let l=i.activeElement;if(!yo(l,e)||!I0(e))return;let c=Yt.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,p=ir(i.body,{tabbable:!0});p.currentNode=l;let h=u.shiftKey?p.previousNode():p.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!yo(h,e))&&d){p.currentNode=d;do h=u.shiftKey?p.previousNode():p.nextNode();while(yo(h,e));u.preventDefault(),u.stopPropagation(),h?rr(h,!0):R$(d)?rr(d,!0):l.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),Ot(()=>{const i=At(e.current?e.current[0]:void 0);if(!t)return;let o=Yt.getTreeNode(e);if(o){var u;return o.nodeToRestore=(u=r.current)!==null&&u!==void 0?u:void 0,()=>{let l=Yt.getTreeNode(e);if(!l)return;let c=l.nodeToRestore;if(t&&c&&(i.activeElement&&yo(i.activeElement,e)||i.activeElement===i.body&&I0(e))){let d=Yt.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let p=d.getTreeNode(e);for(;p;){if(p.nodeToRestore&&p.nodeToRestore.isConnected){L0(p.nodeToRestore);return}p=p.parent}for(p=d.getTreeNode(e);p;){if(p.scopeRef&&p.scopeRef.current&&Yt.getTreeNode(p.scopeRef)){let h=O$(p.scopeRef.current,!0);L0(h);return}p=p.parent}}})}}}},[e,t])}function L0(e){e.dispatchEvent(new CustomEvent(am,{bubbles:!0,cancelable:!0}))&&rr(e)}function ir(e,t,n){let r=t!=null&&t.tabbable?rO:nO,i=At(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var u;return!(t==null||(u=t.from)===null||u===void 0)&&u.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&_$(o)&&(!n||Kr(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 nf(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:u=t.wrap,accept:l=t.accept}=n,c=i||At(r).activeElement,d=ir(r,{tabbable:o,accept:l});r.contains(c)&&(d.currentNode=c);let p=d.nextNode();return!p&&u&&(d.currentNode=r,p=d.nextNode()),p&&rr(p,!0),p},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:u=t.wrap,accept:l=t.accept}=n,c=i||At(r).activeElement,d=ir(r,{tabbable:o,accept:l});if(r.contains(c))d.currentNode=c;else{let h=Jp(d);return h&&rr(h,!0),h??null}let p=d.previousNode();if(!p&&u){d.currentNode=r;let h=Jp(d);if(!h)return null;p=h}return p&&rr(p,!0),p??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,l=ir(r,{tabbable:i,accept:o}).nextNode();return l&&rr(l,!0),l},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=ir(r,{tabbable:i,accept:o}),l=Jp(u);return l&&rr(l,!0),l??null}}}function Jp(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Eg{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 sm({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&&Kr(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 Eg;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 sm({scopeRef:null}),this.fastMap.set(null,this.root)}}class sm{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 Yt=new Eg,lO=b.createContext(null);function cO(e){let t=b.useContext(lO)||{};m$(t,e);let{ref:n,...r}=t;return r}function Cg(e,t){let{focusProps:n}=z8(e),{keyboardProps:r}=A$(e),i=dt(n,r),o=cO(t),u=e.isDisabled?{}:o,l=b.useRef(e.autoFocus);return b.useEffect(()=>{l.current&&t.current&&ga(t.current),l.current=!1},[t]),{focusableProps:dt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}const dO=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),fO=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function pO(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 dO.has(n.script)}let t=e.split("-")[0];return fO.has(t)}const hO=Symbol.for("react-aria.i18n.locale");function F$(){let e=typeof window<"u"&&window[hO]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:pO(e)?"rtl":"ltr"}}let lm=F$(),Bs=new Set;function V0(){lm=F$();for(let e of Bs)e(lm)}function mO(){let e=yg(),[t,n]=b.useState(lm);return b.useEffect(()=>(Bs.size===0&&window.addEventListener("languagechange",V0),Bs.add(n),()=>{Bs.delete(n),Bs.size===0&&window.removeEventListener("languagechange",V0)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const gO=b.createContext(null);function kn(){let e=mO();return b.useContext(gO)||e}const yO=Symbol.for("react-aria.i18n.locale"),vO=Symbol.for("react-aria.i18n.strings");let Xa;class Ro{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=bO(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[yO];if(Xa===void 0){let i=window[vO];if(!i)return null;Xa={};for(let o in i)Xa[o]=new Ro({[n]:i[o]},n)}let r=Xa==null?void 0:Xa[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 bO(e,t,n="en-US"){if(t[e])return t[e];let r=$O(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function $O(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const N0=new Map,K0=new Map;class M${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,u=N0.get(o);u||(u=new Intl.PluralRules(this.locale,{type:r}),N0.set(o,u));let l=u.select(t);return i=n[l]||n.other,typeof i=="function"?i():i}number(t){let n=K0.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),K0.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 j0=new WeakMap;function xO(e){let t=j0.get(e);return t||(t=new Ro(e),j0.set(e,t)),t}function k$(e,t){return t&&Ro.getGlobalDictionaryForPackage(t)||xO(e)}function wi(e,t){let{locale:n}=kn(),r=k$(e,t);return b.useMemo(()=>new M$(n,r),[n,r])}function pu(e,t){return e-t*Math.floor(e/t)}const B$=1721426;function ea(e,t,n,r){t=hl(e,t);let i=t-1,o=-2;return n<=2?o=0:vo(t)&&(o=-1),B$-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function vo(e){return e%4===0&&(e%100!==0||e%400===0)}function hl(e,t){return e==="BC"?1-t:t}function rf(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const wO={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 Gn{fromJulianDay(t){let n=t,r=n-B$,i=Math.floor(r/146097),o=pu(r,146097),u=Math.floor(o/36524),l=pu(o,36524),c=Math.floor(l/1461),d=pu(l,1461),p=Math.floor(d/365),h=i*400+u*100+c*4+p+(u!==4&&p!==4?1:0),[g,m]=rf(h),x=n-ea(g,m,1,1),w=2;n<ea(g,m,3,1)?w=0:vo(m)&&(w=1);let C=Math.floor(((x+w)*12+373)/367),$=n-ea(g,m,C,1)+1;return new Gt(g,m,C,$)}toJulianDay(t){return ea(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return wO[vo(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return vo(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 DO={"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 an(e,t){return t=Lt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function cm(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 I$(e,t){return an(e,of(t))}function Sg(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-PO(t))%7;return r<0&&(r+=7),r}function L$(e){return Vi(Date.now(),e)}function of(e){return Hn(L$(e))}function V$(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function N$(e,t){return U0(e)-U0(t)}function U0(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Qp=null;function ml(){return Qp==null&&(Qp=new Intl.DateTimeFormat().resolvedOptions().timeZone),Qp}function gl(e){return e.subtract({days:e.day-1})}function dm(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function EO(e){return gl(e.subtract({months:e.month-1}))}function CO(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function SO(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function qs(e,t){let n=Sg(e,t);return e.subtract({days:n})}function AO(e,t){return qs(e,t).add({days:6})}const z0=new Map;function TO(e){if(Intl.Locale){let n=z0.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&z0.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function PO(e){let t=TO(e);return t&&DO[t]||0}function _O(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Sg(gl(e),t)+n)/7)}function Ag(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Tg(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function _u(e){e=Lt(e,new Gn);let t=hl(e.era,e.year);return K$(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function K$(e,t,n,r,i,o,u){let l=new Date;return l.setUTCHours(r,i,o,u),l.setUTCFullYear(e,t-1,n),l.getTime()}function fm(e,t){if(t==="UTC")return 0;if(e>0&&t===ml())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:u,second:l}=j$(e,t);return K$(n,r,i,o,u,l,0)-Math.floor(e/1e3)*1e3}const W0=new Map;function j$(e,t){let n=W0.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"}),W0.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 H0=864e5;function RO(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>OO(e,t,o))}function OO(e,t,n){let r=j$(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 Li(e,t,n="compatible"){let r=ei(e);if(t==="UTC")return _u(r);if(t===ml()&&n==="compatible"){r=Lt(r,new Gn);let c=new Date,d=hl(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=_u(r),o=fm(i-H0,t),u=fm(i+H0,t),l=RO(r,t,i-o,i-u);if(l.length===1)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-u);case"compatible":case"later":return Math.max(i-o,i-u);case"reject":throw new RangeError("No such absolute time found")}}function U$(e,t,n="compatible"){return new Date(Li(e,t,n))}function Vi(e,t){let n=fm(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,u=r.getUTCDate(),l=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),p=r.getUTCMilliseconds();return new Zs(i<1?"BC":"AD",i<1?-i+1:i,o,u,t,n,l,c,d,p)}function Hn(e){return new Gt(e.calendar,e.era,e.year,e.month,e.day)}function ei(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 vd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function G0(e){return new yl(e.hour,e.minute,e.second,e.millisecond)}function Lt(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,ya(r),r}function z$(e,t,n){if(e instanceof Zs)return e.timeZone===t?e:MO(e,t);let r=Li(e,t,n);return Vi(r,t)}function FO(e){let t=_u(e)-e.offset;return new Date(t)}function MO(e,t){let n=_u(e)-e.offset;return Lt(Vi(n,t),e.calendar)}const ws=36e5;function af(e,t){let n=e.copy(),r="hour"in n?q$(n,t):0;pm(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,hm(n),W$(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,kO(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,u;let c=(o=(u=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(u,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 l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function pm(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function hm(e){for(;e.month<1;)pm(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,pm(e,1)}function kO(e){for(;e.day<1;)e.month--,hm(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,hm(e)}function W$(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 ya(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),W$(e)}function Pg(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function H$(e,t){return af(e,Pg(t))}function _g(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),ya(n),n}function Ys(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),G$(n),n}function BO(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Oc(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Oc(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Oc(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Oc(e.hour,24),t}function G$(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 Oc(e,t){let n=e%t;return n<0&&(n+=t),n}function q$(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,BO(e)}function Y$(e,t){let n=e.copy();return q$(n,t),n}function IO(e,t){return Y$(e,Pg(t))}function Rg(e,t,n,r){let i=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),c=l.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=Ni(c,n,0,l.length-1,r==null?void 0:r.round),i.era=l[c],ya(i);break}case"year":var o,u;!((o=(u=i.calendar).isInverseEra)===null||o===void 0)&&o.call(u,i)&&(n=-n),i.year=Ni(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=Ni(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Ni(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),ya(i),i}function Og(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,u=0,l=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;u=c?12:0,l=c?23:11}i.hour=Ni(o,n,u,l,r==null?void 0:r.round);break}case"minute":i.minute=Ni(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Ni(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Ni(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Ni(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 Z$(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=af(ei(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Li(i,e.timeZone)}else n=_u(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Vi(n,e.timeZone);return Lt(r,e.calendar)}function LO(e,t){return Z$(e,Pg(t))}function VO(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let x=e.hour>=12;i=x?12:0,o=x?23:11}let u=ei(e),l=Lt(Ys(u,{hour:i}),new Gn),c=[Li(l,e.timeZone,"earlier"),Li(l,e.timeZone,"later")].filter(x=>Vi(x,e.timeZone).day===l.day)[0],d=Lt(Ys(u,{hour:o}),new Gn),p=[Li(d,e.timeZone,"earlier"),Li(d,e.timeZone,"later")].filter(x=>Vi(x,e.timeZone).day===d.day).pop(),h=_u(e)-e.offset,g=Math.floor(h/ws),m=h%ws;return h=Ni(g,n,Math.floor(c/ws),Math.floor(p/ws),r==null?void 0:r.round)*ws+m,Lt(Vi(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Og(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Rg(ei(e),t,n,r),o=Li(i,e.timeZone);return Lt(Vi(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function NO(e,t,n){let r=ei(e),i=Ys(_g(r,t),t);if(i.compare(r)===0)return e;let o=Li(i,e.timeZone,n);return Lt(Vi(o,e.timeZone),e.calendar)}const KO=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function jO(e){let t=e.match(KO);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new Gt(Xp(t[1],0,9999),Xp(t[2],1,12),1);return n.day=Xp(t[3],0,n.calendar.getDaysInMonth(n)),n}function Xp(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 J$(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 Q$(e){let t=Lt(e,new Gn),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 X$(e){return`${Q$(e)}T${J$(e)}`}function UO(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 zO(e){return`${X$(e)}${UO(e.offset)}[${e.timeZone}]`}function Fg(e){let t=typeof e[0]=="object"?e.shift():new Gn,n;if(typeof e[0]=="string")n=e.shift();else{let u=t.getEras();n=u[u.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var WO=new WeakMap;class Gt{copy(){return this.era?new Gt(this.calendar,this.era,this.year,this.month,this.day):new Gt(this.calendar,this.year,this.month,this.day)}add(t){return af(this,t)}subtract(t){return H$(this,t)}set(t){return _g(this,t)}cycle(t,n,r){return Rg(this,t,n,r)}toDate(t){return U$(this,t)}toString(){return Q$(this)}compare(t){return V$(this,t)}constructor(...t){fl(this,WO,{writable:!0,value:void 0});let[n,r,i,o,u]=Fg(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=u,ya(this)}}var HO=new WeakMap;class yl{copy(){return new yl(this.hour,this.minute,this.second,this.millisecond)}add(t){return Y$(this,t)}subtract(t){return IO(this,t)}set(t){return Ys(this,t)}cycle(t,n,r){return Og(this,t,n,r)}toString(){return J$(this)}compare(t){return N$(this,t)}constructor(t=0,n=0,r=0,i=0){fl(this,HO,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,G$(this)}}var GO=new WeakMap;class vd{copy(){return this.era?new vd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new vd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return af(this,t)}subtract(t){return H$(this,t)}set(t){return _g(Ys(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Rg(this,t,n,r);default:return Og(this,t,n,r)}}toDate(t,n){return U$(this,t,n)}toString(){return X$(this)}compare(t){let n=V$(this,t);return n===0?N$(this,ei(t)):n}constructor(...t){fl(this,GO,{writable:!0,value:void 0});let[n,r,i,o,u]=Fg(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=u,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ya(this)}}var qO=new WeakMap;class Zs{copy(){return this.era?new Zs(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Zs(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Z$(this,t)}subtract(t){return LO(this,t)}set(t,n){return NO(this,t,n)}cycle(t,n,r){return VO(this,t,n,r)}toDate(){return FO(this)}toString(){return zO(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-z$(t,this.timeZone).toDate().getTime()}constructor(...t){fl(this,qO,{writable:!0,value:void 0});let[n,r,i,o,u]=Fg(t),l=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=u,this.timeZone=l,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ya(this)}}const hu=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],YO=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Qc=[1867,1911,1925,1988,2018],mo=["meiji","taisho","showa","heisei","reiwa"];function q0(e){const t=hu.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?hu.length-1:t===0?0:t-1}function eh(e){let t=Qc[mo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new Gt(e.year+t,e.month,e.day)}class ZO extends Gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=q0(n);return new Gt(this,mo[r],n.year-Qc[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(eh(t))}balanceDate(t){let n=eh(t),r=q0(n);mo[r]!==t.era&&(t.era=mo[r],t.year=n.year-Qc[r]),this.constrainDate(t)}constrainDate(t){let n=mo.indexOf(t.era),r=YO[n];if(r!=null){let[i,o,u]=r,l=i-Qc[n];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(u,t.day)))}if(t.year===1&&n>=0){let[,i,o]=hu[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return mo}getYearsInEra(t){let n=mo.indexOf(t.era),r=hu[n],i=hu[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(eh(t))}getMinimumMonthInYear(t){let n=Y0(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=Y0(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function Y0(e){if(e.year===1){let t=mo.indexOf(e.era);return hu[t]}}const ex=-543;class JO extends Gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=hl(n.era,n.year);return new Gt(this,r-ex,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Z0(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Z0(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Z0(e){let[t,n]=rf(e.year+ex);return new Gt(t,n,e.month,e.day)}const bd=1911;function tx(e){return e.era==="minguo"?e.year+bd:1-e.year+bd}function J0(e){let t=e-bd;return t>0?["minguo",t]:["before_minguo",1-t]}class QO extends Gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=hl(n.era,n.year),[i,o]=J0(r);return new Gt(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Q0(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=J0(tx(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Q0(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-bd}constructor(...t){super(...t),this.identifier="roc"}}function Q0(e){let[t,n]=rf(tx(e));return new Gt(t,n,e.month,e.day)}const X0=1948320,e4=[0,31,62,93,124,155,186,216,246,276,306,336];class XO{fromJulianDay(t){let n=t-X0,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,u=o<216?Math.floor(o/31):Math.floor((o-6)/30),l=o-e4[u]+1;return new Gt(this,r,u+1,l)}toJulianDay(t){let n=X0-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=e4[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||pu(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const th=78,t4=80;class eF extends Gn{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-th,i=t-ea(n.era,n.year,1,1),o;i<t4?(r--,o=vo(n.year-1)?31:30,i+=o+155+90+10):(o=vo(n.year)?31:30,i-=t4);let u,l;if(i<o)u=1,l=i+1;else{let c=i-o;c<155?(u=Math.floor(c/31)+2,l=c%31+1):(c-=155,u=Math.floor(c/30)+7,l=c%30+1)}return new Gt(this,r,u,l)}toJulianDay(t){let n=t.year+th,[r,i]=rf(n),o,u;return vo(i)?(o=31,u=ea(r,i,3,21)):(o=30,u=ea(r,i,3,22)),t.month===1?u+t.day-1:(u+=o+Math.min(t.month-2,5)*31,t.month>=8&&(u+=(t.month-7)*30),u+=t.day-1,u)}getDaysInMonth(t){return t.month===1&&vo(t.year+th)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const $d=1948440,n4=1948439,Mr=1300,eu=1600,tF=460322;function xd(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function nx(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+xd(t,r,1,1)))/29.5)+1),o=n-xd(t,r,i,1)+1;return new Gt(e,r,i,o)}function r4(e){return(14+11*e)%30<11}class Mg{fromJulianDay(t){return nx(this,$d,t)}toJulianDay(t){return xd($d,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&r4(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return r4(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class nF extends Mg{fromJulianDay(t){return nx(this,n4,t)}toJulianDay(t){return xd(n4,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const rF="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let mm,mu;function Xc(e){return tF+mu[e-Mr]}function Is(e,t){let n=e-Mr,r=1<<11-(t-1);return mm[n]&r?30:29}function i4(e,t){let n=Xc(e);for(let r=1;r<t;r++)n+=Is(e,r);return n}function o4(e){return mu[e+1-Mr]-mu[e-Mr]}class iF extends Mg{fromJulianDay(t){let n=t-$d,r=Xc(Mr),i=Xc(eu);if(n<r||n>i)return super.fromJulianDay(t);{let o=Mr-1,u=1,l=1;for(;l>0;){o++,l=n-Xc(o)+1;let c=o4(o);if(l===c){u=12;break}else if(l<c){let d=Is(o,u);for(u=1;l>d;)l-=d,u++,d=Is(o,u);break}}return new Gt(this,o,u,n-i4(o,u)+1)}}toJulianDay(t){return t.year<Mr||t.year>eu?super.toJulianDay(t):$d+i4(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Mr||t.year>eu?super.getDaysInMonth(t):Is(t.year,t.month)}getDaysInYear(t){return t.year<Mr||t.year>eu?super.getDaysInYear(t):o4(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",mm||(mm=new Uint16Array(Uint8Array.from(atob(rF),t=>t.charCodeAt(0)).buffer)),!mu){mu=new Uint32Array(eu-Mr+1);let t=0;for(let n=Mr;n<=eu;n++){mu[n-Mr]=t;for(let r=1;r<=12;r++)t+=Is(n,r)}}}}const a4=347997,rx=1080,ix=24*rx,oF=29,aF=12*rx+793,uF=oF*ix+aF;function Zo(e){return pu(e*7+1,19)<7}function ed(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return pu(3*(r+1),7)<3&&(r+=1),r}function sF(e){let t=ed(e-1),n=ed(e);return ed(e+1)-n===356?2:n-t===382?1:0}function js(e){return ed(e)+sF(e)}function ox(e){return js(e+1)-js(e)}function lF(e){let t=ox(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Fc(e,t){if(t>=6&&!Zo(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=lF(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Zo(e)?30:0:30}class cF{fromJulianDay(t){let n=t-a4,r=n*ix/uF,i=Math.floor((19*r+234)/235)+1,o=js(i),u=Math.floor(n-o);for(;u<1;)i--,o=js(i),u=Math.floor(n-o);let l=1,c=0;for(;c<u;)c+=Fc(i,l),l++;l--,c-=Fc(i,l);let d=u-c;return new Gt(this,i,l,d)}toJulianDay(t){let n=js(t.year);for(let r=1;r<t.month;r++)n+=Fc(t.year,r);return n+t.day+a4}getDaysInMonth(t){return Fc(t.year,t.month)}getMonthsInYear(t){return Zo(t.year)?13:12}getDaysInYear(t){return ox(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Zo(n.year)&&!Zo(t.year)&&n.month>6?t.month--:!Zo(n.year)&&Zo(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const gm=1723856,u4=1824665,ym=5500;function wd(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function kg(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-wd(e,n,1,1))/30),i=t+1-wd(e,n,r,1);return[n,r,i]}function ax(e){return Math.floor(e%4/3)}function ux(e,t){return t%13!==0?30:ax(e)+5}class Bg{fromJulianDay(t){let[n,r,i]=kg(gm,t),o="AM";return n<=0&&(o="AA",n+=ym),new Gt(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=ym),wd(gm,n,t.month,t.day)}getDaysInMonth(t){return ux(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+ax(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class dF extends Bg{fromJulianDay(t){let[n,r,i]=kg(gm,t);return n+=ym,new Gt(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class fF extends Bg{fromJulianDay(t){let[n,r,i]=kg(u4,t),o="CE";return n<=0&&(o="BCE",n=1-n),new Gt(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),wd(u4,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ux(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 pF(e){switch(e){case"buddhist":return new JO;case"ethiopic":return new Bg;case"ethioaa":return new dF;case"coptic":return new fF;case"hebrew":return new cF;case"indian":return new eF;case"islamic-civil":return new Mg;case"islamic-tbla":return new nF;case"islamic-umalqura":return new iF;case"japanese":return new ZO;case"persian":return new XO;case"roc":return new QO;case"gregory":default:return new Gn}}let nh=new Map;class Ir{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 gF()&&(this.resolvedHourCycle||(this.resolvedHourCycle=yF(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=sx(t,n),this.options=n}}const hF={true:{ja:"h11"},false:{}};function sx(e,t={}){if(typeof t.hour12=="boolean"&&mF()){t={...t};let i=hF[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(nh.has(n))return nh.get(n);let r=new Intl.DateTimeFormat(e,t);return nh.set(n,r),r}let rh=null;function mF(){return rh==null&&(rh=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),rh}let ih=null;function gF(){return ih==null&&(ih=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ih}function yF(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=sx(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 hi(e){e=y$(e??{},vF);let{locale:t}=kn();return b.useMemo(()=>new Ir(t,e),[t,e])}function vF(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 oh=new Map,vm=!1;try{vm=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Dd=!1;try{Dd=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const lx={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cx{format(t){let n="";if(!vm&&this.options.signDisplay!=null?n=$F(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Dd){var r;let{unit:i,unitDisplay:o="short",locale:u}=this.resolvedOptions();if(!i)return n;let l=(r=lx[i])===null||r===void 0?void 0:r[o];n+=l[u]||l.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!vm&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Dd&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=bF(t,n),this.options=n}}function bF(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Dd){var r;let{unit:u,unitDisplay:l="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=lx[u])===null||r===void 0)&&r[l]))throw new Error(`Unsupported unit ${u} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((u,l)=>u[0]<l[0]?-1:1).join():"");if(oh.has(i))return oh.get(i);let o=new Intl.NumberFormat(e,t);return oh.set(i,o),o}function $F(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),u=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...u].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(u,"+").replace("!!!",o)}else return e.format(n)}}const xF=new RegExp("^.*\\(.*\\).*$"),wF=["latn","arab","hanidec","deva","beng"];class dx{parse(t){return ah(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ah(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ah(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const s4=new Map;function ah(e,t,n){let r=l4(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of wF)if(i!==r.options.numberingSystem){let o=l4(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function l4(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=s4.get(n);return r||(r=new DF(e,t),s4.set(n,r)),r}class DF{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Mc(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 u=n.indexOf("-");n=n.replace("-","");let l=n.indexOf(".");l===-1&&(l=n.length),n=n.replace(".",""),l-2===0?n=`0.${n}`:l-2===-1?n=`0.0${n}`:l-2===-2?n="0.00":n=`${n.slice(0,l-2)}.${n.slice(l-2)}`,u>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let u={...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 dx(this.locale,u).parse(new cx(this.locale,u).format(r))}return this.options.currencySign==="accounting"&&xF.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=Mc(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=Mc(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=Mc(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=CF(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 c4=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),EF=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function CF(e,t,n,r){var i,o,u,l;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),p=c.formatToParts(10000.111),h=EF.map(k=>c.formatToParts(k));var g;let m=(g=(i=d.find(k=>k.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&g!==void 0?g:"-",x=(o=p.find(k=>k.type==="plusSign"))===null||o===void 0?void 0:o.value;!x&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(x="+");let C=(u=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(k=>k.type==="decimal"))===null||u===void 0?void 0:u.value,$=(l=d.find(k=>k.type==="group"))===null||l===void 0?void 0:l.value,v=d.filter(k=>!c4.has(k.type)).map(k=>d4(k.value)),D=h.flatMap(k=>k.filter(B=>!c4.has(B.type)).map(B=>d4(B.value))),P=[...new Set([...v,...D])].sort((k,B)=>B.length-k.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(),F=new Map(T.map((k,B)=>[k,B])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:m,plusSign:x,decimal:C,group:$,literals:E,numeral:S,index:k=>String(F.get(k))}}function Mc(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function d4(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function SF(e={}){let{locale:t}=kn();return b.useMemo(()=>new cx(t,e),[t,e])}let uh=new Map;function fx(e){let{locale:t}=kn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(uh.has(n))return uh.get(n);let r=new Intl.Collator(t,e);return uh.set(n,r),r}function px(e){let t=fx({usage:"search",...e}),n=b.useCallback((o,u)=>u.length===0?!0:(o=o.normalize("NFC"),u=u.normalize("NFC"),t.compare(o.slice(0,u.length),u)===0),[t]),r=b.useCallback((o,u)=>u.length===0?!0:(o=o.normalize("NFC"),u=u.normalize("NFC"),t.compare(o.slice(-u.length),u)===0),[t]),i=b.useCallback((o,u)=>{if(u.length===0)return!0;o=o.normalize("NFC"),u=u.normalize("NFC");let l=0,c=u.length;for(;l+c<=o.length;l++){let d=o.slice(l,l+c);if(t.compare(u,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function AF(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:u,onPressUp:l,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:p,onClick:h,href:g,target:m,rel:x,type:w="button"}=e,C;n==="button"?C={type:w,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?g:void 0,target:n==="a"?m:void 0,type:n==="input"?w:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?x:void 0};let{pressProps:$,isPressed:v}=pl({onPressStart:o,onPressEnd:u,onPressChange:c,onPress:i,onPressUp:l,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=Cg(e,t);p&&(D.tabIndex=r?-1:D.tabIndex);let P=dt(D,$,Wi(e,{labelable:!0}));return{isPressed:v,buttonProps:dt(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 hx={};hx={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 mx={};mx={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 gx={};gx={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 yx={};yx={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 vx={};vx={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 bx={};bx={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 $x={};$x={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 xx={};xx={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 wx={};wx={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 Dx={};Dx={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 Ex={};Ex={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 Cx={};Cx={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 Sx={};Sx={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 Ax={};Ax={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 Tx={};Tx={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 Px={};Px={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 _x={};_x={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 Rx={};Rx={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 Ox={};Ox={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 Fx={};Fx={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 Mx={};Mx={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 kx={};kx={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 Bx={};Bx={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 Ix={};Ix={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 Lx={};Lx={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 Vx={};Vx={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 Nx={};Nx={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 Kx={};Kx={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 jx={};jx={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 Ux={};Ux={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 zx={};zx={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 Wx={};Wx={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 Hx={};Hx={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 Gx={};Gx={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 vl={};vl={"ar-AE":hx,"bg-BG":mx,"cs-CZ":gx,"da-DK":yx,"de-DE":vx,"el-GR":bx,"en-US":$x,"es-ES":xx,"et-EE":wx,"fi-FI":Dx,"fr-FR":Ex,"he-IL":Cx,"hr-HR":Sx,"hu-HU":Ax,"it-IT":Tx,"ja-JP":Px,"ko-KR":_x,"lt-LT":Rx,"lv-LV":Ox,"nb-NO":Fx,"nl-NL":Mx,"pl-PL":kx,"pt-BR":Bx,"pt-PT":Ix,"ro-RO":Lx,"ru-RU":Vx,"sk-SK":Nx,"sl-SI":Kx,"sr-SP":jx,"sv-SE":Ux,"tr-TR":zx,"uk-UA":Wx,"zh-CN":Hx,"zh-TW":Gx};function qx(e){return e&&e.__esModule?e.default:e}const Ig=new WeakMap;function Js(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function TF(e){let t=wi(qx(vl),"@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=hi({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Js(n)||Js(r),timeZone:e.timeZone}),u="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!u&&n&&r)if(an(n,r)){let l=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:l})}else{let l=$m(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:l})}return""},[n,r,u,e.timeZone,t,o])}function bm(e,t,n,r){let i=wi(qx(vl),"@react-aria/calendar"),o=Js(e)||Js(t),u=hi({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),l=hi({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(an(e,gl(e))){if(an(t,dm(e)))return u.format(e.toDate(n));if(an(t,dm(t)))return r?$m(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))}return r?$m(l,i,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))},[e,t,u,l,i,n,r])}function $m(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),u=-1;for(let d=0;d<o.length;d++){let p=o[d];if(p.source==="shared"&&p.type==="literal")u=d;else if(p.source==="endRange")break}let l="",c="";for(let d=0;d<o.length;d++)d<u?l+=o[d].value:d>u&&(c+=o[d].value);return t.format("dateRange",{startDate:l,endDate:c})}const Yx=7e3;let Fr=null;function gu(e,t="assertive",n=Yx){Fr?Fr.announce(e,t,n):(Fr=new _F,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Fr.announce(e,t,n):setTimeout(()=>{Fr!=null&&Fr.isAttached()&&(Fr==null||Fr.announce(e,t,n))},100))}function PF(e){Fr&&Fr.clear(e)}class _F{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=Yx){var i,o;if(!this.node)return;let u=document.createElement("div");typeof t=="object"?(u.setAttribute("role","img"),u.setAttribute("aria-labelledby",t["aria-labelledby"])):u.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(u):(o=this.politeLog)===null||o===void 0||o.appendChild(u),t!==""&&setTimeout(()=>{u.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 RF(e){return e&&e.__esModule?e.default:e}function Zx(e,t){let n=wi(RF(vl),"@react-aria/calendar"),r=Wi(e),i=bm(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=bm(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);C0(()=>{t.isFocused||gu(o)},[o]);let u=TF(t);C0(()=>{u&&gu(u,"polite",4e3)},[u]);let l=Au([!!e.errorMessage,e.isInvalid,e.validationState]);Ig.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:l,selectedDateDescription:u});let[c,d]=b.useState(!1),p=e.isDisabled||t.isNextVisibleRangeInvalid();p&&c&&(d(!1),t.setFocused(!0));let[h,g]=b.useState(!1),m=e.isDisabled||t.isPreviousVisibleRangeInvalid();m&&h&&(g(!1),t.setFocused(!0));let x=Tu({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:dt(r,x,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:p,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:m,onFocusChange:g},errorMessageProps:{id:l},title:i}}function OF(e,t){return Zx(e,t)}function FF(e,t,n){let r=Zx(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return wo(o,"pointerdown",l=>{i.current=l.width===0&&l.height===0}),wo(o,"pointerup",l=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=l.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=l=>{n.current&&(!l.relatedTarget||!n.current.contains(l.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},wo(n,"touchmove",l=>{t.isDragging&&l.preventDefault()},{passive:!1,capture:!0}),r}function MF(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=kn(),o=m=>{switch(m.key){case"Enter":case" ":m.preventDefault(),t.selectFocusedDate();break;case"PageUp":m.preventDefault(),m.stopPropagation(),t.focusPreviousSection(m.shiftKey);break;case"PageDown":m.preventDefault(),m.stopPropagation(),t.focusNextSection(m.shiftKey);break;case"End":m.preventDefault(),m.stopPropagation(),t.focusSectionEnd();break;case"Home":m.preventDefault(),m.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":m.preventDefault(),m.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":m.preventDefault(),m.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":m.preventDefault(),m.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":m.preventDefault(),m.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(m.preventDefault(),t.setAnchorDate(null));break}},u=bm(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:c}=Ig.get(t),d=Tu({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":c}),p=hi({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=kn(),g=b.useMemo(()=>{let m=qs(of(t.timeZone),h);return[...new Array(7).keys()].map(x=>{let C=m.add({days:x}).toDate(t.timeZone);return p.format(C)})},[h,t.timeZone,p]);return{gridProps:dt(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:g}}function kF(e){return e&&e.__esModule?e.default:e}function BF(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:u}=Ig.get(t),l=wi(kF(vl),"@react-aria/calendar"),c=hi({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Js(r),timeZone:t.timeZone}),d=t.isSelected(r),p=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),g=!i&&!h,m=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&an(t.value,r));m&&(d=!0),r=y$(r,cm);let x=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),w=I$(r,t.timeZone),C=b.useMemo(()=>{let B="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(an(r,t.value.start)||an(r,t.value.end))&&(B=u+", "),B+=c.format(x),w?B=l.format(d?"todayDateSelected":"todayDate",{date:B}):d&&(B=l.format("dateSelected",{date:B})),t.minValue&&an(r,t.minValue)?B+=", "+l.format("minimumDate"):t.maxValue&&an(r,t.maxValue)&&(B+=", "+l.format("maximumDate")),B},[c,x,l,d,w,r,t,u]),$="";"anchorDate"in t&&p&&!t.isReadOnly&&g&&(t.anchorDate?$=l.format("finishRangeSelectionPrompt"):$=l.format("startRangeSelectionPrompt"));let v=dl($),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:F}=pl({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(B){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(B.pointerType==="mouse"||B.pointerType==="touch")){if(t.highlightedRange&&!m){if(an(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(an(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let Z=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};B.pointerType==="touch"?E.current=setTimeout(Z,200):Z()}},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(B){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(B.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let Z=r.add({days:1});t.isInvalid(Z)&&(Z=r.subtract({days:1})),t.isInvalid(Z)||t.setFocusedDate(Z)}else B.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=an(r,t.focusedDate)?0:-1),b.useEffect(()=>{p&&n.current&&(Yr(n.current),md()!=="pointer"&&document.activeElement===n.current&&pd(n.current,{containingElement:ef(n.current)}))},[p,n]);let j=hi({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),k=b.useMemo(()=>j.formatToParts(x).find(B=>B.type==="day").value,[j,x]);return{cellProps:{role:"gridcell","aria-disabled":!g||void 0,"aria-selected":d||void 0,"aria-invalid":m||void 0},buttonProps:dt(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!g||void 0,"aria-label":C,"aria-invalid":m||void 0,"aria-describedby":[m?o:void 0,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(B){"highlightDate"in t&&(B.pointerType!=="touch"||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(B){"releasePointerCapture"in B.target&&B.target.releasePointerCapture(B.pointerId)},onContextMenu(B){B.preventDefault()}}),isPressed:F,isFocused:p,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:m,formattedDate:k}}const uf={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Jx={...uf,customError:!0,valid:!1},Jo={isInvalid:!1,validationDetails:uf,validationErrors:[]},IF=b.createContext({}),Ru="__formValidationState"+Date.now();function bl(e){if(e[Ru]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Ru];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return LF(e)}function LF(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:u,validationBehavior:l="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Jx}:null,d=b.useMemo(()=>{if(!u||i==null)return null;let k=VF(u,i);return f4(k)},[u,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let p=b.useContext(IF),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(k=>xm(p[k])):xm(p[r]):[],[p,r]),[g,m]=b.useState(p),[x,w]=b.useState(!1);p!==g&&(m(p),w(!1));let C=b.useMemo(()=>f4(x?[]:h),[x,h]),$=b.useRef(Jo),[v,D]=b.useState(Jo),P=b.useRef(Jo),E=()=>{if(!T)return;F(!1);let k=d||o||$.current;sh(k,P.current)||(P.current=k,D(k))},[T,F]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||Jo,displayValidation:l==="native"?c||C||v:c||C||d||o||v,updateValidation(k){l==="aria"&&!sh(v,k)?D(k):$.current=k},resetValidation(){let k=Jo;sh(k,P.current)||(P.current=k,D(k)),l==="native"&&F(!1),w(!0)},commitValidation(){l==="native"&&F(!0),w(!0)}}}function xm(e){return e?Array.isArray(e)?e:[e]:[]}function VF(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return xm(n)}return[]}function f4(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Jx}:null}function sh(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 Ed(...e){let t=new Set,n=!1,r={...uf};for(let u of e){var i,o;for(let l of u.validationErrors)t.add(l);n||(n=u.isInvalid);for(let l in r)(i=r)[o=l]||(i[o]=u.validationDetails[l])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Qx(e,t,n){let{validationBehavior:r,focus:i}=e;Ot(()=>{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(KF(n.current))}});let o=un(()=>{t.resetValidation()}),u=un(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let p=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&p&&jF(p)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),S$("keyboard")}c.preventDefault()}),l=un(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",u),c.addEventListener("change",l),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",u),c.removeEventListener("change",l),d==null||d.removeEventListener("reset",o)}},[n,u,l,o,r])}function NF(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 KF(e){return{isInvalid:!e.validity.valid,validationDetails:NF(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function jF(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function sf(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=gr(t);let u=gr(),l={};n?(r=r?`${u} ${r}`:u,l={id:u,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=Tu({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:l,fieldProps:c}}function lf(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:u}=sf(e),l=Au([!!t,!!n,r,i]),c=Au([!!t,!!n,r,i]);return u=dt(u,{"aria-describedby":[l,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:u,descriptionProps:{id:l},errorMessageProps:{id:c}}}const UF=0,zF=100,WF=1;function HF(e){const{isDisabled:t=!1,minValue:n=UF,maxValue:r=zF,numberFormatter:i,step:o=WF,orientation:u="horizontal"}=e;let l=b.useMemo(()=>{let U=(r-n)/10;return U=xs(U,0,U+o,o),Math.max(U,o)},[o,r,n]),c=b.useCallback(U=>U==null?void 0:U.map((ie,oe)=>{let me=oe===0?n:U[oe-1],ne=oe===U.length-1?r:U[oe+1];return xs(ie,me,ne,o)}),[n,r,o]),d=b.useMemo(()=>c(h4(e.value)),[e.value]),p=b.useMemo(()=>{var U;return c((U=h4(e.defaultValue))!==null&&U!==void 0?U:[n])},[e.defaultValue,n]),h=m4(e.value,e.defaultValue,e.onChange),g=m4(e.value,e.defaultValue,e.onChangeEnd);const[m,x]=yr(d,p,h),[w,C]=b.useState(new Array(m.length).fill(!1)),$=b.useRef(new Array(m.length).fill(!0)),[v,D]=b.useState(void 0),P=b.useRef(m),E=b.useRef(w);let T=U=>{P.current=U,x(U)},F=U=>{E.current=U,C(U)};function S(U){return(U-n)/(r-n)}function j(U){return U===0?n:m[U-1]}function k(U){return U===m.length-1?r:m[U+1]}function B(U){return $.current[U]}function Z(U,ie){$.current[U]=ie}function V(U,ie){if(t||!B(U))return;const oe=j(U),me=k(U);ie=xs(ie,oe,me,o);let ne=p4(P.current,U,ie);T(ne)}function q(U,ie){if(t||!B(U))return;ie&&(P.current=m);const oe=E.current[U];E.current=p4(E.current,U,ie),F(E.current),oe&&!E.current.some(Boolean)&&g(P.current)}function H(U){return i.format(U)}function z(U,ie){V(U,N(ie))}function I(U){return Math.round((U-n)/o)*o+n}function N(U){const ie=U*(r-n)+n;return Pu(I(ie),n,r)}function Q(U,ie=1){let oe=Math.max(ie,o);V(U,xs(m[U]+oe,n,r,o))}function L(U,ie=1){let oe=Math.max(ie,o);V(U,xs(m[U]-oe,n,r,o))}return{values:m,getThumbValue:U=>m[U],setThumbValue:V,setThumbPercent:z,isThumbDragging:U=>w[U],setThumbDragging:q,focusedThumb:v,setFocusedThumb:D,getThumbPercent:U=>S(m[U]),getValuePercent:S,getThumbValueLabel:U=>H(m[U]),getFormattedValue:H,getThumbMinValue:j,getThumbMaxValue:k,getPercentValue:N,isThumbEditable:B,setThumbEditable:Z,incrementThumb:Q,decrementThumb:L,step:o,pageSize:l,orientation:u,isDisabled:t}}function p4(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function h4(e){if(e!=null)return Array.isArray(e)?e:[e]}function m4(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const g4={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 GF(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=ju({isDisabled:!n,onFocusWithinChange:l=>i(l)}),u=b.useMemo(()=>r?t:t?{...g4,...t}:g4,[r]);return{visuallyHiddenProps:{...o,style:u}}}function qF(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:u}=GF(e);return b.createElement(n,dt(o,u),t)}const Lg=new WeakMap;function wm(e,t){let n=Lg.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function YF(e,t,n){let{labelProps:r,fieldProps:i}=sf(e),o=e.orientation==="vertical";var u;Lg.set(t,{id:(u=r.id)!==null&&u!==void 0?u:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:l}=kn(),{addGlobalListener:c,removeGlobalListener:d}=Ku();const p=b.useRef(null),h=l==="rtl",g=b.useRef(null),{moveProps:m}=T$({onMoveStart(){g.current=null},onMove({deltaX:$,deltaY:v}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;g.current==null&&p.current!=null&&(g.current=t.getThumbPercent(p.current)*E);let T=o?v:$;if((o||h)&&(T=-T),g.current+=T,p.current!=null&&n.current){const F=Pu(g.current/E,0,1);t.setThumbPercent(p.current,F)}},onMoveEnd(){p.current!=null&&(t.setThumbDragging(p.current,!1),p.current=null)}});let x=b.useRef(void 0),w=($,v,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:F,left:S}=n.current.getBoundingClientRect(),j=o?E:T,V=((o?P:D)-(o?F:S))/j;(l==="rtl"||o)&&(V=1-V);let q=t.getPercentValue(V),H,z=t.values.findIndex(I=>q-I<0);if(z===0)H=z;else if(z===-1)H=t.values.length-1;else{let I=t.values[z-1],N=t.values[z];Math.abs(I-q)<Math.abs(N-q)?H=z-1:H=z}H>=0&&t.isThumbEditable(H)?($.preventDefault(),p.current=H,t.setFocusedThumb(H),x.current=v,t.setThumbDragging(p.current,!0),t.setThumbValue(H,q),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):p.current=null}},C=$=>{var v,D;((D=$.pointerId)!==null&&D!==void 0?D:(v=$.changedTouches)===null||v===void 0?void 0:v[0].identifier)===x.current&&(p.current!=null&&(t.setThumbDragging(p.current,!1),p.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 $;($=document.getElementById(wm(t,0)))===null||$===void 0||$.focus(),S$("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:dt({onMouseDown($){$.button!==0||$.altKey||$.ctrlKey||$.metaKey||w($,void 0,$.clientX,$.clientY)},onPointerDown($){$.pointerType==="mouse"&&($.button!==0||$.altKey||$.ctrlKey||$.metaKey)||w($,$.pointerId,$.clientX,$.clientY)},onTouchStart($){w($,$.changedTouches[0].identifier,$.changedTouches[0].clientX,$.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},m),outputProps:{htmlFor:t.values.map(($,v)=>wm(t,v)).join(" "),"aria-live":"off"}}}function ZF(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:u,inputRef:l,orientation:c=t.orientation,name:d}=e,p=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:g}=kn(),{addGlobalListener:m,removeGlobalListener:x}=Ku(),w=Lg.get(t);var C;const{labelProps:$,fieldProps:v}=sf({...e,id:wm(t,n),"aria-labelledby":`${w.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{l.current&&Yr(l.current)},[l]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=g==="rtl",F=b.useRef(null),{keyboardProps:S}=A$({onKeyDown(z){let{getThumbMaxValue:I,getThumbMinValue:N,decrementThumb:Q,incrementThumb:L,setThumbValue:U,setThumbDragging:ie,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(z.key)){z.continuePropagation();return}switch(z.preventDefault(),ie(n,!0),z.key){case"PageUp":L(n,oe);break;case"PageDown":Q(n,oe);break;case"Home":U(n,N(n));break;case"End":U(n,I(n));break}ie(n,!1)}}),{moveProps:j}=T$({onMoveStart(){F.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:z,deltaY:I,pointerType:N,shiftKey:Q}){const{getThumbPercent:L,setThumbPercent:U,decrementThumb:ie,incrementThumb:oe,step:me,pageSize:ne}=t;if(!u.current)return;let{width:ve,height:ye}=u.current.getBoundingClientRect(),X=h?ye:ve;if(F.current==null&&(F.current=L(n)*X),N==="keyboard")z>0&&T||z<0&&!T||I>0?ie(n,Q?ne:me):oe(n,Q?ne:me);else{let ge=h?I:z;(h||T)&&(ge=-ge),F.current+=ge,U(n,Pu(F.current/X,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!p);const{focusableProps:k}=Cg(dt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),l);let B=b.useRef(void 0),Z=z=>{P(),B.current=z,t.setThumbDragging(n,!0),m(window,"mouseup",V,!1),m(window,"touchend",V,!1),m(window,"pointerup",V,!1)},V=z=>{var I,N;((N=z.pointerId)!==null&&N!==void 0?N:(I=z.changedTouches)===null||I===void 0?void 0:I[0].identifier)===B.current&&(P(),t.setThumbDragging(n,!1),x(window,"mouseup",V,!1),x(window,"touchend",V,!1),x(window,"pointerup",V,!1))},q=t.getThumbPercent(n);(h||g==="rtl")&&(q=1-q);let H=p?{}:dt(S,j,{onMouseDown:z=>{z.button!==0||z.altKey||z.ctrlKey||z.metaKey||Z()},onPointerDown:z=>{z.button!==0||z.altKey||z.ctrlKey||z.metaKey||Z(z.pointerId)},onTouchStart:z=>{Z(z.changedTouches[0].identifier)}});return $g(l,D,z=>{t.setThumbValue(n,z)}),{inputProps:dt(k,v,{type:"range",tabIndex:p?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:p,"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":[w["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[w["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:z=>{t.setThumbValue(n,parseFloat(z.target.value))}}),thumbProps:{...H,style:{position:"absolute",[h?"top":"left"]:`${q*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(n),isDisabled:p,isFocused:E}}function JF(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:u="text",validationBehavior:l="aria"}=e,[c,d]=yr(e.value,e.defaultValue||"",e.onChange),{focusableProps:p}=Cg(e,t),h=bl({...e,value:c}),{isInvalid:g,validationErrors:m,validationDetails:x}=h.displayValidation,{labelProps:w,fieldProps:C,descriptionProps:$,errorMessageProps:v}=lf({...e,isInvalid:g,errorMessage:e.errorMessage||m}),D=Wi(e,{labelable:!0});const P={type:u,pattern:e.pattern};return $g(t,c,d),Qx(e,h,t),b.useEffect(()=>{if(t.current instanceof Ao(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:w,inputProps:dt(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&l==="native","aria-required":i&&l==="aria"||void 0,"aria-invalid":g||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,...p,...C}),descriptionProps:$,errorMessageProps:v,isInvalid:g,validationErrors:m,validationDetails:x}}var Xx={};Xx={Empty:"فارغ"};var ew={};ew={Empty:"Изпразни"};var tw={};tw={Empty:"Prázdné"};var nw={};nw={Empty:"Tom"};var rw={};rw={Empty:"Leer"};var iw={};iw={Empty:"Άδειο"};var ow={};ow={Empty:"Empty"};var aw={};aw={Empty:"Vacío"};var uw={};uw={Empty:"Tühjenda"};var sw={};sw={Empty:"Tyhjä"};var lw={};lw={Empty:"Vide"};var cw={};cw={Empty:"ריק"};var dw={};dw={Empty:"Prazno"};var fw={};fw={Empty:"Üres"};var pw={};pw={Empty:"Vuoto"};var hw={};hw={Empty:"空"};var mw={};mw={Empty:"비어 있음"};var gw={};gw={Empty:"Tuščias"};var yw={};yw={Empty:"Tukšs"};var vw={};vw={Empty:"Tom"};var bw={};bw={Empty:"Leeg"};var $w={};$w={Empty:"Pusty"};var xw={};xw={Empty:"Vazio"};var ww={};ww={Empty:"Vazio"};var Dw={};Dw={Empty:"Gol"};var Ew={};Ew={Empty:"Не заполнено"};var Cw={};Cw={Empty:"Prázdne"};var Sw={};Sw={Empty:"Prazen"};var Aw={};Aw={Empty:"Prazno"};var Tw={};Tw={Empty:"Tomt"};var Pw={};Pw={Empty:"Boş"};var _w={};_w={Empty:"Пусто"};var Rw={};Rw={Empty:"空"};var Ow={};Ow={Empty:"空白"};var Fw={};Fw={"ar-AE":Xx,"bg-BG":ew,"cs-CZ":tw,"da-DK":nw,"de-DE":rw,"el-GR":iw,"en-US":ow,"es-ES":aw,"et-EE":uw,"fi-FI":sw,"fr-FR":lw,"he-IL":cw,"hr-HR":dw,"hu-HU":fw,"it-IT":pw,"ja-JP":hw,"ko-KR":mw,"lt-LT":gw,"lv-LV":yw,"nb-NO":vw,"nl-NL":bw,"pl-PL":$w,"pt-BR":xw,"pt-PT":ww,"ro-RO":Dw,"ru-RU":Ew,"sk-SK":Cw,"sl-SI":Sw,"sr-SP":Aw,"sv-SE":Tw,"tr-TR":Pw,"uk-UA":_w,"zh-CN":Rw,"zh-TW":Ow};function QF(e){return e&&e.__esModule?e.default:e}function XF(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:u,isReadOnly:l,isRequired:c,onIncrement:d,onIncrementPage:p,onDecrement:h,onDecrementPage:g,onDecrementToMin:m,onIncrementToMax:x}=e;const w=wi(QF(Fw),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let $=B=>{if(!(B.ctrlKey||B.metaKey||B.shiftKey||B.altKey||l))switch(B.key){case"PageUp":if(p){B.preventDefault(),p==null||p();break}case"ArrowUp":case"Up":d&&(B.preventDefault(),d==null||d());break;case"PageDown":if(g){B.preventDefault(),g==null||g();break}case"ArrowDown":case"Down":h&&(B.preventDefault(),h==null||h());break;case"Home":m&&(B.preventDefault(),m==null||m());break;case"End":x&&(B.preventDefault(),x==null||x());break}},v=b.useRef(!1),D=()=>{v.current=!0},P=()=>{v.current=!1},E=r===""?w.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{v.current&&(PF("assertive"),gu(E,"assertive"))},[E]);const T=un(B=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},B)}),F=un(B=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&F(60)},B)});let S=B=>{B.preventDefault()},{addGlobalListener:j,removeAllGlobalListeners:k}=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":u||void 0,"aria-readonly":l||void 0,"aria-required":c||void 0,onKeyDown:$,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),j(window,"contextmenu",S)},onPressEnd:()=>{C(),k()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{F(400),j(window,"contextmenu",S)},onPressEnd:()=>{C(),k()},onFocus:D,onBlur:P}}}var Mw={};Mw={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 kw={};kw={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 Bw={};Bw={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 Iw={};Iw={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 Lw={};Lw={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 Vw={};Vw={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 Nw={};Nw={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 Kw={};Kw={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 jw={};jw={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 Uw={};Uw={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 zw={};zw={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 Ww={};Ww={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 Hw={};Hw={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 Gw={};Gw={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 qw={};qw={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 Yw={};Yw={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 Zw={};Zw={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 Jw={};Jw={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 Qw={};Qw={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 Xw={};Xw={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 eD={};eD={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 tD={};tD={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 nD={};nD={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 rD={};rD={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 iD={};iD={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 oD={};oD={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 aD={};aD={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 uD={};uD={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 sD={};sD={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 lD={};lD={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 cD={};cD={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 dD={};dD={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 fD={};fD={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 pD={};pD={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 hD={};hD={"ar-AE":Mw,"bg-BG":kw,"cs-CZ":Bw,"da-DK":Iw,"de-DE":Lw,"el-GR":Vw,"en-US":Nw,"es-ES":Kw,"et-EE":jw,"fi-FI":Uw,"fr-FR":zw,"he-IL":Ww,"hr-HR":Hw,"hu-HU":Gw,"it-IT":qw,"ja-JP":Yw,"ko-KR":Zw,"lt-LT":Jw,"lv-LV":Qw,"nb-NO":Xw,"nl-NL":eD,"pl-PL":tD,"pt-BR":nD,"pt-PT":rD,"ro-RO":iD,"ru-RU":oD,"sk-SK":aD,"sl-SI":uD,"sr-SP":sD,"sv-SE":lD,"tr-TR":cD,"uk-UA":dD,"zh-CN":fD,"zh-TW":pD};const mi={top:"top",bottom:"top",left:"left",right:"left"},Cd={top:"bottom",bottom:"top",left:"right",right:"left"},eM={top:"left",left:"top"},Dm={top:"height",left:"width"},mD={width:"totalWidth",height:"totalHeight"},kc={};let fn=typeof document<"u"?window.visualViewport:null;function y4(e){let t=0,n=0,r=0,i=0,o=0,u=0,l={};var c;let d=((c=fn==null?void 0:fn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let x=document.documentElement;r=x.clientWidth,i=x.clientHeight;var p;t=(p=fn==null?void 0:fn.width)!==null&&p!==void 0?p:r;var h;n=(h=fn==null?void 0:fn.height)!==null&&h!==void 0?h:i,l.top=x.scrollTop||e.scrollTop,l.left=x.scrollLeft||e.scrollLeft,fn&&(o=fn.offsetTop,u=fn.offsetLeft)}else({width:t,height:n,top:o,left:u}=yu(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,i=n;if(bg()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){l.top=0,l.left=0;var g;o=(g=fn==null?void 0:fn.pageTop)!==null&&g!==void 0?g:0;var m;u=(m=fn==null?void 0:fn.pageLeft)!==null&&m!==void 0?m:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:l,top:o,left:u}}function tM(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function v4(e,t,n,r,i,o,u){var l;let c=(l=i.scroll[e])!==null&&l!==void 0?l:0,d=r[Dm[e]],p=r.scroll[mi[e]]+o,h=d+r.scroll[mi[e]]-o,g=t-c+u[e]-r[mi[e]],m=t-c+n+u[e]-r[mi[e]];return g<p?p-g:m>h?Math.max(h-m,p-g):0}function nM(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 b4(e){if(kc[e])return kc[e];let[t,n]=e.split(" "),r=mi[t]||"right",i=eM[r];mi[n]||(n="center");let o=Dm[r],u=Dm[i];return kc[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:u},kc[e]}function lh(e,t,n,r,i,o,u,l,c,d){let{placement:p,crossPlacement:h,axis:g,crossAxis:m,size:x,crossSize:w}=r,C={};var $;C[m]=($=e[m])!==null&&$!==void 0?$:0;var v,D,P,E;h==="center"?C[m]+=(((v=e[w])!==null&&v!==void 0?v:0)-((D=n[w])!==null&&D!==void 0?D:0))/2:h!==m&&(C[m]+=((P=e[w])!==null&&P!==void 0?P:0)-((E=n[w])!==null&&E!==void 0?E:0)),C[m]+=o;const T=e[m]-n[w]+c+d,F=e[m]+e[w]-c-d;if(C[m]=Pu(C[m],T,F),p===g){const S=l?u[x]:t[mD[x]];C[Cd[g]]=Math.floor(S-e[g]+i)}else C[g]=Math.floor(e[g]+e[x]+i);return C}function rM(e,t,n,r,i,o,u,l){const c=r?n.height:t[mD.height];var d;let p=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-u);var h,g,m,x,w,C;let $=l!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-p-(((g=i.top)!==null&&g!==void 0?g:0)+((m=i.bottom)!==null&&m!==void 0?m:0)+o)):Math.max(0,p+u-(t.top+((x=t.scroll.top)!==null&&x!==void 0?x:0))-(((w=i.top)!==null&&w!==void 0?w:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,$)}function $4(e,t,n,r,i,o){let{placement:u,axis:l,size:c}=o;var d,p;if(u===l)return Math.max(0,n[l]-e[l]-((d=e.scroll[l])!==null&&d!==void 0?d:0)+t[l]-((p=r[l])!==null&&p!==void 0?p:0)-r[Cd[l]]-i);var h;return Math.max(0,e[c]+e[l]+e.scroll[l]-t[l]-n[l]-n[c]-((h=r[l])!==null&&h!==void 0?h:0)-r[Cd[l]]-i)}function iM(e,t,n,r,i,o,u,l,c,d,p,h,g,m,x,w){let C=b4(e),{size:$,crossAxis:v,crossSize:D,placement:P,crossPlacement:E}=C,T=lh(t,l,n,C,p,h,d,g,x,w),F=p,S=$4(l,d,t,i,o+p,C);if(u&&r[$]>S){let me=b4(`${Cd[P]} ${E}`),ne=lh(t,l,n,me,p,h,d,g,x,w);$4(l,d,t,i,o+p,me)>S&&(C=me,T=ne,F=p)}let j="bottom";C.axis==="top"?C.placement==="top"?j="top":C.placement==="bottom"&&(j="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?j="bottom":C.crossPlacement==="bottom"&&(j="top"));let k=v4(v,T[v],n[D],l,c,o,d);T[v]+=k;let B=rM(T,l,d,g,i,o,n.height,j);m&&m<B&&(B=m),n.height=Math.min(n.height,B),T=lh(t,l,n,C,F,h,d,g,x,w),k=v4(v,T[v],n[D],l,c,o,d),T[v]+=k;let Z={},V=t[v]+.5*t[D]-T[v]-i[mi[v]];const q=x/2+w;var H,z,I,N;const Q=mi[v]==="left"?((H=i.left)!==null&&H!==void 0?H:0)+((z=i.right)!==null&&z!==void 0?z:0):((I=i.top)!==null&&I!==void 0?I:0)+((N=i.bottom)!==null&&N!==void 0?N:0),L=n[D]-Q-x/2-w,U=t[v]+x/2-(T[v]+i[mi[v]]),ie=t[v]+t[D]-x/2-(T[v]+i[mi[v]]),oe=Pu(V,U,ie);return Z[v]=Pu(oe,q,L),{position:T,maxHeight:B,arrowOffsetLeft:Z.left,arrowOffsetTop:Z.top,placement:C.placement}}function oM(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:u,boundaryElement:l,offset:c,crossOffset:d,maxHeight:p,arrowSize:h=0,arrowBoundaryOffset:g=0}=e,m=r instanceof HTMLElement?aM(r):document.documentElement,x=m===document.documentElement;const w=window.getComputedStyle(m).position;let C=!!w&&w!=="static",$=x?yu(n):x4(n,m);if(!x){let{marginTop:Z,marginLeft:V}=window.getComputedStyle(n);$.top+=parseInt(Z,10)||0,$.left+=parseInt(V,10)||0}let v=yu(r),D=nM(r);var P,E;v.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,F;v.height+=((T=D.top)!==null&&T!==void 0?T:0)+((F=D.bottom)!==null&&F!==void 0?F:0);let S=tM(i),j=y4(l),k=y4(m),B=l.tagName==="BODY"?yu(m):x4(m,l);return m.tagName==="HTML"&&l.tagName==="BODY"&&(k.scroll.top=0,k.scroll.left=0),iM(t,$,v,S,D,o,u,j,k,B,c,d,C,p,h,g)}function yu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:u,clientTop:l,clientLeft:c}=document.documentElement;return{top:t+o-l,left:n+u-c,width:r,height:i}}function x4(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:u,height:l}=e.getBoundingClientRect();r={top:i,left:o,width:u,height:l}}else{r=yu(e);let i=yu(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 aM(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!w4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!w4(t);)t=t.parentElement;return t||document.documentElement}function w4(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 gD=new WeakMap;function uM(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let u=o.target;if(!t.current||u instanceof Node&&!u.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let l=r||gD.get(t.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let Ht=typeof document<"u"?window.visualViewport:null;function sM(e){let{direction:t}=kn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:u="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:p=0,crossOffset:h=0,shouldUpdatePosition:g=!0,isOpen:m=!0,onClose:x,maxHeight:w,arrowBoundaryOffset:C=0}=e,[$,v]=b.useState(null),D=[g,u,i.current,r.current,o.current,l,c,d,p,h,m,t,w,C,n],P=b.useRef(Ht==null?void 0:Ht.scale);b.useEffect(()=>{m&&(P.current=Ht==null?void 0:Ht.scale)},[m]);let E=b.useCallback(()=>{if(g===!1||!m||!i.current||!r.current||!d||(Ht==null?void 0:Ht.scale)!==P.current)return;let k=null;if(o.current&&o.current.contains(document.activeElement)){var B;let N=(B=document.activeElement)===null||B===void 0?void 0:B.getBoundingClientRect(),Q=o.current.getBoundingClientRect();var Z;if(k={type:"top",offset:((Z=N==null?void 0:N.top)!==null&&Z!==void 0?Z:0)-Q.top},k.offset>Q.height/2){k.type="bottom";var V;k.offset=((V=N==null?void 0:N.bottom)!==null&&V!==void 0?V:0)-Q.bottom}}let q=i.current;if(!w&&i.current){var H;q.style.top="0px",q.style.bottom="";var z;q.style.maxHeight=((z=(H=window.visualViewport)===null||H===void 0?void 0:H.height)!==null&&z!==void 0?z:window.innerHeight)+"px"}let I=oM({placement:cM(u,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:l,shouldFlip:c,boundaryElement:d,offset:p,crossOffset:h,maxHeight:w,arrowSize:n,arrowBoundaryOffset:C});if(I.position){if(q.style.top="",q.style.bottom="",q.style.left="",q.style.right="",Object.keys(I.position).forEach(N=>q.style[N]=I.position[N]+"px"),q.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"",k&&document.activeElement&&o.current){let N=document.activeElement.getBoundingClientRect(),Q=o.current.getBoundingClientRect(),L=N[k.type]-Q[k.type];o.current.scrollTop+=L-k.offset}v(I)}},D);Ot(E,D),lM(E),S0({ref:i,onResize:E}),S0({ref:r,onResize:E});let T=b.useRef(!1);Ot(()=>{let k,B=()=>{T.current=!0,clearTimeout(k),k=setTimeout(()=>{T.current=!1},500),E()},Z=()=>{T.current&&B()};return Ht==null||Ht.addEventListener("resize",B),Ht==null||Ht.addEventListener("scroll",Z),()=>{Ht==null||Ht.removeEventListener("resize",B),Ht==null||Ht.removeEventListener("scroll",Z)}},[E]);let F=b.useCallback(()=>{T.current||x==null||x()},[x,T]);uM({triggerRef:r,isOpen:m,onClose:x&&F});var S,j;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(S=$==null?void 0:$.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(j=$==null?void 0:$.placement)!==null&&j!==void 0?j:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:E}}function lM(e){Ot(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function cM(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ki=[];function dM(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:l}=e;b.useEffect(()=>(i&&ki.push(t),()=>{let x=ki.indexOf(t);x>=0&&ki.splice(x,1)}),[i,t]);let c=()=>{ki[ki.length-1]===t&&n&&n()},d=x=>{(!l||l(x.target))&&ki[ki.length-1]===t&&(x.stopPropagation(),x.preventDefault())},p=x=>{(!l||l(x.target))&&(ki[ki.length-1]===t&&(x.stopPropagation(),x.preventDefault()),c())},h=x=>{x.key==="Escape"&&!u&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),c())};Z8({ref:t,onInteractOutside:o&&i?p:void 0,onInteractOutsideStart:d});let{focusWithinProps:g}=ju({isDisabled:!r,onBlurWithin:x=>{!x.relatedTarget||oO(x.relatedTarget)||(!l||l(x.relatedTarget))&&(n==null||n())}}),m=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:h,...g},underlayProps:{onPointerDown:m}}}function fM(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&gD.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let u=gr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}const ch=typeof document<"u"&&window.visualViewport,pM=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Bc=0,dh;function hM(e={}){let{isDisabled:t}=e;Ot(()=>{if(!t)return Bc++,Bc===1&&(cl()?dh=gM():dh=mM()),()=>{Bc--,Bc===0&&dh()}},[t])}function mM(){return pa(uu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),uu(document.documentElement,"overflow","hidden"))}function gM(){let e,t,n=d=>{e=ef(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=uu(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 p=d.target;E4(p)&&p!==document.activeElement&&(d.preventDefault(),l(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""})),t&&t()},o=d=>{let p=d.target;E4(p)&&(l(),p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",ch&&(ch.height<window.innerHeight?requestAnimationFrame(()=>{D4(p)}):ch.addEventListener("resize",()=>D4(p),{once:!0}))}))},u=null,l=()=>{if(u)return;let d=()=>{window.scrollTo(0,0)},p=window.pageXOffset,h=window.pageYOffset;u=pa(Ds(window,"scroll",d),uu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),uu(document.documentElement,"overflow","hidden"),uu(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(p,h)}),window.scrollTo(0,0)},c=pa(Ds(document,"touchstart",n,{passive:!1,capture:!0}),Ds(document,"touchmove",r,{passive:!1,capture:!0}),Ds(document,"touchend",i,{passive:!1,capture:!0}),Ds(document,"focus",o,!0));return()=>{t==null||t(),u==null||u(),c()}}function uu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Ds(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function D4(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=ef(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 E4(e){return e instanceof HTMLInputElement&&!pM.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Es=new WeakMap,Rr=[];function yD(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let g of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(g);let d=g=>{if(n.has(g)||g.parentElement&&r.has(g.parentElement)&&g.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let m of n)if(g.contains(m))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},p=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let g=p.nextNode();for(;g!=null;)o(g),g=p.nextNode()}},o=c=>{var d;let p=(d=Es.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&p===0||(p===0&&c.setAttribute("aria-hidden","true"),r.add(c),Es.set(c,p+1))};Rr.length&&Rr[Rr.length-1].disconnect(),i(t);let u=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(p=>p.contains(d.target))){for(let p of d.removedNodes)p instanceof Element&&(n.delete(p),r.delete(p));for(let p of d.addedNodes)(p instanceof HTMLElement||p instanceof SVGElement)&&(p.dataset.liveAnnouncer==="true"||p.dataset.reactAriaTopLayer==="true")?n.add(p):p instanceof Element&&i(p)}});u.observe(t,{childList:!0,subtree:!0});let l={observe(){u.observe(t,{childList:!0,subtree:!0})},disconnect(){u.disconnect()}};return Rr.push(l),()=>{u.disconnect();for(let c of r){let d=Es.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Es.delete(c)):Es.set(c,d-1))}l===Rr[Rr.length-1]?(Rr.pop(),Rr.length&&Rr[Rr.length-1].observe()):Rr.splice(Rr.indexOf(l),1)}}function yM(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u,...l}=e,{overlayProps:c,underlayProps:d}=dM({isOpen:t.isOpen&&!l["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u},r),{overlayProps:p,arrowProps:h,placement:g}=sM({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return hM({isDisabled:i||!t.isOpen}),Ot(()=>{if(t.isOpen&&!i&&r.current)return yD([r.current])},[i,t.isOpen,r]),{popoverProps:dt(c,p),arrowProps:h,underlayProps:d,placement:g}}const vM=b.createContext({});function bM(){var e;return(e=b.useContext(vM))!==null&&e!==void 0?e:{}}const vD=b.createContext(null);function $M(e){let t=yg(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),u=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:l}=bM();if(!e.portalContainer&&l&&(n=l()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(eO,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(vD.Provider,{value:u},b.createElement(j8,null,c)),xo.createPortal(c,n)}function xM(){let e=b.useContext(vD),t=e==null?void 0:e.setContain;Ot(()=>{t==null||t(!0)},[t])}const cf=new WeakMap;function wM(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function bD(e,t){let n=cf.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${wM(t)}`}function Em(e){return Zc()?e.altKey:e.ctrlKey}function ru(e){return zi()?e.metaKey:e.ctrlKey}const DM=1e3;function EM(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=u=>{let l=CM(u.key);if(!(!l||u.ctrlKey||u.metaKey||!u.currentTarget.contains(u.target))){if(l===" "&&i.search.trim().length>0&&(u.preventDefault(),"continuePropagation"in u||u.stopPropagation()),i.search+=l,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=""},DM)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function CM(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function $D(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:u=!1,disallowSelectAll:l=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:p,allowsTabNavigation:h=!1,isVirtualized:g,scrollRef:m=r,linkBehavior:x="action"}=e,{direction:w}=kn(),C=Xd(),$=k=>{var B;if(k.altKey&&k.key==="Tab"&&k.preventDefault(),!(!((B=r.current)===null||B===void 0)&&B.contains(k.target)))return;const Z=(ne,ve)=>{if(ne!=null){if(t.isLink(ne)&&x==="selection"&&c&&!Em(k)){var ye;xo.flushSync(()=>{t.setFocusedKey(ne,ve)});let X=(ye=m.current)===null||ye===void 0?void 0:ye.querySelector(`[data-key="${CSS.escape(ne.toString())}"]`),ge=t.getItemProps(ne);X&&C.open(X,k,ge.href,ge.routerOptions);return}if(t.setFocusedKey(ne,ve),t.isLink(ne)&&x==="override")return;k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ne):c&&!Em(k)&&t.replaceSelection(ne)}};switch(k.key){case"ArrowDown":if(n.getKeyBelow){var V,q,H;let ne=t.focusedKey!=null?(V=n.getKeyBelow)===null||V===void 0?void 0:V.call(n,t.focusedKey):(q=n.getFirstKey)===null||q===void 0?void 0:q.call(n);ne==null&&o&&(ne=(H=n.getFirstKey)===null||H===void 0?void 0:H.call(n,t.focusedKey)),ne!=null&&(k.preventDefault(),Z(ne))}break;case"ArrowUp":if(n.getKeyAbove){var z,I,N;let ne=t.focusedKey!=null?(z=n.getKeyAbove)===null||z===void 0?void 0:z.call(n,t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);ne==null&&o&&(ne=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),ne!=null&&(k.preventDefault(),Z(ne))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Q,L,U;let ne=t.focusedKey!=null?(Q=n.getKeyLeftOf)===null||Q===void 0?void 0:Q.call(n,t.focusedKey):null;ne==null&&o&&(ne=w==="rtl"?(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,t.focusedKey):(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,t.focusedKey)),ne!=null&&(k.preventDefault(),Z(ne,w==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var ie,oe,me;let ne=t.focusedKey!=null?(ie=n.getKeyRightOf)===null||ie===void 0?void 0:ie.call(n,t.focusedKey):null;ne==null&&o&&(ne=w==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(me=n.getFirstKey)===null||me===void 0?void 0:me.call(n,t.focusedKey)),ne!=null&&(k.preventDefault(),Z(ne,w==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){k.preventDefault();let ne=n.getFirstKey(t.focusedKey,ru(k));t.setFocusedKey(ne),ne!=null&&(ru(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ne):c&&t.replaceSelection(ne))}break;case"End":if(n.getLastKey){k.preventDefault();let ne=n.getLastKey(t.focusedKey,ru(k));t.setFocusedKey(ne),ne!=null&&(ru(k)&&k.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ne):c&&t.replaceSelection(ne))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ne=n.getKeyPageBelow(t.focusedKey);ne!=null&&(k.preventDefault(),Z(ne))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ne=n.getKeyPageAbove(t.focusedKey);ne!=null&&(k.preventDefault(),Z(ne))}break;case"a":ru(k)&&t.selectionMode==="multiple"&&l!==!0&&(k.preventDefault(),t.selectAll());break;case"Escape":!u&&t.selectedKeys.size!==0&&(k.stopPropagation(),k.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(k.shiftKey)r.current.focus();else{let ne=ir(r.current,{tabbable:!0}),ve,ye;do ye=ne.lastChild(),ye&&(ve=ye);while(ye);ve&&!ve.contains(document.activeElement)&&Yr(ve)}break}}},v=b.useRef({top:0,left:0});wo(m,"scroll",g?void 0:()=>{var k,B,Z,V;v.current={top:(Z=(k=m.current)===null||k===void 0?void 0:k.scrollTop)!==null&&Z!==void 0?Z:0,left:(V=(B=m.current)===null||B===void 0?void 0:B.scrollLeft)!==null&&V!==void 0?V:0}});let D=k=>{if(t.isFocused){k.currentTarget.contains(k.target)||t.setFocused(!1);return}if(k.currentTarget.contains(k.target)){if(t.setFocused(!0),t.focusedKey==null){var B,Z;let H=I=>{I!=null&&(t.setFocusedKey(I),c&&t.replaceSelection(I))},z=k.relatedTarget;var V,q;z&&k.currentTarget.compareDocumentPosition(z)&Node.DOCUMENT_POSITION_FOLLOWING?H((V=t.lastSelectedKey)!==null&&V!==void 0?V:(B=n.getLastKey)===null||B===void 0?void 0:B.call(n)):H((q=t.firstSelectedKey)!==null&&q!==void 0?q:(Z=n.getFirstKey)===null||Z===void 0?void 0:Z.call(n))}else!g&&m.current&&(m.current.scrollTop=v.current.top,m.current.scrollLeft=v.current.left);if(t.focusedKey!=null&&m.current){let H=m.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);H&&(H.contains(document.activeElement)||Yr(H),md()==="keyboard"&&pd(H,{containingElement:r.current}))}}},P=k=>{k.currentTarget.contains(k.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var k,B;let q=null;var Z;i==="first"&&(q=(Z=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n))!==null&&Z!==void 0?Z:null);var V;i==="last"&&(q=(V=(B=n.getLastKey)===null||B===void 0?void 0:B.call(n))!==null&&V!==void 0?V:null);let H=t.selectedKeys;if(H.size){for(let z of H)if(t.canSelectItem(z)){q=z;break}}t.setFocused(!0),t.setFocusedKey(q),q==null&&!p&&r.current&&ga(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&m.current&&r.current){let k=md(),B=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!B)return;(k==="keyboard"||E.current)&&(g$(m.current,B),k!=="virtual"&&pd(B,{containingElement:r.current}))}!p&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&ga(r.current),T.current=t.focusedKey,E.current=!1}),wo(r,"react-aria-focus-scope-restore",k=>{k.preventDefault(),t.setFocused(!0)});let F={onKeyDown:$,onFocus:D,onBlur:P,onMouseDown(k){m.current===k.target&&k.preventDefault()}},{typeSelectProps:S}=EM({keyboardDelegate:n,selectionManager:t});d||(F=dt(S,F));let j;return p||(j=t.focusedKey==null?0:-1),{collectionProps:{...F,tabIndex:j}}}function SM(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:u,isDisabled:l,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:p="action"}=e,h=Xd(),g=I=>{if(I.pointerType==="keyboard"&&Em(I))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(p==="selection"&&r.current){let N=t.getItemProps(n);h.open(r.current,I,N.href,N.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(p==="override"||p==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):I&&I.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||I&&(ru(I)||I.pointerType==="touch"||I.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(u?u():document.activeElement!==r.current&&r.current&&ga(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),l=l||t.isDisabled(n);let m={};!o&&!l?m={tabIndex:n===t.focusedKey?0:-1,onFocus(I){I.target===r.current&&t.setFocusedKey(n)}}:l&&(m.onMouseDown=I=>{I.preventDefault()});let x=t.isLink(n)&&p==="override",w=t.isLink(n)&&p!=="selection"&&p!=="none",C=!l&&t.canSelectItem(n)&&!x,$=(c||w)&&!l,v=$&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=$&&C&&t.selectionBehavior==="replace",P=v||D,E=b.useRef(null),T=P&&C,F=b.useRef(!1),S=b.useRef(!1),j=I=>{if(c&&c(),w&&r.current){let N=t.getItemProps(n);h.open(r.current,I,N.href,N.routerOptions)}},k={};i?(k.onPressStart=I=>{E.current=I.pointerType,F.current=T,I.pointerType==="keyboard"&&(!P||S4())&&g(I)},d?(k.onPressUp=v?void 0:I=>{I.pointerType!=="keyboard"&&C&&g(I)},k.onPress=v?j:void 0):k.onPress=I=>{if(v||D&&I.pointerType!=="mouse"){if(I.pointerType==="keyboard"&&!C4())return;j(I)}else I.pointerType!=="keyboard"&&C&&g(I)}):(k.onPressStart=I=>{E.current=I.pointerType,F.current=T,S.current=v,C&&(I.pointerType==="mouse"&&!v||I.pointerType==="keyboard"&&(!$||S4()))&&g(I)},k.onPress=I=>{(I.pointerType==="touch"||I.pointerType==="pen"||I.pointerType==="virtual"||I.pointerType==="keyboard"&&P&&C4()||I.pointerType==="mouse"&&S.current)&&(P?j(I):C&&g(I))}),m["data-key"]=n,k.preventFocusOnPress=o;let{pressProps:B,isPressed:Z}=pl(k),V=D?I=>{E.current==="mouse"&&(I.stopPropagation(),I.preventDefault(),j(I))}:void 0,{longPressProps:q}=P$({isDisabled:!T,onLongPress(I){I.pointerType==="touch"&&(g(I),t.setSelectionBehavior("toggle"))}}),H=I=>{E.current==="touch"&&F.current&&I.preventDefault()},z=t.isLink(n)?I=>{ha.isOpening||I.preventDefault()}:void 0;return{itemProps:dt(m,C||v?B:{},T?q:{},{onDoubleClick:V,onDragStartCapture:H,onClick:z}),isPressed:Z,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:l,allowsSelection:C,hasAction:P}}function C4(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function S4(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class A4{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 xD{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 u=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(u,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&&!Gs(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&&!Gs(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 u=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(u,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 A4(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 A4(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function AM(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:u}=e,l=fx({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new xD({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:l,layoutDelegate:u}),[o,u,n,r,i,l,c]),{collectionProps:p}=$D({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:p}}function TM(e,t,n){let r=Wi(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:u}=AM({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:l}=ju({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),c=gr(e.id);cf.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:p}=sf({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:dt(r,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...dt(p,u)})}}function wD(e){return null}wD.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,u=t.title||t.children,l=t.textValue||(typeof u=="string"?u:"")||t["aria-label"]||"";!l&&!(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:u,textValue:l,"aria-label":t["aria-label"],hasChildNodes:PM(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 PM(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let _M=wD;class RM{build(t,n){return this.context=n,T4(()=>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,u=>{u&&i.push(u)});let o=0;for(let u of i){let l=this.getFullNode({element:u,index:o},{});for(let c of l)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 u;let l=(u=o.key)!==null&&u!==void 0?u:o.id;if(l==null)throw new Error("No key found for item");return l}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,v=>{C.push(v)});var o;let $=(o=t.index)!==null&&o!==void 0?o:0;for(const v of C)yield*this.getFullNode({element:v,index:$++},n,r,i);return}let u=t.element;if(!u&&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}u=n.renderer(t.value)}if(b.isValidElement(u)){let C=u.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=u.type;throw new Error(`Unknown element <${P}> in collection.`)}let $=C.getCollectionNode(u.props,this.context);var l;let v=(l=t.index)!==null&&l!==void 0?l:0,D=$.next();for(;!D.done&&D.value;){let P=D.value;t.index=v;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(u,t,n,r));let F=[...this.getFullNode({...P,key:E,index:v,wrapper:OM(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${u.key}`:u.key,i)];for(let S of F){var d,p;S.value=(p=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&p!==void 0?p:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${fh(S.type)}> in <${fh((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${fh(t.type)}> is supported.`);v++,yield S}D=$.next(F)}return}if(t.key==null||t.type==null)return;let g=this;var m,x;let w={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(m=t.value)!==null&&m!==void 0?m:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(x=t.textValue)!==null&&x!==void 0?x:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:T4(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let $ of t.childNodes()){$.key!=null&&($.key=`${w.key}${$.key}`);let v=g.getFullNode({...$,index:C},g.getChildState(n,$),w.key,w);for(let D of v)C++,yield D}})};yield w}constructor(){this.cache=new WeakMap}}function T4(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 OM(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function fh(e){return e[0].toUpperCase()+e.slice(1)}function FM(e,t,n){let r=b.useMemo(()=>new RM,[]),{children:i,items:o,collection:u}=e;return b.useMemo(()=>{if(u)return u;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,u,n,t])}function df(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function MM(e){return kM(e)}function kM(e,t){for(let n of e)return n}function ph(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...P4(e,t),t],i=[...P4(e,n),n],o=r.slice(0,i.length).findIndex((u,l)=>u!==i[l]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(u=>u===n)>=0?1:(i.findIndex(u=>u===t)>=0,-1)}function P4(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 _4=new WeakMap;function DD(e){let t=_4.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(df(o,e)):n++};return r(e),_4.set(e,n),n}function BM(e,t,n){var r,i;let{key:o}=e,u=cf.get(t);var l;let c=(l=e.isDisabled)!==null&&l!==void 0?l:t.selectionManager.isDisabled(o);var d;let p=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let g=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:u==null?void 0:u.shouldSelectOnPressUp;var m;let x=(m=e.shouldFocusOnHover)!==null&&m!==void 0?m:u==null?void 0:u.shouldFocusOnHover;var w;let C=(w=e.shouldUseVirtualFocus)!==null&&w!==void 0?w:u==null?void 0:u.shouldUseVirtualFocus;var $;let v=($=e.isVirtualized)!==null&&$!==void 0?$:u==null?void 0:u.isVirtualized,D=Au(),P=Au(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?p:void 0};zi()&&bg()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(v){let z=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(z)?void 0:z+1,E["aria-setsize"]=DD(t.collection)}let F=u!=null&&u.onAction?()=>{var z;return u==null||(z=u.onAction)===null||z===void 0?void 0:z.call(u,o)}:void 0,{itemProps:S,isPressed:j,isFocused:k,hasAction:B,allowsSelection:Z}=SM({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:g,allowsDifferentPressOrigin:g&&x,isVirtualized:v,shouldUseVirtualFocus:C,isDisabled:c,onAction:F||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?pa(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,F):void 0,linkBehavior:u==null?void 0:u.linkBehavior}),{hoverProps:V}=Y8({isDisabled:c||!x,onHoverStart(){F0()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),q=Wi(T==null?void 0:T.props);delete q.id;let H=T8(T==null?void 0:T.props);return{optionProps:{...E,...dt(q,S,V,H),id:bD(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:k,isFocusVisible:k&&F0(),isSelected:p,isDisabled:c,isPressed:j,allowsSelection:Z,hasAction:B}}var ED={};ED={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var CD={};CD={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var SD={};SD={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var AD={};AD={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var TD={};TD={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var PD={};PD={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var _D={};_D={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var RD={};RD={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var OD={};OD={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var FD={};FD={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var MD={};MD={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var kD={};kD={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var BD={};BD={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var ID={};ID={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var LD={};LD={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var VD={};VD={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ND={};ND={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var KD={};KD={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var jD={};jD={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var UD={};UD={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var zD={};zD={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var WD={};WD={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var HD={};HD={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var GD={};GD={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var qD={};qD={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var YD={};YD={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var ZD={};ZD={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var JD={};JD={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var QD={};QD={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var XD={};XD={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var eE={};eE={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var tE={};tE={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var nE={};nE={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var rE={};rE={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var iE={};iE={"ar-AE":ED,"bg-BG":CD,"cs-CZ":SD,"da-DK":AD,"de-DE":TD,"el-GR":PD,"en-US":_D,"es-ES":RD,"et-EE":OD,"fi-FI":FD,"fr-FR":MD,"he-IL":kD,"hr-HR":BD,"hu-HU":ID,"it-IT":LD,"ja-JP":VD,"ko-KR":ND,"lt-LT":KD,"lv-LV":jD,"nb-NO":UD,"nl-NL":zD,"pl-PL":WD,"pt-BR":HD,"pt-PT":GD,"ro-RO":qD,"ru-RU":YD,"sk-SK":ZD,"sl-SI":JD,"sr-SP":QD,"sv-SE":XD,"tr-TR":eE,"uk-UA":tE,"zh-CN":nE,"zh-TW":rE};function IM(e){return e&&e.__esModule?e.default:e}function LM(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,u=gr(),{triggerProps:l,overlayProps:c}=fM({type:r},t,n),d=m=>{if(!i&&!(o==="longPress"&&!m.altKey)&&n&&n.current)switch(m.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in m||m.stopPropagation(),m.preventDefault(),t.toggle("last");break;default:"continuePropagation"in m&&m.continuePropagation()}},p=wi(IM(iE),"@react-aria/menu"),{longPressProps:h}=P$({isDisabled:i||o!=="longPress",accessibilityDescription:p.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),g={onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!i&&t.open(m.pointerType==="virtual"?"first":null)},onPress(m){m.pointerType==="touch"&&!i&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...o==="press"?g:h,id:u,onKeyDown:d},menuProps:{...c,"aria-labelledby":u,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function VM(e){return e&&e.__esModule?e.default:e}function NM(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:u,layoutDelegate:l,shouldFocusWrap:c,isReadOnly:d,isDisabled:p}=e,h=b.useRef(null);n=n??h;let g=wi(VM(hD),"@react-aria/combobox"),{menuTriggerProps:m,menuProps:x}=LM({type:"listbox",isDisabled:p||d},t,n);cf.set(t,{id:x.id});let{collection:w}=t,{disabledKeys:C}=t.selectionManager,$=b.useMemo(()=>u||new xD({collection:w,disabledKeys:C,ref:o,layoutDelegate:l}),[u,l,w,C,o]),{collectionProps:v}=$D({selectionManager:t.selectionManager,keyboardDelegate:$,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Xd(),P=pe=>{if(!pe.nativeEvent.isComposing)switch(pe.key){case"Enter":case"Tab":if(t.isOpen&&pe.key==="Enter"&&pe.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let ae=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(pe.key==="Enter"&&ae instanceof HTMLAnchorElement){let Re=t.collection.getItem(t.selectionManager.focusedKey);Re&&D.open(ae,pe,Re.props.href,Re.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&pe.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=pe=>{var ae;let Re=(n==null?void 0:n.current)&&n.current===pe.relatedTarget,et=(ae=r.current)===null||ae===void 0?void 0:ae.contains(pe.relatedTarget);Re||et||(e.onBlur&&e.onBlur(pe),t.setFocused(!1))},T=pe=>{t.isFocused||(e.onFocus&&e.onFocus(pe),t.setFocused(!0))},{isInvalid:F,validationErrors:S,validationDetails:j}=t.displayValidation,{labelProps:k,inputProps:B,descriptionProps:Z,errorMessageProps:V}=JF({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:pa(t.isOpen&&v.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Ru]:t},i),q=pe=>{if(pe.pointerType==="touch"){var ae;(ae=i.current)===null||ae===void 0||ae.focus(),t.toggle(null,"manual")}},H=pe=>{if(pe.pointerType!=="touch"){var ae;(ae=i.current)===null||ae===void 0||ae.focus(),t.toggle(pe.pointerType==="keyboard"||pe.pointerType==="virtual"?"first":null,"manual")}},z=Tu({id:m.id,"aria-label":g.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),I=Tu({id:x.id,"aria-label":g.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||k.id}),N=b.useRef(0),Q=pe=>{if(p||d)return;if(pe.timeStamp-N.current<500){var ae;pe.preventDefault(),(ae=i.current)===null||ae===void 0||ae.focus();return}let Re=pe.target.getBoundingClientRect(),et=pe.changedTouches[0],it=Math.ceil(Re.left+.5*Re.width),hn=Math.ceil(Re.top+.5*Re.height);if(et.clientX===it&&et.clientY===hn){var st;pe.preventDefault(),(st=i.current)===null||st===void 0||st.focus(),t.toggle(null,"manual"),N.current=pe.timeStamp}},L=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var U;let ie=(U=L==null?void 0:L.parentKey)!==null&&U!==void 0?U:null;var oe;let me=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ne=b.useRef(ie),ve=b.useRef(me);b.useEffect(()=>{if(Zc()&&L!=null&&me!=null&&me!==ve.current){let ae=t.selectionManager.isSelected(me),Re=ie!=null?t.collection.getItem(ie):null,et=(Re==null?void 0:Re["aria-label"])||(typeof(Re==null?void 0:Re.rendered)=="string"?Re.rendered:"")||"";var pe;let it=g.format("focusAnnouncement",{isGroupChange:(pe=Re&&ie!==ne.current)!==null&&pe!==void 0?pe:!1,groupTitle:et,groupCount:Re?[...df(Re,t.collection)].length:0,optionText:L["aria-label"]||L.textValue||"",isSelected:ae});gu(it)}ne.current=ie,ve.current=me});let ye=DD(t.collection),X=b.useRef(ye),ge=b.useRef(t.isOpen);b.useEffect(()=>{let pe=t.isOpen!==ge.current&&(t.selectionManager.focusedKey==null||Zc());if(t.isOpen&&(pe||ye!==X.current)){let ae=g.format("countAnnouncement",{optionCount:ye});gu(ae)}X.current=ye,ge.current=t.isOpen});let be=b.useRef(t.selectedKey);return b.useEffect(()=>{if(Zc()&&t.isFocused&&t.selectedItem&&t.selectedKey!==be.current){let pe=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ae=g.format("selectedAnnouncement",{optionText:pe});gu(ae)}be.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return yD([i.current,r.current].filter(pe=>pe!=null))},[t.isOpen,i,r]),{labelProps:k,buttonProps:{...m,...z,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:q,onPressStart:H,isDisabled:p||d},inputProps:dt(B,{role:"combobox","aria-expanded":m["aria-expanded"],"aria-controls":t.isOpen?x.id:void 0,"aria-autocomplete":"list","aria-activedescendant":L?bD(t,L.key):void 0,onTouchEnd:Q,autoCorrect:"off",spellCheck:"false"}),listBoxProps:dt(x,I,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:Z,errorMessageProps:V,isInvalid:F,validationErrors:S,validationDetails:j}}var oE={};oE={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 aE={};aE={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 uE={};uE={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 sE={};sE={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 lE={};lE={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 cE={};cE={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 dE={};dE={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 fE={};fE={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 pE={};pE={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 hE={};hE={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 mE={};mE={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 gE={};gE={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 yE={};yE={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 vE={};vE={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 bE={};bE={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 $E={};$E={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 xE={};xE={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 wE={};wE={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 DE={};DE={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 EE={};EE={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 CE={};CE={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 SE={};SE={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 AE={};AE={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 TE={};TE={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 PE={};PE={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 _E={};_E={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 RE={};RE={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 OE={};OE={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 FE={};FE={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 ME={};ME={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 kE={};kE={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 BE={};BE={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 IE={};IE={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 LE={};LE={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 $l={};$l={"ar-AE":oE,"bg-BG":aE,"cs-CZ":uE,"da-DK":sE,"de-DE":lE,"el-GR":cE,"en-US":dE,"es-ES":fE,"et-EE":pE,"fi-FI":hE,"fr-FR":mE,"he-IL":gE,"hr-HR":yE,"hu-HU":vE,"it-IT":bE,"ja-JP":$E,"ko-KR":xE,"lt-LT":wE,"lv-LV":DE,"nb-NO":EE,"nl-NL":CE,"pl-PL":SE,"pt-BR":AE,"pt-PT":TE,"ro-RO":PE,"ru-RU":_E,"sk-SK":RE,"sl-SI":OE,"sr-SP":FE,"sv-SE":ME,"tr-TR":kE,"uk-UA":BE,"zh-CN":IE,"zh-TW":LE};function Vg(e,t,n){let{direction:r}=kn(),i=b.useMemo(()=>nf(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}},u=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,p=ir(t.current,{tabbable:!0});if(d&&(p.currentNode=d,d=p.previousNode()),!d){let h;do h=p.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=p.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:l}=pl({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&u()},onPress(c){c.pointerType!=="mouse"&&u()}});return dt(l,{onKeyDown:o})}function KM(e){return e&&e.__esModule?e.default:e}const VE=new WeakMap,Us="__role_"+Date.now(),NE="__focusManager_"+Date.now();function KE(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:u}=t.displayValidation,{labelProps:l,fieldProps:c,descriptionProps:d,errorMessageProps:p}=lf({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:g}=ju({...e,onFocusWithin(k){var B;h.current=t.value,(B=e.onFocus)===null||B===void 0||B.call(e,k)},onBlurWithin:k=>{var B;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(B=e.onBlur)===null||B===void 0||B.call(e,k)},onFocusWithinChange:e.onFocusChange}),m=wi(KM($l),"@react-aria/datepicker"),x=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",w=t.maxGranularity==="hour"?"time":"date",C=t.value?m.format(x,{[w]:t.formatValue({month:"long"})}):"",$=dl(C),v=e[Us]==="presentation"?c["aria-describedby"]:[$["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[NE],P=b.useMemo(()=>D||nf(n),[D,n]),E=Vg(t,n,e[Us]==="presentation");VE.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[l.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:P});let T=b.useRef(e.autoFocus),F;e[Us]==="presentation"?F={role:"presentation"}:F=dt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),$g(e.inputRef,t.value,t.setValue),Qx({...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 j=Wi(e);return{labelProps:{...l,onClick:()=>{P.focusFirst()}},fieldProps:dt(j,F,E,g,{onKeyDown(k){e.onKeyDown&&e.onKeyDown(k)},onKeyUp(k){e.onKeyUp&&e.onKeyUp(k)}}),inputProps:S,descriptionProps:d,errorMessageProps:p,isInvalid:i,validationErrors:o,validationDetails:u}}function jM(e,t,n){var r;let i=KE(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function UM(e){return e&&e.__esModule?e.default:e}function zM(e,t,n){let r=gr(),i=gr(),o=gr(),u=wi(UM($l),"@react-aria/datepicker"),{isInvalid:l,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:g,errorMessageProps:m}=lf({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||c}),x=Vg(t,n),w=h["aria-labelledby"]||h.id,{locale:C}=kn(),$=t.formatValue(C,{month:"long"}),v=$?u.format("selectedDateDescription",{date:$}):"",D=dl(v),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Wi(e),T=b.useMemo(()=>nf(n),[n]),{focusWithinProps:F}=ju({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:dt(E,x,h,D,F,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":w,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...p,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[Us]:"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,[Ru]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:g,errorMessageProps:m,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${r} ${w}`,"aria-describedby":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${w}`},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:l,validationErrors:c,validationDetails:d}}function WM(e){return e&&e.__esModule?e.default:e}function HM(){let{locale:e}=kn(),t=k$(WM($l),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new GM(e,t)}},[e,t])}class GM{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function qM(e,t,n){let r=b.useRef(""),{locale:i}=kn(),o=HM(),{ariaLabel:u,ariaLabelledBy:l,ariaDescribedBy:c,focusManager:d}=VE.get(t),p=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),g=hi({month:"long",timeZone:h.timeZone}),m=hi({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let N=g.format(t.dateValue);p=N!==p?`${p} – ${N}`:N}else e.type==="hour"&&!e.isPlaceholder&&(p=m.format(t.dateValue));let{spinButtonProps:x}=XF({value:e.value,textValue:p,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)}}),w=b.useMemo(()=>new dx(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),w.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let N=e.text.slice(0,-1),Q=w.parse(N);N=Q===0?"":N,N.length===0||Q===0?t.clearSegment(e.type):t.setSegment(e.type,Q),r.current=N}else e.type==="dayPeriod"&&t.clearSegment(e.type)},$=N=>{if(N.key==="a"&&(zi()?N.metaKey:N.ctrlKey)&&N.preventDefault(),!(N.ctrlKey||N.metaKey||N.shiftKey||N.altKey))switch(N.key){case"Backspace":case"Delete":N.preventDefault(),N.stopPropagation(),C();break}},{startsWith:v}=px({sensitivity:"base"}),D=hi({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let N=new Date;return N.setHours(0),D.formatToParts(N).find(Q=>Q.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let N=new Date;return N.setHours(12),D.formatToParts(N).find(Q=>Q.type==="dayPeriod").value},[D]),T=hi({year:"numeric",era:"narrow",timeZone:"UTC"}),F=b.useMemo(()=>{if(e.type!=="era")return[];let N=Lt(new Gt(1,1,1),t.calendar),Q=t.calendar.getEras().map(U=>{let ie=N.set({year:1,month:1,day:1,era:U}).toDate("UTC"),me=T.formatToParts(ie).find(ne=>ne.type==="era").value;return{era:U,formatted:me}}),L=YM(Q.map(U=>U.formatted));if(L)for(let U of Q)U.formatted=U.formatted.slice(L);return Q},[T,t.calendar,e.type]),S=N=>{if(t.isDisabled||t.isReadOnly)return;let Q=r.current+N;switch(e.type){case"dayPeriod":if(v(P,N))t.setSegment("dayPeriod",0);else if(v(E,N))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let L=F.find(U=>v(U.formatted,N));L&&(t.setSegment("era",L.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!w.isValidPartialNumber(Q))return;let L=w.parse(Q),U=L,ie=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":L>11&&(U=w.parse(N));break;case"h12":ie=!1,L>12&&(U=w.parse(N));break}e.value!==void 0&&e.value>=12&&L>1&&(L+=12)}else e.maxValue!==void 0&&L>e.maxValue&&(U=w.parse(N));if(isNaN(L))return;let oe=U!==0||ie;oe&&t.setSegment(e.type,U),e.maxValue!==void 0&&(+(L+"0")>e.maxValue||Q.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=Q;break}}},j=()=>{r.current="",n.current&&pd(n.current,{containingElement:ef(n.current)});let N=window.getSelection();N==null||N.collapse(n.current)},k=b.useRef(typeof document<"u"?document:null);wo(k,"selectionchange",()=>{var N;let Q=window.getSelection();Q!=null&&Q.anchorNode&&(!((N=n.current)===null||N===void 0)&&N.contains(Q==null?void 0:Q.anchorNode))&&Q.collapse(n.current)});let B=b.useRef("");wo(n,"beforeinput",N=>{if(n.current)switch(N.preventDefault(),N.inputType){case"deleteContentBackward":case"deleteContentForward":w.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":B.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:N.data!=null&&S(N.data);break}}),wo(n,"input",N=>{let{inputType:Q,data:L}=N;switch(Q){case"insertCompositionText":n.current&&(n.current.textContent=B.current),L!=null&&(v(P,L)||v(E,L))&&S(L);break}}),Ot(()=>{let N=n.current;return()=>{document.activeElement===N&&(d.focusPrevious()||d.focusNext())}},[n,d]);let Z=cl()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},V=b.useMemo(()=>t.segments.find(N=>N.isEditable),[t.segments]);e!==V&&!t.isInvalid&&(c=void 0);let q=gr(),H=!t.isDisabled&&!t.isReadOnly&&e.isEditable,z=e.type==="literal"?"":o.of(e.type),I=Tu({"aria-label":`${z}${u?`, ${u}`:""}${l?", ":""}`,"aria-labelledby":l});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:dt(x,I,{id:q,...Z,"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:H,suppressContentEditableWarning:H,spellCheck:H?"false":void 0,autoCorrect:H?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:H?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!H?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:$,onFocus:j,style:{caretColor:"transparent"},onPointerDown(N){N.stopPropagation()},onMouseDown(N){N.stopPropagation()}})}}function YM(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 ZM(e){return e&&e.__esModule?e.default:e}function JM(e,t,n){var r,i,o;let u=wi(ZM($l),"@react-aria/datepicker"),{isInvalid:l,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:p,fieldProps:h,descriptionProps:g,errorMessageProps:m}=lf({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||c}),x=h["aria-labelledby"]||h.id,{locale:w}=kn(),C=t.formatValue(w,{month:"long"}),$=C?u.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",v=dl($),D={"aria-label":u.format("startDate"),"aria-labelledby":x},P={"aria-label":u.format("endDate"),"aria-labelledby":x},E=gr(),T=gr(),F=Vg(t,n),S=[v["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=b.useMemo(()=>nf(n,{accept:I=>I.id!==E}),[n,E]),k={[NE]:j,[Us]:"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},B=Wi(e),{focusWithinProps:Z}=ju({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),V=b.useRef(Jo),q=b.useRef(Jo);var H,z;return{groupProps:dt(B,F,h,v,Z,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(I){t.isOpen||e.onKeyDown&&e.onKeyDown(I)},onKeyUp(I){t.isOpen||e.onKeyUp&&e.onKeyUp(I)}}),labelProps:{...p,onClick:()=>{j.focusFirst()}},buttonProps:{...v,id:E,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${E} ${x}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${x}`},startFieldProps:{...D,...k,value:(H=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&H!==void 0?H:null,onChange:I=>t.setDateTime("start",I),autoFocus:e.autoFocus,name:e.startName,[Ru]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(I){V.current=I,t.updateValidation(Ed(I,q.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...k,value:(z=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&z!==void 0?z:null,onChange:I=>t.setDateTime("end",I),name:e.endName,[Ru]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(I){q.current=I,t.updateValidation(Ed(V.current,I))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:g,errorMessageProps:m,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:l,validationErrors:c,validationDetails:d}}function QM(e,t){let{role:n="dialog"}=e,r=Au();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ga(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),ga(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),xM(),{dialogProps:{...Wi(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function vu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Cm(e,t,n,r,i){let o={};for(let l in t)o[l]=Math.floor(t[l]/2),o[l]>0&&t[l]%2===0&&o[l]--;let u=ta(e,t,n).subtract(o);return Qs(e,u,t,n,r,i)}function ta(e,t,n,r,i){let o=e;return t.years?o=EO(e):t.months?o=gl(e):t.weeks&&(o=qs(e,n)),Qs(e,o,t,n,r,i)}function Sm(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 u=ta(e,t,n).subtract(o);return Qs(e,u,t,n,r,i)}function Qs(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let u=Tg(t,ta(Hn(i),n,r));u&&(t=u)}if(o&&e.compare(o)<=0){let u=Ag(t,Sm(Hn(o),n,r));u&&(t=u)}return t}function fo(e,t,n){if(t){let r=Tg(e,Hn(t));r&&(e=r)}if(n){let r=Ag(e,Hn(n));r&&(e=r)}return e}function jE(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 UE(e){let t=b.useMemo(()=>new Ir(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:u,maxValue:l,selectionAlignment:c,isDateUnavailable:d,pageBehavior:p="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var g;let[m,x]=yr(e.value,(g=e.defaultValue)!==null&&g!==void 0?g:null,e.onChange),w=b.useMemo(()=>m?Lt(Hn(m),h):null,[m,h]),C=b.useMemo(()=>m&&"timeZone"in m?m.timeZone:n.timeZone,[m,n.timeZone]),$=b.useMemo(()=>e.focusedValue?fo(Lt(Hn(e.focusedValue),h),u,l):void 0,[e.focusedValue,h,u,l]),v=b.useMemo(()=>fo(e.defaultFocusedValue?Lt(Hn(e.defaultFocusedValue),h):w||Lt(of(C),h),u,l),[e.defaultFocusedValue,w,C,h,u,l]),[D,P]=yr($,v,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return ta(D,o,r,u,l);case"end":return Sm(D,o,r,u,l);case"center":default:return Cm(D,o,r,u,l)}}),[F,S]=b.useState(e.autoFocus||!1),j=b.useMemo(()=>{let L={...o};return L.days?L.days--:L.days=-1,E.add(L)},[E,o]),[k,B]=b.useState(h.identifier);if(h.identifier!==k){let L=Lt(D,h);T(Cm(L,o,r,u,l)),P(L),B(h.identifier)}vu(D,u,l)?P(fo(D,u,l)):D.compare(E)<0?T(Sm(D,o,r,u,l)):D.compare(j)>0&&T(ta(D,o,r,u,l));function Z(L){L=fo(L,u,l),P(L)}function V(L){if(!e.isDisabled&&!e.isReadOnly){let U=L;if(U===null){x(null);return}if(U=fo(U,u,l),U=jE(U,E,d),!U)return;U=Lt(U,(m==null?void 0:m.calendar)||new Gn),m&&"hour"in m?x(m.set(U)):x(U)}}let q=b.useMemo(()=>w?d&&d(w)?!0:vu(w,u,l):!1,[w,d,u,l]),H=e.isInvalid||e.validationState==="invalid"||q,z=H?"invalid":null,I=b.useMemo(()=>p==="visible"?o:hh(o),[p,o]);var N,Q;return{isDisabled:(N=e.isDisabled)!==null&&N!==void 0?N:!1,isReadOnly:(Q=e.isReadOnly)!==null&&Q!==void 0?Q:!1,value:w,setValue:V,visibleRange:{start:E,end:j},minValue:u,maxValue:l,focusedDate:D,timeZone:C,validationState:z,isValueInvalid:H,setFocusedDate(L){Z(L),S(!0)},focusNextDay(){Z(D.add({days:1}))},focusPreviousDay(){Z(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&Z(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&Z(D.subtract({weeks:1}))},focusNextPage(){let L=E.add(I);P(fo(D.add(I),u,l)),T(ta(Qs(D,L,I,r,u,l),I,r))},focusPreviousPage(){let L=E.subtract(I);P(fo(D.subtract(I),u,l)),T(ta(Qs(D,L,I,r,u,l),I,r))},focusSectionStart(){o.days?Z(E):o.weeks?Z(qs(D,r)):(o.months||o.years)&&Z(gl(D))},focusSectionEnd(){o.days?Z(j):o.weeks?Z(AO(D,r)):(o.months||o.years)&&Z(dm(D))},focusNextSection(L){if(!L&&!o.days){Z(D.add(hh(o)));return}o.days?this.focusNextPage():o.weeks?Z(D.add({months:1})):(o.months||o.years)&&Z(D.add({years:1}))},focusPreviousSection(L){if(!L&&!o.days){Z(D.subtract(hh(o)));return}o.days?this.focusPreviousPage():o.weeks?Z(D.subtract({months:1})):(o.months||o.years)&&Z(D.subtract({years:1}))},selectFocusedDate(){V(D)},selectDate(L){V(L)},isFocused:F,setFocused:S,isInvalid(L){return vu(L,u,l)},isSelected(L){return w!=null&&an(L,w)&&!this.isCellDisabled(L)&&!this.isCellUnavailable(L)},isCellFocused(L){return F&&D&&an(L,D)},isCellDisabled(L){return e.isDisabled||L.compare(E)<0||L.compare(j)>0||this.isInvalid(L)},isCellUnavailable(L){return e.isDateUnavailable?e.isDateUnavailable(L):!1},isPreviousVisibleRangeInvalid(){let L=E.subtract({days:1});return an(L,E)||this.isInvalid(L)},isNextVisibleRangeInvalid(){let L=j.add({days:1});return an(L,j)||this.isInvalid(L)},getDatesInWeek(L,U=E){let ie=U.add({weeks:L}),oe=[];ie=qs(ie,r);let me=Sg(ie,r);for(let ne=0;ne<me;ne++)oe.push(null);for(;oe.length<7;){oe.push(ie);let ne=ie.add({days:1});if(an(ie,ne))break;ie=ne}for(;oe.length<7;)oe.push(null);return oe}}}function hh(e){let t={...e};for(let n in e)t[n]=1;return t}function XM(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:u={months:1},minValue:l,maxValue:c,...d}=e,[p,h]=yr(t,n||null,r),[g,m]=b.useState(null),x="center";if(p&&p.start&&p.end){let N=Cm(Hn(p.start),u,o,l,c).add(u).subtract({days:1});p.end.compare(N)>0&&(x="start")}let w=b.useRef(null),[C,$]=b.useState(null),v=b.useMemo(()=>Tg(l,C==null?void 0:C.start),[l,C]),D=b.useMemo(()=>Ag(c,C==null?void 0:C.end),[c,C]),P=UE({...d,value:p&&p.start,createCalendar:i,locale:o,visibleDuration:u,minValue:v,maxValue:D,selectionAlignment:x}),E=I=>{if(I&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const N=O4(I,P,-1),Q=O4(I,P,1);w.current={start:N,end:Q},$(w.current)}else w.current=null,$(null)},[T,F]=b.useState(P.visibleRange);(!cm(P.visibleRange.start,T.start)||!cm(P.visibleRange.end,T.end))&&(E(g),F(P.visibleRange));let S=I=>{I?(m(I),E(I)):(m(null),E(null))},j=g?mh(g,P.focusedDate):p&&mh(p.start,p.end),k=I=>{if(e.isReadOnly)return;const N=fo(I,v,D),Q=jE(N,P.visibleRange.start,e.isDateUnavailable);if(Q)if(!g)S(Q);else{let L=mh(g,Q);L&&h({start:R4(L.start,p==null?void 0:p.start),end:R4(L.end,p==null?void 0:p.end)}),S(null)}},[B,Z]=b.useState(!1),{isDateUnavailable:V}=e,q=b.useMemo(()=>!p||g?!1:V&&(V(p.start)||V(p.end))?!0:vu(p.start,l,c)||vu(p.end,l,c),[V,p,g,l,c]),H=e.isInvalid||e.validationState==="invalid"||q;return{...P,value:p,setValue:h,anchorDate:g,setAnchorDate:S,highlightedRange:j,validationState:H?"invalid":null,isValueInvalid:H,selectFocusedDate(){k(P.focusedDate)},selectDate:k,highlightDate(I){g&&P.setFocusedDate(I)},isSelected(I){return!!(j&&I.compare(j.start)>=0&&I.compare(j.end)<=0&&!P.isCellDisabled(I)&&!P.isCellUnavailable(I))},isInvalid(I){var N,Q;return P.isInvalid(I)||vu(I,(N=w.current)===null||N===void 0?void 0:N.start,(Q=w.current)===null||Q===void 0?void 0:Q.end)},isDragging:B,setDragging:Z}}function mh(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:Hn(e),end:Hn(t)})}function R4(e,t){return e=Lt(e,(t==null?void 0:t.calendar)||new Gn),t&&"hour"in t?t.set(e):e}function O4(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 Am{*[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=u=>{if(this.keyMap.set(u.key,u),u.childNodes&&u.type==="section")for(let l of u.childNodes)n(l)};for(let u of t)n(u);let r=null,i=0;for(let[u,l]of this.keyMap)r?(r.nextKey=u,l.prevKey=r.key):(this.firstKey=u,l.prevKey=void 0),l.type==="item"&&(l.index=i++),r=l,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class Gr extends Set{constructor(t,n,r){super(t),t instanceof Gr?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function ek(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function tk(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,u=b.useRef(!1),[,l]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,p]=b.useState(null),h=b.useMemo(()=>F4(e.selectedKeys),[e.selectedKeys]),g=b.useMemo(()=>F4(e.defaultSelectedKeys,new Gr),[e.defaultSelectedKeys]),[m,x]=yr(h,g,e.onSelectionChange),w=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,$]=b.useState(i);i==="replace"&&C==="toggle"&&typeof m=="object"&&m.size===0&&$("replace");let v=b.useRef(i);return b.useEffect(()=>{i!==v.current&&($(i),v.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:$,get isFocused(){return u.current},setFocused(D){u.current=D,l(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,p(D)},selectedKeys:m,setSelectedKeys(D){(r||!ek(D,m))&&x(D)},disabledKeys:w,disabledBehavior:o}}function F4(e,t){return e?e==="all"?"all":new Gr(e):t}class nk{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&&ph(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&&ph(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 Gr([n],n,n);else{let u=this.state.selectedKeys;var i;let l=(i=u.anchorKey)!==null&&i!==void 0?i:n;r=new Gr(u,l,n);var o;for(let c of this.getKeyRange(l,(o=u.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,l))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?ph(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 u=this.collection.getItem(o);if(u&&(u.type==="item"||u.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 Gr(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 Gr([n],n,n):new Gr;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Gr;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 u=this.collection.getItem(r);(u==null?void 0:u.type)==="item"&&t.push(r);var o;u!=null&&u.hasChildNodes&&(this.allowsCellSelection||u.type!=="item")&&n((o=(i=MM(df(u,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 Gr)}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 rk(e){let{filter:t,layoutDelegate:n}=e,r=tk(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(p=>t?new Am(t(p)):new Am(p),[t]),u=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=FM(e,o,u),c=b.useMemo(()=>new nk(l,r,{layoutDelegate:n}),[l,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!l.getItem(r.focusedKey)&&d.current){const $=d.current.getItem(r.focusedKey),v=[...d.current.getKeys()].map(S=>{const j=d.current.getItem(S);return(j==null?void 0:j.type)==="item"?j:null}).filter(S=>S!==null),D=[...l.getKeys()].map(S=>{const j=l.getItem(S);return(j==null?void 0:j.type)==="item"?j:null}).filter(S=>S!==null);var p,h;const P=((p=v==null?void 0:v.length)!==null&&p!==void 0?p:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var g,m,x;let E=Math.min(P>1?Math.max(((g=$==null?void 0:$.index)!==null&&g!==void 0?g:0)-P+1,0):(m=$==null?void 0:$.index)!==null&&m!==void 0?m:0,((x=D==null?void 0:D.length)!==null&&x!==void 0?x:0)-1),T=null,F=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!F)E++;else{F=!0;var w,C;E>((w=$==null?void 0:$.index)!==null&&w!==void 0?w:0)&&(E=(C=$==null?void 0:$.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=l},[l,c,r,r.focusedKey]),{collection:l,disabledKeys:i,selectionManager:c}}function ik(e){var t;let[n,r]=yr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:u,selectionManager:l}=rk({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var p;let h=(p=d.values().next().value)!==null&&p!==void 0?p:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:u,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:c}}function Ng(e){let[t,n]=yr(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 ok(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:u=!0}=e,[l,c]=b.useState(!1),[d,p]=b.useState(!1),[h,g]=b.useState(null),m=Ae=>{e.onSelectionChange&&e.onSelectionChange(Ae),Ae===$&&(me(),U())};var x;let{collection:w,selectionManager:C,selectedKey:$,setSelectedKey:v,selectedItem:D,disabledKeys:P}=ik({...e,onSelectionChange:m,items:(x=e.items)!==null&&x!==void 0?x:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,F;$==null?E="":E=(F=(T=w.getItem($))===null||T===void 0?void 0:T.textValue)!==null&&F!==void 0?F:""}let[S,j]=yr(e.inputValue,E,e.onInputChange),k=w,B=b.useMemo(()=>e.items!=null||!n?w:ak(w,S,n),[w,S,n,e.items]),[Z,V]=b.useState(B),q=b.useRef("focus"),z=Ng({...e,onOpenChange:Ae=>{e.onOpenChange&&e.onOpenChange(Ae,Ae?q.current:void 0),C.setFocused(Ae),Ae||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),I=(Ae=null,ze)=>{let je=ze==="manual"||ze==="focus"&&r==="focus";(i||B.size>0||je&&k.size>0||e.items)&&(je&&!z.isOpen&&e.items===void 0&&c(!0),q.current=ze,g(Ae),z.open())},N=(Ae=null,ze)=>{let je=ze==="manual"||ze==="focus"&&r==="focus";!(i||B.size>0||je&&k.size>0||e.items)&&!z.isOpen||(je&&!z.isOpen&&e.items===void 0&&c(!0),z.isOpen||(q.current=ze),L(Ae))},Q=b.useCallback(()=>{V(l?k:B)},[l,k,B]),L=b.useCallback((Ae=null)=>{z.isOpen&&Q(),g(Ae),z.toggle()},[z,Q]),U=b.useCallback(()=>{z.isOpen&&(Q(),z.close())},[z,Q]),[ie,oe]=b.useState(S),me=()=>{var Ae,ze;let je=$!=null&&(ze=(Ae=w.getItem($))===null||Ae===void 0?void 0:Ae.textValue)!==null&&ze!==void 0?ze:"";oe(je),j(je)};var ne,ve;let ye=b.useRef((ve=(ne=e.selectedKey)!==null&&ne!==void 0?ne:e.defaultSelectedKey)!==null&&ve!==void 0?ve:null);var X;let ge=b.useRef($!=null&&(X=(t=w.getItem($))===null||t===void 0?void 0:t.textValue)!==null&&X!==void 0?X:"");b.useEffect(()=>{var Ae;d&&(B.size>0||i)&&!z.isOpen&&S!==ie&&r!=="manual"&&I(null,"input"),!l&&!i&&z.isOpen&&B.size===0&&U(),$!=null&&$!==ye.current&&U(),S!==ie&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&v(null)),$!==ye.current&&(e.inputValue===void 0||e.selectedKey===void 0)?me():ie!==S&&oe(S);var ze;let je=$!=null&&(ze=(Ae=w.getItem($))===null||Ae===void 0?void 0:Ae.textValue)!==null&&ze!==void 0?ze:"";!d&&$!=null&&e.inputValue===void 0&&$===ye.current&&ge.current!==je&&(oe(je),j(je)),ye.current=$,ge.current=je});let be=bl({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:$}),[S,$])}),pe=()=>{o&&$==null?ae():Re()},ae=()=>{ye.current=null,v(null),U()},Re=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Ae,ze;(Ae=e.onSelectionChange)===null||Ae===void 0||Ae.call(e,$);var je;let Jt=$!=null&&(je=(ze=w.getItem($))===null||ze===void 0?void 0:ze.textValue)!==null&&je!==void 0?je:"";oe(Jt),U()}else me(),U()};const et=()=>{if(o){var Ae,ze;const je=$!=null&&(ze=(Ae=w.getItem($))===null||Ae===void 0?void 0:Ae.textValue)!==null&&ze!==void 0?ze:"";S===je?Re():ae()}else Re()};let it=()=>{z.isOpen&&C.focusedKey!=null?$===C.focusedKey?Re():v(C.focusedKey):et()},hn=b.useRef(S),st=Ae=>{Ae?(hn.current=S,r==="focus"&&!e.isReadOnly&&I(null,"focus")):(u&&et(),S!==hn.current&&be.commitValidation()),p(Ae)},mn=b.useMemo(()=>z.isOpen?l?k:B:Z,[z.isOpen,k,B,l,Z]);return{...be,...z,focusStrategy:h,toggle:N,open:I,close:et,selectionManager:C,selectedKey:$,setSelectedKey:v,disabledKeys:P,isFocused:d,setFocused:st,selectedItem:D,collection:mn,inputValue:S,setInputValue:j,commit:it,revert:pe}}function ak(e,t,n){return new Am(zE(e,e,t,n))}function zE(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let u=zE(e,df(o,e),n,r);[...u].some(l=>l.type==="item")&&i.push({...o,childNodes:u})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var WE={};WE={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var HE={};HE={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var GE={};GE={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 qE={};qE={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 YE={};YE={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 ZE={};ZE={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var JE={};JE={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 QE={};QE={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 XE={};XE={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 e5={};e5={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 t5={};t5={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 n5={};n5={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var r5={};r5={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 i5={};i5={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 o5={};o5={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 a5={};a5={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var u5={};u5={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var s5={};s5={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 l5={};l5={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 c5={};c5={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 d5={};d5={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 f5={};f5={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 p5={};p5={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 h5={};h5={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 m5={};m5={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 g5={};g5={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var y5={};y5={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 v5={};v5={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 b5={};b5={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 $5={};$5={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 x5={};x5={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 w5={};w5={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var D5={};D5={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var E5={};E5={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var C5={};C5={"ar-AE":WE,"bg-BG":HE,"cs-CZ":GE,"da-DK":qE,"de-DE":YE,"el-GR":ZE,"en-US":JE,"es-ES":QE,"et-EE":XE,"fi-FI":e5,"fr-FR":t5,"he-IL":n5,"hr-HR":r5,"hu-HU":i5,"it-IT":o5,"ja-JP":a5,"ko-KR":u5,"lt-LT":s5,"lv-LV":l5,"nb-NO":c5,"nl-NL":d5,"pl-PL":f5,"pt-BR":p5,"pt-PT":h5,"ro-RO":m5,"ru-RU":g5,"sk-SK":y5,"sl-SI":v5,"sr-SP":b5,"sv-SE":$5,"tr-TR":x5,"uk-UA":w5,"zh-CN":D5,"zh-TW":E5};function uk(e){return e&&e.__esModule?e.default:e}const S5=new Ro(uk(C5));function A5(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function Sd(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,u=e!=null&&t!=null&&e.compare(t)<0,l=e!=null&&(r==null?void 0:r(e))||!1,c=o||u||l,d=[];if(c){let p=A5(),h=Ro.getGlobalDictionaryForPackage("@react-stately/datepicker")||S5,g=new M$(p,h),m=new Ir(p,ji({},i)),x=m.resolvedOptions().timeZone;u&&t!=null&&d.push(g.format("rangeUnderflow",{minValue:m.format(t.toDate(x))})),o&&n!=null&&d.push(g.format("rangeOverflow",{maxValue:m.format(n.toDate(x))})),l&&d.push(g.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:u,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function sk(e,t,n,r,i){var o;let u=Sd((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var l;let c=Sd((l=e==null?void 0:e.end)!==null&&l!==void 0?l:null,t,n,r,i),d=Ed(u,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let p=Ro.getGlobalDictionaryForPackage("@react-stately/datepicker")||S5;d=Ed(d,{isInvalid:!0,validationErrors:[p.getStringForLocale("rangeReversed",A5())],validationDetails:{...uf,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const lk={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},ck={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ji(e,t){e={...t.shouldForceLeadingZeros?ck:lk,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let u=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");u<0&&(u=0);let l=i.indexOf(r);if(l<0&&(l=2),u>l)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(u,l+1).reduce((p,h)=>(p[h]=e[h],p),{});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&&u===0&&(c.era="short"),c}function su(e){return e&&"hour"in e?e:new yl}function T5(e,t){if(e===null)return null;if(e)return Lt(e,t)}function Cs(e,t,n,r){if(e)return T5(e,n);let i=Lt(L$(r??ml()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?Hn(i):r?i:ei(i)}function Kg(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 u=e?n:i[1];return[t,u]}function dk(e){let t=Ng(e),[n,r]=yr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,u]=Kg(i,e.granularity),l=n!=null?n.toDate(u??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let p=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,g]=b.useState(null),[m,x]=b.useState(null);if(n&&(h=n,"hour"in n&&(m=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let w=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:u,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:w}),[o,e.hourCycle,e.shouldForceLeadingZeros,u,e.hideTimeZone,w]),{minValue:$,maxValue:v,isDateUnavailable:D}=e,P=b.useMemo(()=>Sd(n,$,v,D,C),[n,$,v,D,C]),E=bl({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,F=e.validationState||(T?"invalid":null),S=(B,Z)=>{r("timeZone"in Z?Z.set(Hn(B)):ei(B,Z)),g(null),x(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:m,setDateValue:B=>{let Z=typeof p=="function"?p():p;c?m||Z?S(B,m||su(e.defaultValue||e.placeholderValue)):g(B):(r(B),E.commitValidation()),Z&&t.setOpen(!1)},setTimeValue:B=>{h&&B?S(h,B):x(B)},granularity:o,hasTime:c,...t,setOpen(B){!B&&!n&&h&&c&&S(h,m||su(e.defaultValue||e.placeholderValue)),t.setOpen(B)},validationState:F,isInvalid:T,formatValue(B,Z){if(!l)return"";let V=ji(Z,C);return new Ir(B,V).format(l)},getDateFormatter(B,Z){let V={...C,...Z},q=ji({},V);return new Ir(B,q)}}}const fk=new Ro({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 pk(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?fk.getStringForLocale(e,n):"––"}const Ic={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},M4={year:5,month:2,day:7,hour:2,minute:15,second:15},hk={dayperiod:"dayPeriod"};function P5(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:u=!1,minValue:l,maxValue:c,isDateUnavailable:d}=e,p=e.value||e.defaultValue||e.placeholderValue||null,[h,g]=Kg(p,e.granularity),m=g||"UTC";if(p&&!(h in p))throw new Error("Invalid granularity "+h+" for value "+p.toString());let x=b.useMemo(()=>new Ir(t),[t]),w=b.useMemo(()=>n(x.resolvedOptions().calendar),[n,x]);var C;let[$,v]=yr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var X;return(X=T5($,w))!==null&&X!==void 0?X:null},[$,w]),[P,E]=b.useState(()=>Cs(e.placeholderValue,h,w,g)),T=D||P,F=w.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var X;return{granularity:h,maxGranularity:(X=e.maxGranularity)!==null&&X!==void 0?X:"year",timeZone:g,hideTimeZone:r,hourCycle:e.hourCycle,showEra:F,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,g,r,F]),j=b.useMemo(()=>ji({},S),[S]),k=b.useMemo(()=>new Ir(t,j),[t,j]),B=b.useMemo(()=>k.resolvedOptions(),[k]),Z=b.useMemo(()=>k.formatToParts(new Date).filter(X=>Ic[X.type]).reduce((X,ge)=>(X[ge.type]=!0,X),{}),[k]),[V,q]=b.useState(()=>e.value||e.defaultValue?{...Z}:{}),H=b.useRef(null),z=b.useRef(w.identifier);b.useEffect(()=>{w.identifier!==z.current&&(z.current=w.identifier,E(X=>Object.keys(V).length>0?Lt(X,w):Cs(e.placeholderValue,h,w,g)))},[w,h,V,g,e.placeholderValue]),$&&Object.keys(V).length<Object.keys(Z).length&&(V={...Z},q(V)),$==null&&Object.keys(V).length===Object.keys(Z).length&&(V={},q(V),E(Cs(e.placeholderValue,h,w,g)));let I=D&&Object.keys(V).length>=Object.keys(Z).length?D:P,N=X=>{if(e.isDisabled||e.isReadOnly)return;let ge=Object.keys(V),be=Object.keys(Z);X==null?(v(null),E(Cs(e.placeholderValue,h,w,g)),q({})):ge.length>=be.length||ge.length===be.length-1&&Z.dayPeriod&&!V.dayPeriod&&H.current!=="dayPeriod"?(X=Lt(X,(p==null?void 0:p.calendar)||new Gn),v(X)):E(X),H.current=null},Q=b.useMemo(()=>I.toDate(m),[I,m]),L=b.useMemo(()=>k.formatToParts(Q).map(X=>{let ge=Ic[X.type];X.type==="era"&&w.getEras().length===1&&(ge=!1);let be=Ic[X.type]&&!V[X.type],pe=Ic[X.type]?pk(X.type,X.value,t):null;return{type:hk[X.type]||X.type,text:be?pe:X.value,...mk(I,X.type,B),isPlaceholder:be,placeholder:pe,isEditable:ge}}),[Q,V,k,B,I,w,t]);Z.era&&V.year&&!V.era?(V.era=!0,q({...V})):!Z.era&&V.era&&(delete V.era,q({...V}));let U=X=>{V[X]=!0,X==="year"&&Z.era&&(V.era=!0),q({...V})},ie=(X,ge)=>{if(V[X])N(gk(I,X,ge,B));else{U(X);let be=Object.keys(V),pe=Object.keys(Z);(be.length>=pe.length||be.length===pe.length-1&&Z.dayPeriod&&!V.dayPeriod)&&N(I)}},oe=b.useMemo(()=>Sd($,l,c,d,S),[$,l,c,d,S]),me=bl({...e,value:$,builtinValidation:oe}),ne=me.displayValidation.isInvalid,ve=e.validationState||(ne?"invalid":null);var ye;return{...me,value:D,dateValue:Q,calendar:w,setValue:N,segments:L,dateFormatter:k,validationState:ve,isInvalid:ne,granularity:h,maxGranularity:(ye=e.maxGranularity)!==null&&ye!==void 0?ye:"year",isDisabled:i,isReadOnly:o,isRequired:u,increment(X){ie(X,1)},decrement(X){ie(X,-1)},incrementPage(X){ie(X,M4[X]||1)},decrementPage(X){ie(X,-(M4[X]||1))},setSegment(X,ge){U(X),N(yk(I,X,ge,B))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let X=Object.keys(V),ge=Object.keys(Z);X.length===ge.length-1&&Z.dayPeriod&&!V.dayPeriod&&(V={...Z},q(V),N(I.copy()))},clearSegment(X){delete V[X],H.current=X,q({...V});let ge=Cs(e.placeholderValue,h,w,g),be=I;if(X==="dayPeriod"&&"hour"in I&&"hour"in ge){let pe=I.hour>=12,ae=ge.hour>=12;pe&&!ae?be=I.set({hour:I.hour-12}):!pe&&ae&&(be=I.set({hour:I.hour+12}))}else X in I&&(be=I.set({[X]:ge[X]}));v(null),N(be)},formatValue(X){if(!D)return"";let ge=ji(X,S);return new Ir(t,ge).format(Q)},getDateFormatter(X,ge){let be={...S,...ge},pe=ji({},be);return new Ir(X,pe)}}}function mk(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:CO(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:SO(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 gk(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 yk(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 vk(e){var t,n;let r=Ng(e),[i,o]=yr(e.value,e.defaultValue||null,e.onChange),[u,l]=b.useState(()=>i||{start:null,end:null});i==null&&u.start&&u.end&&(u={start:null,end:null},l(u));let c=i||u,d=z=>{l(z||{start:null,end:null}),Go(z)?o(z):o(null)},p=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,g]=Kg(p,e.granularity),m=h==="hour"||h==="minute"||h==="second";var x;let w=(x=e.shouldCloseOnSelect)!==null&&x!==void 0?x:!0,[C,$]=b.useState(null),[v,D]=b.useState(null);c&&Go(c)&&(C=c,"hour"in c.start&&(v=c));let P=(z,I)=>{d({start:"timeZone"in I.start?I.start.set(Hn(z.start)):ei(z.start,I.start),end:"timeZone"in I.end?I.end.set(Hn(z.end)):ei(z.end,I.end)}),$(null),D(null),V.commitValidation()},E=z=>{let I=typeof w=="function"?w():w;m?Go(z)&&(v!=null&&v.start)&&(v!=null&&v.end)?P(z,{start:(v==null?void 0:v.start)||su(e.placeholderValue),end:(v==null?void 0:v.end)||su(e.placeholderValue)}):$(z):Go(z)?(d(z),V.commitValidation()):$(z),I&&r.setOpen(!1)},T=z=>{Go(C)&&Go(z)?P(C,z):D(z)},F=(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:g,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:F}),[h,e.hourCycle,e.shouldForceLeadingZeros,g,e.hideTimeZone,F]),{minValue:j,maxValue:k,isDateUnavailable:B}=e,Z=b.useMemo(()=>sk(c,j,k,B,S),[c,j,k,B,S]),V=bl({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(z=>z!=null),[e.startName,e.endName]),builtinValidation:Z}),q=V.displayValidation.isInvalid,H=e.validationState||(q?"invalid":null);return{...V,value:c,setValue:d,dateRange:C,timeRange:v,granularity:h,hasTime:m,setDate(z,I){var N,Q;E(z==="start"?{start:I,end:(N=C==null?void 0:C.end)!==null&&N!==void 0?N:null}:{start:(Q=C==null?void 0:C.start)!==null&&Q!==void 0?Q:null,end:I})},setTime(z,I){var N,Q;T(z==="start"?{start:I,end:(N=v==null?void 0:v.end)!==null&&N!==void 0?N:null}:{start:(Q=v==null?void 0:v.start)!==null&&Q!==void 0?Q:null,end:I})},setDateTime(z,I){var N,Q;d(z==="start"?{start:I,end:(N=c==null?void 0:c.end)!==null&&N!==void 0?N:null}:{start:(Q=c==null?void 0:c.start)!==null&&Q!==void 0?Q:null,end:I})},setDateRange:E,setTimeRange:T,...r,setOpen(z){!z&&!(c!=null&&c.start&&(c!=null&&c.end))&&Go(C)&&m&&P(C,{start:(v==null?void 0:v.start)||su(e.placeholderValue),end:(v==null?void 0:v.end)||su(e.placeholderValue)}),r.setOpen(z)},validationState:H,isInvalid:q,formatValue(z,I){if(!c||!c.start||!c.end)return null;let N="timeZone"in c.start?c.start.timeZone:void 0,Q=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),L="timeZone"in c.end?c.end.timeZone:void 0,U=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),ie=ji(I,{granularity:Q,timeZone:N,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(N||"UTC"),me=c.end.toDate(L||"UTC"),ne=new Ir(z,ie),ve;if(N===L&&Q===U&&c.start.compare(c.end)!==0){try{let ye=ne.formatRangeToParts(oe,me),X=-1;for(let pe=0;pe<ye.length;pe++){let ae=ye[pe];if(ae.source==="shared"&&ae.type==="literal")X=pe;else if(ae.source==="endRange")break}let ge="",be="";for(let pe=0;pe<ye.length;pe++)pe<X?ge+=ye[pe].value:pe>X&&(be+=ye[pe].value);return{start:ge,end:be}}catch{}ve=ne}else{let ye=ji(I,{granularity:U,timeZone:L,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});ve=new Ir(z,ye)}return{start:ne.format(oe),end:ve.format(me)}},getDateFormatter(z,I){let N={...S,...I},Q=ji({},N);return new Ir(z,Q)}}}function Go(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function bk(e){let{placeholderValue:t=new yl,minValue:n,maxValue:r,granularity:i,validate:o}=e;var u;let[l,c]=yr(e.value,(u=e.defaultValue)!==null&&u!==void 0?u:null,e.onChange),d=l||t,p=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,g=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?z$(Ss(t),D||h):Ss(t)},[t,d,h]),m=b.useMemo(()=>Ss(n,p),[n,p]),x=b.useMemo(()=>Ss(r,p),[r,p]),w=b.useMemo(()=>l&&"day"in l?G0(l):l,[l]),C=b.useMemo(()=>l==null?null:Ss(l),[l]);return{...P5({...e,value:C,defaultValue:void 0,minValue:m,maxValue:x,onChange:D=>{c(p||h?D:D&&G0(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:g??void 0,createCalendar:()=>new Gn,validate:b.useCallback(()=>o==null?void 0:o(l),[o,l])}),timeValue:w}}function Ss(e,t=of(ml())){return e?"day"in e?e:ei(t,e):null}var wa=[["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"]],$k="react-international-phone-",_5=(...e)=>e.filter(t=>!!t).join(" ").trim(),xk=(...e)=>_5(...e).split(" ").map(t=>`${$k}${t}`).join(" "),Fn=({addPrefix:e,rawClassNames:t})=>_5(xk(...e),...t),wk=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),u=e.slice(r),l=o,c=0;for(let d of t.split("")){if(c>=u.length){if(!i&&d!==n){l+=d;continue}break}d===n?(l+=u[c],c+=1):l+=d}return l},iu=e=>e?/^\d+$/.test(e):!1,ff=e=>e.replace(/\D/g,""),Dk=(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,u=r.bottom-i.bottom;o>=0&&u>=0||(Math.abs(o)<Math.abs(u)?e.scrollTop+=o:e.scrollTop-=u),e.style.display=n},Ek=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),Ck=(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=ff(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 u=()=>{let d=t.dialCode.length,p=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:p,phoneRightSide:h}},{phoneLeftSide:l,phoneRightSide:c}=u();return l=`${t.prefix}${l}${t.charAfterDialCode}`,c=wk({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(l=""),o(`${l}${c}`)},Sk=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let u=null;for(let p=r-1;p>=0;p-=1)if(iu(t[p])){u=p;break}if(u===null){for(let p=0;p<t.length;p+=1)if(iu(n[p]))return p;return t.length}let l=0;for(let p=0;p<u;p+=1)iu(t[p])&&(l+=1);let c=0,d=0;for(let p=0;p<n.length&&(c+=1,iu(n[p])&&(d+=1),!(d>=l+1));p+=1);if(o!=="backward")for(;!iu(n[c])&&c<n.length;)c+=1;return c},td=({phone:e,prefix:t})=>e?`${t}${ff(e)}`:"";function Tm({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:u,forceDialCode:l,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:p,disableFormatting:h}){let g=e;c&&(g=g.startsWith(`${o}`)?g:`${o}${t.dialCode}${g}`);let m=p?kk({phone:g,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,x=(m==null?void 0:m.country)??t,w=Ck(g,{prefix:o,mask:Fk({phone:g,country:x,defaultMask:d,disableFormatting:h}),maskChar:R5,dialCode:x.dialCode,trimNonDigitsEnd:r,charAfterDialCode:u,forceDialCode:l,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=p&&!(m!=null&&m.fullDialCodeMatch)?t:x;return{phone:td({phone:c?`${C.dialCode}${w}`:w,prefix:o}),inputValue:w,country:C}}var Ak=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},Tk=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,countryGuessingEnabled:c,defaultMask:d,disableFormatting:p,countries:h})=>{let g=e.nativeEvent,m=g.inputType,x=Ak(m),w=!!(m!=null&&m.startsWith("insertFrom")),C=m==="insertText",$=(g==null?void 0:g.data)||void 0,v=e.target.value,D=e.target.selectionStart??0;if(m!=null&&m.includes("history"))return{inputValue:r,phone:td({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!iu($)&&v!==i)return{inputValue:r,phone:td({phone:l?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-(($==null?void 0:$.length)??0),country:t};if(u&&!v.startsWith(`${i}${t.dialCode}`)&&!w){let S=v?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:td({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=Tm({value:v,country:t,trimNonDigitsEnd:x==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:u,disableDialCodeAndPrefix:l,disableFormatting:p,defaultMask:d}),F=Sk({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:E,leftOffset:u?i.length+t.dialCode.length+o.length:0,deletion:x});return{phone:P,inputValue:E,cursorPosition:F,country:T}},Pk=(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},_k=()=>{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}}},Rk={size:20,overrideLastItemDebounceMS:-1};function Ok(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...Rk,...t},[o,u]=b.useState(e),[l,c]=b.useState([o]),[d,p]=b.useState(0),h=_k();return[o,(g,m)=>{if(typeof g=="object"&&typeof o=="object"&&Pk(g,o)||g===o)return;let x=r>0,w=h.check(),C=x&&w!==void 0?w>r:!0;if((m==null?void 0:m.overrideLastItem)!==void 0?m.overrideLastItem:!C)c($=>[...$.slice(0,d),g]);else{let $=l.length>=n;c(v=>[...v.slice($?1:0,d+1),g]),$||p(v=>v+1)}u(g),i==null||i(g)},()=>{if(d<=0)return{success:!1};let g=l[d-1];return u(g),p(m=>m-1),i==null||i(g),{success:!0,value:g}},()=>{if(d+1>=l.length)return{success:!1};let g=l[d+1];return u(g),p(m=>m+1),i==null||i(g),{success:!0,value:g}}]}var R5=".",Or={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:wa,preferredCountries:[]},O5=({defaultCountry:e=Or.defaultCountry,value:t=Or.value,countries:n=Or.countries,prefix:r=Or.prefix,defaultMask:i=Or.defaultMask,charAfterDialCode:o=Or.charAfterDialCode,historySaveDebounceMS:u=Or.historySaveDebounceMS,disableCountryGuess:l=Or.disableCountryGuess,disableDialCodePrefill:c=Or.disableDialCodePrefill,forceDialCode:d=Or.forceDialCode,disableDialCodeAndPrefix:p=Or.disableDialCodeAndPrefix,disableFormatting:h=Or.disableFormatting,onChange:g,inputRef:m})=>{let x={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:p?!1:d,disableDialCodeAndPrefix:p,defaultMask:i,countryGuessingEnabled:!l,disableFormatting:h},w=b.useRef(null),C=m||w,$=q=>{Promise.resolve().then(()=>{var H;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((H=C.current)==null||H.setSelectionRange(q,q))})},[{phone:v,inputValue:D,country:P},E,T,F]=Ok(()=>{let q=lu({value:e,field:"iso2",countries:n});q||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let H=q||lu({value:"us",field:"iso2",countries:n}),{phone:z,inputValue:I,country:N}=Tm({value:t,country:H,insertDialCodeOnEmpty:!c,...x});return $(I.length),{phone:z,inputValue:I,country:N.iso2}},{overrideLastItemDebounceMS:u,onChange:({inputValue:q,phone:H,country:z})=>{if(!g)return;let I=S(z);g({phone:H,inputValue:q,country:I})}}),S=b.useCallback(q=>lu({value:q,field:"iso2",countries:n}),[n]),j=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let q=C.current;if(!q)return;let H=z=>{if(!z.key)return;let I=z.ctrlKey,N=z.metaKey,Q=z.shiftKey;if(z.key.toLowerCase()==="z"){if(Ek()){if(!N)return}else if(!I)return;Q?F():T()}};return q.addEventListener("keydown",H),()=>{q.removeEventListener("keydown",H)}},[C,T,F]);let k=q=>{q.preventDefault();let{phone:H,inputValue:z,country:I,cursorPosition:N}=Tk(q,{country:j,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...x});return E({inputValue:z,phone:H,country:I.iso2}),$(N),t},B=(q,H={focusOnInput:!1})=>{let z=lu({value:q,field:"iso2",countries:n});if(!z){console.error(`[react-international-phone]: can not find a country with "${q}" iso2 code`);return}let I=p?"":`${r}${z.dialCode}${o}`;E({inputValue:I,phone:`${r}${z.dialCode}`,country:z.iso2}),H.focusOnInput&&Promise.resolve().then(()=>{var N;(N=C.current)==null||N.focus()})},[Z,V]=b.useState(!1);return b.useEffect(()=>{if(!Z){V(!0),t!==v&&(g==null||g({inputValue:D,phone:v,country:j}));return}if(t===v)return;let{phone:q,inputValue:H,country:z}=Tm({value:t,country:j,insertDialCodeOnEmpty:!c,...x});E({phone:q,inputValue:H,country:z.iso2})},[t]),{phone:v,inputValue:D,country:j,setCountry:B,handlePhoneValueChange:k,inputRef:C}},Fk=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=l=>r?l.replace(new RegExp(`[^${R5}]`,"g"),""):l;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 u=Object.keys(i).find(l=>{if(l==="default")return!1;if(!(l.charAt(0)==="/"&&l.charAt(l.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${l}" for ${t.iso2} is not valid`),!1;let c=new RegExp(l.substring(1,l.length-1)),d=e.replace(t.dialCode,"");return c.test(ff(d))});return o(u?i[u]:i.default)},qr=e=>{let[t,n,r,i,o,u]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:u}},Mk=e=>`Field "${e}" is not supported`,lu=({field:e,value:t,countries:n=wa})=>{if(["priority"].includes(e))throw new Error(Mk(e));let r=n.find(i=>{let o=qr(i);return t===o[e]});if(r)return qr(r)},kk=({phone:e,countries:t=wa,currentCountryIso2:n})=>{var l;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=ff(e);if(!i)return r;let o=r,u=({country:c,fullDialCodeMatch:d})=>{var g,m;let p=c.dialCode===((g=o.country)==null?void 0:g.dialCode),h=(c.priority??0)<(((m=o.country)==null?void 0:m.priority)??0);(!p||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=qr(c),{dialCode:p,areaCodes:h}=d;if(i.startsWith(p)){let g=o.country?Number(p)>=Number(o.country.dialCode):!0;if(h){let m=i.substring(p.length);for(let x of h)if(m.startsWith(x))return{country:d,fullDialCodeMatch:!0}}(g||p===i||!o.fullDialCodeMatch)&&u({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<p.length&&p.startsWith(i)&&(!o.country||Number(p)<=Number(o.country.dialCode))&&u({country:d,fullDialCodeMatch:!1})}if(n){let c=lu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(p=>{if(!(p!=null&&p.areaCodes))return!1;let h=i.substring(p.dialCode.length);return p.areaCodes.some(g=>g.startsWith(h))})(c):!1;o&&((l=o.country)==null?void 0:l.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},Bk=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},Ik="abcdefghijklmnopqrstuvwxyz",Lk="1f1e6",k4=Ik.split("").reduce((e,t,n)=>({...e,[t]:Bk(Lk,n)}),{}),Vk=e=>[k4[e[0]],k4[e[1]]].join("-"),jg=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:u,...l})=>{if(!e)return b.createElement("img",{className:Fn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...l});let c=()=>{if(n)return n;let d=Vk(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Fn({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,...u},alt:"",...l})},Nk=1e3,Kk=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=wa,preferredCountries:i=[],flags:o,onSelect:u,onClose:l,...c})=>{let d=b.useRef(null),p=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],F=[...r];for(let S of i){let j=F.findIndex(k=>qr(k).iso2===S);if(j!==-1){let k=F.splice(j,1)[0];T.push(k)}}return T.concat(F)},[r,i]),g=b.useRef({updatedAt:void 0,value:""}),m=T=>{let F=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>Nk;g.current={value:F?T:`${g.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(j=>qr(j).name.toLowerCase().startsWith(g.current.value));S!==-1&&C(S)},x=b.useCallback(T=>h.findIndex(F=>qr(F).iso2===T),[h]),[w,C]=b.useState(x(n)),$=()=>{p.current!==n&&C(x(n))},v=b.useCallback(T=>{C(x(T.iso2)),u==null||u(T)},[u,x]),D=T=>{let F=h.length-1,S=j=>T==="prev"?j-1:T==="next"?j+1:T==="last"?F:0;C(j=>{let k=S(j);return k<0?0:k>F?F:k})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let F=qr(h[w]);v(F);return}if(T.key==="Escape"){l==null||l();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&&m(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||w===void 0)return;let T=qr(h[w]).iso2;if(T===p.current)return;let F=d.current.querySelector(`[data-country="${T}"]`);F&&(Dk(d.current,F),p.current=T)},[w,h]);return b.useEffect(()=>{E()},[w,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():$())},[e]),b.useEffect(()=>{$()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Fn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:l,tabIndex:-1,"aria-activedescendant":`react-international-phone__${qr(h[w]).iso2}-option`},h.map((T,F)=>{let S=qr(T),j=S.iso2===n,k=F===w,B=i.includes(S.iso2),Z=F===i.length-1,V=o==null?void 0:o.find(q=>q.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":j,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Fn({addPrefix:["country-selector-dropdown__list-item",B&&"country-selector-dropdown__list-item--preferred",j&&"country-selector-dropdown__list-item--selected",k&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>v(S),style:c.listItemStyle,title:S.name},b.createElement(jg,{iso2:S.iso2,src:V==null?void 0:V.src,className:Fn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Fn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Fn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),Z?b.createElement("hr",{className:Fn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},jk=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=wa,preferredCountries:o=[],flags:u,renderButtonWrapper:l,...c})=>{let[d,p]=b.useState(!1),h=b.useMemo(()=>{if(e)return lu({value:e,field:"iso2",countries:i})},[i,e]),g=b.useRef(null),m=w=>{w.key&&["ArrowUp","ArrowDown"].includes(w.key)&&(w.preventDefault(),p(!0))},x=()=>{var $;let w={title:h==null?void 0:h.name,onClick:()=>p(v=>!v),onMouseDown:v=>v.preventDefault(),onKeyDown:m,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Fn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(jg,{iso2:e,src:($=u==null?void 0:u.find(v=>v.iso2===e))==null?void 0:$.src,className:Fn({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:Fn({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 l?l({children:C,rootProps:w}):b.createElement("button",{...w,type:"button",className:Fn({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:Fn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:g},x(),b.createElement(Kk,{show:d,countries:i,preferredCountries:o,flags:u,onSelect:w=>{p(!1),t==null||t(w)},selectedCountry:e,onClose:()=>{p(!1)},...c.dropdownStyleProps}))},Uk=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Fn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=wa,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:u,flags:l,style:c,className:d,inputStyle:p,inputClassName:h,countrySelectorStyleProps:g,dialCodePreviewStyleProps:m,inputProps:x,placeholder:w,disabled:C,name:$,onFocus:v,onBlur:D,required:P,autoFocus:E,...T},F)=>{let{phone:S,inputValue:j,inputRef:k,country:B,setCountry:Z,handlePhoneValueChange:V}=O5({value:e,countries:n,...T,onChange:H=>{t==null||t(H.phone,{country:H.country,inputValue:H.inputValue})}}),q=T.disableDialCodeAndPrefix&&o&&(B==null?void 0:B.dialCode);return b.useImperativeHandle(F,()=>k.current?Object.assign(k.current,{setCountry:Z,state:{phone:S,inputValue:j,country:B}}):null,[k,Z,S,j,B]),b.createElement("div",{ref:F,className:Fn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(jk,{onSelect:H=>Z(H.iso2,{focusOnInput:!u}),flags:l,selectedCountry:B.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...g}),q&&b.createElement(Uk,{dialCode:B.dialCode,prefix:T.prefix??"+",disabled:C,...m}),b.createElement("input",{onChange:V,value:j,type:"tel",ref:k,className:Fn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:w,disabled:C,style:p,name:$,onFocus:v,onBlur:D,autoFocus:E,required:P,...x}))});var bo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pm={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",u="[object Array]",l="[object Boolean]",c="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",x="[object Object]",w="[object Promise]",C="[object RegExp]",$="[object Set]",v="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",F="[object Float32Array]",S="[object Float64Array]",j="[object Int8Array]",k="[object Int16Array]",B="[object Int32Array]",Z="[object Uint8Array]",V="[object Uint8ClampedArray]",q="[object Uint16Array]",H="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,I=/\w*$/,N=/^\[object .+?Constructor\]$/,Q=/^(?:0|[1-9]\d*)$/,L={};L[o]=L[u]=L[E]=L[T]=L[l]=L[c]=L[F]=L[S]=L[j]=L[k]=L[B]=L[g]=L[m]=L[x]=L[C]=L[$]=L[v]=L[D]=L[Z]=L[V]=L[q]=L[H]=!0,L[d]=L[p]=L[P]=!1;var U=typeof bo=="object"&&bo&&bo.Object===Object&&bo,ie=typeof self=="object"&&self&&self.Object===Object&&self,oe=U||ie||Function("return this")(),me=t&&!t.nodeType&&t,ne=me&&!0&&e&&!e.nodeType&&e,ve=ne&&ne.exports===me;function ye(M,ee){return M.set(ee[0],ee[1]),M}function X(M,ee){return M.add(ee),M}function ge(M,ee){for(var de=-1,Pe=M?M.length:0;++de<Pe&&ee(M[de],de,M)!==!1;);return M}function be(M,ee){for(var de=-1,Pe=ee.length,nn=M.length;++de<Pe;)M[nn+de]=ee[de];return M}function pe(M,ee,de,Pe){for(var nn=-1,Sn=M?M.length:0;++nn<Sn;)de=ee(de,M[nn],nn,M);return de}function ae(M,ee){for(var de=-1,Pe=Array(M);++de<M;)Pe[de]=ee(de);return Pe}function Re(M,ee){return M==null?void 0:M[ee]}function et(M){var ee=!1;if(M!=null&&typeof M.toString!="function")try{ee=!!(M+"")}catch{}return ee}function it(M){var ee=-1,de=Array(M.size);return M.forEach(function(Pe,nn){de[++ee]=[nn,Pe]}),de}function hn(M,ee){return function(de){return M(ee(de))}}function st(M){var ee=-1,de=Array(M.size);return M.forEach(function(Pe){de[++ee]=Pe}),de}var mn=Array.prototype,Ae=Function.prototype,ze=Object.prototype,je=oe["__core-js_shared__"],Jt=function(){var M=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return M?"Symbol(src)_1."+M:""}(),wn=Ae.toString,gn=ze.hasOwnProperty,Qt=ze.toString,qn=RegExp("^"+wn.call(gn).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sn=ve?oe.Buffer:void 0,Xt=oe.Symbol,Bn=oe.Uint8Array,ar=hn(Object.getPrototypeOf,Object),en=Object.create,Yn=ze.propertyIsEnumerable,tn=mn.splice,yt=Object.getOwnPropertySymbols,ur=sn?sn.isBuffer:void 0,sr=hn(Object.keys,Object),yn=Be(oe,"DataView"),In=Be(oe,"Map"),vn=Be(oe,"Promise"),Ln=Be(oe,"Set"),Dn=Be(oe,"WeakMap"),ln=Be(Object,"create"),br=Ei(yn),Tt=Ei(In),cn=Ei(vn),Oe=Ei(Ln),Ge=Ei(Dn),Nt=Xt?Xt.prototype:void 0,Zn=Nt?Nt.valueOf:void 0;function xe(M){var ee=-1,de=M?M.length:0;for(this.clear();++ee<de;){var Pe=M[ee];this.set(Pe[0],Pe[1])}}function Fe(){this.__data__=ln?ln(null):{}}function Ne(M){return this.has(M)&&delete this.__data__[M]}function Dt(M){var ee=this.__data__;if(ln){var de=ee[M];return de===r?void 0:de}return gn.call(ee,M)?ee[M]:void 0}function Kt(M){var ee=this.__data__;return ln?ee[M]!==void 0:gn.call(ee,M)}function En(M,ee){var de=this.__data__;return de[M]=ln&&ee===void 0?r:ee,this}xe.prototype.clear=Fe,xe.prototype.delete=Ne,xe.prototype.get=Dt,xe.prototype.has=Kt,xe.prototype.set=En;function _t(M){var ee=-1,de=M?M.length:0;for(this.clear();++ee<de;){var Pe=M[ee];this.set(Pe[0],Pe[1])}}function Ut(){this.__data__=[]}function Et(M){var ee=this.__data__,de=oi(ee,M);if(de<0)return!1;var Pe=ee.length-1;return de==Pe?ee.pop():tn.call(ee,de,1),!0}function ft(M){var ee=this.__data__,de=oi(ee,M);return de<0?void 0:ee[de][1]}function jr(M){return oi(this.__data__,M)>-1}function Oo(M,ee){var de=this.__data__,Pe=oi(de,M);return Pe<0?de.push([M,ee]):de[Pe][1]=ee,this}_t.prototype.clear=Ut,_t.prototype.delete=Et,_t.prototype.get=ft,_t.prototype.has=jr,_t.prototype.set=Oo;function Jn(M){var ee=-1,de=M?M.length:0;for(this.clear();++ee<de;){var Pe=M[ee];this.set(Pe[0],Pe[1])}}function qi(){this.__data__={hash:new xe,map:new(In||_t),string:new xe}}function Yi(M){return Me(this,M).delete(M)}function Zi(M){return Me(this,M).get(M)}function ut(M){return Me(this,M).has(M)}function Vn(M,ee){return Me(this,M).set(M,ee),this}Jn.prototype.clear=qi,Jn.prototype.delete=Yi,Jn.prototype.get=Zi,Jn.prototype.has=ut,Jn.prototype.set=Vn;function Qn(M){this.__data__=new _t(M)}function Cn(){this.__data__=new _t}function Ji(M){return this.__data__.delete(M)}function $r(M){return this.__data__.get(M)}function Ju(M){return this.__data__.has(M)}function Aa(M,ee){var de=this.__data__;if(de instanceof _t){var Pe=de.__data__;if(!In||Pe.length<n-1)return Pe.push([M,ee]),this;de=this.__data__=new Jn(Pe)}return de.set(M,ee),this}Qn.prototype.clear=Cn,Qn.prototype.delete=Ji,Qn.prototype.get=$r,Qn.prototype.has=Ju,Qn.prototype.set=Aa;function Qu(M,ee){var de=ns(M)||Rf(M)?ae(M.length,String):[],Pe=de.length,nn=!!Pe;for(var Sn in M)gn.call(M,Sn)&&!(nn&&(Sn=="length"||Nn(Sn,Pe)))&&de.push(Sn);return de}function Qi(M,ee,de){var Pe=M[ee];(!(gn.call(M,ee)&&ts(Pe,de))||de===void 0&&!(ee in M))&&(M[ee]=de)}function oi(M,ee){for(var de=M.length;de--;)if(ts(M[de][0],ee))return de;return-1}function Fo(M,ee){return M&&fe(ee,is(ee),M)}function Mo(M,ee,de,Pe,nn,Sn,wr){var An;if(Pe&&(An=Sn?Pe(M,nn,Sn,wr):Pe(M)),An!==void 0)return An;if(!ka(M))return M;var qt=ns(M);if(qt){if(An=bn(M),!ee)return re(M,An)}else{var ai=Ft(M),ui=ai==p||ai==h;if(rs(M))return Ra(M,ee);if(ai==x||ai==o||ui&&!Sn){if(et(M))return Sn?M:{};if(An=$n(ui?{}:M),!ee)return De(M,Fo(An,M))}else{if(!L[ai])return Sn?M:{};An=xr(M,ai,Mo,ee)}}wr||(wr=new Qn);var os=wr.get(M);if(os)return os;if(wr.set(M,An),!qt)var Ba=de?Ze(M):is(M);return ge(Ba||M,function(Tn,Lo){Ba&&(Lo=Tn,Tn=M[Lo]),Qi(An,Lo,Mo(Tn,ee,de,Pe,Lo,M,wr))}),An}function Ta(M){return ka(M)?en(M):{}}function Pa(M,ee,de){var Pe=ee(M);return ns(M)?Pe:be(Pe,de(M))}function Xu(M){return Qt.call(M)}function _a(M){if(!ka(M)||Bo(M))return!1;var ee=Bl(M)||et(M)?qn:N;return ee.test(Ei(M))}function ko(M){if(!Io(M))return sr(M);var ee=[];for(var de in Object(M))gn.call(M,de)&&de!="constructor"&&ee.push(de);return ee}function Ra(M,ee){if(ee)return M.slice();var de=new M.constructor(M.length);return M.copy(de),de}function Di(M){var ee=new M.constructor(M.byteLength);return new Bn(ee).set(new Bn(M)),ee}function es(M,ee){var de=ee?Di(M.buffer):M.buffer;return new M.constructor(de,M.byteOffset,M.byteLength)}function Oa(M,ee,de){var Pe=ee?de(it(M),!0):it(M);return pe(Pe,ye,new M.constructor)}function Xi(M){var ee=new M.constructor(M.source,I.exec(M));return ee.lastIndex=M.lastIndex,ee}function Fa(M,ee,de){var Pe=ee?de(st(M),!0):st(M);return pe(Pe,X,new M.constructor)}function R(M){return Zn?Object(Zn.call(M)):{}}function G(M,ee){var de=ee?Di(M.buffer):M.buffer;return new M.constructor(de,M.byteOffset,M.length)}function re(M,ee){var de=-1,Pe=M.length;for(ee||(ee=Array(Pe));++de<Pe;)ee[de]=M[de];return ee}function fe(M,ee,de,Pe){de||(de={});for(var nn=-1,Sn=ee.length;++nn<Sn;){var wr=ee[nn],An=void 0;Qi(de,wr,An===void 0?M[wr]:An)}return de}function De(M,ee){return fe(M,xt(M),ee)}function Ze(M){return Pa(M,is,xt)}function Me(M,ee){var de=M.__data__;return Ma(ee)?de[typeof ee=="string"?"string":"hash"]:de.map}function Be(M,ee){var de=Re(M,ee);return _a(de)?de:void 0}var xt=yt?hn(yt,Object):Ct,Ft=Xu;(yn&&Ft(new yn(new ArrayBuffer(1)))!=T||In&&Ft(new In)!=g||vn&&Ft(vn.resolve())!=w||Ln&&Ft(new Ln)!=$||Dn&&Ft(new Dn)!=P)&&(Ft=function(M){var ee=Qt.call(M),de=ee==x?M.constructor:void 0,Pe=de?Ei(de):void 0;if(Pe)switch(Pe){case br:return T;case Tt:return g;case cn:return w;case Oe:return $;case Ge:return P}return ee});function bn(M){var ee=M.length,de=M.constructor(ee);return ee&&typeof M[0]=="string"&&gn.call(M,"index")&&(de.index=M.index,de.input=M.input),de}function $n(M){return typeof M.constructor=="function"&&!Io(M)?Ta(ar(M)):{}}function xr(M,ee,de,Pe){var nn=M.constructor;switch(ee){case E:return Di(M);case l:case c:return new nn(+M);case T:return es(M,Pe);case F:case S:case j:case k:case B:case Z:case V:case q:case H:return G(M,Pe);case g:return Oa(M,Pe,de);case m:case v:return new nn(M);case C:return Xi(M);case $:return Fa(M,Pe,de);case D:return R(M)}}function Nn(M,ee){return ee=ee??i,!!ee&&(typeof M=="number"||Q.test(M))&&M>-1&&M%1==0&&M<ee}function Ma(M){var ee=typeof M;return ee=="string"||ee=="number"||ee=="symbol"||ee=="boolean"?M!=="__proto__":M===null}function Bo(M){return!!Jt&&Jt in M}function Io(M){var ee=M&&M.constructor,de=typeof ee=="function"&&ee.prototype||ze;return M===de}function Ei(M){if(M!=null){try{return wn.call(M)}catch{}try{return M+""}catch{}}return""}function _f(M){return Mo(M,!0,!0)}function ts(M,ee){return M===ee||M!==M&&ee!==ee}function Rf(M){return Of(M)&&gn.call(M,"callee")&&(!Yn.call(M,"callee")||Qt.call(M)==o)}var ns=Array.isArray;function kl(M){return M!=null&&Ff(M.length)&&!Bl(M)}function Of(M){return Mf(M)&&kl(M)}var rs=ur||wt;function Bl(M){var ee=ka(M)?Qt.call(M):"";return ee==p||ee==h}function Ff(M){return typeof M=="number"&&M>-1&&M%1==0&&M<=i}function ka(M){var ee=typeof M;return!!M&&(ee=="object"||ee=="function")}function Mf(M){return!!M&&typeof M=="object"}function is(M){return kl(M)?Qu(M):ko(M)}function Ct(){return[]}function wt(){return!1}e.exports=_f})(Pm,Pm.exports);var $o=Pm.exports,_m=function(){return _m=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},_m.apply(this,arguments)};function zk(e,t,n,r){function i(o){return o instanceof n?o:new n(function(u){u(o)})}return new(n||(n=Promise))(function(o,u){function l(p){try{d(r.next(p))}catch(h){u(h)}}function c(p){try{d(r.throw(p))}catch(h){u(h)}}function d(p){p.done?o(p.value):i(p.value).then(l,c)}d((r=r.apply(e,[])).next())})}function Wk(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,u=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return u.next=l(0),u.throw=l(1),u.return=l(2),typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(d){return function(p){return c([d,p])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=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(p){d=[6,p],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Ad(e,t,n,r,i){return zk(this,void 0,void 0,function(){var o,u;return Wk(this,function(l){switch(l.label){case 0:if(n===void 0)return[2];u=0,l.label=1;case 1:return u<n.length?[4,n[u](e,t,r,i,n)]:[3,4];case 2:if(o=l.sent(),o==="canceled")return[3,4];l.label=3;case 3:return u++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var Rm=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:_m({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},Hk=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var u=$o(n);Ad(t,u,r,this.htmlPluginState,i).then(function(l){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=Rm(i,l);o.imgElement.setAttribute("src",u.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=$o(t);Ad(this.imgElement,o,n,this.htmlPluginState).then(function(u){if(i.isMounted){var l=Rm(r,u);i.imgElement.setAttribute("src",o.toURL(l))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let Vt=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}},Gk=class extends Error{constructor(t="Unsupported"){super(t)}};function Ug(e){return new Gk(e)}function qk(){return this._qualifierModel||{error:Ug(`unsupported qualifier ${this.constructor.name}`)}}let Yk=class{constructor(){this._qualifierModel={}}toJson(){return qk.apply(this)}},Ye=class extends Yk{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vt?this.qualifierValue=n:(this.qualifierValue=new Vt,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}},Vr=class extends Ye{constructor(t,n){let r;n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function Zk(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function Jk(){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:Ug(`unsupported action ${this.constructor.name}`)}}let Qk=class{constructor(){this._actionModel={}}toJson(){return Jk.apply(this)}},ti=class extends Qk{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(),Zk(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 Vr(r)):this.qualifiers.set(n,new Ye(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Vr(t)):t instanceof Vr&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class zg extends ti{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class pf extends zg{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ye("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ye("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ye("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ye("h",t)),this}static fromJson(t){const n=new pf;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 Xk(){return new pf}function F5(){return new zg("faces")}function eB(){return new zg("ocr_text")}class tB extends ti{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 Ye("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ye("e",`blur_region${t}`)),this.addQualifier(new Ye("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ye("e",`blur_faces${t}`))):this.addQualifier(new Ye("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(F5()),r&&r.regionType==="ocr_text"&&i.region(eB()),r&&r.regionType==="custom"&&i.region(pf.fromJson(r)),i}}function Da(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const M5={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},nB={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},k5={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},B5={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},rB={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},I5={444:"CHROMA_444",420:"CHROMA_420"},iB={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},oB=Da(I5);Da(iB);const aB=Da(M5),uB=Da(nB),L5=Da(k5);Da(B5);Da(rB);class V5 extends ti{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=L5[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new Vt([t,`${n}`]).setDelimiter(":"):r=new Vt(t),new Ye("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=k5[n]||n;return new this(o,r||i)}}class sB extends V5{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=L5[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 hf(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class lB extends ti{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 Vt(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Vt(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Vt(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Vt(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Vt(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ye("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:u,numOfColors:l}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),u&&c.detailsLevel(u),l&&c.numOfColors(l),c}}class cB extends sB{level(t){return this._actionModel.level=t,this.setLevel(t)}}class dB extends ti{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ye("e",new Vt("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ye("e",new Vt(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ye("e",new Vt(["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 fB extends cB{color(t){return this._actionModel.color=t,this.addQualifier(new Ye("co",new Vt(hf(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class pB extends ti{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 Ye("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ye("e",`pixelate_region${t}`)),this.addQualifier(new Ye("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ye("e",`pixelate_faces${t}`))):this.addQualifier(new Ye("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(F5()),n&&n.regionType==="custom"&&i.region(Xk()),i}}function hB(e){return new tB(e)}function mB(){return new V5("grayscale")}function B4(e){return new fB("colorize",e)}function gB(){return new lB}function yB(){return new dB}function vB(e){return new pB(e)}let bB=class extends ti{constructor(t){super(),this._actionModel={},this.addQualifier(new Ye("b",new Vt(hf(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},I4=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ug(`unsupported action ${this.constructor.name}`)}}};function $B(e){const t=e;return"error"in t&&!!t.error}function xB(){return new Vr("ignore_aspect_ratio")}function wB(){return new Vr("lossy")}function DB(){return new Vr("preserve_transparency")}function EB(e){return new Vr("progressive",e)}function CB(){return new Vr("region_relative")}function SB(){return new Vr("relative")}let Wg=class extends Vt{constructor(t){super(t),this.val=t}getValue(){return this.val}},N5=class extends ti{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Wg?i=n.getValue():i=n,this._actionModel.actionType=uB[t],this._actionModel[r]=i,this.addQualifier(new Ye(t,n))}},AB=class extends Vr{constructor(t){super("progressive",t)}},Om=class extends N5{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(wB()),this}progressive(t){return t instanceof AB?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(EB(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(DB()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let u;return n?u=new this("f",n):u=new this("f"),i&&(i.mode?u.progressive(i.mode):u.progressive()),r&&u.lossy(),o&&u.preserveTransparency(),u}},mf=class K5{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 I4(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof K5?this.actions=this.actions.concat(t.actions):this.actions.push(new I4(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 Om("q",t)),this}format(t){return this.addAction(new Om("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 bB(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new ti;let r=t;return typeof t=="string"&&(r=new Vr(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($B(r))return r;t.push(r)}return{actions:t}}};function L4(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 TB extends Vt{}class PB extends ti{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=aB[t]||t,this.addQualifier(new Ye("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ye("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ye("w",t))}aspectRatio(t){if(t instanceof TB)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ye("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=L4(t),this.addQualifier(new Ye("ar",L4(t)));if(t instanceof Vr)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(SB())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(CB())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:u,width:l,height:c}=r,d=M5[n]||n,p=new this(d,l,c);return u&&p.aspectRatio(u==="ignore_aspect_ratio"?xB():u),i&&p.relative(),o&&p.regionRelative(),p}}class Hg extends Ye{constructor(t){super("g",new Vt(t))}}class j5 extends Hg{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class U5 extends Hg{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class z5 extends Hg{constructor(t){super(t)}}function _B(e){return new z5(e)}function W5(...e){const t=[...e];return new U5(t)}function H5(){return new j5}class Ou extends Vt{constructor(t){super(),this.name=t}toString(){return this.name}}function RB(){return new Ou("ocr_text")}function OB(e){return e&&`${e}`.split(":")[0]==="auto"}function FB(e){const t=Gg(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Gg(e){return`${e}`.replace("g_","")}function MB(e){return{compass:Gg(e),gravityType:"direction"}}function kB(e){return Gg(e)==="ocr_text"}function BB(){return{gravityType:"ocr"}}function IB(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function LB(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 G5(e){let t;const n=e==="auto"?new j5: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(LB)}}function VB(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),u=H5().autoFocus(...o);i.fallbackGravity=G5(u)}return i}function NB(e){const n=e.split(":").map(r=>new Ou(r));return new U5(n)}function KB(e){return FB(e)?MB(e):kB(e)?BB():OB(e)||IB(e)?G5(e):VB(typeof e=="string"?NB(e):e)}class qg extends Vt{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof Ou?t:new Ou(t);return new qg(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 q5 extends Vt{constructor(t){super(),this.val=t}toString(){return this.val}}function jB(e){return e.gravityType==="direction"}function UB(e){return e.gravityType==="ocr"}function zB(e){return e.gravityType==="auto"}function WB(e){const{object:t,weight:n,avoid:r}=e,i=new qg(new Ou(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function Y5(e){const n=(e.autoFocus||[]).map(WB);return H5().autoFocus(...n)}function HB(e){const t=(e.focusOnObjects||[]).map(r=>new Ou(r)),n=W5(...t);if(e.fallbackGravity){const r=Y5(e.fallbackGravity);n.fallbackGravity(r)}return n}function GB(e){return jB(e)?new z5(new q5(e.compass)):UB(e)?W5(RB()):zB(e)?Y5(e):HB(e)}class Yg extends PB{gravity(t){this._actionModel.gravity=KB(t);const n=typeof t=="string"?new Ye("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(GB(t.gravity)),n}}class xl extends Ye{constructor(t){super("b"),t&&this.addValue(t)}}const Z5=100,qB=0;class YB extends xl{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}`:`:${Z5}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var J5=YB;class Zg extends xl{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>hf(n)),this}}class Q5 extends Zg{toString(){return`
95
- b_auto:border
96
- ${this._contrast?"_contrast":""}
97
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
98
- `.replace(/\s+/g,"")}}class X5 extends Zg{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class eC extends X5{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 tC extends X5{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 nC extends Zg{toString(){return`
111
- b_auto:predominant
112
- ${this._contrast?"_contrast":""}
113
- ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
114
- `.replace(/\s+/g,"")}}class rC extends xl{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 iC(e){return`${e}`.replace("b_","")}function ZB(){return{backgroundType:"auto"}}function JB(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 Jg(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function QB(e){return Object.assign(Object.assign({},Jg(e)),{backgroundType:"border"})}function oC(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=Jg(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function XB(e){return Object.assign(Object.assign({},oC(e)),{backgroundType:"borderGradient"})}function eI(e){return{backgroundType:"color",color:iC(e)}}function tI(e){return Object.assign(Object.assign({},Jg(e)),{backgroundType:"predominant"})}function nI(e){return Object.assign(Object.assign({},oC(e)),{backgroundType:"predominantGradient"})}function rI(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function iI(e){return iC(e)==="auto"?ZB():e instanceof J5?JB(e):e instanceof Q5?QB(e):e instanceof eC?XB(e):e instanceof nC?tI(e):e instanceof tC?nI(e):e instanceof rC?rI(e):eI(e)}function oI(){return new Wg("svg")}function Qg(){return new Wg("auto")}function aC(){return new Q5}function uC(){return new xl("auto")}function sC(){return new eC}function lC(){return new tC}function cC(){return new nC}function dC(e){return new xl(hf(e))}function aI(){return new J5}function fC(){return new rC}const pC={auto:uC,border:aC,borderGradient:sC,predominantGradient:lC,predominant:cC,color:dC,blurred:aI,generativeFill:fC};function uI(e){const{brightness:t,intensity:n}=e,r=pC.blurred();return r.brightness(t??qB),r.intensity(n??Z5),r}function V4(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 N4(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function sI(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function lI(e){const{backgroundType:t}=e;switch(t){case"auto":return uC();case"blurred":return uI(e);case"border":return N4(aC(),e);case"borderGradient":return V4(sC(),e);case"predominant":return N4(cC(),e);case"predominantGradient":return V4(lC(),e);case"generativeFill":return sI(fC(),e);default:return dC(e.color)}}class cI extends Yg{background(t){return this._actionModel.background=iI(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ye("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ye("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(lI(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class dI extends Yg{x(t){return this._actionModel.x=t,this.addQualifier(new Ye("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ye("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ye("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 fI extends Yg{x(t){return this._actionModel.x=t,this.addQualifier(new Ye("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ye("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 pI(e,t){return new dI("crop",e,t)}function hI(e,t){return new fI("fill",e,t)}function mI(e,t){return new cI("pad",e,t)}class gI extends N5{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=I5[t];const n=new Vt([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Ye("q",n))}quantization(t){this._actionModel.quantization=t;const n=new Vt([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ye("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=B5[n]||n,u=new this(o);if(r){const l=oB[r.toUpperCase()];l&&u.chromaSubSampling(+l)}return i&&u.quantization(i),u}}function gf(e){return new Om("f",e)}function yf(e){return new gI(e)}function yI(){return new q5("north_east")}B4(70).color("black"),B4(40).color("white"),mB(),yB();var vI=new mf().effect(gB()).delivery(yf("auto")).delivery(gf(oI())),bI=new mf().effect(vB()).delivery(yf("auto")).delivery(gf(Qg())),$I=new mf().effect(hB(2e3)).delivery(yf("auto")).delivery(gf(Qg())),xI=new mf().resize(mI("iw_div_2").aspectRatio(1).background(pC.auto())).resize(pI(1,1).gravity(_B(yI()))).resize(hI().height("ih").width("iw")).delivery(yf("auto")).delivery(gf(Qg())),K4={vectorize:vI,pixelate:bI,blur:$I,"predominant-color":xI},j4="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",U4={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},z4="?_a=",wI=function(){function e(t,n,r,i,o,u,l){var c=this;this.mimeType="video",this.mimeSubTypes=U4,this.videoElement=t,this.originalVideo=n,this.videoOptions=l,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=$o(n);Ad(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(p){p()}),c.setVideoAttributes(o,u),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($o(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,u=i.codecs,l=i.transcode;return r.appendSourceTag($o(t).transcode(l),o,r.buildMimeType(o,u))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),u=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;u&&t.format(n);var l=t.toURL(),c=l.split(z4),d=c[1]?"".concat(z4).concat(c[1]):"",p=u?"":".".concat(n);o.src="".concat(c[0]).concat(p).concat(d),o.type=r||"video/".concat(U4[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=$o(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,u=Object.entries(t);o<u.length;o++){var l=u[o],c=l[0],d=l[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var u=this;if(t!==this.originalVideo){for(var l=this.videoElement.getElementsByTagName("SOURCE");l[0];)l[0].parentNode.removeChild(l[0]);Ad(this.videoElement,t,r,this.htmlPluginState).then(function(){u.setVideoAttributes(i,o),u.handleSourceToVideo(t,n),u.videoElement.load()})}},e}(),DI=typeof bo=="object"&&bo&&bo.Object===Object&&bo,EI=typeof self=="object"&&self&&self.Object===Object&&self;DI||EI||Function("return this")();function Xg(){return typeof window<"u"}function CI(e){return e instanceof HTMLImageElement}function SI(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return AI.bind(null,r,o)}function AI(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Xg()?new Promise(function(u){var l=function(){return u({lazyload:!0})},c=PI(n,l,e,t);i.cleanupCallbacks.push(function(){c(),u("canceled")})}):!1}function TI(){return window&&"IntersectionObserver"in window}function PI(e,t,n,r){try{if(!TI())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(u){u.isIntersecting&&(i.unobserve(u.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function _I(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return RI.bind(null,r)}function RI(e,t,n,r,i,o){K4[e]||(e="vectorize");var u=K4[e].actions,l=$o(n);if(u.forEach(function(d){l.addAction(d)}),!Xg())return n.transformation=l.transformation,!0;if(CI(t)){l.transformation.actions.forEach(function(d,p){d instanceof ti&&d.getActionTag()==="responsive"&&delete l.transformation.actions[p]});var c=Rm(i,{placeholder:!0});return t.src=l.toURL(c),t.onerror=function(){t.src=j4},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=j4,d("canceled")});var p=new Image;p.src=n.toURL(c),p.onload=function(){d({placeholder:!0})},p.onerror=function(){d({placeholder:!0})}})})}}function OI(e,t,n){var r=$o(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 Td(e){e.cleanupCallbacks.forEach(function(t){t()})}var Fm=function(e,t){return Fm=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])},Fm(e,t)};function hC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Xs=function(){return Xs=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},Xs.apply(this,arguments)};function mC(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 el={exports:{}},$t={};/*
115
- object-assign
116
- (c) Sindre Sorhus
117
- @license MIT
118
- */var W4=Object.getOwnPropertySymbols,FI=Object.prototype.hasOwnProperty,MI=Object.prototype.propertyIsEnumerable;function kI(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function BI(){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 gC=BI()?Object.assign:function(e,t){for(var n,r=kI(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var u in n)FI.call(n,u)&&(r[u]=n[u]);if(W4){i=W4(n);for(var l=0;l<i.length;l++)MI.call(n,i[l])&&(r[i[l]]=n[i[l]])}}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 ey=gC,ni=typeof Symbol=="function"&&Symbol.for,wl=ni?Symbol.for("react.element"):60103,II=ni?Symbol.for("react.portal"):60106,LI=ni?Symbol.for("react.fragment"):60107,VI=ni?Symbol.for("react.strict_mode"):60108,NI=ni?Symbol.for("react.profiler"):60114,KI=ni?Symbol.for("react.provider"):60109,jI=ni?Symbol.for("react.context"):60110,UI=ni?Symbol.for("react.forward_ref"):60112,zI=ni?Symbol.for("react.suspense"):60113,WI=ni?Symbol.for("react.memo"):60115,HI=ni?Symbol.for("react.lazy"):60116,H4=typeof Symbol=="function"&&Symbol.iterator;function Dl(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 yC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vC={};function Uu(e,t,n){this.props=e,this.context=t,this.refs=vC,this.updater=n||yC}Uu.prototype.isReactComponent={};Uu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Dl(85));this.updater.enqueueSetState(this,e,t,"setState")};Uu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bC(){}bC.prototype=Uu.prototype;function ty(e,t,n){this.props=e,this.context=t,this.refs=vC,this.updater=n||yC}var ny=ty.prototype=new bC;ny.constructor=ty;ey(ny,Uu.prototype);ny.isPureReactComponent=!0;var ry={current:null},$C=Object.prototype.hasOwnProperty,xC={key:!0,ref:!0,__self:!0,__source:!0};function wC(e,t,n){var r,i={},o=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(o=""+t.key),t)$C.call(t,r)&&!xC.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:wl,type:e,key:o,ref:u,props:i,_owner:ry.current}}function GI(e,t){return{$$typeof:wl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function iy(e){return typeof e=="object"&&e!==null&&e.$$typeof===wl}function qI(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var DC=/\/+/g,Pd=[];function EC(e,t,n,r){if(Pd.length){var i=Pd.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 CC(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Pd.length&&Pd.push(e)}function Mm(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 wl:case II:o=!0}}if(o)return n(r,e,t===""?"."+gh(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){i=e[u];var l=t+gh(i,u);o+=Mm(i,l,n,r)}else if(e===null||typeof e!="object"?l=null:(l=H4&&e[H4]||e["@@iterator"],l=typeof l=="function"?l:null),typeof l=="function")for(e=l.call(e),u=0;!(i=e.next()).done;)i=i.value,l=t+gh(i,u++),o+=Mm(i,l,n,r);else if(i==="object")throw n=""+e,Error(Dl(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function km(e,t,n){return e==null?0:Mm(e,"",t,n)}function gh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qI(e.key):t.toString(36)}function YI(e,t){e.func.call(e.context,t,e.count++)}function ZI(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Bm(e,r,n,function(o){return o}):e!=null&&(iy(e)&&(e=GI(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(DC,"$&/")+"/")+n)),r.push(e))}function Bm(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(DC,"$&/")+"/"),t=EC(t,o,r,i),km(e,ZI,t),CC(t)}var SC={current:null};function Gi(){var e=SC.current;if(e===null)throw Error(Dl(321));return e}var JI={ReactCurrentDispatcher:SC,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:ry,IsSomeRendererActing:{current:!1},assign:ey};$t.Children={map:function(e,t,n){if(e==null)return e;var r=[];return Bm(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=EC(null,null,t,n),km(e,YI,t),CC(t)},count:function(e){return km(e,function(){return null},null)},toArray:function(e){var t=[];return Bm(e,t,null,function(n){return n}),t},only:function(e){if(!iy(e))throw Error(Dl(143));return e}};$t.Component=Uu;$t.Fragment=LI;$t.Profiler=NI;$t.PureComponent=ty;$t.StrictMode=VI;$t.Suspense=zI;$t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JI;$t.cloneElement=function(e,t,n){if(e==null)throw Error(Dl(267,e));var r=ey({},e.props),i=e.key,o=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,u=ry.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)$C.call(t,c)&&!xC.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:wl,type:e.type,key:i,ref:o,props:r,_owner:u}};$t.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:jI,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:KI,_context:e},e.Consumer=e};$t.createElement=wC;$t.createFactory=function(e){var t=wC.bind(null,e);return t.type=e,t};$t.createRef=function(){return{current:null}};$t.forwardRef=function(e){return{$$typeof:UI,render:e}};$t.isValidElement=iy;$t.lazy=function(e){return{$$typeof:HI,_ctor:e,_status:-1,_result:null}};$t.memo=function(e,t){return{$$typeof:WI,type:e,compare:t===void 0?null:t}};$t.useCallback=function(e,t){return Gi().useCallback(e,t)};$t.useContext=function(e,t){return Gi().useContext(e,t)};$t.useDebugValue=function(){};$t.useEffect=function(e,t){return Gi().useEffect(e,t)};$t.useImperativeHandle=function(e,t,n){return Gi().useImperativeHandle(e,t,n)};$t.useLayoutEffect=function(e,t){return Gi().useLayoutEffect(e,t)};$t.useMemo=function(e,t){return Gi().useMemo(e,t)};$t.useReducer=function(e,t,n){return Gi().useReducer(e,t,n)};$t.useRef=function(e){return Gi().useRef(e)};$t.useState=function(e){return Gi().useState(e)};$t.version="16.14.0";var bt={},QI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",XI=QI,eL=Function.call.bind(Object.prototype.hasOwnProperty),Im=function(){};if(process.env.NODE_ENV!=="production"){var tL=XI,Lm={},nL=eL;Im=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function AC(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(nL(e,o)){var u;try{if(typeof e[o]!="function"){var l=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 l.name="Invariant Violation",l}u=e[o](t,o,r,n,null,tL)}catch(d){u=d}if(u&&!(u instanceof Error)&&Im((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in Lm)){Lm[u.message]=!0;var c=i?i():"";Im("Failed "+n+" type: "+u.message+(c??""))}}}}AC.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Lm={})};var rL=AC;/** @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=gC,t=rL,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,u=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,g=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,x=r?Symbol.for("react.suspense_list"):60120,w=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,$=r?Symbol.for("react.block"):60121,v=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 F(R){if(R===null||typeof R!="object")return null;var G=E&&R[E]||R[T];return typeof G=="function"?G:null}var S={current:null},j={suspense:null},k={current:null},B=/^(.*)[\\\/]/;function Z(R,G,re){var fe="";if(G){var De=G.fileName,Ze=De.replace(B,"");if(/^index\./.test(Ze)){var Me=De.match(B);if(Me){var Be=Me[1];if(Be){var xt=Be.replace(B,"");Ze=xt+"/"+Ze}}}fe=" (at "+Ze+":"+G.lineNumber+")"}else re&&(fe=" (created by "+re+")");return`
133
- in `+(R||"Unknown")+fe}var V=1;function q(R){return R._status===V?R._result:null}function H(R,G,re){var fe=G.displayName||G.name||"";return R.displayName||(fe!==""?re+"("+fe+")":re)}function z(R){if(R==null)return null;if(typeof R.tag=="number"&&oe("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case u:return"Fragment";case o:return"Portal";case c:return"Profiler";case l:return"StrictMode";case m:return"Suspense";case x:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case p:return"Context.Consumer";case d:return"Context.Provider";case g:return H(R,R.render,"ForwardRef");case w:return z(R.type);case $:return z(R.render);case C:{var G=R,re=q(G);if(re)return z(re);break}}return null}var I={},N=null;function Q(R){N=R}I.getCurrentStack=null,I.getStackAddendum=function(){var R="";if(N){var G=z(N.type),re=N._owner;R+=Z(G,N._source,re&&z(re.type))}var fe=I.getCurrentStack;return fe&&(R+=fe()||""),R};var L={current:!1},U={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:j,ReactCurrentOwner:k,IsSomeRendererActing:L,assign:e};e(U,{ReactDebugCurrentFrame:I,ReactComponentTreeHook:{}});function ie(R){{for(var G=arguments.length,re=new Array(G>1?G-1:0),fe=1;fe<G;fe++)re[fe-1]=arguments[fe];me("warn",R,re)}}function oe(R){{for(var G=arguments.length,re=new Array(G>1?G-1:0),fe=1;fe<G;fe++)re[fe-1]=arguments[fe];me("error",R,re)}}function me(R,G,re){{var fe=re.length>0&&typeof re[re.length-1]=="string"&&re[re.length-1].indexOf(`
134
- in`)===0;if(!fe){var De=U.ReactDebugCurrentFrame,Ze=De.getStackAddendum();Ze!==""&&(G+="%s",re=re.concat([Ze]))}var Me=re.map(function(Ft){return""+Ft});Me.unshift("Warning: "+G),Function.prototype.apply.call(console[R],console,Me);try{var Be=0,xt="Warning: "+G.replace(/%s/g,function(){return re[Be++]});throw new Error(xt)}catch{}}}var ne={};function ve(R,G){{var re=R.constructor,fe=re&&(re.displayName||re.name)||"ReactClass",De=fe+"."+G;if(ne[De])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.",G,fe),ne[De]=!0}}var ye={isMounted:function(R){return!1},enqueueForceUpdate:function(R,G,re){ve(R,"forceUpdate")},enqueueReplaceState:function(R,G,re,fe){ve(R,"replaceState")},enqueueSetState:function(R,G,re,fe){ve(R,"setState")}},X={};Object.freeze(X);function ge(R,G,re){this.props=R,this.context=G,this.refs=X,this.updater=re||ye}ge.prototype.isReactComponent={},ge.prototype.setState=function(R,G){if(!(typeof R=="object"||typeof R=="function"||R==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,R,G,"setState")},ge.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};{var be={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)."]},pe=function(R,G){Object.defineProperty(ge.prototype,R,{get:function(){ie("%s(...) is deprecated in plain JavaScript React classes. %s",G[0],G[1])}})};for(var ae in be)be.hasOwnProperty(ae)&&pe(ae,be[ae])}function Re(){}Re.prototype=ge.prototype;function et(R,G,re){this.props=R,this.context=G,this.refs=X,this.updater=re||ye}var it=et.prototype=new Re;it.constructor=et,e(it,ge.prototype),it.isPureReactComponent=!0;function hn(){var R={current:null};return Object.seal(R),R}var st=Object.prototype.hasOwnProperty,mn={key:!0,ref:!0,__self:!0,__source:!0},Ae,ze,je;je={};function Jt(R){if(st.call(R,"ref")){var G=Object.getOwnPropertyDescriptor(R,"ref").get;if(G&&G.isReactWarning)return!1}return R.ref!==void 0}function wn(R){if(st.call(R,"key")){var G=Object.getOwnPropertyDescriptor(R,"key").get;if(G&&G.isReactWarning)return!1}return R.key!==void 0}function gn(R,G){var re=function(){Ae||(Ae=!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)",G))};re.isReactWarning=!0,Object.defineProperty(R,"key",{get:re,configurable:!0})}function Qt(R,G){var re=function(){ze||(ze=!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)",G))};re.isReactWarning=!0,Object.defineProperty(R,"ref",{get:re,configurable:!0})}function qn(R){if(typeof R.ref=="string"&&k.current&&R.__self&&k.current.stateNode!==R.__self){var G=z(k.current.type);je[G]||(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',z(k.current.type),R.ref),je[G]=!0)}}var sn=function(R,G,re,fe,De,Ze,Me){var Be={$$typeof:i,type:R,key:G,ref:re,props:Me,_owner:Ze};return Be._store={},Object.defineProperty(Be._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Be,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(Be,"_source",{configurable:!1,enumerable:!1,writable:!1,value:De}),Object.freeze&&(Object.freeze(Be.props),Object.freeze(Be)),Be};function Xt(R,G,re){var fe,De={},Ze=null,Me=null,Be=null,xt=null;if(G!=null){Jt(G)&&(Me=G.ref,qn(G)),wn(G)&&(Ze=""+G.key),Be=G.__self===void 0?null:G.__self,xt=G.__source===void 0?null:G.__source;for(fe in G)st.call(G,fe)&&!mn.hasOwnProperty(fe)&&(De[fe]=G[fe])}var Ft=arguments.length-2;if(Ft===1)De.children=re;else if(Ft>1){for(var bn=Array(Ft),$n=0;$n<Ft;$n++)bn[$n]=arguments[$n+2];Object.freeze&&Object.freeze(bn),De.children=bn}if(R&&R.defaultProps){var xr=R.defaultProps;for(fe in xr)De[fe]===void 0&&(De[fe]=xr[fe])}if(Ze||Me){var Nn=typeof R=="function"?R.displayName||R.name||"Unknown":R;Ze&&gn(De,Nn),Me&&Qt(De,Nn)}return sn(R,Ze,Me,Be,xt,k.current,De)}function Bn(R,G){var re=sn(R.type,G,R.ref,R._self,R._source,R._owner,R.props);return re}function ar(R,G,re){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var fe,De=e({},R.props),Ze=R.key,Me=R.ref,Be=R._self,xt=R._source,Ft=R._owner;if(G!=null){Jt(G)&&(Me=G.ref,Ft=k.current),wn(G)&&(Ze=""+G.key);var bn;R.type&&R.type.defaultProps&&(bn=R.type.defaultProps);for(fe in G)st.call(G,fe)&&!mn.hasOwnProperty(fe)&&(G[fe]===void 0&&bn!==void 0?De[fe]=bn[fe]:De[fe]=G[fe])}var $n=arguments.length-2;if($n===1)De.children=re;else if($n>1){for(var xr=Array($n),Nn=0;Nn<$n;Nn++)xr[Nn]=arguments[Nn+2];De.children=xr}return sn(R.type,Ze,Me,Be,xt,Ft,De)}function en(R){return typeof R=="object"&&R!==null&&R.$$typeof===i}var Yn=".",tn=":";function yt(R){var G=/[=:]/g,re={"=":"=0",":":"=2"},fe=(""+R).replace(G,function(De){return re[De]});return"$"+fe}var ur=!1,sr=/\/+/g;function yn(R){return(""+R).replace(sr,"$&/")}var In=10,vn=[];function Ln(R,G,re,fe){if(vn.length){var De=vn.pop();return De.result=R,De.keyPrefix=G,De.func=re,De.context=fe,De.count=0,De}else return{result:R,keyPrefix:G,func:re,context:fe,count:0}}function Dn(R){R.result=null,R.keyPrefix=null,R.func=null,R.context=null,R.count=0,vn.length<In&&vn.push(R)}function ln(R,G,re,fe){var De=typeof R;(De==="undefined"||De==="boolean")&&(R=null);var Ze=!1;if(R===null)Ze=!0;else switch(De){case"string":case"number":Ze=!0;break;case"object":switch(R.$$typeof){case i:case o:Ze=!0}}if(Ze)return re(fe,R,G===""?Yn+Tt(R,0):G),1;var Me,Be,xt=0,Ft=G===""?Yn:G+tn;if(Array.isArray(R))for(var bn=0;bn<R.length;bn++)Me=R[bn],Be=Ft+Tt(Me,bn),xt+=ln(Me,Be,re,fe);else{var $n=F(R);if(typeof $n=="function"){$n===R.entries&&(ur||ie("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."),ur=!0);for(var xr=$n.call(R),Nn,Ma=0;!(Nn=xr.next()).done;)Me=Nn.value,Be=Ft+Tt(Me,Ma++),xt+=ln(Me,Be,re,fe)}else if(De==="object"){var Bo="";Bo=" If you meant to render a collection of children, use an array instead."+I.getStackAddendum();var Io=""+R;throw Error("Objects are not valid as a React child (found: "+(Io==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Io)+")."+Bo)}}return xt}function br(R,G,re){return R==null?0:ln(R,"",G,re)}function Tt(R,G){return typeof R=="object"&&R!==null&&R.key!=null?yt(R.key):G.toString(36)}function cn(R,G,re){var fe=R.func,De=R.context;fe.call(De,G,R.count++)}function Oe(R,G,re){if(R==null)return R;var fe=Ln(null,null,G,re);br(R,cn,fe),Dn(fe)}function Ge(R,G,re){var fe=R.result,De=R.keyPrefix,Ze=R.func,Me=R.context,Be=Ze.call(Me,G,R.count++);Array.isArray(Be)?Nt(Be,fe,re,function(xt){return xt}):Be!=null&&(en(Be)&&(Be=Bn(Be,De+(Be.key&&(!G||G.key!==Be.key)?yn(Be.key)+"/":"")+re)),fe.push(Be))}function Nt(R,G,re,fe,De){var Ze="";re!=null&&(Ze=yn(re)+"/");var Me=Ln(G,Ze,fe,De);br(R,Ge,Me),Dn(Me)}function Zn(R,G,re){if(R==null)return R;var fe=[];return Nt(R,fe,null,G,re),fe}function xe(R){return br(R,function(){return null},null)}function Fe(R){var G=[];return Nt(R,G,null,function(re){return re}),G}function Ne(R){if(!en(R))throw Error("React.Children.only expected to receive a single React element child.");return R}function Dt(R,G){G===void 0?G=null:G!==null&&typeof G!="function"&&oe("createContext: Expected the optional second argument to be a function. Instead received: %s",G);var re={$$typeof:p,_calculateChangedBits:G,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null};re.Provider={$$typeof:d,_context:re};var fe=!1,De=!1;{var Ze={$$typeof:p,_context:re,_calculateChangedBits:re._calculateChangedBits};Object.defineProperties(Ze,{Provider:{get:function(){return De||(De=!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?")),re.Provider},set:function(Me){re.Provider=Me}},_currentValue:{get:function(){return re._currentValue},set:function(Me){re._currentValue=Me}},_currentValue2:{get:function(){return re._currentValue2},set:function(Me){re._currentValue2=Me}},_threadCount:{get:function(){return re._threadCount},set:function(Me){re._threadCount=Me}},Consumer:{get:function(){return fe||(fe=!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?")),re.Consumer}}}),re.Consumer=Ze}return re._currentRenderer=null,re._currentRenderer2=null,re}function Kt(R){var G={$$typeof:C,_ctor:R,_status:-1,_result:null};{var re,fe;Object.defineProperties(G,{defaultProps:{configurable:!0,get:function(){return re},set:function(De){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."),re=De,Object.defineProperty(G,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return fe},set:function(De){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."),fe=De,Object.defineProperty(G,"propTypes",{enumerable:!0})}}})}return G}function En(R){return R!=null&&R.$$typeof===w?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof R!="function"?oe("forwardRef requires a render function but was given %s.",R===null?"null":typeof R):R.length!==0&&R.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",R.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),R!=null&&(R.defaultProps!=null||R.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:g,render:R}}function _t(R){return typeof R=="string"||typeof R=="function"||R===u||R===h||R===c||R===l||R===m||R===x||typeof R=="object"&&R!==null&&(R.$$typeof===C||R.$$typeof===w||R.$$typeof===d||R.$$typeof===p||R.$$typeof===g||R.$$typeof===v||R.$$typeof===D||R.$$typeof===P||R.$$typeof===$)}function Ut(R,G){return _t(R)||oe("memo: The first argument must be a component. Instead received: %s",R===null?"null":typeof R),{$$typeof:w,type:R,compare:G===void 0?null:G}}function Et(){var R=S.current;if(R===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 R}function ft(R,G){var re=Et();if(G!==void 0&&oe("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",G,typeof G=="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`:""),R._context!==void 0){var fe=R._context;fe.Consumer===R?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?"):fe.Provider===R&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return re.useContext(R,G)}function jr(R){var G=Et();return G.useState(R)}function Oo(R,G,re){var fe=Et();return fe.useReducer(R,G,re)}function Jn(R){var G=Et();return G.useRef(R)}function qi(R,G){var re=Et();return re.useEffect(R,G)}function Yi(R,G){var re=Et();return re.useLayoutEffect(R,G)}function Zi(R,G){var re=Et();return re.useCallback(R,G)}function ut(R,G){var re=Et();return re.useMemo(R,G)}function Vn(R,G,re){var fe=Et();return fe.useImperativeHandle(R,G,re)}function Qn(R,G){{var re=Et();return re.useDebugValue(R,G)}}var Cn;Cn=!1;function Ji(){if(k.current){var R=z(k.current.type);if(R)return`
141
-
142
- Check the render method of \``+R+"`."}return""}function $r(R){if(R!==void 0){var G=R.fileName.replace(/^.*[\\\/]/,""),re=R.lineNumber;return`
143
-
144
- Check your code at `+G+":"+re+"."}return""}function Ju(R){return R!=null?$r(R.__source):""}var Aa={};function Qu(R){var G=Ji();if(!G){var re=typeof R=="string"?R:R.displayName||R.name;re&&(G=`
145
-
146
- Check the top-level render call using <`+re+">.")}return G}function Qi(R,G){if(!(!R._store||R._store.validated||R.key!=null)){R._store.validated=!0;var re=Qu(G);if(!Aa[re]){Aa[re]=!0;var fe="";R&&R._owner&&R._owner!==k.current&&(fe=" It was passed a child from "+z(R._owner.type)+"."),Q(R),oe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',re,fe),Q(null)}}}function oi(R,G){if(typeof R=="object"){if(Array.isArray(R))for(var re=0;re<R.length;re++){var fe=R[re];en(fe)&&Qi(fe,G)}else if(en(R))R._store&&(R._store.validated=!0);else if(R){var De=F(R);if(typeof De=="function"&&De!==R.entries)for(var Ze=De.call(R),Me;!(Me=Ze.next()).done;)en(Me.value)&&Qi(Me.value,G)}}}function Fo(R){{var G=R.type;if(G==null||typeof G=="string")return;var re=z(G),fe;if(typeof G=="function")fe=G.propTypes;else if(typeof G=="object"&&(G.$$typeof===g||G.$$typeof===w))fe=G.propTypes;else return;fe?(Q(R),t(fe,R.props,"prop",re,I.getStackAddendum),Q(null)):G.PropTypes!==void 0&&!Cn&&(Cn=!0,oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")),typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mo(R){{Q(R);for(var G=Object.keys(R.props),re=0;re<G.length;re++){var fe=G[re];if(fe!=="children"&&fe!=="key"){oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe);break}}R.ref!==null&&oe("Invalid attribute `ref` supplied to `React.Fragment`."),Q(null)}}function Ta(R,G,re){var fe=_t(R);if(!fe){var De="";(R===void 0||typeof R=="object"&&R!==null&&Object.keys(R).length===0)&&(De+=" 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 Ze=Ju(G);Ze?De+=Ze:De+=Ji();var Me;R===null?Me="null":Array.isArray(R)?Me="array":R!==void 0&&R.$$typeof===i?(Me="<"+(z(R.type)||"Unknown")+" />",De=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof R,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,De)}var Be=Xt.apply(this,arguments);if(Be==null)return Be;if(fe)for(var xt=2;xt<arguments.length;xt++)oi(arguments[xt],R);return R===u?Mo(Be):Fo(Be),Be}var Pa=!1;function Xu(R){var G=Ta.bind(null,R);return G.type=R,Pa||(Pa=!0,ie("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(G,"type",{enumerable:!1,get:function(){return ie("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:R}),R}}),G}function _a(R,G,re){for(var fe=ar.apply(this,arguments),De=2;De<arguments.length;De++)oi(arguments[De],fe.type);return Fo(fe),fe}try{var ko=Object.freeze({}),Ra=new Map([[ko,null]]),Di=new Set([ko]);Ra.set(0,0),Di.add(0)}catch{}var es=Ta,Oa=_a,Xi=Xu,Fa={map:Zn,forEach:Oe,count:xe,toArray:Fe,only:Ne};bt.Children=Fa,bt.Component=ge,bt.Fragment=u,bt.Profiler=c,bt.PureComponent=et,bt.StrictMode=l,bt.Suspense=m,bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,bt.cloneElement=Oa,bt.createContext=Dt,bt.createElement=es,bt.createFactory=Xi,bt.createRef=hn,bt.forwardRef=En,bt.isValidElement=en,bt.lazy=Kt,bt.memo=Ut,bt.useCallback=Zi,bt.useContext=ft,bt.useDebugValue=Qn,bt.useEffect=qi,bt.useImperativeHandle=Vn,bt.useLayoutEffect=Yi,bt.useMemo=ut,bt.useReducer=Oo,bt.useRef=Jn,bt.useState=jr,bt.version=n}();process.env.NODE_ENV==="production"?el.exports=$t:el.exports=bt;var cu=el.exports,yh={sdkSemver:"1.13.1",techVersion:cu.version,sdkCode:"J"},iL=function(e){hC(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=cu.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new Hk(this.imageRef.current,this.props.cldImg,this.props.plugins,yh)},t.prototype.componentDidUpdate=function(){Td(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,yh)},t.prototype.componentWillUnmount=function(){Td(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=mC(n,["cldImg","plugins"]);if(Xg())return cu.createElement("img",Xs({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=OI(this.props.plugins,this.props.cldImg,yh);return cu.createElement("img",Xs({},r,{src:i}))},t}(cu.Component),oL=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){hC(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=el.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new wI(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(){Td(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Td(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return oL.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=mC(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return cu.createElement("video",Xs({},r,{ref:this.attachRef}))},t})(el.exports.Component);function aL(e){return!(typeof e!="object"||e instanceof Array)}class uL{filterOutNonSupportedKeys(t,n){const r=Object.create({});return aL(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 G4=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class oy extends uL{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,G4);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,G4);return new oy(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 tl{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 sL extends Error{constructor(t="Unsupported"){super(t)}}function ay(e){return new sL(e)}function lL(){return this._qualifierModel||{error:ay(`unsupported qualifier ${this.constructor.name}`)}}class cL{constructor(){this._qualifierModel={}}toJson(){return lL.apply(this)}}class vf extends cL{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof tl?this.qualifierValue=n:(this.qualifierValue=new tl,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 Do extends vf{constructor(t,n){let r;n?r=new tl([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function dL(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function fL(){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:ay(`unsupported action ${this.constructor.name}`)}}class pL{constructor(){this._actionModel={}}toJson(){return fL.apply(this)}}class uy extends pL{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(),dL(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 Do(r)):this.qualifiers.set(n,new vf(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Do(t)):t instanceof Do&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function hL(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class mL extends uy{constructor(t){super(),this._actionModel={},this.addQualifier(new vf("b",new tl(hL(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class q4{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:ay(`unsupported action ${this.constructor.name}`)}}}function gL(e){const t=e;return"error"in t&&!!t.error}function yL(){return new Do("lossy")}function vL(){return new Do("preserve_transparency")}function bL(e){return new Do("progressive",e)}class $L extends tl{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Ea(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const xL={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},wL={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},DL={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},EL={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},CL={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},SL={444:"CHROMA_444",420:"CHROMA_420"},AL={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Ea(SL);Ea(AL);Ea(xL);const TL=Ea(wL);Ea(DL);Ea(EL);Ea(CL);class PL extends uy{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof $L?i=n.getValue():i=n,this._actionModel.actionType=TL[t],this._actionModel[r]=i,this.addQualifier(new vf(t,n))}}class _L extends Do{constructor(t){super("progressive",t)}}class _d extends PL{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(yL()),this}progressive(t){return t instanceof _L?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(bL(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(vL()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let u;return n?u=new this("f",n):u=new this("f"),i&&(i.mode?u.progressive(i.mode):u.progressive()),r&&u.lossy(),o&&u.preserveTransparency(),u}}class bf{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 q4(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof bf?this.actions=this.actions.concat(t.actions):this.actions.push(new q4(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 _d("q",t)),this}format(t){return this.addAction(new _d("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 mL(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new uy;let r=t;return typeof t=="string"&&(r=new Do(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(gL(r))return r;t.push(r)}return{actions:t}}}class RL extends bf{}class OL extends bf{}function FL(e){return e.match(/^https?:\//)}function ML(e){return e.indexOf("/")<0}function kL(e){return e.match(/^v[0-9]+/)}function BL(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 IL(e){return e||"image"}function LL(e){return e||"upload"}function VL(e,t,n){const r=n!==!1;return t?`v${t}`:kL(e)||FL(e)||ML(e)?"":r?"v1":""}function sy(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=NL(i,r/i.length)),i.slice(0,r)+String(e))}function NL(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const KL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rd={};let Y4=0;KL.split("").forEach(e=>{let t=Y4.toString(2);t=sy(t,6,"0"),Rd[t]=e,Y4++});function jL(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function UL(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 sy(t,2,"0")}).join(".")}function Z4(e){let t="";const r=e.split(".").length*6,i=jL(e),o=UL(i);let l=parseInt(o.split(".").join("")).toString(2);if(l=sy(l,r,"0"),l.length%6!==0)throw"Version must be smaller than 43.21.26)";return l.match(/.{1,6}/g).forEach(c=>{t+=Rd[c]}),t}function zL(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 WL="1.21.0";function HL(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),u=i.padStart(6,"0");return Rd[o]+Rd[u]}function GL(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function qL(e){const t={techVersion:GL(),sdkCode:"T",sdkSemver:WL.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 J4(e){const t=qL(e),n=zL(t);try{const r=YL(n.techVersion),i=Z4(n.sdkSemver),o=Z4(r),u=HL(n.osVersion),l=n.feature,c=n.sdkCode,{product:d,osType:p}=n;return`D${d}${c}${i}${o}${p}${u}${l}`}catch{return"E"}}function YL(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Q4={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class ZL{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new oy(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=IL(this.assetType),n=LL(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=Q4[`${t}/${n}`],u=this.urlConfig.useRootPath,l=this.urlConfig.shorten;if(u){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(l&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(Q4).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=BL(this.cloudName,this.urlConfig),i=t?t.toString():"",o=VL(this.publicID,this.version,this.urlConfig.forceVersion),u=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,u.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const l=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(u).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(p=>p).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!u.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const p=new URLSearchParams(this.urlConfig.queryParams);c&&p.set("_a",J4(n)),d=p.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=${J4(n)}`);return d?`${l}?${d}`:l}}}class TC extends ZL{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 _d("q",t)),this}format(t){return this.addAction(new _d("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 JL extends TC{constructor(t,n,r){super(t,n,r,new RL)}}class QL extends TC{constructor(t,n,r){super(t,n,r,new OL),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class XL{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new JL(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new QL(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var vh={exports:{}},X4;function eV(){return X4||(X4=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,u={},l={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(D){return D instanceof c?new c(D.type,v(D.content),D.alias):Array.isArray(D)?D.map(v):D.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++o}),v.__id},clone:function v(D,P){P=P||{};var E,T;switch(l.util.type(D)){case"Object":if(T=l.util.objId(D),P[T])return P[T];E={},P[T]=E;for(var F in D)D.hasOwnProperty(F)&&(E[F]=v(D[F],P));return E;case"Array":return T=l.util.objId(D),P[T]?P[T]:(E=[],P[T]=E,D.forEach(function(S,j){E[j]=v(S,P)}),E);default:return D}},getLanguage:function(v){for(;v;){var D=i.exec(v.className);if(D)return D[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,D){v.className=v.className.replace(RegExp(i,"gi"),""),v.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 v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(v){var D=document.getElementsByTagName("script");for(var P in D)if(D[P].src==v)return D[P]}return null}},isActive:function(v,D,P){for(var E="no-"+D;v;){var T=v.classList;if(T.contains(D))return!0;if(T.contains(E))return!1;v=v.parentElement}return!!P}},languages:{plain:u,plaintext:u,text:u,txt:u,extend:function(v,D){var P=l.util.clone(l.languages[v]);for(var E in D)P[E]=D[E];return P},insertBefore:function(v,D,P,E){E=E||l.languages;var T=E[v],F={};for(var S in T)if(T.hasOwnProperty(S)){if(S==D)for(var j in P)P.hasOwnProperty(j)&&(F[j]=P[j]);P.hasOwnProperty(S)||(F[S]=T[S])}var k=E[v];return E[v]=F,l.languages.DFS(l.languages,function(B,Z){Z===k&&B!=v&&(this[B]=F)}),F},DFS:function v(D,P,E,T){T=T||{};var F=l.util.objId;for(var S in D)if(D.hasOwnProperty(S)){P.call(D,S,D[S],E||S);var j=D[S],k=l.util.type(j);k==="Object"&&!T[F(j)]?(T[F(j)]=!0,v(j,P,null,T)):k==="Array"&&!T[F(j)]&&(T[F(j)]=!0,v(j,P,S,T))}}},plugins:{},highlightAll:function(v,D){l.highlightAllUnder(document,v,D)},highlightAllUnder:function(v,D,P){var E={callback:P,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),l.hooks.run("before-all-elements-highlight",E);for(var T=0,F;F=E.elements[T++];)l.highlightElement(F,D===!0,E.callback)},highlightElement:function(v,D,P){var E=l.util.getLanguage(v),T=l.languages[E];l.util.setLanguage(v,E);var F=v.parentElement;F&&F.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(F,E);var S=v.textContent,j={element:v,language:E,grammar:T,code:S};function k(Z){j.highlightedCode=Z,l.hooks.run("before-insert",j),j.element.innerHTML=j.highlightedCode,l.hooks.run("after-highlight",j),l.hooks.run("complete",j),P&&P.call(j.element)}if(l.hooks.run("before-sanity-check",j),F=j.element.parentElement,F&&F.nodeName.toLowerCase()==="pre"&&!F.hasAttribute("tabindex")&&F.setAttribute("tabindex","0"),!j.code){l.hooks.run("complete",j),P&&P.call(j.element);return}if(l.hooks.run("before-highlight",j),!j.grammar){k(l.util.encode(j.code));return}if(D&&r.Worker){var B=new Worker(l.filename);B.onmessage=function(Z){k(Z.data)},B.postMessage(JSON.stringify({language:j.language,code:j.code,immediateClose:!0}))}else k(l.highlight(j.code,j.grammar,j.language))},highlight:function(v,D,P){var E={code:v,grammar:D,language:P};if(l.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=l.tokenize(E.code,E.grammar),l.hooks.run("after-tokenize",E),c.stringify(l.util.encode(E.tokens),E.language)},tokenize:function(v,D){var P=D.rest;if(P){for(var E in P)D[E]=P[E];delete D.rest}var T=new h;return g(T,T.head,v),p(v,T,D,T.head,0),x(T)},hooks:{all:{},add:function(v,D){var P=l.hooks.all;P[v]=P[v]||[],P[v].push(D)},run:function(v,D){var P=l.hooks.all[v];if(!(!P||!P.length))for(var E=0,T;T=P[E++];)T(D)}},Token:c};r.Prism=l;function c(v,D,P,E){this.type=v,this.content=D,this.alias=P,this.length=(E||"").length|0}c.stringify=function v(D,P){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(k){E+=v(k,P)}),E}var T={type:D.type,content:v(D.content,P),tag:"span",classes:["token",D.type],attributes:{},language:P},F=D.alias;F&&(Array.isArray(F)?Array.prototype.push.apply(T.classes,F):T.classes.push(F)),l.hooks.run("wrap",T);var S="";for(var j in T.attributes)S+=" "+j+'="'+(T.attributes[j]||"").replace(/"/g,"&quot;")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+S+">"+T.content+"</"+T.tag+">"};function d(v,D,P,E){v.lastIndex=D;var T=v.exec(P);if(T&&E&&T[1]){var F=T[1].length;T.index+=F,T[0]=T[0].slice(F)}return T}function p(v,D,P,E,T,F){for(var S in P)if(!(!P.hasOwnProperty(S)||!P[S])){var j=P[S];j=Array.isArray(j)?j:[j];for(var k=0;k<j.length;++k){if(F&&F.cause==S+","+k)return;var B=j[k],Z=B.inside,V=!!B.lookbehind,q=!!B.greedy,H=B.alias;if(q&&!B.pattern.global){var z=B.pattern.toString().match(/[imsuy]*$/)[0];B.pattern=RegExp(B.pattern.source,z+"g")}for(var I=B.pattern||B,N=E.next,Q=T;N!==D.tail&&!(F&&Q>=F.reach);Q+=N.value.length,N=N.next){var L=N.value;if(D.length>v.length)return;if(!(L instanceof c)){var U=1,ie;if(q){if(ie=d(I,Q,v,V),!ie||ie.index>=v.length)break;var ve=ie.index,oe=ie.index+ie[0].length,me=Q;for(me+=N.value.length;ve>=me;)N=N.next,me+=N.value.length;if(me-=N.value.length,Q=me,N.value instanceof c)continue;for(var ne=N;ne!==D.tail&&(me<oe||typeof ne.value=="string");ne=ne.next)U++,me+=ne.value.length;U--,L=v.slice(Q,me),ie.index-=Q}else if(ie=d(I,0,L,V),!ie)continue;var ve=ie.index,ye=ie[0],X=L.slice(0,ve),ge=L.slice(ve+ye.length),be=Q+L.length;F&&be>F.reach&&(F.reach=be);var pe=N.prev;X&&(pe=g(D,pe,X),Q+=X.length),m(D,pe,U);var ae=new c(S,Z?l.tokenize(ye,Z):ye,H,ye);if(N=g(D,pe,ae),ge&&g(D,N,ge),U>1){var Re={cause:S+","+k,reach:be};p(v,D,P,N.prev,Q,Re),F&&Re.reach>F.reach&&(F.reach=Re.reach)}}}}}}function h(){var v={value:null,prev:null,next:null},D={value:null,prev:v,next:null};v.next=D,this.head=v,this.tail=D,this.length=0}function g(v,D,P){var E=D.next,T={value:P,prev:D,next:E};return D.next=T,E.prev=T,v.length++,T}function m(v,D,P){for(var E=D.next,T=0;T<P&&E!==v.tail;T++)E=E.next;D.next=E,E.prev=D,v.length-=T}function x(v){for(var D=[],P=v.head.next;P!==v.tail;)D.push(P.value),P=P.next;return D}if(!r.document)return r.addEventListener&&(l.disableWorkerMessageHandler||r.addEventListener("message",function(v){var D=JSON.parse(v.data),P=D.language,E=D.code,T=D.immediateClose;r.postMessage(l.highlight(E,l.languages[P],P)),T&&r.close()},!1)),l;var w=l.util.currentScript();w&&(l.filename=w.src,w.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var $=document.readyState;$==="loading"||$==="interactive"&&w&&w.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(t);e.exports&&(e.exports=n),typeof ou<"u"&&(ou.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 u={};u["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},u.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:u}};l["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:l},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(w,C){return"✖ Error "+w+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",u={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",d="loaded",p="failed",h="pre[data-src]:not(["+l+'="'+d+'"]):not(['+l+'="'+c+'"])';function g(w,C,$){var v=new XMLHttpRequest;v.open("GET",w,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?C(v.responseText):v.status>=400?$(i(v.status,v.statusText)):$(o))},v.send(null)}function m(w){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(w||"");if(C){var $=Number(C[1]),v=C[2],D=C[3];return v?D?[$,Number(D)]:[$,void 0]:[$,$]}}n.hooks.add("before-highlightall",function(w){w.selector+=", "+h}),n.hooks.add("before-sanity-check",function(w){var C=w.element;if(C.matches(h)){w.code="",C.setAttribute(l,c);var $=C.appendChild(document.createElement("CODE"));$.textContent=r;var v=C.getAttribute("data-src"),D=w.language;if(D==="none"){var P=(/\.(\w+)$/.exec(v)||[,"none"])[1];D=u[P]||P}n.util.setLanguage($,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),g(v,function(T){C.setAttribute(l,d);var F=m(C.getAttribute("data-range"));if(F){var S=T.split(/\r\n?|\n/g),j=F[0],k=F[1]==null?S.length:F[1];j<0&&(j+=S.length),j=Math.max(0,Math.min(j-1,S.length)),k<0&&(k+=S.length),k=Math.max(0,Math.min(k,S.length)),T=S.slice(j,k).join(`
154
- `),C.hasAttribute("data-start")||C.setAttribute("data-start",String(j+1))}$.textContent=T,n.highlightElement($)},function(T){C.setAttribute(l,p),$.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var $=(C||document).querySelectorAll(h),v=0,D;D=$[v++];)n.highlightElement(D)}};var x=!1;n.fileHighlight=function(){x||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),x=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(vh)),vh.exports}var tV=eV();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,m){return Array.prototype.slice.call((m||document).querySelectorAll(g))}function i(g,m){return g.classList.contains(m)}function o(g){g()}var u=function(){var g;return function(){if(typeof g>"u"){var m=document.createElement("div");m.style.fontSize="13px",m.style.lineHeight="1.5",m.style.padding="0",m.style.border="0",m.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(m),g=m.offsetHeight===38,document.body.removeChild(m)}return g}}();function l(g,m){var x=getComputedStyle(g),w=getComputedStyle(m);function C($){return+$.substr(0,$.length-2)}return m.offsetTop+C(w.borderTopWidth)+C(w.paddingTop)-C(x.paddingTop)}function c(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(m,x,w){x=typeof x=="string"?x:m.getAttribute("data-line")||"";var C=x.replace(/\s+/g,"").split(",").filter(Boolean),$=+m.getAttribute("data-line-offset")||0,v=u()?parseInt:parseFloat,D=v(getComputedStyle(m).lineHeight),P=Prism.util.isActive(m,e),E=m.querySelector("code"),T=P?m:E||m,F=[],S=E.textContent.match(n),j=S?S.length+1:1,k=!E||T==E?0:l(m,E);C.forEach(function(V){var q=V.split("-"),H=+q[0],z=+q[1]||H;if(z=Math.min(j+$,z),!(z<H)){var I=m.querySelector('.line-highlight[data-range="'+V+'"]')||document.createElement("div");if(F.push(function(){I.setAttribute("aria-hidden","true"),I.setAttribute("data-range",V),I.className=(w||"")+" line-highlight"}),P&&Prism.plugins.lineNumbers){var N=Prism.plugins.lineNumbers.getLine(m,H),Q=Prism.plugins.lineNumbers.getLine(m,z);if(N){var L=N.offsetTop+k+"px";F.push(function(){I.style.top=L})}if(Q){var U=Q.offsetTop-N.offsetTop+Q.offsetHeight+"px";F.push(function(){I.style.height=U})}}else F.push(function(){I.setAttribute("data-start",String(H)),z>H&&I.setAttribute("data-end",String(z)),I.style.top=(H-$-1)*D+k+"px",I.textContent=new Array(z-H+2).join(`
155
- `)});F.push(function(){I.style.width=m.scrollWidth+"px"}),F.push(function(){T.appendChild(I)})}});var B=m.id;if(P&&Prism.util.isActive(m,t)&&B){i(m,t)||F.push(function(){m.classList.add(t)});var Z=parseInt(m.getAttribute("data-start")||"1");r(".line-numbers-rows > span",m).forEach(function(V,q){var H=q+Z;V.onclick=function(){var z=B+"."+H;d=!1,location.hash=z,setTimeout(function(){d=!0},1)}})}return function(){F.forEach(o)}}};function p(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function($){$.parentNode.removeChild($)});var m=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!m||document.getElementById(g))){var x=g.slice(0,g.lastIndexOf(".")),w=document.getElementById(x);if(w){w.hasAttribute("data-line")||w.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines(w,m,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(g){var m=g.element.parentElement;if(c(m)){var x=0;r(".line-highlight",m).forEach(function(w){x+=w.textContent.length,w.parentNode.removeChild(w)}),x&&/^(?: \n)+$/.test(g.code.slice(-x))&&(g.code=g.code.slice(0,-x))}}),Prism.hooks.add("complete",function g(m){var x=m.element.parentElement;if(c(x)){clearTimeout(h);var w=Prism.plugins.lineNumbers,C=m.plugins&&m.plugins.lineNumbers;if(i(x,e)&&w&&!C)Prism.hooks.add("line-numbers",g);else{var $=Prism.plugins.lineHighlight.highlightLines(x);$(),h=setTimeout(p,1)}}}),window.addEventListener("hashchange",p),window.addEventListener("resize",function(){var g=r("pre").filter(c).map(function(m){return Prism.plugins.lineHighlight.highlightLines(m)});g.forEach(o)})})();const e1=new Set;function $f(e,t,n){e||e1.has(t)||(console.warn(t),e1.add(t))}function nV(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&$f(!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 xf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Vm=e=>Array.isArray(e);function PC(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 nl(e){return typeof e=="string"||Array.isArray(e)}function t1(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function ly(e,t,n,r){if(typeof t=="function"){const[i,o]=t1(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]=t1(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function wf(e,t,n){const r=e.getProps();return ly(r,t,n!==void 0?n:r.custom,e)}const cy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dy=["initial",...cy],El=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ca=new Set(El),Ui=e=>e*1e3,Eo=e=>e/1e3,rV={type:"spring",stiffness:500,damping:25,restSpeed:10},iV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),oV={type:"keyframes",duration:.8},aV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uV=(e,{keyframes:t})=>t.length>2?oV:Ca.has(e)?e.startsWith("scale")?iV(t[1]):rV:aV;function _C(e,t){return e?e[t]||e.default||e:void 0}const sV={skipAnimations:!1,useManualTiming:!1},lV=e=>e!==null;function Df(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(lV),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const To=e=>e;let zu=To,va=To;process.env.NODE_ENV!=="production"&&(zu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},va=(e,t)=>{if(!e)throw new Error(t)});function cV(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(c.schedule(d),e()),d(u)}const c={schedule:(d,p=!1,h=!1)=>{const m=h&&r?t:n;return p&&o.add(d),m.has(d)||m.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(u=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const Lc=["read","resolveKeyframes","update","preRender","render","postRender"],dV=40;function RC(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,u=Lc.reduce(($,v)=>($[v]=cV(o),$),{}),{read:l,resolveKeyframes:c,update:d,preRender:p,render:h,postRender:g}=u,m=()=>{const $=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min($-i.timestamp,dV),1),i.timestamp=$,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),p.process(i),h.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},x=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:Lc.reduce(($,v)=>{const D=u[v];return $[v]=(P,E=!1,T=!1)=>(n||x(),D.schedule(P,E,T)),$},{}),cancel:$=>{for(let v=0;v<Lc.length;v++)u[Lc[v]].cancel($)},state:i,steps:u}}const{schedule:vr,cancel:Nm,state:Od,steps:EW}=RC(typeof requestAnimationFrame<"u"?requestAnimationFrame:To,!0),OC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,fV=1e-7,pV=12;function hV(e,t,n,r,i){let o,u,l=0;do u=t+(n-t)/2,o=OC(u,r,i)-e,o>0?n=u:t=u;while(Math.abs(o)>fV&&++l<pV);return u}function Cl(e,t,n,r){if(e===t&&n===r)return To;const i=o=>hV(o,0,1,e,n);return o=>o===0||o===1?o:OC(i(o),t,r)}const FC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,MC=e=>t=>1-e(1-t),kC=Cl(.33,1.53,.69,.99),fy=MC(kC),BC=FC(fy),IC=e=>(e*=2)<1?.5*fy(e):.5*(2-Math.pow(2,-10*(e-1))),py=e=>1-Math.sin(Math.acos(e)),mV=MC(py),LC=FC(py),VC=e=>/^0[^.\s]+$/u.test(e);function gV(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||VC(e):!0}const NC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),KC=e=>t=>typeof t=="string"&&t.startsWith(e),jC=KC("--"),yV=KC("var(--"),hy=e=>yV(e)?vV.test(e.split("/*")[0].trim()):!1,vV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $V(e){const t=bV.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const xV=4;function UC(e,t,n=1){va(n<=xV,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=$V(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const u=o.trim();return NC(u)?parseFloat(u):u}return hy(i)?UC(i,t,n+1):i}const ba=(e,t,n)=>n>t?t:n<e?e:n,Wu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rl={...Wu,transform:e=>ba(0,1,e)},Vc={...Wu,default:1},Sl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),po=Sl("deg"),bu=Sl("%"),Ke=Sl("px"),wV=Sl("vh"),DV=Sl("vw"),n1={...bu,parse:e=>bu.parse(e)/100,transform:e=>bu.transform(e*100)},EV=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),r1=e=>e===Wu||e===Ke,i1=(e,t)=>parseFloat(e.split(", ")[t]),o1=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return i1(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?i1(o[1],e):0}},CV=new Set(["x","y","z"]),SV=El.filter(e=>!CV.has(e));function AV(e){const t=[];return SV.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:o1(4,13),y:o1(5,14)};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const zC=e=>t=>t.test(e),TV={test:e=>e==="auto",parse:e=>e},WC=[Wu,Ke,bu,po,DV,wV,TV],a1=e=>WC.find(zC(e)),ua=new Set;let Km=!1,jm=!1;function HC(){if(jm){const e=Array.from(ua).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=AV(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,u])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jm=!1,Km=!1,ua.forEach(e=>e.complete()),ua.clear()}function GC(){ua.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(jm=!0)})}function PV(){GC(),HC()}class my{constructor(t,n,r,i,o,u=!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=u}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ua.add(this),Km||(Km=!0,vr.read(GC),vr.resolveKeyframes(HC))):(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 u=i==null?void 0:i.get(),l=t[t.length-1];if(u!==void 0)t[0]=u;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),i&&u===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),ua.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ua.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const zs=e=>Math.round(e*1e5)/1e5,gy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _V(e){return e==null}const RV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,yy=(e,t)=>n=>!!(typeof n=="string"&&RV.test(n)&&n.startsWith(e)||t&&!_V(n)&&Object.prototype.hasOwnProperty.call(n,t)),qC=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,u,l]=r.match(gy);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(u),alpha:l!==void 0?parseFloat(l):1}},OV=e=>ba(0,255,e),bh={...Wu,transform:e=>Math.round(OV(e))},na={test:yy("rgb","red"),parse:qC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+bh.transform(e)+", "+bh.transform(t)+", "+bh.transform(n)+", "+zs(rl.transform(r))+")"};function FV(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 Um={test:yy("#"),parse:FV,transform:na.transform},du={test:yy("hsl","hue"),parse:qC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+bu.transform(zs(t))+", "+bu.transform(zs(n))+", "+zs(rl.transform(r))+")"},Rn={test:e=>na.test(e)||Um.test(e)||du.test(e),parse:e=>na.test(e)?na.parse(e):du.test(e)?du.parse(e):Um.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?na.transform(e):du.transform(e)},MV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kV(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(gy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(MV))===null||n===void 0?void 0:n.length)||0)>0}const YC="number",ZC="color",BV="var",IV="var(",u1="${}",LV=/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 il(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(LV,c=>(Rn.test(c)?(r.color.push(o),i.push(ZC),n.push(Rn.parse(c))):c.startsWith(IV)?(r.var.push(o),i.push(BV),n.push(c)):(r.number.push(o),i.push(YC),n.push(parseFloat(c))),++o,u1)).split(u1);return{values:n,split:l,indexes:r,types:i}}function JC(e){return il(e).values}function QC(e){const{split:t,types:n}=il(e),r=t.length;return i=>{let o="";for(let u=0;u<r;u++)if(o+=t[u],i[u]!==void 0){const l=n[u];l===YC?o+=zs(i[u]):l===ZC?o+=Rn.transform(i[u]):o+=i[u]}return o}}const VV=e=>typeof e=="number"?0:e;function NV(e){const t=JC(e);return QC(e)(t.map(VV))}const Hu={test:kV,parse:JC,createTransformer:QC,getAnimatableNone:NV},KV=new Set(["brightness","contrast","saturate","opacity"]);function jV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(gy)||[];if(!r)return e;const i=n.replace(r,"");let o=KV.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const UV=/\b([a-z-]*)\(.*?\)/gu,zm={...Hu,getAnimatableNone:e=>{const t=e.match(UV);return t?t.map(jV).join(" "):e}},zV={borderWidth:Ke,borderTopWidth:Ke,borderRightWidth:Ke,borderBottomWidth:Ke,borderLeftWidth:Ke,borderRadius:Ke,radius:Ke,borderTopLeftRadius:Ke,borderTopRightRadius:Ke,borderBottomRightRadius:Ke,borderBottomLeftRadius:Ke,width:Ke,maxWidth:Ke,height:Ke,maxHeight:Ke,top:Ke,right:Ke,bottom:Ke,left:Ke,padding:Ke,paddingTop:Ke,paddingRight:Ke,paddingBottom:Ke,paddingLeft:Ke,margin:Ke,marginTop:Ke,marginRight:Ke,marginBottom:Ke,marginLeft:Ke,backgroundPositionX:Ke,backgroundPositionY:Ke},WV={rotate:po,rotateX:po,rotateY:po,rotateZ:po,scale:Vc,scaleX:Vc,scaleY:Vc,scaleZ:Vc,skew:po,skewX:po,skewY:po,distance:Ke,translateX:Ke,translateY:Ke,translateZ:Ke,x:Ke,y:Ke,z:Ke,perspective:Ke,transformPerspective:Ke,opacity:rl,originX:n1,originY:n1,originZ:Ke},s1={...Wu,transform:Math.round},vy={...zV,...WV,zIndex:s1,size:Ke,fillOpacity:rl,strokeOpacity:rl,numOctaves:s1},HV={...vy,color:Rn,backgroundColor:Rn,outlineColor:Rn,fill:Rn,stroke:Rn,borderColor:Rn,borderTopColor:Rn,borderRightColor:Rn,borderBottomColor:Rn,borderLeftColor:Rn,filter:zm,WebkitFilter:zm},by=e=>HV[e];function XC(e,t){let n=by(e);return n!==zm&&(n=Hu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const GV=new Set(["auto","none","0"]);function qV(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!GV.has(o)&&il(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=XC(n,i)}class e2 extends my{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(),hy(d))){const p=UC(d,n.current);p!==void 0&&(t[c]=p),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!EV.has(r)||t.length!==2)return;const[i,o]=t,u=a1(i),l=a1(o);if(u!==l)if(r1(u)&&r1(l))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++)gV(t[i])&&r.push(i);r.length&&qV(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 u=i.length-1,l=i[u];i[u]=Fu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function $y(e){return typeof e=="function"}let nd;function YV(){nd=void 0}const Co={now:()=>(nd===void 0&&Co.set(Od.isProcessing||sV.useManualTiming?Od.timestamp:performance.now()),nd),set:e=>{nd=e,queueMicrotask(YV)}},l1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Hu.test(e)||e==="0")&&!e.startsWith("url("));function ZV(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 JV(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],u=l1(i,t),l=l1(o,t);return zu(u===l,`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.`),!u||!l?!1:ZV(e)||(n==="spring"||$y(n))&&r}const QV=40;class t2{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:u="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Co.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:u,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>QV?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&PV(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Co.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:u,onComplete:l,onUpdate:c,isGenerator:d}=this.options;if(!d&&!JV(t,r,i,o))if(u)this.options.duration=0;else{c==null||c(Df(t,this.options,n)),l==null||l(),this.resolveFinishedPromise();return}const p=this.initPlayback(t,n);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...p},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 xy=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},n2=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(xy(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function r2(e,t){return t?e*(1e3/t):0}const XV=5;function i2(e,t,n){const r=Math.max(t-XV,0);return r2(n-e(r),t-r)}const It={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},c1=.001;function eN({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let i,o;zu(e<=Ui(It.maxDuration),"Spring duration must be 10 seconds or less");let u=1-t;u=ba(It.minDamping,It.maxDamping,u),e=ba(It.minDuration,It.maxDuration,Eo(e)),u<1?(i=d=>{const p=d*u,h=p*e,g=p-n,m=Wm(d,u),x=Math.exp(-h);return c1-g/m*x},o=d=>{const h=d*u*e,g=h*n+n,m=Math.pow(u,2)*Math.pow(d,2)*e,x=Math.exp(-h),w=Wm(Math.pow(d,2),u);return(-i(d)+c1>0?-1:1)*((g-m)*x)/w}):(i=d=>{const p=Math.exp(-d*e),h=(d-n)*e+1;return-.001+p*h},o=d=>{const p=Math.exp(-d*e),h=(n-d)*(e*e);return p*h});const l=5/e,c=nN(i,o,l);if(e=Ui(e),isNaN(c))return{stiffness:It.stiffness,damping:It.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:u*2*Math.sqrt(r*d),duration:e}}}const tN=12;function nN(e,t,n){let r=n;for(let i=1;i<tN;i++)r=r-e(r)/t(r);return r}function Wm(e,t){return e*Math.sqrt(1-t*t)}const Hm=2e4;function o2(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Hm;)t+=n,r=e.next(t);return t>=Hm?1/0:t}const rN=["duration","bounce"],iN=["stiffness","damping","mass"];function d1(e,t){return t.some(n=>e[n]!==void 0)}function oN(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!d1(e,iN)&&d1(e,rN))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ba(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:It.mass,stiffness:i,damping:o}}else{const n=eN(e);t={...t,...n,mass:It.mass},t.isResolvedFromDuration=!0}return t}function a2(e=It.visualDuration,t=It.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],u=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:d,mass:p,duration:h,velocity:g,isResolvedFromDuration:m}=oN({...n,velocity:-Eo(n.velocity||0)}),x=g||0,w=d/(2*Math.sqrt(c*p)),C=u-o,$=Eo(Math.sqrt(c/p)),v=Math.abs(C)<5;r||(r=v?It.restSpeed.granular:It.restSpeed.default),i||(i=v?It.restDelta.granular:It.restDelta.default);let D;if(w<1){const E=Wm($,w);D=T=>{const F=Math.exp(-w*$*T);return u-F*((x+w*$*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if(w===1)D=E=>u-Math.exp(-$*E)*(C+(x+$*C)*E);else{const E=$*Math.sqrt(w*w-1);D=T=>{const F=Math.exp(-w*$*T),S=Math.min(E*T,300);return u-F*((x+w*$*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:m&&h||null,next:E=>{const T=D(E);if(m)l.done=E>=h;else{let F=0;w<1&&(F=E===0?Ui(x):i2(D,E,T));const S=Math.abs(F)<=r,j=Math.abs(u-T)<=i;l.done=S&&j}return l.value=l.done?u:T,l},toString:()=>{const E=Math.min(o2(P),Hm),T=n2(F=>P.next(E*F).value,E,30);return E+"ms "+T}};return P}function f1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:u,min:l,max:c,restDelta:d=.5,restSpeed:p}){const h=e[0],g={done:!1,value:h},m=S=>l!==void 0&&S<l||c!==void 0&&S>c,x=S=>l===void 0?c:c===void 0||Math.abs(l-S)<Math.abs(c-S)?l:c;let w=n*t;const C=h+w,$=u===void 0?C:u(C);$!==C&&(w=$-h);const v=S=>-w*Math.exp(-S/r),D=S=>$+v(S),P=S=>{const j=v(S),k=D(S);g.done=Math.abs(j)<=d,g.value=g.done?$:k};let E,T;const F=S=>{m(g.value)&&(E=S,T=a2({keyframes:[g.value,x(g.value)],velocity:i2(D,S,g.value),damping:i,stiffness:o,restDelta:d,restSpeed:p}))};return F(0),{calculatedDuration:null,next:S=>{let j=!1;return!T&&E===void 0&&(j=!0,P(S),F(S)),E!==void 0&&S>=E?T.next(S-E):(!j&&P(S),g)}}}const aN=Cl(.42,0,1,1),uN=Cl(0,0,.58,1),u2=Cl(.42,0,.58,1),sN=e=>Array.isArray(e)&&typeof e[0]!="number",wy=e=>Array.isArray(e)&&typeof e[0]=="number",p1={linear:To,easeIn:aN,easeInOut:u2,easeOut:uN,circIn:py,circInOut:LC,circOut:mV,backIn:fy,backInOut:BC,backOut:kC,anticipate:IC},h1=e=>{if(wy(e)){va(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Cl(t,n,r,i)}else if(typeof e=="string")return va(p1[e]!==void 0,`Invalid easing type '${e}'`),p1[e];return e},lN=(e,t)=>n=>t(e(n)),Ef=(...e)=>e.reduce(lN),Cf=(e,t,n)=>e+(t-e)*n;function $h(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 cN({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,u=0;if(!t)i=o=u=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=$h(c,l,e+1/3),o=$h(c,l,e),u=$h(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(u*255),alpha:r}}function Fd(e,t){return n=>n>0?t:e}const xh=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},dN=[Um,na,du],fN=e=>dN.find(t=>t.test(e));function m1(e){const t=fN(e);if(zu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===du&&(n=cN(n)),n}const g1=(e,t)=>{const n=m1(e),r=m1(t);if(!n||!r)return Fd(e,t);const i={...n};return o=>(i.red=xh(n.red,r.red,o),i.green=xh(n.green,r.green,o),i.blue=xh(n.blue,r.blue,o),i.alpha=Cf(n.alpha,r.alpha,o),na.transform(i))},Gm=new Set(["none","hidden"]);function pN(e,t){return Gm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hN(e,t){return n=>Cf(e,t,n)}function Dy(e){return typeof e=="number"?hN:typeof e=="string"?hy(e)?Fd:Rn.test(e)?g1:yN:Array.isArray(e)?s2:typeof e=="object"?Rn.test(e)?g1:mN:Fd}function s2(e,t){const n=[...e],r=n.length,i=e.map((o,u)=>Dy(o)(o,t[u]));return o=>{for(let u=0;u<r;u++)n[u]=i[u](o);return n}}function mN(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Dy(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function gN(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const u=t.types[o],l=e.indexes[u][i[u]],c=(n=e.values[l])!==null&&n!==void 0?n:0;r[o]=c,i[u]++}return r}const yN=(e,t)=>{const n=Hu.createTransformer(t),r=il(e),i=il(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?Gm.has(e)&&!i.values.length||Gm.has(t)&&!r.values.length?pN(e,t):Ef(s2(gN(r,i),i.values),n):(zu(!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.`),Fd(e,t))};function l2(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Cf(e,t,n):Dy(e)(e,t)}function vN(e,t,n){const r=[],i=n||l2,o=e.length-1;for(let u=0;u<o;u++){let l=i(e[u],e[u+1]);if(t){const c=Array.isArray(t)?t[u]||To:t;l=Ef(c,l)}r.push(l)}return r}function bN(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(va(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 u=vN(t,r,i),l=u.length,c=d=>{let p=0;if(l>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const h=xy(e[p],e[p+1],d);return u[p](h)};return n?d=>c(ba(e[0],e[o-1],d)):c}function $N(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=xy(0,t,r);e.push(Cf(n,1,i))}}function xN(e){const t=[0];return $N(t,e.length-1),t}function wN(e,t){return e.map(n=>n*t)}function DN(e,t){return e.map(()=>t||u2).splice(0,e.length-1)}function Md({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=sN(r)?r.map(h1):h1(r),o={done:!1,value:t[0]},u=wN(n&&n.length===t.length?n:xN(t),e),l=bN(u,t,{ease:Array.isArray(i)?i:DN(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const EN=e=>{const t=({timestamp:n})=>e(n);return{start:()=>vr.update(t,!0),stop:()=>Nm(t),now:()=>Od.isProcessing?Od.timestamp:Co.now()}},CN={decay:f1,inertia:f1,tween:Md,keyframes:Md,spring:a2},SN=e=>e/100;class Ey extends t2{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,u=(i==null?void 0:i.KeyframeResolver)||my,l=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new u(o,l,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:u=0}=this.options,l=$y(n)?n:CN[n]||Md;let c,d;l!==Md&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&va(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Ef(SN,l2(t[0],t[1])),t=[0,100]);const p=l({...this.options,keyframes:t});o==="mirror"&&(d=l({...this.options,keyframes:[...t].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=o2(p));const{calculatedDuration:h}=p,g=h+i,m=g*(r+1)-i;return{generator:p,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:g,totalDuration:m}}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:u,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:d,totalDuration:p,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:m,repeatType:x,repeatDelay:w,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/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 $=this.currentTime-g*(this.speed>=0?1:-1),v=this.speed>=0?$<0:$>p;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let D=this.currentTime,P=o;if(m){const S=Math.min(this.currentTime,p)/h;let j=Math.floor(S),k=S%1;!k&&S>=1&&(k=1),k===1&&j--,j=Math.min(j,m+1),!!(j%2)&&(x==="reverse"?(k=1-k,w&&(k-=w/h)):x==="mirror"&&(P=u)),D=ba(0,1,k)*h}const E=v?{done:!1,value:c[0]}:P.next(D);l&&(E.value=l(E.value));let{done:T}=E;!v&&d!==null&&(T=this.speed>=0?this.currentTime>=p:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return F&&i!==void 0&&(E.value=Df(c,this.options,i)),C&&C(E.value),F&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Eo(t.calculatedDuration):0}get time(){return Eo(this.currentTime)}set time(t){t=Ui(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=Eo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=EN,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 AN=new Set(["opacity","clipPath","filter","transform"]);function Cy(e){let t;return()=>(t===void 0&&(t=e()),t)}const TN={linearEasing:void 0};function PN(e,t){const n=Cy(e);return()=>{var r;return(r=TN[t])!==null&&r!==void 0?r:n()}}const kd=PN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function c2(e){return!!(typeof e=="function"&&kd()||!e||typeof e=="string"&&(e in qm||kd())||wy(e)||Array.isArray(e)&&e.every(c2))}const Ls=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ls([0,.65,.55,1]),circOut:Ls([.55,0,1,.45]),backIn:Ls([.31,.01,.66,-.59]),backOut:Ls([.33,1.53,.69,.99])};function d2(e,t){if(e)return typeof e=="function"&&kd()?n2(e,t):wy(e)?Ls(e):Array.isArray(e)?e.map(n=>d2(n,t)||qm.easeOut):qm[e]}function _N(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:u="loop",ease:l="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const p=d2(l,i);return Array.isArray(p)&&(d.easing=p),e.animate(d,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:u==="reverse"?"alternate":"normal"})}function y1(e,t){e.timeline=t,e.onfinish=null}const RN=Cy(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bd=10,ON=2e4;function FN(e){return $y(e.type)||e.type==="spring"||!c2(e.ease)}function MN(e,t){const n=new Ey({...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<ON;)r=n.sample(o),i.push(r.value),o+=Bd;return{times:void 0,keyframes:i,duration:o-Bd,ease:"linear"}}const f2={anticipate:IC,backInOut:BC,circInOut:LC};function kN(e){return e in f2}class v1 extends t2{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new e2(o,(u,l)=>this.onKeyframesResolved(u,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:u,type:l,motionValue:c,name:d,startTime:p}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof u=="string"&&kd()&&kN(u)&&(u=f2[u]),FN(this.options)){const{onComplete:g,onUpdate:m,motionValue:x,element:w,...C}=this.options,$=MN(t,C);t=$.keyframes,t.length===1&&(t[1]=t[0]),i=$.duration,o=$.times,u=$.ease,l="keyframes"}const h=_N(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:u});return h.startTime=p??this.calcStartTime(),this.pendingTimeline?(y1(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:g}=this.options;c.set(Df(t,this.options,n)),g&&g(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:l,ease:u,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Eo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Eo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Ui(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 To;const{animation:r}=n;y1(r,t)}return To}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:u,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:p,onComplete:h,element:g,...m}=this.options,x=new Ey({...m,keyframes:r,duration:i,type:o,ease:u,times:l,isGenerator:!0}),w=Ui(this.time);d.setWithVelocity(x.sample(w-Bd).value,x.sample(w).value,Bd)}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:u,type:l}=t;return RN()&&r&&AN.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&u!==0&&l!=="inertia"}}const BN=Cy(()=>window.ScrollTimeline!==void 0);class IN{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=>BN()&&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 LN({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:u,repeatDelay:l,from:c,elapsed:d,...p}){return!!Object.keys(p).length}const VN=(e,t,n,r={},i,o)=>u=>{const l=_C(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ui(c);let p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:g=>{t.set(g),l.onUpdate&&l.onUpdate(g)},onComplete:()=>{u(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};LN(l)||(p={...p,...uV(e,p)}),p.duration&&(p.duration=Ui(p.duration)),p.repeatDelay&&(p.repeatDelay=Ui(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let h=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const g=Df(p.keyframes,l);if(g!==void 0)return vr.update(()=>{p.onUpdate(g),p.onComplete()}),new IN([])}return!o&&v1.supports(p)?new v1(p):new Ey(p)},NN=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KN=e=>Vm(e)?e[e.length-1]||0:e;function jN(e,t){e.indexOf(t)===-1&&e.push(t)}function UN(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class p2{constructor(){this.subscriptions=[]}add(t){return jN(this.subscriptions,t),()=>UN(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 u=this.subscriptions[o];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const b1=30,zN=e=>!isNaN(parseFloat(e));class WN{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Co.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=Co.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$f(!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 p2);const r=this.events[t].add(n);return t==="change"?()=>{r(),vr.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=Co.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>b1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,b1);return r2(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 Id(e,t){return new WN(e,t)}function HN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Id(n))}function GN(e,t){const n=wf(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const u in o){const l=KN(o[u]);HN(e,u,l)}}const Sy=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qN="framerAppearId",h2="data-"+Sy(qN);function YN(e){return e.props[h2]}const zn=e=>!!(e&&e.getVelocity);function ZN(e){return!!(zn(e)&&e.add)}function JN(e,t){const n=e.getValue("willChange");if(ZN(n))return n.add(t)}function QN({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function m2(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:u=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(u=r);const d=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const g=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),m=c[h];if(m===void 0||p&&QN(p,h))continue;const x={delay:n,..._C(u||{},h)};let w=!1;if(window.MotionHandoffAnimation){const $=YN(e);if($){const v=window.MotionHandoffAnimation($,h,vr);v!==null&&(x.startTime=v,w=!0)}}JN(e,h),g.start(VN(h,g,m,e.shouldReduceMotion&&Ca.has(h)?{type:!1}:x,e,w));const C=g.animation;C&&d.push(C)}return l&&Promise.all(d).then(()=>{vr.update(()=>{l&&GN(e,l)})}),d}function Ym(e,t,n={}){var r;const i=wf(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 u=i?()=>Promise.all(m2(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:h,staggerDirection:g}=o;return XN(e,t,p+d,h,g,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,p]=c==="beforeChildren"?[u,l]:[l,u];return d().then(()=>p())}else return Promise.all([u(),l(n.delay)])}function XN(e,t,n=0,r=0,i=1,o){const u=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(eK).forEach((d,p)=>{d.notify("AnimationStart",t),u.push(Ym(d,t,{...o,delay:n+c(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(u)}function eK(e,t){return e.sortNodePosition(t)}function tK(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Ym(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Ym(e,t,n);else{const i=typeof t=="function"?wf(e,t,n.custom):t;r=Promise.all(m2(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const nK=dy.length;function g2(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?g2(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<nK;n++){const r=dy[n],i=e.props[r];(nl(i)||i===!1)&&(t[r]=i)}return t}const rK=[...cy].reverse(),iK=cy.length;function oK(e){return t=>Promise.all(t.map(({animation:n,options:r})=>tK(e,n,r)))}function aK(e){let t=oK(e),n=$1(),r=!0;const i=c=>(d,p)=>{var h;const g=wf(e,p,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(g){const{transition:m,transitionEnd:x,...w}=g;d={...d,...w,...x}}return d};function o(c){t=c(e)}function u(c){const{props:d}=e,p=g2(e.parent)||{},h=[],g=new Set;let m={},x=1/0;for(let C=0;C<iK;C++){const $=rK[C],v=n[$],D=d[$]!==void 0?d[$]:p[$],P=nl(D),E=$===c?v.isActive:null;E===!1&&(x=C);let T=D===p[$]&&D!==d[$]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),v.protectedKeys={...m},!v.isActive&&E===null||!D&&!v.prevProp||xf(D)||typeof D=="boolean")continue;const F=uK(v.prevProp,D);let S=F||$===c&&v.isActive&&!T&&P||C>x&&P,j=!1;const k=Array.isArray(D)?D:[D];let B=k.reduce(i($),{});E===!1&&(B={});const{prevResolvedValues:Z={}}=v,V={...Z,...B},q=I=>{S=!0,g.has(I)&&(j=!0,g.delete(I)),v.needsAnimating[I]=!0;const N=e.getValue(I);N&&(N.liveStyle=!1)};for(const I in V){const N=B[I],Q=Z[I];if(m.hasOwnProperty(I))continue;let L=!1;Vm(N)&&Vm(Q)?L=!PC(N,Q):L=N!==Q,L?N!=null?q(I):g.add(I):N!==void 0&&g.has(I)?q(I):v.protectedKeys[I]=!0}v.prevProp=D,v.prevResolvedValues=B,v.isActive&&(m={...m,...B}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&F)||j)&&h.push(...k.map(I=>({animation:I,options:{type:$}})))}if(g.size){const C={};g.forEach($=>{const v=e.getBaseTarget($),D=e.getValue($);D&&(D.liveStyle=!0),C[$]=v??null}),h.push({animation:C})}let w=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(h):Promise.resolve()}function l(c,d){var p;if(n[c].isActive===d)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(g=>{var m;return(m=g.animationState)===null||m===void 0?void 0:m.setActive(c,d)}),n[c].isActive=d;const h=u(c);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:u,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$1(),r=!0}}}function uK(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!PC(t,e):!1}function qo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $1(){return{animate:qo(!0),whileInView:qo(),whileHover:qo(),whileTap:qo(),whileDrag:qo(),whileFocus:qo(),exit:qo()}}class Gu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class sK extends Gu{constructor(t){super(t),t.animationState||(t.animationState=aK(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xf(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 lK=0;class cK extends Gu{constructor(){super(...arguments),this.id=lK++}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 dK={animation:{Feature:sK},exit:{Feature:cK}},fK={x:!1,y:!1};function pK(){return fK.y}const hK=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function y2(e){return{point:{x:e.pageX,y:e.pageY}}}function x1(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function v2(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const w1=()=>({min:0,max:0}),b2=()=>({x:w1(),y:w1()});function mK({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function gK(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 yK(e,t){return mK(gK(e.getBoundingClientRect(),t))}const $2=b.createContext(null),vK=b.createContext({}),bK=b.createContext({}),$K={},{schedule:xK,cancel:CW}=RC(queueMicrotask,!1);function wK(e){const t=zn(e)?e.get():e;return NN(t)?t.toValue():t}function DK(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 x2(e,t){const n=DK(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function D1(e){return t=>{t.pointerType==="touch"||pK()||e(t)}}function EK(e,t,n={}){const[r,i,o]=x2(e,n),u=D1(l=>{const{target:c}=l,d=t(l);if(!d||!c)return;const p=D1(h=>{d(h),c.removeEventListener("pointerleave",p)});c.addEventListener("pointerleave",p,i)});return r.forEach(l=>{l.addEventListener("pointerenter",u,i)}),o}function E1(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&&vr.postRender(()=>o(t,y2(t)))}class CK extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=EK(t,n=>(E1(this.node,n,"Start"),r=>E1(this.node,r,"End"))))}unmount(){}}class SK extends Gu{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=Ef(x1(this.node.current,"focus",()=>this.onFocus()),x1(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Vs=new WeakSet;function C1(e){return t=>{t.key==="Enter"&&e(t)}}function wh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const AK=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=C1(()=>{if(Vs.has(n))return;wh(n,"down");const i=C1(()=>{wh(n,"up")}),o=()=>wh(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)},TK=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function PK(e){return TK.has(e.tagName)||e.tabIndex!==-1}const w2=(e,t)=>t?e===t?!0:w2(e,t.parentElement):!1;function S1(e){return hK(e)&&!0}function _K(e,t,n={}){const[r,i,o]=x2(e,n),u=l=>{const c=l.currentTarget;if(!S1(l)||Vs.has(c))return;Vs.add(c);const d=t(l),p=(m,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",g),!(!S1(m)||!Vs.has(c))&&(Vs.delete(c),d&&d(m,{success:x}))},h=m=>{p(m,n.useGlobalTarget||w2(c,m.target))},g=m=>{p(m,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",g,i)};return r.forEach(l=>{PK(l)||(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",u,i),l.addEventListener("focus",d=>AK(d,i),i)}),o}function A1(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&&vr.postRender(()=>o(t,y2(t)))}class RK extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=_K(t,n=>(A1(this.node,n,"Start"),(r,{success:i})=>A1(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zm=new WeakMap,Dh=new WeakMap,OK=e=>{const t=Zm.get(e.target);t&&t(e)},FK=e=>{e.forEach(OK)};function MK({root:e,...t}){const n=e||document;Dh.has(n)||Dh.set(n,{});const r=Dh.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(FK,{root:e,...t})),r[i]}function kK(e,t,n){const r=MK(t);return Zm.set(e,n),r.observe(e),()=>{Zm.delete(e),r.unobserve(e)}}const BK={some:0,all:1};class IK extends Gu{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,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:BK[i]},l=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:p,onViewportLeave:h}=this.node.getProps(),g=d?p:h;g&&g(c)};return kK(this.node.current,u,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(LK(t,n))&&this.startObserver()}unmount(){}}function LK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const VK={inView:{Feature:IK},tap:{Feature:RK},focus:{Feature:SK},hover:{Feature:CK}},D2=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Sf=b.createContext({}),Ay=typeof window<"u",NK=Ay?b.useLayoutEffect:b.useEffect,Ty=b.createContext({strict:!1});function KK(e,t,n,r,i){var o,u;const{visualElement:l}=b.useContext(Sf),c=b.useContext(Ty),d=b.useContext($2),p=b.useContext(D2).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:p}));const g=h.current,m=b.useContext(bK);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&jK(h.current,n,i,m);const x=b.useRef(!1);b.useInsertionEffect(()=>{g&&x.current&&g.update(n,d)});const w=n[h2],C=b.useRef(!!w&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,w))&&((u=window.MotionHasOptimisedAnimation)===null||u===void 0?void 0:u.call(window,w)));return NK(()=>{g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),xK.render(g.render),C.current&&g.animationState&&g.animationState.animateChanges())}),b.useEffect(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)===null||$===void 0||$.call(window,w)}),C.current=!1))}),g}function jK(e,t,n,r){const{layoutId:i,layout:o,drag:u,dragConstraints:l,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:E2(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!u||l&&v2(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function E2(e){if(e)return e.options.allowProjection!==!1?e.projection:E2(e.parent)}function UK(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):v2(n)&&(n.current=r))},[t])}function Af(e){return xf(e.animate)||dy.some(t=>nl(e[t]))}function C2(e){return!!(Af(e)||e.variants)}function zK(e,t){if(Af(e)){const{initial:n,animate:r}=e;return{initial:n===!1||nl(n)?n:void 0,animate:nl(r)?r:void 0}}return e.inherit!==!1?t:{}}function WK(e){const{initial:t,animate:n}=zK(e,b.useContext(Sf));return b.useMemo(()=>({initial:t,animate:n}),[T1(t),T1(n)])}function T1(e){return Array.isArray(e)?e.join(" "):e}const P1={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"]},Mu={};for(const e in P1)Mu[e]={isEnabled:t=>P1[e].some(n=>!!t[n])};function Jm(e){for(const t in e)Mu[t]={...Mu[t],...e[t]}}const HK=Symbol.for("motionComponentSymbol");function GK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Jm(e);function o(l,c){let d;const p={...b.useContext(D2),...l,layoutId:qK(l)},{isStatic:h}=p,g=WK(l),m=r(l,h);if(!h&&Ay){YK(p,e);const x=ZK(p);d=x.MeasureLayout,g.visualElement=KK(i,m,p,t,x.ProjectionNode)}return Ih.jsxs(Sf.Provider,{value:g,children:[d&&g.visualElement?Ih.jsx(d,{visualElement:g.visualElement,...p}):null,n(i,l,UK(m,g.visualElement,c),m,h,g.visualElement)]})}const u=b.forwardRef(o);return u[HK]=i,u}function qK({layoutId:e}){const t=b.useContext(vK).id;return t&&e!==void 0?t+"-"+e:e}function YK(e,t){const n=b.useContext(Ty).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?zu(!1,r):va(!1,r)}}function ZK(e){const{drag:t,layout:n}=Mu;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 JK=["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 Py(e){return typeof e!="string"||e.includes("-")?!1:!!(JK.indexOf(e)>-1||/[A-Z]/u.test(e))}function S2(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 A2=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 T2(e,t,n,r){S2(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(A2.has(i)?i:Sy(i),t.attrs[i])}function P2(e,{layout:t,layoutId:n}){return Ca.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$K[e]||e==="opacity")}function _y(e,t,n){var r;const{style:i}=e,o={};for(const u in i)(zn(i[u])||t.style&&zn(t.style[u])||P2(u,e)||((r=n==null?void 0:n.getValue(u))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[u]=i[u]);return o}function _2(e,t,n){const r=_y(e,t,n);for(const i in e)if(zn(e[i])||zn(t[i])){const o=El.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function QK(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function XK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const u={latestValues:ej(r,i,o,e),renderState:t()};return n&&(u.mount=l=>n(r,l,u)),u}const R2=e=>(t,n)=>{const r=b.useContext(Sf),i=b.useContext($2),o=()=>XK(e,t,r,i);return n?o():QK(o)};function ej(e,t,n,r){const i={},o=r(e,{});for(const g in o)i[g]=wK(o[g]);let{initial:u,animate:l}=e;const c=Af(e),d=C2(e);t&&d&&!c&&e.inherit!==!1&&(u===void 0&&(u=t.initial),l===void 0&&(l=t.animate));let p=n?n.initial===!1:!1;p=p||u===!1;const h=p?l:u;if(h&&typeof h!="boolean"&&!xf(h)){const g=Array.isArray(h)?h:[h];for(let m=0;m<g.length;m++){const x=ly(e,g[m]);if(x){const{transitionEnd:w,transition:C,...$}=x;for(const v in $){let D=$[v];if(Array.isArray(D)){const P=p?D.length-1:0;D=D[P]}D!==null&&(i[v]=D)}for(const v in w)i[v]=w[v]}}}return i}const Ry=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),O2=()=>({...Ry(),attrs:{}}),F2=(e,t)=>t&&typeof e=="number"?t.transform(e):e,tj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nj=El.length;function rj(e,t,n){let r="",i=!0;for(let o=0;o<nj;o++){const u=El[o],l=e[u];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(u.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const d=F2(l,vy[u]);if(!c){i=!1;const p=tj[u]||u;r+=`${p}(${d}) `}n&&(t[u]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Oy(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let u=!1,l=!1;for(const c in t){const d=t[c];if(Ca.has(c)){u=!0;continue}else if(jC(c)){i[c]=d;continue}else{const p=F2(d,vy[c]);c.startsWith("origin")?(l=!0,o[c]=p):r[c]=p}}if(t.transform||(u||n?r.transform=rj(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:p=0}=o;r.transformOrigin=`${c} ${d} ${p}`}}function _1(e,t,n){return typeof e=="string"?e:Ke.transform(t+n*e)}function ij(e,t,n){const r=_1(t,e.x,e.width),i=_1(n,e.y,e.height);return`${r} ${i}`}const oj={offset:"stroke-dashoffset",array:"stroke-dasharray"},aj={offset:"strokeDashoffset",array:"strokeDasharray"};function uj(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?oj:aj;e[o.offset]=Ke.transform(-r);const u=Ke.transform(t),l=Ke.transform(n);e[o.array]=`${u} ${l}`}function Fy(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:u,pathSpacing:l=1,pathOffset:c=0,...d},p,h){if(Oy(e,d,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:m,dimensions:x}=e;g.transform&&(x&&(m.transform=g.transform),delete g.transform),x&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=ij(x,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),u!==void 0&&uj(g,u,l,c,!1)}const My=e=>typeof e=="string"&&e.toLowerCase()==="svg",sj={useVisualState:R2({scrapeMotionValuesFromProps:_2,createRenderState:O2,onMount:(e,t,{renderState:n,latestValues:r})=>{vr.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),vr.render(()=>{Fy(n,r,My(t.tagName),e.transformTemplate),T2(t,n)})}})},lj={useVisualState:R2({scrapeMotionValuesFromProps:_y,createRenderState:Ry})};function M2(e,t,n){for(const r in t)!zn(t[r])&&!P2(r,n)&&(e[r]=t[r])}function cj({transformTemplate:e},t){return b.useMemo(()=>{const n=Ry();return Oy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function dj(e,t){const n=e.style||{},r={};return M2(r,n,e),Object.assign(r,cj(e,t)),r}function fj(e,t){const n={},r=dj(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 pj=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 Ld(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||pj.has(e)}let k2=e=>!Ld(e);function hj(e){e&&(k2=t=>t.startsWith("on")?!Ld(t):e(t))}try{hj(require("@emotion/is-prop-valid").default)}catch{}function mj(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(k2(i)||n===!0&&Ld(i)||!t&&!Ld(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function gj(e,t,n,r){const i=b.useMemo(()=>{const o=O2();return Fy(o,t,My(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};M2(o,e.style,e),i.style={...o,...i.style}}return i}function yj(e=!1){return(n,r,i,{latestValues:o},u)=>{const c=(Py(n)?gj:fj)(r,o,u,n),d=mj(r,typeof n=="string",e),p=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,g=b.useMemo(()=>zn(h)?h.get():h,[h]);return b.createElement(n,{...p,children:g})}}function vj(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const u={...Py(r)?sj:lj,preloadedFeatures:e,useRender:yj(i),createVisualElement:t,Component:r};return GK(u)}}const Qm={current:null},B2={current:!1};function bj(){if(B2.current=!0,!!Ay)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Qm.current=e.matches;e.addListener(t),t()}else Qm.current=!1}function $j(e,t,n){for(const r in t){const i=t[r],o=n[r];if(zn(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&$f(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(zn(o))e.addValue(r,Id(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{const u=e.getStaticValue(r);e.addValue(r,Id(u!==void 0?u:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const R1=new WeakMap,xj=[...WC,Rn,Hu],wj=e=>xj.find(zC(e)),O1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Dj{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:u},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=my,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=Co.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,vr.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=u;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=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Af(n),this.isVariantNode=C2(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const m=h[g];c[g]!==void 0&&zn(m)&&m.set(c[g],!1)}}mount(t){this.current=t,R1.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)),B2.current||bj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qm.current,process.env.NODE_ENV!=="production"&&$f(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(){R1.delete(this.current),this.projection&&this.projection.unmount(),Nm(this.notifyUpdate),Nm(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=Ca.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&vr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),u&&u(),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 Mu){const n=Mu[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):b2()}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<O1.length;r++){const i=O1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,u=t[o];u&&(this.propEventSubscriptions[i]=this.on(i,u))}this.prevMotionValues=$j(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=Id(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"&&(NC(i)||VC(i))?i=parseFloat(i):!wj(i)&&Hu.test(n)&&(i=XC(t,n)),this.setBaseTarget(t,zn(i)?i.get():i)),zn(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 u=ly(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);u&&(i=u[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!zn(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 p2),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class I2 extends Dj{constructor(){super(...arguments),this.KeyframeResolver=e2}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;zn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ej(e){return window.getComputedStyle(e)}class Cj extends I2{constructor(){super(...arguments),this.type="html",this.renderInstance=S2}readValueFromInstance(t,n){if(Ca.has(n)){const r=by(n);return r&&r.default||0}else{const r=Ej(t),i=(jC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yK(t,n)}build(t,n,r){Oy(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _y(t,n,r)}}class Sj extends I2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=b2}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ca.has(n)){const r=by(n);return r&&r.default||0}return n=A2.has(n)?n:Sy(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return _2(t,n,r)}build(t,n,r){Fy(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){T2(t,n,r,i)}mount(t){this.isSVGTag=My(t.tagName),super.mount(t)}}const Aj=(e,t)=>Py(e)?new Sj(t):new Cj(t,{allowProjection:e!==b.Fragment}),Tj=vj(),Pj=nV(Tj);function _j({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!Eh(t)),i=b.useRef(void 0);if(!Eh(t)){const{renderer:o,...u}=t;i.current=o,Jm(u)}return b.useEffect(()=>{Eh(t)&&t().then(({renderer:o,...u})=>{Jm(u),i.current=o,r(!0)})},[]),Ih.jsx(Ty.Provider,{value:{renderer:i.current,strict:n},children:e})}function Eh(e){return typeof e=="function"}const Rj={renderer:Aj,...dK,...VK};function L2(e){return t=>typeof t===e}var Oj=L2("function"),Fj=e=>e===null,F1=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",M1=e=>!Mj(e)&&!Fj(e)&&(Oj(e)||typeof e=="object"),Mj=L2("undefined");function kj(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Wn(e[r],t[r]))return!1;return!0}function Bj(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 Ij(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(!Wn(n[1],t.get(n[0])))return!1;return!0}function Lj(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 Wn(e,t){if(e===t)return!0;if(e&&M1(e)&&t&&M1(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return kj(e,t);if(e instanceof Map&&t instanceof Map)return Ij(e,t);if(e instanceof Set&&t instanceof Set)return Lj(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Bj(e,t);if(F1(e)&&F1(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)&&!Wn(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var Vj=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Nj=["bigint","boolean","null","number","string","symbol","undefined"];function Tf(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(Kj(t))return t}function ri(e){return t=>Tf(t)===e}function Kj(e){return Vj.includes(e)}function qu(e){return t=>typeof t===e}function jj(e){return Nj.includes(e)}var Uj=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Ee(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(Ee.array(e))return"Array";if(Ee.plainFunction(e))return"Function";const t=Tf(e);return t||"Object"}Ee.array=Array.isArray;Ee.arrayOf=(e,t)=>!Ee.array(e)&&!Ee.function(t)?!1:e.every(n=>t(n));Ee.asyncGeneratorFunction=e=>Tf(e)==="AsyncGeneratorFunction";Ee.asyncFunction=ri("AsyncFunction");Ee.bigint=qu("bigint");Ee.boolean=e=>e===!0||e===!1;Ee.date=ri("Date");Ee.defined=e=>!Ee.undefined(e);Ee.domElement=e=>Ee.object(e)&&!Ee.plainObject(e)&&e.nodeType===1&&Ee.string(e.nodeName)&&Uj.every(t=>t in e);Ee.empty=e=>Ee.string(e)&&e.length===0||Ee.array(e)&&e.length===0||Ee.object(e)&&!Ee.map(e)&&!Ee.set(e)&&Object.keys(e).length===0||Ee.set(e)&&e.size===0||Ee.map(e)&&e.size===0;Ee.error=ri("Error");Ee.function=qu("function");Ee.generator=e=>Ee.iterable(e)&&Ee.function(e.next)&&Ee.function(e.throw);Ee.generatorFunction=ri("GeneratorFunction");Ee.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Ee.iterable=e=>!Ee.nullOrUndefined(e)&&Ee.function(e[Symbol.iterator]);Ee.map=ri("Map");Ee.nan=e=>Number.isNaN(e);Ee.null=e=>e===null;Ee.nullOrUndefined=e=>Ee.null(e)||Ee.undefined(e);Ee.number=e=>qu("number")(e)&&!Ee.nan(e);Ee.numericString=e=>Ee.string(e)&&e.length>0&&!Number.isNaN(Number(e));Ee.object=e=>!Ee.nullOrUndefined(e)&&(Ee.function(e)||typeof e=="object");Ee.oneOf=(e,t)=>Ee.array(e)?e.indexOf(t)>-1:!1;Ee.plainFunction=ri("Function");Ee.plainObject=e=>{if(Tf(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Ee.primitive=e=>Ee.null(e)||jj(typeof e);Ee.promise=ri("Promise");Ee.propertyOf=(e,t,n)=>{if(!Ee.object(e)||!t)return!1;const r=e[t];return Ee.function(n)?n(r):Ee.defined(r)};Ee.regexp=ri("RegExp");Ee.set=ri("Set");Ee.string=qu("string");Ee.symbol=qu("symbol");Ee.undefined=qu("undefined");Ee.weakMap=ri("WeakMap");Ee.weakSet=ri("WeakSet");var Se=Ee;function zj(...e){return e.every(t=>Se.string(t)||Se.array(t)||Se.plainObject(t))}function Wj(e,t,n){return V2(e,t)?[e,t].every(Se.array)?!e.some(V1(n))&&t.some(V1(n)):[e,t].every(Se.plainObject)?!Object.entries(e).some(L1(n))&&Object.entries(t).some(L1(n)):t===n:!1}function k1(e,t,n){const{actual:r,key:i,previous:o,type:u}=n,l=gi(e,i),c=gi(t,i);let d=[l,c].every(Se.number)&&(u==="increased"?l<c:l>c);return Se.undefined(r)||(d=d&&c===r),Se.undefined(o)||(d=d&&l===o),d}function B1(e,t,n){const{key:r,type:i,value:o}=n,u=gi(e,r),l=gi(t,r),c=i==="added"?u:l,d=i==="added"?l:u;if(!Se.nullOrUndefined(o)){if(Se.defined(c)){if(Se.array(c)||Se.plainObject(c))return Wj(c,d,o)}else return Wn(d,o);return!1}return[u,l].every(Se.array)?!d.every(ky(c)):[u,l].every(Se.plainObject)?Hj(Object.keys(c),Object.keys(d)):![u,l].every(p=>Se.primitive(p)&&Se.defined(p))&&(i==="added"?!Se.defined(u)&&Se.defined(l):Se.defined(u)&&!Se.defined(l))}function I1(e,t,{key:n}={}){let r=gi(e,n),i=gi(t,n);if(!V2(r,i))throw new TypeError("Inputs have different types");if(!zj(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(Se.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function L1(e){return([t,n])=>Se.array(e)?Wn(e,n)||e.some(r=>Wn(r,n)||Se.array(n)&&ky(n)(r)):Se.plainObject(e)&&e[t]?!!e[t]&&Wn(e[t],n):Wn(e,n)}function Hj(e,t){return t.some(n=>!e.includes(n))}function V1(e){return t=>Se.array(e)?e.some(n=>Wn(n,t)||Se.array(t)&&ky(t)(n)):Wn(e,t)}function As(e,t){return Se.array(e)?e.some(n=>Wn(n,t)):Wn(e,t)}function ky(e){return t=>e.some(n=>Wn(n,t))}function V2(...e){return e.every(Se.array)||e.every(Se.number)||e.every(Se.plainObject)||e.every(Se.string)}function gi(e,t){return Se.plainObject(e)||Se.array(e)?Se.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):Se.number(t)?e[t]:e:e}function Vd(e,t){if([e,t].some(Se.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(p=>Se.plainObject(p)||Se.array(p)))throw new Error("Expected plain objects or array");return{added:(p,h)=>{try{return B1(e,t,{key:p,type:"added",value:h})}catch{return!1}},changed:(p,h,g)=>{try{const m=gi(e,p),x=gi(t,p),w=Se.defined(h),C=Se.defined(g);if(w||C){const $=C?As(g,m):!As(h,m),v=As(h,x);return $&&v}return[m,x].every(Se.array)||[m,x].every(Se.plainObject)?!Wn(m,x):m!==x}catch{return!1}},changedFrom:(p,h,g)=>{if(!Se.defined(p))return!1;try{const m=gi(e,p),x=gi(t,p),w=Se.defined(g);return As(h,m)&&(w?As(g,x):!w)}catch{return!1}},decreased:(p,h,g)=>{if(!Se.defined(p))return!1;try{return k1(e,t,{key:p,actual:h,previous:g,type:"decreased"})}catch{return!1}},emptied:p=>{try{const[h,g]=I1(e,t,{key:p});return!!h.length&&!g.length}catch{return!1}},filled:p=>{try{const[h,g]=I1(e,t,{key:p});return!h.length&&!!g.length}catch{return!1}},increased:(p,h,g)=>{if(!Se.defined(p))return!1;try{return k1(e,t,{key:p,actual:h,previous:g,type:"increased"})}catch{return!1}},removed:(p,h)=>{try{return B1(e,t,{key:p,type:"removed",value:h})}catch{return!1}}}}var Ch,N1;function Gj(){if(N1)return Ch;N1=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Ch={left:i("scrollLeft"),top:i("scrollTop")};function i(l){return function(d,p,h,g){h=h||{},typeof h=="function"&&(g=h,h={}),typeof g!="function"&&(g=u);var m=r(),x=d[l],w=h.ease||o,C=isNaN(h.duration)?350:+h.duration,$=!1;return x===p?g(e,d[l]):requestAnimationFrame(D),v;function v(){$=!0}function D(P){if($)return g(t,d[l]);var E=r(),T=n(1,(E-m)/C),F=w(T);d[l]=F*(p-x)+x,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){g(null,d[l])})}}}function o(l){return .5*(1-Math.cos(Math.PI*l))}function u(){}return Ch}var qj=Gj();const Yj=$a(qj);var rd={exports:{}},Zj=rd.exports,K1;function Jj(){return K1||(K1=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(Zj,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})}(rd)),rd.exports}var Qj=Jj();const N2=$a(Qj);var Sh,j1;function Xj(){if(j1)return Sh;j1=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,Sh=n,Sh}var eU=Xj();const U1=$a(eU);var Ah,z1;function tU(){if(z1)return Ah;z1=1;var e=function(v){return t(v)&&!n(v)};function t($){return!!$&&typeof $=="object"}function n($){var v=Object.prototype.toString.call($);return v==="[object RegExp]"||v==="[object Date]"||o($)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o($){return $.$$typeof===i}function u($){return Array.isArray($)?[]:{}}function l($,v){return v.clone!==!1&&v.isMergeableObject($)?w(u($),$,v):$}function c($,v,D){return $.concat(v).map(function(P){return l(P,D)})}function d($,v){if(!v.customMerge)return w;var D=v.customMerge($);return typeof D=="function"?D:w}function p($){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols($).filter(function(v){return Object.propertyIsEnumerable.call($,v)}):[]}function h($){return Object.keys($).concat(p($))}function g($,v){try{return v in $}catch{return!1}}function m($,v){return g($,v)&&!(Object.hasOwnProperty.call($,v)&&Object.propertyIsEnumerable.call($,v))}function x($,v,D){var P={};return D.isMergeableObject($)&&h($).forEach(function(E){P[E]=l($[E],D)}),h(v).forEach(function(E){m($,E)||(g($,E)&&D.isMergeableObject(v[E])?P[E]=d(E,D)($[E],v[E],D):P[E]=l(v[E],D))}),P}function w($,v,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=l;var P=Array.isArray(v),E=Array.isArray($),T=P===E;return T?P?D.arrayMerge($,v,D):x($,v,D):l(v,D)}w.all=function(v,D){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(P,E){return w(P,E,D)},{})};var C=w;return Ah=C,Ah}var nU=tU();const Zr=$a(nU);var Nc={exports:{}},Kc={exports:{}},ht={};/** @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 W1;function rU(){if(W1)return ht;W1=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,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,v=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 l:case p:case x:case m:case u:return E;default:return T}}case n:return T}}}function P(E){return D(E)===d}return ht.AsyncMode=c,ht.ConcurrentMode=d,ht.ContextConsumer=l,ht.ContextProvider=u,ht.Element=t,ht.ForwardRef=p,ht.Fragment=r,ht.Lazy=x,ht.Memo=m,ht.Portal=n,ht.Profiler=o,ht.StrictMode=i,ht.Suspense=h,ht.isAsyncMode=function(E){return P(E)||D(E)===c},ht.isConcurrentMode=P,ht.isContextConsumer=function(E){return D(E)===l},ht.isContextProvider=function(E){return D(E)===u},ht.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},ht.isForwardRef=function(E){return D(E)===p},ht.isFragment=function(E){return D(E)===r},ht.isLazy=function(E){return D(E)===x},ht.isMemo=function(E){return D(E)===m},ht.isPortal=function(E){return D(E)===n},ht.isProfiler=function(E){return D(E)===o},ht.isStrictMode=function(E){return D(E)===i},ht.isSuspense=function(E){return D(E)===h},ht.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===i||E===h||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===x||E.$$typeof===m||E.$$typeof===u||E.$$typeof===l||E.$$typeof===p||E.$$typeof===C||E.$$typeof===$||E.$$typeof===v||E.$$typeof===w)},ht.typeOf=D,ht}var mt={};/** @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 H1;function iU(){return H1||(H1=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,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function D(ae){return typeof ae=="string"||typeof ae=="function"||ae===r||ae===d||ae===o||ae===i||ae===h||ae===g||typeof ae=="object"&&ae!==null&&(ae.$$typeof===x||ae.$$typeof===m||ae.$$typeof===u||ae.$$typeof===l||ae.$$typeof===p||ae.$$typeof===C||ae.$$typeof===$||ae.$$typeof===v||ae.$$typeof===w)}function P(ae){if(typeof ae=="object"&&ae!==null){var Re=ae.$$typeof;switch(Re){case t:var et=ae.type;switch(et){case c:case d:case r:case o:case i:case h:return et;default:var it=et&&et.$$typeof;switch(it){case l:case p:case x:case m:case u:return it;default:return Re}}case n:return Re}}}var E=c,T=d,F=l,S=u,j=t,k=p,B=r,Z=x,V=m,q=n,H=o,z=i,I=h,N=!1;function Q(ae){return N||(N=!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.")),L(ae)||P(ae)===c}function L(ae){return P(ae)===d}function U(ae){return P(ae)===l}function ie(ae){return P(ae)===u}function oe(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===t}function me(ae){return P(ae)===p}function ne(ae){return P(ae)===r}function ve(ae){return P(ae)===x}function ye(ae){return P(ae)===m}function X(ae){return P(ae)===n}function ge(ae){return P(ae)===o}function be(ae){return P(ae)===i}function pe(ae){return P(ae)===h}mt.AsyncMode=E,mt.ConcurrentMode=T,mt.ContextConsumer=F,mt.ContextProvider=S,mt.Element=j,mt.ForwardRef=k,mt.Fragment=B,mt.Lazy=Z,mt.Memo=V,mt.Portal=q,mt.Profiler=H,mt.StrictMode=z,mt.Suspense=I,mt.isAsyncMode=Q,mt.isConcurrentMode=L,mt.isContextConsumer=U,mt.isContextProvider=ie,mt.isElement=oe,mt.isForwardRef=me,mt.isFragment=ne,mt.isLazy=ve,mt.isMemo=ye,mt.isPortal=X,mt.isProfiler=ge,mt.isStrictMode=be,mt.isSuspense=pe,mt.isValidElementType=D,mt.typeOf=P}()),mt}var G1;function K2(){return G1||(G1=1,process.env.NODE_ENV==="production"?Kc.exports=rU():Kc.exports=iU()),Kc.exports}/*
170
- object-assign
171
- (c) Sindre Sorhus
172
- @license MIT
173
- */var Th,q1;function oU(){if(q1)return Th;q1=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 u={},l=0;l<10;l++)u["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(u).map(function(p){return u[p]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Th=i()?Object.assign:function(o,u){for(var l,c=r(o),d,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var h in l)t.call(l,h)&&(c[h]=l[h]);if(e){d=e(l);for(var g=0;g<d.length;g++)n.call(l,d[g])&&(c[d[g]]=l[d[g]])}}return c},Th}var Ph,Y1;function By(){if(Y1)return Ph;Y1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ph=e,Ph}var _h,Z1;function j2(){return Z1||(Z1=1,_h=Function.call.bind(Object.prototype.hasOwnProperty)),_h}var Rh,J1;function aU(){if(J1)return Rh;J1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=By(),n={},r=j2();e=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function i(o,u,l,c,d){if(process.env.NODE_ENV!=="production"){for(var p in o)if(r(o,p)){var h;try{if(typeof o[p]!="function"){var g=Error((c||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}h=o[p](u,p,c,l,null,t)}catch(x){h=x}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+p+"` 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 m=d?d():"";e("Failed "+l+" type: "+h.message+(m??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Rh=i,Rh}var Oh,Q1;function uU(){if(Q1)return Oh;Q1=1;var e=K2(),t=oU(),n=By(),r=j2(),i=aU(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function u(){return null}return Oh=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(L){var U=L&&(d&&L[d]||L[p]);if(typeof U=="function")return U}var g="<<anonymous>>",m={array:$("array"),bigint:$("bigint"),bool:$("boolean"),func:$("function"),number:$("number"),object:$("object"),string:$("string"),symbol:$("symbol"),any:v(),arrayOf:D,element:P(),elementType:E(),instanceOf:T,node:k(),objectOf:S,oneOf:F,oneOfType:j,shape:Z,exact:V};function x(L,U){return L===U?L!==0||1/L===1/U:L!==L&&U!==U}function w(L,U){this.message=L,this.data=U&&typeof U=="object"?U:{},this.stack=""}w.prototype=Error.prototype;function C(L){if(process.env.NODE_ENV!=="production")var U={},ie=0;function oe(ne,ve,ye,X,ge,be,pe){if(X=X||g,be=be||ye,pe!==n){if(c){var ae=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 ae.name="Invariant Violation",ae}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=X+":"+ye;!U[Re]&&ie<3&&(o("You are manually calling a React.PropTypes validation function for the `"+be+"` prop on `"+X+"`. 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."),U[Re]=!0,ie++)}}return ve[ye]==null?ne?ve[ye]===null?new w("The "+ge+" `"+be+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new w("The "+ge+" `"+be+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:L(ve,ye,X,ge,be)}var me=oe.bind(null,!1);return me.isRequired=oe.bind(null,!0),me}function $(L){function U(ie,oe,me,ne,ve,ye){var X=ie[oe],ge=z(X);if(ge!==L){var be=I(X);return new w("Invalid "+ne+" `"+ve+"` of type "+("`"+be+"` supplied to `"+me+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return C(U)}function v(){return C(u)}function D(L){function U(ie,oe,me,ne,ve){if(typeof L!="function")return new w("Property `"+ve+"` of component `"+me+"` has invalid PropType notation inside arrayOf.");var ye=ie[oe];if(!Array.isArray(ye)){var X=z(ye);return new w("Invalid "+ne+" `"+ve+"` of type "+("`"+X+"` supplied to `"+me+"`, expected an array."))}for(var ge=0;ge<ye.length;ge++){var be=L(ye,ge,me,ne,ve+"["+ge+"]",n);if(be instanceof Error)return be}return null}return C(U)}function P(){function L(U,ie,oe,me,ne){var ve=U[ie];if(!l(ve)){var ye=z(ve);return new w("Invalid "+me+" `"+ne+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return C(L)}function E(){function L(U,ie,oe,me,ne){var ve=U[ie];if(!e.isValidElementType(ve)){var ye=z(ve);return new w("Invalid "+me+" `"+ne+"` of type "+("`"+ye+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return C(L)}function T(L){function U(ie,oe,me,ne,ve){if(!(ie[oe]instanceof L)){var ye=L.name||g,X=Q(ie[oe]);return new w("Invalid "+ne+" `"+ve+"` of type "+("`"+X+"` supplied to `"+me+"`, expected ")+("instance of `"+ye+"`."))}return null}return C(U)}function F(L){if(!Array.isArray(L))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.")),u;function U(ie,oe,me,ne,ve){for(var ye=ie[oe],X=0;X<L.length;X++)if(x(ye,L[X]))return null;var ge=JSON.stringify(L,function(pe,ae){var Re=I(ae);return Re==="symbol"?String(ae):ae});return new w("Invalid "+ne+" `"+ve+"` of value `"+String(ye)+"` "+("supplied to `"+me+"`, expected one of "+ge+"."))}return C(U)}function S(L){function U(ie,oe,me,ne,ve){if(typeof L!="function")return new w("Property `"+ve+"` of component `"+me+"` has invalid PropType notation inside objectOf.");var ye=ie[oe],X=z(ye);if(X!=="object")return new w("Invalid "+ne+" `"+ve+"` of type "+("`"+X+"` supplied to `"+me+"`, expected an object."));for(var ge in ye)if(r(ye,ge)){var be=L(ye,ge,me,ne,ve+"."+ge,n);if(be instanceof Error)return be}return null}return C(U)}function j(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var U=0;U<L.length;U++){var ie=L[U];if(typeof ie!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(ie)+" at index "+U+"."),u}function oe(me,ne,ve,ye,X){for(var ge=[],be=0;be<L.length;be++){var pe=L[be],ae=pe(me,ne,ve,ye,X,n);if(ae==null)return null;ae.data&&r(ae.data,"expectedType")&&ge.push(ae.data.expectedType)}var Re=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new w("Invalid "+ye+" `"+X+"` supplied to "+("`"+ve+"`"+Re+"."))}return C(oe)}function k(){function L(U,ie,oe,me,ne){return q(U[ie])?null:new w("Invalid "+me+" `"+ne+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return C(L)}function B(L,U,ie,oe,me){return new w((L||"React class")+": "+U+" type `"+ie+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+me+"`.")}function Z(L){function U(ie,oe,me,ne,ve){var ye=ie[oe],X=z(ye);if(X!=="object")return new w("Invalid "+ne+" `"+ve+"` of type `"+X+"` "+("supplied to `"+me+"`, expected `object`."));for(var ge in L){var be=L[ge];if(typeof be!="function")return B(me,ne,ve,ge,I(be));var pe=be(ye,ge,me,ne,ve+"."+ge,n);if(pe)return pe}return null}return C(U)}function V(L){function U(ie,oe,me,ne,ve){var ye=ie[oe],X=z(ye);if(X!=="object")return new w("Invalid "+ne+" `"+ve+"` of type `"+X+"` "+("supplied to `"+me+"`, expected `object`."));var ge=t({},ie[oe],L);for(var be in ge){var pe=L[be];if(r(L,be)&&typeof pe!="function")return B(me,ne,ve,be,I(pe));if(!pe)return new w("Invalid "+ne+" `"+ve+"` key `"+be+"` supplied to `"+me+"`.\nBad object: "+JSON.stringify(ie[oe],null," ")+`
174
- Valid keys: `+JSON.stringify(Object.keys(L),null," "));var ae=pe(ye,be,me,ne,ve+"."+be,n);if(ae)return ae}return null}return C(U)}function q(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(q);if(L===null||l(L))return!0;var U=h(L);if(U){var ie=U.call(L),oe;if(U!==L.entries){for(;!(oe=ie.next()).done;)if(!q(oe.value))return!1}else for(;!(oe=ie.next()).done;){var me=oe.value;if(me&&!q(me[1]))return!1}}else return!1;return!0;default:return!1}}function H(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function z(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":H(U,L)?"symbol":U}function I(L){if(typeof L>"u"||L===null)return""+L;var U=z(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function N(L){var U=I(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function Q(L){return!L.constructor||!L.constructor.name?g:L.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},Oh}var Fh,X1;function sU(){if(X1)return Fh;X1=1;var e=By();function t(){}function n(){}return n.resetWarningCache=t,Fh=function(){function r(u,l,c,d,p,h){if(h!==e){var g=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 g.name="Invariant Violation",g}}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},Fh}var e3;function lU(){if(e3)return Nc.exports;if(e3=1,process.env.NODE_ENV!=="production"){var e=K2(),t=!0;Nc.exports=uU()(e.isElement,t)}else Nc.exports=sU()();return Nc.exports}var cU=lU();const $e=$a(cU);/**!
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 Al=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",dU=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Al&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function fU(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function pU(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},dU))}}var hU=Al&&window.Promise,mU=hU?fU:pU;function U2(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Sa(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function Iy(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Tl(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Sa(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:Tl(Iy(e))}function z2(e){return e&&e.referenceNode?e.referenceNode:e}var t3=Al&&!!(window.MSInputMethodContext&&document.documentMode),n3=Al&&/MSIE 10/.test(navigator.userAgent);function Yu(e){return e===11?t3:e===10?n3:t3||n3}function ku(e){if(!e)return document.documentElement;for(var t=Yu(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&&Sa(n,"position")==="static"?ku(n):n}function gU(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||ku(e.firstElementChild)===e}function Xm(e){return e.parentNode!==null?Xm(e.parentNode):e}function Nd(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 u=o.commonAncestorContainer;if(e!==u&&t!==u||r.contains(i))return gU(u)?u:ku(u);var l=Xm(e);return l.host?Nd(l.host,t):Nd(e,Xm(t).host)}function Bu(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 yU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Bu(t,"top"),i=Bu(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 r3(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 i3(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Yu(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function W2(e){var t=e.body,n=e.documentElement,r=Yu(10)&&getComputedStyle(n);return{height:i3("Height",t,n,r),width:i3("Width",t,n,r)}}var vU=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},bU=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}}(),Iu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Lr=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 Po(e){return Lr({},e,{right:e.left+e.width,bottom:e.top+e.height})}function eg(e){var t={};try{if(Yu(10)){t=e.getBoundingClientRect();var n=Bu(e,"top"),r=Bu(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"?W2(e.ownerDocument):{},u=o.width||e.clientWidth||i.width,l=o.height||e.clientHeight||i.height,c=e.offsetWidth-u,d=e.offsetHeight-l;if(c||d){var p=Sa(e);c-=r3(p,"x"),d-=r3(p,"y"),i.width-=c,i.height-=d}return Po(i)}function Ly(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Yu(10),i=t.nodeName==="HTML",o=eg(e),u=eg(t),l=Tl(e),c=Sa(t),d=parseFloat(c.borderTopWidth),p=parseFloat(c.borderLeftWidth);n&&i&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var h=Po({top:o.top-u.top-d,left:o.left-u.left-p,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var g=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);h.top-=d-g,h.bottom-=d-g,h.left-=p-m,h.right-=p-m,h.marginTop=g,h.marginLeft=m}return(r&&!n?t.contains(l):t===l&&l.nodeName!=="BODY")&&(h=yU(h,t)),h}function $U(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=Ly(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),u=t?0:Bu(n),l=t?0:Bu(n,"left"),c={top:u-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:i,height:o};return Po(c)}function H2(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Sa(e,"position")==="fixed")return!0;var n=Iy(e);return n?H2(n):!1}function G2(e){if(!e||!e.parentElement||Yu())return document.documentElement;for(var t=e.parentElement;t&&Sa(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Vy(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},u=i?G2(e):Nd(e,z2(t));if(r==="viewport")o=$U(u,i);else{var l=void 0;r==="scrollParent"?(l=Tl(Iy(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):r==="window"?l=e.ownerDocument.documentElement:l=r;var c=Ly(l,u,i);if(l.nodeName==="HTML"&&!H2(u)){var d=W2(e.ownerDocument),p=d.height,h=d.width;o.top+=c.top-c.marginTop,o.bottom=p+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var g=typeof n=="number";return o.left+=g?n:n.left||0,o.top+=g?n:n.top||0,o.right-=g?n:n.right||0,o.bottom-=g?n:n.bottom||0,o}function xU(e){var t=e.width,n=e.height;return t*n}function q2(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 u=Vy(n,r,o,i),l={top:{width:u.width,height:t.top-u.top},right:{width:u.right-t.right,height:u.height},bottom:{width:u.width,height:u.bottom-t.bottom},left:{width:t.left-u.left,height:u.height}},c=Object.keys(l).map(function(g){return Lr({key:g},l[g],{area:xU(l[g])})}).sort(function(g,m){return m.area-g.area}),d=c.filter(function(g){var m=g.width,x=g.height;return m>=n.clientWidth&&x>=n.clientHeight}),p=d.length>0?d[0].key:c[0].key,h=e.split("-")[1];return p+(h?"-"+h:"")}function Y2(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?G2(t):Nd(t,z2(n));return Ly(n,i,r)}function Z2(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 Kd(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 J2(e,t,n){n=n.split("-")[0];var r=Z2(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,u=o?"top":"left",l=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[u]=t[u]+t[c]/2-r[c]/2,n===l?i[l]=t[l]-r[d]:i[l]=t[Kd(l)],i}function Pl(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function wU(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=Pl(e,function(i){return i[t]===n});return e.indexOf(r)}function Q2(e,t,n){var r=n===void 0?e:e.slice(0,wU(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&&U2(o)&&(t.offsets.popper=Po(t.offsets.popper),t.offsets.reference=Po(t.offsets.reference),t=o(t,i))}),t}function DU(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Y2(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=q2(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=J2(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Q2(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function X2(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function Ny(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 EU(){return this.state.isDestroyed=!0,X2(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[Ny("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function eS(e){var t=e.ownerDocument;return t?t.defaultView:window}function tS(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||tS(Tl(o.parentNode),t,n,r),r.push(o)}function CU(e,t,n,r){n.updateBound=r,eS(e).addEventListener("resize",n.updateBound,{passive:!0});var i=Tl(e);return tS(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function SU(){this.state.eventsEnabled||(this.state=CU(this.reference,this.options,this.state,this.scheduleUpdate))}function AU(e,t){return eS(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 TU(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=AU(this.reference,this.state))}function Ky(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function tg(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&Ky(t[n])&&(r="px"),e.style[n]=t[n]+r})}function PU(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function _U(e){return tg(e.instance.popper,e.styles),PU(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&tg(e.arrowElement,e.arrowStyles),e}function RU(e,t,n,r,i){var o=Y2(i,t,e,n.positionFixed),u=q2(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",u),tg(t,{position:n.positionFixed?"fixed":"absolute"}),n}function OU(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,u=Math.floor,l=function($){return $},c=o(i.width),d=o(r.width),p=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,g=c%2===d%2,m=c%2===1&&d%2===1,x=t?p||h||g?o:u:l,w=t?o:l;return{left:x(m&&!h&&t?r.left-1:r.left),top:w(r.top),bottom:w(r.bottom),right:x(r.right)}}var FU=Al&&/Firefox/i.test(navigator.userAgent);function MU(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=Pl(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 u=o!==void 0?o:t.gpuAcceleration,l=ku(e.instance.popper),c=eg(l),d={position:i.position},p=OU(e,window.devicePixelRatio<2||!FU),h=n==="bottom"?"top":"bottom",g=r==="right"?"left":"right",m=Ny("transform"),x=void 0,w=void 0;if(h==="bottom"?l.nodeName==="HTML"?w=-l.clientHeight+p.bottom:w=-c.height+p.bottom:w=p.top,g==="right"?l.nodeName==="HTML"?x=-l.clientWidth+p.right:x=-c.width+p.right:x=p.left,u&&m)d[m]="translate3d("+x+"px, "+w+"px, 0)",d[h]=0,d[g]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,$=g==="right"?-1:1;d[h]=w*C,d[g]=x*$,d.willChange=h+", "+g}var v={"x-placement":e.placement};return e.attributes=Lr({},v,e.attributes),e.styles=Lr({},d,e.styles),e.arrowStyles=Lr({},e.offsets.arrow,e.arrowStyles),e}function nS(e,t,n){var r=Pl(e,function(l){var c=l.name;return c===t}),i=!!r&&e.some(function(l){return l.name===n&&l.enabled&&l.order<r.order});if(!i){var o="`"+t+"`",u="`"+n+"`";console.warn(u+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function kU(e,t){var n;if(!nS(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,u=o.popper,l=o.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",p=c?"Top":"Left",h=p.toLowerCase(),g=c?"left":"top",m=c?"bottom":"right",x=Z2(r)[d];l[m]-x<u[h]&&(e.offsets.popper[h]-=u[h]-(l[m]-x)),l[h]+x>u[m]&&(e.offsets.popper[h]+=l[h]+x-u[m]),e.offsets.popper=Po(e.offsets.popper);var w=l[h]+l[d]/2-x/2,C=Sa(e.instance.popper),$=parseFloat(C["margin"+p]),v=parseFloat(C["border"+p+"Width"]),D=w-e.offsets.popper[h]-$-v;return D=Math.max(Math.min(u[d]-x,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Iu(n,h,Math.round(D)),Iu(n,g,""),n),e}function BU(e){return e==="end"?"start":e==="start"?"end":e}var rS=["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"],Mh=rS.slice(3);function o3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Mh.indexOf(e),r=Mh.slice(n+1).concat(Mh.slice(0,n));return t?r.reverse():r}var kh={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function IU(e,t){if(X2(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=Vy(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Kd(r),o=e.placement.split("-")[1]||"",u=[];switch(t.behavior){case kh.FLIP:u=[r,i];break;case kh.CLOCKWISE:u=o3(r);break;case kh.COUNTERCLOCKWISE:u=o3(r,!0);break;default:u=t.behavior}return u.forEach(function(l,c){if(r!==l||u.length===c+1)return e;r=e.placement.split("-")[0],i=Kd(r);var d=e.offsets.popper,p=e.offsets.reference,h=Math.floor,g=r==="left"&&h(d.right)>h(p.left)||r==="right"&&h(d.left)<h(p.right)||r==="top"&&h(d.bottom)>h(p.top)||r==="bottom"&&h(d.top)<h(p.bottom),m=h(d.left)<h(n.left),x=h(d.right)>h(n.right),w=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),$=r==="left"&&m||r==="right"&&x||r==="top"&&w||r==="bottom"&&C,v=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(v&&o==="start"&&m||v&&o==="end"&&x||!v&&o==="start"&&w||!v&&o==="end"&&C),P=!!t.flipVariationsByContent&&(v&&o==="start"&&x||v&&o==="end"&&m||!v&&o==="start"&&C||!v&&o==="end"&&w),E=D||P;(g||$||E)&&(e.flipped=!0,(g||$)&&(r=u[c+1]),E&&(o=BU(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=Lr({},e.offsets.popper,J2(e.instance.popper,e.offsets.reference,e.placement)),e=Q2(e.instance.modifiers,e,"flip"))}),e}function LU(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,u=["top","bottom"].indexOf(i)!==-1,l=u?"right":"bottom",c=u?"left":"top",d=u?"width":"height";return n[l]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[d]),n[c]>o(r[l])&&(e.offsets.popper[c]=o(r[l])),e}function VU(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],u=i[2];if(!o)return e;if(u.indexOf("%")===0){var l=void 0;switch(u){case"%p":l=n;break;case"%":case"%r":default:l=r}var c=Po(l);return c[t]/100*o}else if(u==="vh"||u==="vw"){var d=void 0;return u==="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 NU(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,u=e.split(/(\+|\-)/).map(function(p){return p.trim()}),l=u.indexOf(Pl(u,function(p){return p.search(/,|\s/)!==-1}));u[l]&&u[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=l!==-1?[u.slice(0,l).concat([u[l].split(c)[0]]),[u[l].split(c)[1]].concat(u.slice(l+1))]:[u];return d=d.map(function(p,h){var g=(h===1?!o:o)?"height":"width",m=!1;return p.reduce(function(x,w){return x[x.length-1]===""&&["+","-"].indexOf(w)!==-1?(x[x.length-1]=w,m=!0,x):m?(x[x.length-1]+=w,m=!1,x):x.concat(w)},[]).map(function(x){return VU(x,g,t,n)})}),d.forEach(function(p,h){p.forEach(function(g,m){Ky(g)&&(i[h]+=g*(p[m-1]==="-"?-1:1))})}),i}function KU(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,u=i.reference,l=r.split("-")[0],c=void 0;return Ky(+n)?c=[+n,0]:c=NU(n,o,u,l),l==="left"?(o.top+=c[0],o.left-=c[1]):l==="right"?(o.top+=c[0],o.left+=c[1]):l==="top"?(o.left+=c[0],o.top-=c[1]):l==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function jU(e,t){var n=t.boundariesElement||ku(e.instance.popper);e.instance.reference===n&&(n=ku(n));var r=Ny("transform"),i=e.instance.popper.style,o=i.top,u=i.left,l=i[r];i.top="",i.left="",i[r]="";var c=Vy(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=u,i[r]=l,t.boundaries=c;var d=t.priority,p=e.offsets.popper,h={primary:function(m){var x=p[m];return p[m]<c[m]&&!t.escapeWithReference&&(x=Math.max(p[m],c[m])),Iu({},m,x)},secondary:function(m){var x=m==="right"?"left":"top",w=p[x];return p[m]>c[m]&&!t.escapeWithReference&&(w=Math.min(p[x],c[m]-(m==="right"?p.width:p.height))),Iu({},x,w)}};return d.forEach(function(g){var m=["left","top"].indexOf(g)!==-1?"primary":"secondary";p=Lr({},p,h[m](g))}),e.offsets.popper=p,e}function UU(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,u=i.popper,l=["bottom","top"].indexOf(n)!==-1,c=l?"left":"top",d=l?"width":"height",p={start:Iu({},c,o[c]),end:Iu({},c,o[c]+o[d]-u[d])};e.offsets.popper=Lr({},u,p[r])}return e}function zU(e){if(!nS(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Pl(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 WU(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,u=["left","right"].indexOf(n)!==-1,l=["top","left"].indexOf(n)===-1;return i[u?"left":"top"]=o[n]-(l?i[u?"width":"height"]:0),e.placement=Kd(t),e.offsets.popper=Po(i),e}var HU={shift:{order:100,enabled:!0,fn:UU},offset:{order:200,enabled:!0,fn:KU,offset:0},preventOverflow:{order:300,enabled:!0,fn:jU,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:LU},arrow:{order:500,enabled:!0,fn:kU,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:IU,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:WU},hide:{order:800,enabled:!0,fn:zU},computeStyle:{order:850,enabled:!0,fn:MU,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:_U,onLoad:RU,gpuAcceleration:void 0}},GU={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:HU},ol=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};vU(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=mU(this.update.bind(this)),this.options=Lr({},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(Lr({},e.Defaults.modifiers,i.modifiers)).forEach(function(u){r.options.modifiers[u]=Lr({},e.Defaults.modifiers[u]||{},i.modifiers?i.modifiers[u]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(u){return Lr({name:u},r.options.modifiers[u])}).sort(function(u,l){return u.order-l.order}),this.modifiers.forEach(function(u){u.enabled&&U2(u.onLoad)&&u.onLoad(r.reference,r.popper,r.options,u,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return bU(e,[{key:"update",value:function(){return DU.call(this)}},{key:"destroy",value:function(){return EU.call(this)}},{key:"enableEventListeners",value:function(){return SU.call(this)}},{key:"disableEventListeners",value:function(){return TU.call(this)}}]),e}();ol.Utils=(typeof window<"u"?window:global).PopperUtils;ol.placements=rS;ol.Defaults=GU;var qU=["innerHTML","ownerDocument","style","attributes","nodeValue"],YU=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ZU=["bigint","boolean","null","number","string","symbol","undefined"];function Pf(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(JU(t))return t}function ii(e){return function(t){return Pf(t)===e}}function JU(e){return YU.includes(e)}function Zu(e){return function(t){return typeof t===e}}function QU(e){return ZU.includes(e)}function ue(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(ue.array(e))return"Array";if(ue.plainFunction(e))return"Function";var t=Pf(e);return t||"Object"}ue.array=Array.isArray;ue.arrayOf=function(e,t){return!ue.array(e)&&!ue.function(t)?!1:e.every(function(n){return t(n)})};ue.asyncGeneratorFunction=function(e){return Pf(e)==="AsyncGeneratorFunction"};ue.asyncFunction=ii("AsyncFunction");ue.bigint=Zu("bigint");ue.boolean=function(e){return e===!0||e===!1};ue.date=ii("Date");ue.defined=function(e){return!ue.undefined(e)};ue.domElement=function(e){return ue.object(e)&&!ue.plainObject(e)&&e.nodeType===1&&ue.string(e.nodeName)&&qU.every(function(t){return t in e})};ue.empty=function(e){return ue.string(e)&&e.length===0||ue.array(e)&&e.length===0||ue.object(e)&&!ue.map(e)&&!ue.set(e)&&Object.keys(e).length===0||ue.set(e)&&e.size===0||ue.map(e)&&e.size===0};ue.error=ii("Error");ue.function=Zu("function");ue.generator=function(e){return ue.iterable(e)&&ue.function(e.next)&&ue.function(e.throw)};ue.generatorFunction=ii("GeneratorFunction");ue.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ue.iterable=function(e){return!ue.nullOrUndefined(e)&&ue.function(e[Symbol.iterator])};ue.map=ii("Map");ue.nan=function(e){return Number.isNaN(e)};ue.null=function(e){return e===null};ue.nullOrUndefined=function(e){return ue.null(e)||ue.undefined(e)};ue.number=function(e){return Zu("number")(e)&&!ue.nan(e)};ue.numericString=function(e){return ue.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ue.object=function(e){return!ue.nullOrUndefined(e)&&(ue.function(e)||typeof e=="object")};ue.oneOf=function(e,t){return ue.array(e)?e.indexOf(t)>-1:!1};ue.plainFunction=ii("Function");ue.plainObject=function(e){if(Pf(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ue.primitive=function(e){return ue.null(e)||QU(typeof e)};ue.promise=ii("Promise");ue.propertyOf=function(e,t,n){if(!ue.object(e)||!t)return!1;var r=e[t];return ue.function(n)?n(r):ue.defined(r)};ue.regexp=ii("RegExp");ue.set=ii("Set");ue.string=Zu("string");ue.symbol=Zu("symbol");ue.undefined=Zu("undefined");ue.weakMap=ii("WeakMap");ue.weakSet=ii("WeakSet");function iS(e){return function(t){return typeof t===e}}var XU=iS("function"),ez=function(e){return e===null},a3=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},u3=function(e){return!tz(e)&&!ez(e)&&(XU(e)||typeof e=="object")},tz=iS("undefined"),ng=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 nz(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!or(e[r],t[r]))return!1;return!0}function rz(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 iz(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var u=ng(e.entries()),l=u.next();!l.done;l=u.next()){var c=l.value;if(!t.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}try{for(var d=ng(e.entries()),p=d.next();!p.done;p=d.next()){var c=p.value;if(!or(c[1],t.get(c[0])))return!1}}catch(h){i={error:h}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function oz(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=ng(e.entries()),o=i.next();!o.done;o=i.next()){var u=o.value;if(!t.has(u[0]))return!1}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function or(e,t){if(e===t)return!0;if(e&&u3(e)&&t&&u3(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return nz(e,t);if(e instanceof Map&&t instanceof Map)return iz(e,t);if(e instanceof Set&&t instanceof Set)return oz(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return rz(e,t);if(a3(e)&&a3(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)&&!or(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function az(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ue.string(n)||ue.array(n)||ue.plainObject(n)})}function uz(e,t,n){return oS(e,t)?[e,t].every(ue.array)?!e.some(f3(n))&&t.some(f3(n)):[e,t].every(ue.plainObject)?!Object.entries(e).some(d3(n))&&Object.entries(t).some(d3(n)):t===n:!1}function s3(e,t,n){var r=n.actual,i=n.key,o=n.previous,u=n.type,l=yi(e,i),c=yi(t,i),d=[l,c].every(ue.number)&&(u==="increased"?l<c:l>c);return ue.undefined(r)||(d=d&&c===r),ue.undefined(o)||(d=d&&l===o),d}function l3(e,t,n){var r=n.key,i=n.type,o=n.value,u=yi(e,r),l=yi(t,r),c=i==="added"?u:l,d=i==="added"?l:u;if(!ue.nullOrUndefined(o)){if(ue.defined(c)){if(ue.array(c)||ue.plainObject(c))return uz(c,d,o)}else return or(d,o);return!1}return[u,l].every(ue.array)?!d.every(jy(c)):[u,l].every(ue.plainObject)?sz(Object.keys(c),Object.keys(d)):![u,l].every(function(p){return ue.primitive(p)&&ue.defined(p)})&&(i==="added"?!ue.defined(u)&&ue.defined(l):ue.defined(u)&&!ue.defined(l))}function c3(e,t,n){var r=n===void 0?{}:n,i=r.key,o=yi(e,i),u=yi(t,i);if(!oS(o,u))throw new TypeError("Inputs have different types");if(!az(o,u))throw new TypeError("Inputs don't have length");return[o,u].every(ue.plainObject)&&(o=Object.keys(o),u=Object.keys(u)),[o,u]}function d3(e){return function(t){var n=t[0],r=t[1];return ue.array(e)?or(e,r)||e.some(function(i){return or(i,r)||ue.array(r)&&jy(r)(i)}):ue.plainObject(e)&&e[n]?!!e[n]&&or(e[n],r):or(e,r)}}function sz(e,t){return t.some(function(n){return!e.includes(n)})}function f3(e){return function(t){return ue.array(e)?e.some(function(n){return or(n,t)||ue.array(t)&&jy(t)(n)}):or(e,t)}}function Ts(e,t){return ue.array(e)?e.some(function(n){return or(n,t)}):or(e,t)}function jy(e){return function(t){return e.some(function(n){return or(n,t)})}}function oS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ue.array)||e.every(ue.number)||e.every(ue.plainObject)||e.every(ue.string)}function yi(e,t){if(ue.plainObject(e)||ue.array(e)){if(ue.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ue.number(t)?e[t]:e}return e}function lz(e,t){if([e,t].some(ue.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ue.plainObject(h)||ue.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,g){try{return l3(e,t,{key:h,type:"added",value:g})}catch{return!1}},r=function(h,g,m){try{var x=yi(e,h),w=yi(t,h),C=ue.defined(g),$=ue.defined(m);if(C||$){var v=$?Ts(m,x):!Ts(g,x),D=Ts(g,w);return v&&D}return[x,w].every(ue.array)||[x,w].every(ue.plainObject)?!or(x,w):x!==w}catch{return!1}},i=function(h,g,m){if(!ue.defined(h))return!1;try{var x=yi(e,h),w=yi(t,h),C=ue.defined(m);return Ts(g,x)&&(C?Ts(m,w):!C)}catch{return!1}},o=function(h,g){return ue.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,g)):!1},u=function(h,g,m){if(!ue.defined(h))return!1;try{return s3(e,t,{key:h,actual:g,previous:m,type:"decreased"})}catch{return!1}},l=function(h){try{var g=c3(e,t,{key:h}),m=g[0],x=g[1];return!!m.length&&!x.length}catch{return!1}},c=function(h){try{var g=c3(e,t,{key:h}),m=g[0],x=g[1];return!m.length&&!!x.length}catch{return!1}},d=function(h,g,m){if(!ue.defined(h))return!1;try{return s3(e,t,{key:h,actual:g,previous:m,type:"increased"})}catch{return!1}},p=function(h,g){try{return l3(e,t,{key:h,type:"removed",value:g})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:u,emptied:l,filled:c,increased:d,removed:p}}function p3(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 kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p3(Object(n),!0).forEach(function(r){On(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cz(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,uS(r.key),r)}}function Rl(e,t,n){return t&&cz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function On(e,t,n){return t=uS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ol(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&&rg(e,t)}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jd(e)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rg(e,t)}function dz(){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 fz(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 aS(e,t){if(e==null)return{};var n=fz(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 Bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pz(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 Bi(e)}function Fl(e){var t=dz();return function(){var r=jd(e),i;if(t){var o=jd(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pz(this,i)}}function hz(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 uS(e){var t=hz(e,"string");return typeof t=="symbol"?t:String(t)}var mz={flip:{padding:20},preventOverflow:{padding:10}},gz="The typeValidator argument must be a function with the signature function(props, propName, componentName).",yz="The error message is optional, but must be a string if provided.";function vz(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function bz(e,t){return Object.hasOwnProperty.call(e,t)}function $z(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function xz(e,t){if(typeof e!="function")throw new TypeError(gz);if(t)throw new TypeError(yz)}function h3(e,t,n){return xz(e,n),function(r,i,o){for(var u=arguments.length,l=new Array(u>3?u-3:0),c=3;c<u;c++)l[c-3]=arguments[c];return vz(t,r,i,o)?bz(r,i)?e.apply(void 0,[r,i,o].concat(l)):$z(r,i,o):e.apply(void 0,[r,i,o].concat(l))}}var at={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Ps=xo.createPortal!==void 0;function fi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Bh(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function jc(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,u=o===void 0?!1:o,l=i?console.warn||console.error:console.log;u&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){ue.plainObject(c)&&c.key?l.apply(console,[c.key,c.value]):l.apply(console,[c])}):l.apply(console,[n]),console.groupEnd())}function wz(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Dz(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Ez(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(u){n(u),Dz(e,t,i)},wz(e,t,i,r)}function m3(){}var sS=function(e){Ol(n,e);var t=Fl(n);function n(){return _l(this,n),t.apply(this,arguments)}return Rl(n,[{key:"componentDidMount",value:function(){fi()&&(this.node||this.appendNode(),Ps||this.renderPortal())}},{key:"componentDidUpdate",value:function(){fi()&&(Ps||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!fi()||!this.node||(Ps||xo.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,u=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),u&&(this.node.style.zIndex=u),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!fi())return null;var i=this.props,o=i.children,u=i.setRef;if(this.node||this.appendNode(),Ps)return xo.createPortal(o,this.node);var l=xo.unstable_renderSubtreeIntoContainer(this,o.length>1?b.createElement("div",null,o):o[0],this.node);return u(l),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,u=i.placement,l=i.target;return o?this.renderPortal():l||u==="center"?this.renderPortal():null}},{key:"render",value:function(){return Ps?this.renderReact16():null}}]),n}(b.Component);On(sS,"propTypes",{children:$e.oneOfType([$e.element,$e.array]),hasChildren:$e.bool,id:$e.oneOfType([$e.string,$e.number]),placement:$e.string,setRef:$e.func.isRequired,target:$e.oneOfType([$e.object,$e.string]),zIndex:$e.number});var lS=function(e){Ol(n,e);var t=Fl(n);function n(){return _l(this,n),t.apply(this,arguments)}return Rl(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,u=i.styles,l=u.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=l):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=l):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,u=i.setArrowRef,l=i.styles,c=l.arrow,d=c.color,p=c.display,h=c.length,g=c.margin,m=c.position,x=c.spread,w={display:p,position:m},C,$=x,v=h;return o.startsWith("top")?(C="0,0 ".concat($/2,",").concat(v," ").concat($,",0"),w.bottom=0,w.marginLeft=g,w.marginRight=g):o.startsWith("bottom")?(C="".concat($,",").concat(v," ").concat($/2,",0 0,").concat(v),w.top=0,w.marginLeft=g,w.marginRight=g):o.startsWith("left")?(v=x,$=h,C="0,0 ".concat($,",").concat(v/2," 0,").concat(v),w.right=0,w.marginTop=g,w.marginBottom=g):o.startsWith("right")&&(v=x,$=h,C="".concat($,",").concat(v," ").concat($,",0 0,").concat(v/2),w.left=0,w.marginTop=g,w.marginBottom=g),b.createElement("div",{className:"__floater__arrow",style:this.parentStyle},b.createElement("span",{ref:u,style:w},b.createElement("svg",{width:$,height:v,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("polygon",{points:C,fill:d}))))}}]),n}(b.Component);On(lS,"propTypes",{placement:$e.string.isRequired,setArrowRef:$e.func.isRequired,styles:$e.object.isRequired});var Cz=["color","height","width"];function cS(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,u=aS(n,Cz);return b.createElement("button",{"aria-label":"close",onClick:t,style:u,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}))))}cS.propTypes={handleClick:$e.func.isRequired,styles:$e.object.isRequired};function dS(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,u=e.showCloseButton,l=e.title,c=e.styles,d={content:b.isValidElement(t)?t:b.createElement("div",{className:"__floater__content",style:c.content},t)};return l&&(d.title=b.isValidElement(l)?l:b.createElement("div",{className:"__floater__title",style:c.title},l)),n&&(d.footer=b.isValidElement(n)?n:b.createElement("div",{className:"__floater__footer",style:c.footer},n)),(u||o)&&!ue.boolean(i)&&(d.close=b.createElement(cS,{styles:c.close,handleClick:r})),b.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}dS.propTypes={content:$e.node.isRequired,footer:$e.node,handleClick:$e.func.isRequired,open:$e.bool,positionWrapper:$e.bool.isRequired,showCloseButton:$e.bool.isRequired,styles:$e.object.isRequired,title:$e.node};var fS=function(e){Ol(n,e);var t=Fl(n);function n(){return _l(this,n),t.apply(this,arguments)}return Rl(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,u=i.component,l=i.placement,c=i.hideArrow,d=i.status,p=i.styles,h=p.arrow.length,g=p.floater,m=p.floaterCentered,x=p.floaterClosing,w=p.floaterOpening,C=p.floaterWithAnimation,$=p.floaterWithComponent,v={};return c||(l.startsWith("top")?v.padding="0 0 ".concat(h,"px"):l.startsWith("bottom")?v.padding="".concat(h,"px 0 0"):l.startsWith("left")?v.padding="0 ".concat(h,"px 0 0"):l.startsWith("right")&&(v.padding="0 0 0 ".concat(h,"px"))),[at.OPENING,at.OPEN].indexOf(d)!==-1&&(v=kt(kt({},v),w)),d===at.CLOSING&&(v=kt(kt({},v),x)),d===at.OPEN&&!o&&(v=kt(kt({},v),C)),l==="center"&&(v=kt(kt({},v),m)),u&&(v=kt(kt({},v),$)),kt(kt({},g),v)}},{key:"render",value:function(){var i=this.props,o=i.component,u=i.handleClick,l=i.hideArrow,c=i.setFloaterRef,d=i.status,p={},h=["__floater"];return o?b.isValidElement(o)?p.content=b.cloneElement(o,{closeFn:u}):p.content=o({closeFn:u}):p.content=b.createElement(dS,this.props),d===at.OPEN&&h.push("__floater__open"),l||(p.arrow=b.createElement(lS,this.props)),b.createElement("div",{ref:c,className:h.join(" "),style:this.style},b.createElement("div",{className:"__floater__body"},p.content,p.arrow))}}]),n}(b.Component);On(fS,"propTypes",{component:$e.oneOfType([$e.func,$e.element]),content:$e.node,disableAnimation:$e.bool.isRequired,footer:$e.node,handleClick:$e.func.isRequired,hideArrow:$e.bool.isRequired,open:$e.bool,placement:$e.string.isRequired,positionWrapper:$e.bool.isRequired,setArrowRef:$e.func.isRequired,setFloaterRef:$e.func.isRequired,showCloseButton:$e.bool,status:$e.string.isRequired,styles:$e.object.isRequired,title:$e.node});var pS=function(e){Ol(n,e);var t=Fl(n);function n(){return _l(this,n),t.apply(this,arguments)}return Rl(n,[{key:"render",value:function(){var i=this.props,o=i.children,u=i.handleClick,l=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,p=i.setWrapperRef,h=i.style,g=i.styles,m;if(o)if(b.Children.count(o)===1)if(!b.isValidElement(o))m=b.createElement("span",null,o);else{var x=ue.function(o.type)?"innerRef":"ref";m=b.cloneElement(b.Children.only(o),On({},x,d))}else m=o;return m?b.createElement("span",{ref:p,style:kt(kt({},g),h),onClick:u,onMouseEnter:l,onMouseLeave:c},m):null}}]),n}(b.Component);On(pS,"propTypes",{children:$e.node,handleClick:$e.func.isRequired,handleMouseEnter:$e.func.isRequired,handleMouseLeave:$e.func.isRequired,setChildRef:$e.func.isRequired,setWrapperRef:$e.func.isRequired,style:$e.object,styles:$e.object.isRequired});var Sz={zIndex:100};function Az(e){var t=Zr(Sz,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 Tz=["arrow","flip","offset"],Pz=["position","top","right","bottom","left"],Uy=function(e){Ol(n,e);var t=Fl(n);function n(r){var i;return _l(this,n),i=t.call(this,r),On(Bi(i),"setArrowRef",function(o){i.arrowRef=o}),On(Bi(i),"setChildRef",function(o){i.childRef=o}),On(Bi(i),"setFloaterRef",function(o){i.floaterRef=o}),On(Bi(i),"setWrapperRef",function(o){i.wrapperRef=o}),On(Bi(i),"handleTransitionEnd",function(){var o=i.state.status,u=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===at.OPENING?at.OPEN:at.IDLE},function(){var l=i.state.status;u(l===at.OPEN?"open":"close",i.props)})}),On(Bi(i),"handleClick",function(){var o=i.props,u=o.event,l=o.open;if(!ue.boolean(l)){var c=i.state,d=c.positionWrapper,p=c.status;(i.event==="click"||i.event==="hover"&&d)&&(jc({title:"click",data:[{event:u,status:p===at.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),On(Bi(i),"handleMouseEnter",function(){var o=i.props,u=o.event,l=o.open;if(!(ue.boolean(l)||Bh())){var c=i.state.status;i.event==="hover"&&c===at.IDLE&&(jc({title:"mouseEnter",data:[{key:"originalEvent",value:u}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),On(Bi(i),"handleMouseLeave",function(){var o=i.props,u=o.event,l=o.eventDelay,c=o.open;if(!(ue.boolean(c)||Bh())){var d=i.state,p=d.status,h=d.positionWrapper;i.event==="hover"&&(jc({title:"mouseLeave",data:[{key:"originalEvent",value:u}],debug:i.debug}),l?[at.OPENING,at.OPEN].indexOf(p)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},l*1e3)):i.toggle(at.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:at.INIT,statusWrapper:at.INIT},i._isMounted=!1,i.hasMounted=!1,fi()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return Rl(n,[{key:"componentDidMount",value:function(){if(fi()){var i=this.state.positionWrapper,o=this.props,u=o.children,l=o.open,c=o.target;this._isMounted=!0,jc({title:"init",data:{hasChildren:!!u,hasTarget:!!c,isControlled:ue.boolean(l),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!u&&c&&ue.boolean(l)}}},{key:"componentDidUpdate",value:function(i,o){if(fi()){var u=this.props,l=u.autoOpen,c=u.open,d=u.target,p=u.wrapperOptions,h=lz(o,this.state),g=h.changedFrom,m=h.changed;if(i.open!==c){var x;ue.boolean(c)&&(x=c?at.OPENING:at.CLOSING),this.toggle(x)}(i.wrapperOptions.position!==p.position||i.target!==d)&&this.changeWrapperPosition(this.props),m("status",at.IDLE)&&c?this.toggle(at.OPEN):g("status",at.INIT,at.IDLE)&&l&&this.toggle(at.OPEN),this.popper&&m("status",at.OPENING)&&this.popper.instance.update(),this.floaterRef&&(m("status",at.OPENING)||m("status",at.CLOSING))&&Ez(this.floaterRef,"transitionend",this.handleTransitionEnd),m("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){fi()&&(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,u=this.state.positionWrapper,l=this.props,c=l.disableFlip,d=l.getPopper,p=l.hideArrow,h=l.offset,g=l.placement,m=l.wrapperOptions,x=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:at.IDLE});else if(o&&this.floaterRef){var w=this.options,C=w.arrow,$=w.flip,v=w.offset,D=aS(w,Tz);new ol(o,this.floaterRef,{placement:g,modifiers:kt({arrow:kt({enabled:!p,element:this.arrowRef},C),flip:kt({enabled:!c,behavior:x},$),offset:kt({offset:"0, ".concat(h,"px")},v)},D),onCreate:function(T){var F;if(i.popper=T,!((F=i.floaterRef)!==null&&F!==void 0&&F.isConnected)){i.setState({needsUpdate:!0});return}d(T,"floater"),i._isMounted&&i.setState({currentPlacement:T.placement,status:at.IDLE}),g!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){i.popper=T;var F=i.state.currentPlacement;i._isMounted&&T.placement!==F&&i.setState({currentPlacement:T.placement})}})}if(u){var P=ue.undefined(m.offset)?0:m.offset;new ol(this.target,this.wrapperRef,{placement:m.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(P,"px")},flip:{enabled:!1}},onCreate:function(T){i.wrapperPopper=T,i._isMounted&&i.setState({statusWrapper:at.IDLE}),d(T,"wrapper"),g!==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,u=i.wrapperOptions;this.setState({positionWrapper:u.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,u=o===at.OPEN?at.CLOSING:at.OPENING;ue.undefined(i)||(u=i),this.setState({status:u})}},{key:"debug",get:function(){var i=this.props.debug;return i||fi()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,u=i.event;return u==="hover"&&Bh()&&!o?"click":u}},{key:"options",get:function(){var i=this.props.options;return Zr(mz,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,u=o.status,l=o.positionWrapper,c=o.statusWrapper,d=this.props.styles,p=Zr(Az(d),d);if(l){var h;[at.IDLE].indexOf(u)===-1||[at.IDLE].indexOf(c)===-1?h=p.wrapperPosition:h=this.wrapperPopper.styles,p.wrapper=kt(kt({},p.wrapper),h)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?p.wrapper=kt(kt({},p.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},l||(Pz.forEach(function(m){i.wrapperStyles[m]=g[m]}),p.wrapper=kt(kt({},p.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 p}},{key:"target",get:function(){if(!fi())return null;var i=this.props.target;return i?ue.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,u=i.positionWrapper,l=i.status,c=this.props,d=c.children,p=c.component,h=c.content,g=c.disableAnimation,m=c.footer,x=c.hideArrow,w=c.id,C=c.open,$=c.showCloseButton,v=c.style,D=c.target,P=c.title,E=b.createElement(pS,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:v,styles:this.styles.wrapper},d),T={};return u?T.wrapperInPortal=E:T.wrapperAsChildren=E,b.createElement("span",null,b.createElement(sS,{hasChildren:!!d,id:w,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},b.createElement(fS,{component:p,content:h,disableAnimation:g,footer:m,handleClick:this.handleClick,hideArrow:x||o==="center",open:C,placement:o,positionWrapper:u,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:$,status:l,styles:this.styles,title:P}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(b.Component);On(Uy,"propTypes",{autoOpen:$e.bool,callback:$e.func,children:$e.node,component:h3($e.oneOfType([$e.func,$e.element]),function(e){return!e.content}),content:h3($e.node,function(e){return!e.component}),debug:$e.bool,disableAnimation:$e.bool,disableFlip:$e.bool,disableHoverToClick:$e.bool,event:$e.oneOf(["hover","click"]),eventDelay:$e.number,footer:$e.node,getPopper:$e.func,hideArrow:$e.bool,id:$e.oneOfType([$e.string,$e.number]),offset:$e.number,open:$e.bool,options:$e.object,placement:$e.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:$e.bool,style:$e.object,styles:$e.object,target:$e.oneOfType([$e.object,$e.string]),title:$e.node,wrapperOptions:$e.shape({offset:$e.number,placement:$e.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:$e.bool})});On(Uy,"defaultProps",{autoOpen:!1,callback:m3,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:m3,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var _z=Object.defineProperty,Rz=(e,t,n)=>t in e?_z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Te=(e,t,n)=>Rz(e,typeof t!="symbol"?t+"":t,n),ct={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Br={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"},He={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},nt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function go(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function hS(e){return e?e.getBoundingClientRect():null}function Oz(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,u)=>o-u),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 Ki(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 Fz(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function al(e,t,n){if(!e)return ra();const r=N2(e);if(r){if(r.isSameNode(ra()))return n?document:ra();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",ra()}return r}function Ml(e,t){if(!e)return!1;const n=al(e,t);return n?!n.isSameNode(ra()):!1}function Mz(e){return e.offsetParent!==document.body}function Lu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Fz(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Lu(e.parentNode,t):!1}function kz(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 Bz(e,t,n){var r,i,o;const u=hS(e),l=al(e,n),c=Ml(e,n),d=Lu(e);let p=0,h=(r=u==null?void 0:u.top)!=null?r:0;if(c&&d){const g=(i=e==null?void 0:e.offsetTop)!=null?i:0,m=(o=l==null?void 0:l.scrollTop)!=null?o:0;h=g-m}else l instanceof HTMLElement&&(p=l.scrollTop,!c&&!Lu(e)&&(h+=p),l.isSameNode(ra())||(h+=ra().scrollTop));return Math.floor(h-t)}function Iz(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=N2(e))!=null?r:{};let u=e.getBoundingClientRect().top+o;i&&(Ml(e,n)||Mz(e))&&(u-=i);const l=Math.floor(u-t);return l<0?0:l}function ra(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Lz(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:u}=r,l=e>u?e-u:u-e;Yj.top(r,e,{duration:l<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var _s=xo.createPortal!==void 0;function mS(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 id(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function pi(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=U1(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&&id(e.type)==="function"){const u=e.type({});o=pi(u,t)}else o=U1(n);return o}function Vz(e,t){return!Se.plainObject(e)||!Se.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Nz(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,u,l)=>o+o+u+u+l+l),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 g3(e){return e.disableBeacon||e.placement==="center"}function y3(){return!["chrome","safari","firefox","opera"].includes(mS())}function _o({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=>{Se.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 Kz(e){return Object.keys(e)}function gS(e,...t){if(!Se.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 jz(e,...t){if(!Se.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 ig(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(id(e)==="string")return r(e);if(!b.isValidElement(e))return e;const{children:i}=e.props;if(id(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):ig(o,t,n))});if(id(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return ig(o,t,n)}return e}function Uz(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:u}=e;return!o.disableScrolling&&(!t||i||n===He.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Lu(u))&&r!==n&&[He.BEACON,He.TOOLTIP].includes(n)}var zz={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},yS={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Wz={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:yS,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Hz={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:[]},Gz={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},Rs={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},v3={borderRadius:4,position:"absolute"};function qz(e,t){var n,r,i,o,u;const{floaterProps:l,styles:c}=e,d=Zr((n=t.floaterProps)!=null?n:{},l??{}),p=Zr(c??{},(r=t.styles)!=null?r:{}),h=Zr(Gz,p.options||{}),g=t.placement==="center"||t.disableBeacon;let{width:m}=h;window.innerWidth>480&&(m=380),"width"in h&&(m=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const x={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},w={beacon:{...Rs,display:g?"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(${Nz(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:m},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:{...Rs,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Rs,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Rs,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Rs,color:h.textColor,fontSize:14},overlay:{...x,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...x},overlayLegacyCenter:{...x,backgroundColor:h.overlayColor},spotlight:{...v3,backgroundColor:"gray"},spotlightLegacy:{...v3,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(u=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?u:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return Zr(w,p)}function Yz(e){return jz(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function tu(e,t){var n,r,i,o,u,l;const c=t??{},d=Zr.all([Wz,Yz(e),c],{isMergeableObject:Se.plainObject}),p=qz(e,d),h=Ml(Ki(d.target),d.disableScrollParentFix),g=Zr.all([zz,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return g.offset=d.offset,g.styles=Zr((i=g.styles)!=null?i:{},p.floaterStyles),g.offset+=(u=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?u:0,d.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=d.placementBeacon),h&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...d,locale:Zr.all([yS,(l=e.locale)!=null?l:{},d.locale||{}]),floaterProps:g,styles:gS(p,"floaterStyles")}}function vS(e,t=!1){return Se.plainObject(e)?e.target?!0:(_o({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(_o({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function b3(e,t=!1){return Se.array(e)?e.every(n=>vS(n,t)):(_o({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var bS={action:"init",controlled:!1,index:0,lifecycle:He.INIT,origin:null,size:0,status:nt.IDLE},$3=Kz(gS(bS,"controlled","size")),Zz=class{constructor(e){Te(this,"beaconPopper"),Te(this,"tooltipPopper"),Te(this,"data",new Map),Te(this,"listener"),Te(this,"store",new Map),Te(this,"addListener",i=>{this.listener=i}),Te(this,"setSteps",i=>{const{size:o,status:u}=this.getState(),l={size:i.length,status:u};this.data.set("steps",i),u===nt.WAITING&&!o&&i.length&&(l.status=nt.RUNNING),this.setState(l)}),Te(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Te(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Te(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Te(this,"close",(i=null)=>{const{index:o,status:u}=this.getState();u===nt.RUNNING&&this.setState({...this.getNextState({action:ct.CLOSE,index:o+1,origin:i})})}),Te(this,"go",i=>{const{controlled:o,status:u}=this.getState();if(o||u!==nt.RUNNING)return;const l=this.getSteps()[i];this.setState({...this.getNextState({action:ct.GO,index:i}),status:l?u:nt.FINISHED})}),Te(this,"info",()=>this.getState()),Te(this,"next",()=>{const{index:i,status:o}=this.getState();o===nt.RUNNING&&this.setState(this.getNextState({action:ct.NEXT,index:i+1}))}),Te(this,"open",()=>{const{status:i}=this.getState();i===nt.RUNNING&&this.setState({...this.getNextState({action:ct.UPDATE,lifecycle:He.TOOLTIP})})}),Te(this,"prev",()=>{const{index:i,status:o}=this.getState();o===nt.RUNNING&&this.setState({...this.getNextState({action:ct.PREV,index:i-1})})}),Te(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:ct.RESET,index:0}),status:i?nt.RUNNING:nt.READY})}),Te(this,"skip",()=>{const{status:i}=this.getState();i===nt.RUNNING&&this.setState({action:ct.SKIP,lifecycle:He.INIT,status:nt.SKIPPED})}),Te(this,"start",i=>{const{index:o,size:u}=this.getState();this.setState({...this.getNextState({action:ct.START,index:Se.number(i)?i:o},!0),status:u?nt.RUNNING:nt.WAITING})}),Te(this,"stop",(i=!1)=>{const{index:o,status:u}=this.getState();[nt.FINISHED,nt.SKIPPED].includes(u)||this.setState({...this.getNextState({action:ct.STOP,index:o+(i?1:0)}),status:nt.PAUSED})}),Te(this,"update",i=>{var o,u;if(!Vz(i,$3))throw new Error(`State is not valid. Valid keys: ${$3.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:ct.UPDATE,origin:(u=i.origin)!=null?u:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:ct.INIT,controlled:Se.number(n),continuous:t,index:Se.number(n)?n:0,lifecycle:He.INIT,origin:null,status:r.length?nt.READY:nt.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")||""}:{...bS}}getNextState(e,t=!1){var n,r,i,o,u;const{action:l,controlled:c,index:d,size:p,status:h}=this.getState(),g=Se.number(e.index)?e.index:d,m=c&&!t?d:Math.min(Math.max(g,0),p);return{action:(n=e.action)!=null?n:l,controlled:c,index:m,lifecycle:(r=e.lifecycle)!=null?r:He.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:p,status:m===p?nt.FINISHED:(u=e.status)!=null?u: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:u=null,size:l,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",u),this.store.set("size",l),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 Jz(e){return new Zz(e)}function Qz({styles:e}){return Ve.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var Xz=Qz,eW=class extends Ve.Component{constructor(){super(...arguments),Te(this,"isActive",!1),Te(this,"resizeTimeout"),Te(this,"scrollTimeout"),Te(this,"scrollParent"),Te(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Te(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[He.INIT,He.BEACON,He.COMPLETE,He.ERROR];return t||(e?r.includes(n):n!==He.TOOLTIP)}),Te(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:u}=this.spotlightStyles,l=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=l>=o&&l<=o+n,h=c>=r&&c<=r+u&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Te(this,"handleScroll",()=>{const{target:e}=this.props,t=Ki(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 Lu(t,"sticky")&&this.updateState({})}),Te(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=Ki(r);this.scrollParent=al(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&Ml(i,!0)&&_o({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:u}=Vd(e,this.props);if(u("target")||u("disableScrollParentFix")){const l=Ki(o);this.scrollParent=al(l??document.body,n,!0)}u("lifecycle",He.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:l}=this.state;l||this.updateState({showSpotlight:!0})},100)),(u("spotlightClicks")||u("disableOverlay")||u("lifecycle"))&&(i&&r===He.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==He.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 y3()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Oz(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:u=0,styles:l,target:c}=this.props,d=Ki(c),p=hS(d),h=Lu(d),g=Bz(d,u,i);return{...y3()?l.spotlightLegacy:l.spotlight,height:Math.round(((e=p==null?void 0:p.height)!=null?e:0)+u*2),left:Math.round(((t=p==null?void 0:p.left)!=null?t:0)-u),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((n=p==null?void 0:p.width)!=null?n:0)+u*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 u=n!=="center"&&e&&Ve.createElement(Xz,{styles:o});if(mS()==="safari"){const{mixBlendMode:l,zIndex:c,...d}=i;u=Ve.createElement("div",{style:{...d}},u),delete i.backgroundColor}return Ve.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},u)}},tW=class extends Ve.Component{constructor(){super(...arguments),Te(this,"node",null)}componentDidMount(){const{id:e}=this.props;go()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),_s||this.renderReact15())}componentDidUpdate(){go()&&(_s||this.renderReact15())}componentWillUnmount(){!go()||!this.node||(_s||Uc.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!go())return;const{children:e}=this.props;this.node&&Uc.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!go()||!_s)return null;const{children:e}=this.props;return this.node?Uc.createPortal(e,this.node):null}render(){return _s?this.renderReact16():null}},nW=class{constructor(e,t){if(Te(this,"element"),Te(this,"options"),Te(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Te(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)}),Te(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Te(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Te(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()}),Te(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"}),Te(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}),Te(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Te(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Te(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()}},rW=class extends Ve.Component{constructor(e){if(super(e),Te(this,"beacon",null),Te(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"&&(Se.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{Se.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:u,step:l,styles:c}=this.props,d=pi(i.open),p={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const g=e;h=Ve.createElement(g,{continuous:t,index:n,isLastStep:r,size:u,step:l,...p})}else h=Ve.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...p},Ve.createElement("span",{style:c.beaconInner}),Ve.createElement("span",{style:c.beaconOuter}));return h}};function iW({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 oW=iW;function aW(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:u,step:l,tooltipProps:c}=e,{content:d,hideBackButton:p,hideCloseButton:h,hideFooter:g,showSkipButton:m,styles:x,title:w}=l,C={};return C.primary=Ve.createElement("button",{"data-test-id":"button-primary",style:x.buttonNext,type:"button",...o}),m&&!i&&(C.skip=Ve.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:x.buttonSkip,type:"button",...u})),!p&&r>0&&(C.back=Ve.createElement("button",{"data-test-id":"button-back",style:x.buttonBack,type:"button",...t})),C.close=!h&&Ve.createElement(oW,{"data-test-id":"button-close",styles:x.buttonClose,...n}),Ve.createElement("div",{key:"JoyrideTooltip","aria-label":pi(w??d),className:"react-joyride__tooltip",style:x.tooltip,...c},Ve.createElement("div",{style:x.tooltipContainer},w&&Ve.createElement("h1",{"aria-label":pi(w),style:x.tooltipTitle},w),Ve.createElement("div",{style:x.tooltipContent},d)),!g&&Ve.createElement("div",{style:x.tooltipFooter},Ve.createElement("div",{style:x.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var uW=aW,sW=class extends Ve.Component{constructor(){super(...arguments),Te(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Te(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Te(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Te(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Te(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:u,close:l,last:c,next:d,nextLabelWithProgress:p,skip:h}=o.locale,g=pi(u),m=pi(l),x=pi(c),w=pi(d),C=pi(h);let $=l,v=m;if(e){if($=d,v=w,o.showProgress&&!n){const D=pi(p,{step:t+1,steps:i});$=ig(p,t+1,i),v=D}n&&($=c,v=x)}return{backProps:{"aria-label":g,children:u,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":m,children:l,"data-action":"close",onClick:this.handleClickClose,role:"button",title:m},primaryProps:{"aria-label":v,children:$,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:v},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:u,tooltipComponent:l,...c}=o;let d;if(l){const p={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=l;d=Ve.createElement(h,{...p})}else d=Ve.createElement(uW,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},lW=class extends Ve.Component{constructor(){super(...arguments),Te(this,"scope",null),Te(this,"tooltip",null),Te(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:He.TOOLTIP})}),Te(this,"setTooltipRef",e=>{this.tooltip=e}),Te(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:u}=this.props;t==="wrapper"?u.setPopper("beacon",e):u.setPopper("tooltip",e),u.getPopper("beacon")&&(u.getPopper("tooltip")||o.placement==="center")&&i===He.INIT&&u.update({action:r,lifecycle:He.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Te(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return Ve.createElement(sW,{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;_o({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:u,helpers:l,index:c,lifecycle:d,shouldScroll:p,status:h,step:g,store:m}=this.props,{changed:x,changedFrom:w}=Vd(e,this.props),C=l.info(),$=i&&n!==ct.CLOSE&&(c>0||n===ct.PREV),v=x("action")||x("index")||x("lifecycle")||x("status"),D=w("lifecycle",[He.TOOLTIP,He.INIT],He.INIT),P=x("action",[ct.NEXT,ct.PREV,ct.SKIP,ct.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:He.COMPLETE,step:e.step,type:Br.STEP_AFTER}),g.placement==="center"&&h===nt.RUNNING&&x("index")&&n!==ct.START&&d===He.INIT&&m.update({lifecycle:He.READY}),v){const T=Ki(g.target),F=!!T;F&&kz(T)?(w("status",nt.READY,nt.RUNNING)||w("lifecycle",He.INIT,He.READY))&&r({...C,step:g,type:Br.STEP_BEFORE}):(console.warn(F?"Target not visible":"Target not mounted",g),r({...C,type:Br.TARGET_NOT_FOUND,step:g}),o||m.update({index:c+(n===ct.PREV?-1:1)}))}w("lifecycle",He.INIT,He.READY)&&m.update({lifecycle:g3(g)||$?He.TOOLTIP:He.BEACON}),x("index")&&_o({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:u}),x("lifecycle",He.BEACON)&&r({...C,step:g,type:Br.BEACON}),x("lifecycle",He.TOOLTIP)&&(r({...C,step:g,type:Br.TOOLTIP}),p&&this.tooltip&&(this.scope=new nW(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),w("lifecycle",[He.TOOLTIP,He.INIT],He.INIT)&&((t=this.scope)==null||t.removeScope(),m.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return g3(t)||e===He.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:u}=this.props,l=Ki(u.target);return!vS(u)||!Se.domElement(l)?null:Ve.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Ve.createElement(Uy,{...u.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:u.placement,target:u.target},Ve.createElement(rW,{beaconComponent:u.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:u.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:u,styles:u.styles})))}},$S=class extends Ve.Component{constructor(e){super(e),Te(this,"helpers"),Te(this,"store"),Te(this,"callback",u=>{const{callback:l}=this.props;Se.function(l)&&l(u)}),Te(this,"handleKeyboard",u=>{const{index:l,lifecycle:c}=this.state,{steps:d}=this.props,p=d[l];c===He.TOOLTIP&&u.code==="Escape"&&p&&!p.disableCloseOnEsc&&this.store.close("keyboard")}),Te(this,"handleClickOverlay",()=>{const{index:u}=this.state,{steps:l}=this.props;tu(this.props,l[u]).disableOverlayClose||this.helpers.close("overlay")}),Te(this,"syncState",u=>{this.setState(u)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=Jz({...e,controlled:r&&Se.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;_o({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(!go())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;b3(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!go())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:u,run:l,stepIndex:c,steps:d}=this.props,{stepIndex:p,steps:h}=e,{reset:g,setSteps:m,start:x,stop:w,update:C}=this.store,{changed:$}=Vd(e,this.props),{changed:v,changedFrom:D}=Vd(t,this.state),P=tu(this.props,d[i]),E=!Wn(h,d),T=Se.number(c)&&$("stepIndex"),F=Ki(P.target);if(E&&(b3(d,u)?m(d):console.warn("Steps are not valid",d)),$("run")&&(l?x(c):w()),T){let k=Se.number(p)&&p<c?ct.NEXT:ct.PREV;n===ct.STOP&&(k=ct.START),[nt.FINISHED,nt.SKIPPED].includes(o)||C({action:n===ct.CLOSE?ct.CLOSE:k,index:c,lifecycle:He.INIT})}!r&&o===nt.RUNNING&&i===0&&!F&&(this.store.update({index:i+1}),this.callback({...this.state,type:Br.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(v("action",[ct.NEXT,ct.PREV,ct.SKIP,ct.CLOSE])&&v("status",nt.PAUSED)){const k=tu(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:He.COMPLETE,step:k,type:Br.STEP_AFTER})}if(v("status",[nt.FINISHED,nt.SKIPPED])){const k=tu(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:He.COMPLETE,step:k,type:Br.STEP_AFTER}),this.callback({...S,type:Br.TOUR_END,step:k,index:t.index}),g()}else D("status",[nt.IDLE,nt.READY],nt.RUNNING)?this.callback({...S,type:Br.TOUR_START}):(v("status")||v("action",ct.RESET))&&this.callback({...S,type:Br.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:u,scrollOffset:l=20,scrollToFirstStep:c=!1,steps:d}=this.props,p=tu(this.props,d[t]),h=Ki(p.target),g=Uz({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:p,target:h});if(r===nt.RUNNING&&g){const m=Ml(h,o),x=al(h,o);let w=Math.floor(Iz(h,l,o))||0;_o({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),$=this.store.getPopper("tooltip");if(n===He.BEACON&&C){const{offsets:v,placement:D}=C;!["bottom"].includes(D)&&!m&&(w=Math.floor(v.popper.top-l))}else if(n===He.TOOLTIP&&$){const{flipped:v,offsets:D,placement:P}=$;["top","right","left"].includes(P)&&!v&&!m?w=Math.floor(D.popper.top-l):w-=p.spotlightPadding}w=w>=0?w:0,r===nt.RUNNING&&Lz(w,{element:x,duration:u}).then(()=>{setTimeout(()=>{var v;(v=this.store.getPopper("tooltip"))==null||v.instance.update()},10)})}}render(){if(!go())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:u=!1,steps:l}=this.props,c=n===nt.RUNNING,d={};if(c&&l[e]){const p=tu(this.props,l[e]);d.step=Ve.createElement(lW,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!p.disableScrolling&&(e!==0||u),step:p,store:this.store}),d.overlay=Ve.createElement(tW,{id:"react-joyride-portal"},Ve.createElement(eW,{...p,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return Ve.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Te($S,"defaultProps",Hz);var cW=$S;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=UE;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=I$;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ml;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=_O;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=an;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=jM;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=KE;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=kn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=HF;exports.$293f70390ea03370$export$497855f14858aa34=BM;exports.$32489daedd52963e$export$1315d136e6f7581=qM;exports.$337b884510726a0d$export$c6fdb837b070b4ff=$M;exports.$36a0ac60f04457c5$export$136073280381448e=BF;exports.$3c0fc76039f1c516$export$60e84778edff6d26=P5;exports.$40df3f8667284809$export$d55e7ee900f34e93=QM;exports.$46a4342aab3d8076$export$87e0539f600c24e5=FF;exports.$47b897dc8cdb026b$export$8d15029008292ae=ZF;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=qF;exports.$6057a3d2a53a12fd$export$42df105a73306d51=zM;exports.$64244302c3013299$export$dd0bbc9b26defe37=pF;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=AF;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=JM;exports.$93c38a5e28be6249$export$e50a61c1de9f574=vk;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=OF;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=XM;exports.$a916eb452884faea$export$b7a616150fdb9f44=SF;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=ok;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=dk;exports.$bb77f239b46e8c72$export$3274cf84b703fff=px;exports.$bcca50147b47f54d$export$56b2c08e277f365=YF;exports.$c132121280ec012d$export$50eacbbf140a3141=TM;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=_M;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=NM;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=MF;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=bk;exports.$f2f8a6077418541e$export$542a6fd13ac93354=yM;exports.$fae977aafc393c5c$export$6b862160d295c8e=jO;exports.ACTIONS=ct;exports.AdvancedImage=iL;exports.Cloudinary=XL;exports.EVENTS=Br;exports.LazyMotion=_j;exports.M=t8;exports.M$1=qr;exports.R=wa;exports.STATUS=nt;exports._=UR;exports.autoUpdate=i$;exports.components_default=cW;exports.domAnimation=Rj;exports.dt=H3;exports.ee=O5;exports.flip=NR;exports.lazyload=SI;exports.lodashExports=s$;exports.lt=cg;exports.m=Pj;exports.mt=oR;exports.nt=nR;exports.offset=VR;exports.ot=rR;exports.placeholder=_I;exports.prismExports=tV;exports.q=jg;exports.useFloating=LR;