@fluidattacks/design 3.8.12-pr-01 → 3.8.12-pr-03

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 (149) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/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.js +1 -1
  32. package/dist/components/grid-container/index.js +1 -1
  33. package/dist/components/group-selector/index.js +1 -1
  34. package/dist/components/group-selector/option-container/index.js +1 -1
  35. package/dist/components/icon/index.js +1 -1
  36. package/dist/components/icon-button/index.js +1 -1
  37. package/dist/components/indicator-card/index.js +1 -1
  38. package/dist/components/info-sidebar/index.js +1 -1
  39. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  42. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  43. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  44. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  45. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  46. package/dist/components/inputs/fields/date/index.js +1 -1
  47. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  48. package/dist/components/inputs/fields/date-range/index.js +1 -1
  49. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  50. package/dist/components/inputs/fields/date-time/index.js +1 -1
  51. package/dist/components/inputs/fields/editable/index.js +1 -1
  52. package/dist/components/inputs/fields/input/index.js +1 -1
  53. package/dist/components/inputs/fields/input-file/index.js +1 -1
  54. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  55. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  56. package/dist/components/inputs/fields/number/index.js +1 -1
  57. package/dist/components/inputs/fields/number-range/index.js +1 -1
  58. package/dist/components/inputs/fields/phone/index.js +1 -1
  59. package/dist/components/inputs/fields/text-area/index.js +1 -1
  60. package/dist/components/inputs/index.js +1 -1
  61. package/dist/components/inputs/label/index.js +1 -1
  62. package/dist/components/inputs/outline-container/index.js +1 -1
  63. package/dist/components/inputs/utils/action-button/index.js +1 -1
  64. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  65. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  66. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  67. package/dist/components/inputs/utils/dialog/index.js +1 -1
  68. package/dist/components/inputs/utils/number-field/index.js +1 -1
  69. package/dist/components/inputs/utils/popover/index.js +1 -1
  70. package/dist/components/interactive-card/icon/index.js +1 -1
  71. package/dist/components/interactive-card/index.js +1 -1
  72. package/dist/components/language-selector/index.js +1 -1
  73. package/dist/components/language-selector/item-list/index.js +1 -1
  74. package/dist/components/layout/categories/buttons/index.js +1 -1
  75. package/dist/components/layout/categories/column/index.js +1 -1
  76. package/dist/components/layout/categories/gap/index.js +1 -1
  77. package/dist/components/layout/categories/row/index.js +1 -1
  78. package/dist/components/layout/index.js +1 -1
  79. package/dist/components/link/index.js +1 -1
  80. package/dist/components/list-item/index.js +1 -1
  81. package/dist/components/little-flag/index.js +1 -1
  82. package/dist/components/loading/index.js +1 -1
  83. package/dist/components/logo/index.js +1 -1
  84. package/dist/components/logo-carousel/index.js +1 -1
  85. package/dist/components/menu/index.js +1 -1
  86. package/dist/components/message-banner/index.js +1 -1
  87. package/dist/components/modal/columns-modal/index.js +1 -1
  88. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  89. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  90. package/dist/components/modal/filters-modal/fields/options-selector/index.js +1 -1
  91. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  92. package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
  93. package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
  94. package/dist/components/modal/footer/index.js +1 -1
  95. package/dist/components/modal/header/index.js +1 -1
  96. package/dist/components/modal/index.js +1 -1
  97. package/dist/components/modal/modal-confirm/index.js +1 -1
  98. package/dist/components/notification/index.js +1 -1
  99. package/dist/components/notification-sign/index.js +1 -1
  100. package/dist/components/number-input/index.js +1 -1
  101. package/dist/components/oauth-selector/index.js +1 -1
  102. package/dist/components/oauth-selector/option-container/index.js +1 -1
  103. package/dist/components/plan-card/index.js +1 -1
  104. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  105. package/dist/components/pop-up/description/index.js +1 -1
  106. package/dist/components/pop-up/index.js +1 -1
  107. package/dist/components/premium-feature/index.js +1 -1
  108. package/dist/components/priority-score/index.js +1 -1
  109. package/dist/components/progress/index.js +1 -1
  110. package/dist/components/progress-bar/index.js +1 -1
  111. package/dist/components/radio-button/index.js +1 -1
  112. package/dist/components/scroll-button/index.js +1 -1
  113. package/dist/components/search/index.js +1 -1
  114. package/dist/components/search-bar/index.js +1 -1
  115. package/dist/components/search-bar/item-searching/index.js +1 -1
  116. package/dist/components/severity-badge/index.js +1 -1
  117. package/dist/components/severity-overview/badge/index.js +1 -1
  118. package/dist/components/severity-overview/index.js +1 -1
  119. package/dist/components/show-on-hover/index.js +1 -1
  120. package/dist/components/slide-out-menu/index.js +1 -1
  121. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  122. package/dist/components/slider/index.js +1 -1
  123. package/dist/components/slider/thumb/index.js +1 -1
  124. package/dist/components/step-lapse/index.js +1 -1
  125. package/dist/components/table-button/index.js +1 -1
  126. package/dist/components/tabs/fixed-tabs/index.js +1 -1
  127. package/dist/components/tabs/index.js +1 -1
  128. package/dist/components/tabs/tab/index.js +1 -1
  129. package/dist/components/tag/index.js +1 -1
  130. package/dist/components/timeline/card/index.js +1 -1
  131. package/dist/components/timeline/index.js +1 -1
  132. package/dist/components/toggle/index.js +1 -1
  133. package/dist/components/toggle-buttons/index.js +1 -1
  134. package/dist/components/tooltip/index.js +1 -1
  135. package/dist/components/tour/index.js +1 -1
  136. package/dist/components/typography/heading/index.js +1 -1
  137. package/dist/components/typography/index.js +1 -1
  138. package/dist/components/typography/span/index.js +1 -1
  139. package/dist/components/typography/text/index.js +1 -1
  140. package/dist/components/web-form/index.js +1 -1
  141. package/dist/{components-Dl9Qi_sT.mjs → components-BYCMbZpp.mjs} +667 -665
  142. package/dist/{components-9UJ6qg4L.js → components-BwyE_7UD.js} +63 -63
  143. package/dist/hooks/index.js +1 -1
  144. package/dist/hooks/use-columns-modal.d.ts +1 -2
  145. package/dist/index.js +1 -1
  146. package/dist/{vendor-Cl-gDlvC.mjs → vendor-CAAFuVM0.mjs} +12242 -12660
  147. package/dist/vendor-CHsUtMVJ.js +223 -0
  148. package/package.json +1 -1
  149. package/dist/vendor-BiCYkoh5.js +0 -223
@@ -0,0 +1,223 @@
1
+ "use strict";require('./assets/vendor.css');const x=require("react"),ua=require("react-dom"),So=require("react/jsx-runtime");function K5(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 Ge=K5(x),Af=K5(ua);var Xn=function(){return Xn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Xn.apply(this,arguments)};function ns(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 TV(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var AV=/^((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)-.*))$/,PV=TV(function(e){return AV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt="-ms-",ec="-moz-",St="-webkit-",U5="comm",Kh="rule",S0="decl",_V="@import",z5="@keyframes",RV="@layer",W5=Math.abs,T0=String.fromCharCode,Kv=Object.assign;function OV(e,t){return An(e,0)^45?(((t<<2^An(e,0))<<2^An(e,1))<<2^An(e,2))<<2^An(e,3):0}function q5(e){return e.trim()}function vo(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function Pf(e,t,n){return e.indexOf(t,n)}function An(e,t){return e.charCodeAt(t)|0}function vu(e,t,n){return e.slice(t,n)}function ki(e){return e.length}function H5(e){return e.length}function jl(e,t){return t.push(e),e}function MV(e,t){return e.map(t).join("")}function rx(e,t){return e.filter(function(n){return!vo(n,t)})}var Uh=1,bu=1,G5=0,si=0,yn=0,ju="";function zh(e,t,n,r,i,o,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Uh,column:bu,length:a,return:"",siblings:u}}function Zo(e,t){return Kv(zh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function zs(e){for(;e.root;)e=Zo(e.root,{children:[e]});jl(e,e.siblings)}function FV(){return yn}function kV(){return yn=si>0?An(ju,--si):0,bu--,yn===10&&(bu=1,Uh--),yn}function $i(){return yn=si<G5?An(ju,si++):0,bu++,yn===10&&(bu=1,Uh++),yn}function Ja(){return An(ju,si)}function _f(){return si}function Wh(e,t){return vu(ju,e,t)}function Uv(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 BV(e){return Uh=bu=1,G5=ki(ju=e),si=0,[]}function IV(e){return ju="",e}function Gm(e){return q5(Wh(si-1,zv(e===91?e+2:e===40?e+1:e)))}function LV(e){for(;(yn=Ja())&&yn<33;)$i();return Uv(e)>2||Uv(yn)>3?"":" "}function VV(e,t){for(;--t&&$i()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return Wh(e,_f()+(t<6&&Ja()==32&&$i()==32))}function zv(e){for(;$i();)switch(yn){case e:return si;case 34:case 39:e!==34&&e!==39&&zv(yn);break;case 40:e===41&&zv(e);break;case 92:$i();break}return si}function NV(e,t){for(;$i()&&e+yn!==57;)if(e+yn===84&&Ja()===47)break;return"/*"+Wh(t,si-1)+"*"+T0(e===47?e:$i())}function jV(e){for(;!Uv(Ja());)$i();return Wh(e,si)}function KV(e){return IV(Rf("",null,null,null,[""],e=BV(e),0,[0],e))}function Rf(e,t,n,r,i,o,a,u,l){for(var d=0,f=0,h=a,m=0,g=0,y=0,$=1,C=1,b=1,v=0,D="",T=i,E=o,A=r,R=D;C;)switch(y=v,v=$i()){case 40:if(y!=108&&An(R,h-1)==58){Pf(R+=at(Gm(v),"&","&\f"),"&\f",W5(d?u[d-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:R+=Gm(v);break;case 9:case 10:case 13:case 32:R+=LV(y);break;case 92:R+=VV(_f()-1,7);continue;case 47:switch(Ja()){case 42:case 47:jl(UV(NV($i(),_f()),t,n,l),l);break;default:R+="/"}break;case 123*$:u[d++]=ki(R)*b;case 125*$:case 59:case 0:switch(v){case 0:case 125:C=0;case 59+f:b==-1&&(R=at(R,/\f/g,"")),g>0&&ki(R)-h&&jl(g>32?ox(R+";",r,n,h-1,l):ox(at(R," ","")+";",r,n,h-2,l),l);break;case 59:R+=";";default:if(jl(A=ix(R,t,n,d,f,i,u,D,T=[],E=[],h,o),o),v===123)if(f===0)Rf(R,t,A,A,T,o,h,u,E);else switch(m===99&&An(R,3)===110?100:m){case 100:case 108:case 109:case 115:Rf(e,A,A,r&&jl(ix(e,A,A,0,0,i,u,D,i,T=[],h,E),E),i,E,h,u,r?T:E);break;default:Rf(R,A,A,A,[""],E,0,u,E)}}d=f=g=0,$=b=1,D=R="",h=a;break;case 58:h=1+ki(R),g=y;default:if($<1){if(v==123)--$;else if(v==125&&$++==0&&kV()==125)continue}switch(R+=T0(v),v*$){case 38:b=f>0?1:(R+="\f",-1);break;case 44:u[d++]=(ki(R)-1)*b,b=1;break;case 64:Ja()===45&&(R+=Gm($i())),m=Ja(),f=h=ki(D=R+=jV(_f())),v++;break;case 45:y===45&&ki(R)==2&&($=0)}}return o}function ix(e,t,n,r,i,o,a,u,l,d,f,h){for(var m=i-1,g=i===0?o:[""],y=H5(g),$=0,C=0,b=0;$<r;++$)for(var v=0,D=vu(e,m+1,m=W5(C=a[$])),T=e;v<y;++v)(T=q5(C>0?g[v]+" "+D:at(D,/&\f/g,g[v])))&&(l[b++]=T);return zh(e,t,n,i===0?Kh:u,l,d,f,h)}function UV(e,t,n,r){return zh(e,t,n,U5,T0(FV()),vu(e,2,-2),0,r)}function ox(e,t,n,r,i){return zh(e,t,n,S0,vu(e,0,r),vu(e,r+1,-1),r,i)}function Y5(e,t,n){switch(OV(e,t)){case 5103:return St+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+e+e;case 4789:return ec+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+ec+e+zt+e+e;case 5936:switch(An(e,t+11)){case 114:return St+e+zt+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+zt+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+zt+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+zt+e+e;case 6165:return St+e+zt+"flex-"+e+e;case 5187:return St+e+at(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+zt+"flex-$1$2")+e;case 5443:return St+e+zt+"flex-item-"+at(e,/flex-|-self/g,"")+(vo(e,/flex-|baseline/)?"":zt+"grid-row-"+at(e,/flex-|-self/g,""))+e;case 4675:return St+e+zt+"flex-line-pack"+at(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+zt+at(e,"shrink","negative")+e;case 5292:return St+e+zt+at(e,"basis","preferred-size")+e;case 6060:return St+"box-"+at(e,"-grow","")+St+e+zt+at(e,"grow","positive")+e;case 4554:return St+at(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+zt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4200:if(!vo(e,/flex-|baseline/))return zt+"grid-column-align"+vu(e,t)+e;break;case 2592:case 3360:return zt+at(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,vo(r.props,/grid-\w+-end/)})?~Pf(e+(n=n[t].value),"span",0)?e:zt+at(e,"-start","")+e+zt+"grid-row-span:"+(~Pf(n,"span",0)?vo(n,/\d+/):+vo(n,/\d+/)-+vo(e,/\d+/))+";":zt+at(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return vo(r.props,/grid-\w+-start/)})?e:zt+at(at(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,St+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ki(e)-1-t>6)switch(An(e,t+1)){case 109:if(An(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+ec+(An(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Pf(e,"stretch",0)?Y5(at(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return at(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,u,l,d){return zt+i+":"+o+d+(a?zt+i+"-span:"+(u?l:+l-+o)+d:"")+e});case 4949:if(An(e,t+6)===121)return at(e,":",":"+St)+e;break;case 6444:switch(An(e,An(e,14)===45?18:11)){case 120:return at(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(An(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+zt+"$2box$3")+e;case 100:return at(e,":",":"+zt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return at(e,"scroll-","scroll-snap-")+e}return e}function Yf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function zV(e,t,n,r){switch(e.type){case RV:if(e.children.length)break;case _V:case S0:return e.return=e.return||e.value;case U5:return"";case z5:return e.return=e.value+"{"+Yf(e.children,r)+"}";case Kh:if(!ki(e.value=e.props.join(",")))return""}return ki(n=Yf(e.children,r))?e.return=e.value+"{"+n+"}":""}function WV(e){var t=H5(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function qV(e){return function(t){t.root||(t=t.return)&&e(t)}}function HV(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case S0:e.return=Y5(e.value,e.length,n);return;case z5:return Yf([Zo(e,{value:at(e.value,"@","@"+St)})],r);case Kh:if(e.length)return MV(n=e.props,function(i){switch(vo(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":zs(Zo(e,{props:[at(i,/:(read-\w+)/,":"+ec+"$1")]})),zs(Zo(e,{props:[i]})),Kv(e,{props:rx(n,r)});break;case"::placeholder":zs(Zo(e,{props:[at(i,/:(plac\w+)/,":"+St+"input-$1")]})),zs(Zo(e,{props:[at(i,/:(plac\w+)/,":"+ec+"$1")]})),zs(Zo(e,{props:[at(i,/:(plac\w+)/,zt+"input-$1")]})),zs(Zo(e,{props:[i]})),Kv(e,{props:rx(n,r)});break}return""})}}var GV={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},rs=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Z5="active",J5="data-styled-version",qh="6.1.14",A0=`/*!sc*/
2
+ `,Zf=typeof window<"u"&&"HTMLElement"in window,YV=!!(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"),ax=/invalid hook call/i,rf=new Set,ZV=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
3
+ `)+`You may see this warning because you've called styled inside another component.
4
+ To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(a){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];ax.test(a)?(o=!1,rf.delete(r)):i.apply(void 0,ns([a],u,!1))},x.useRef(),o&&!rf.has(r)&&(console.warn(r),rf.add(r))}catch(a){ax.test(a.message)&&rf.delete(r)}finally{console.error=i}}},Hh=Object.freeze([]),$u=Object.freeze({});function JV(e,t,n){return n===void 0&&(n=$u),e.theme!==n.theme&&e.theme||t||n.theme}var Wv=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"]),XV=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,QV=/(^-|-$)/g;function sx(e){return e.replace(XV,"-").replace(QV,"")}var eN=/(a)(d)/gi,of=52,ux=function(e){return String.fromCharCode(e+(e>25?39:97))};function qv(e){var t,n="";for(t=Math.abs(e);t>of;t=t/of|0)n=ux(t%of)+n;return(ux(t%of)+n).replace(eN,"$1-$2")}var Ym,X5=5381,Na=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Q5=function(e){return Na(X5,e)};function e2(e){return qv(Q5(e)>>>0)}function t2(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Zm(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var n2=typeof Symbol=="function"&&Symbol.for,r2=n2?Symbol.for("react.memo"):60115,tN=n2?Symbol.for("react.forward_ref"):60112,nN={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},rN={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i2={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iN=((Ym={})[tN]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ym[r2]=i2,Ym);function lx(e){return("type"in(t=e)&&t.type.$$typeof)===r2?i2:"$$typeof"in e?iN[e.$$typeof]:nN;var t}var oN=Object.defineProperty,aN=Object.getOwnPropertyNames,cx=Object.getOwnPropertySymbols,sN=Object.getOwnPropertyDescriptor,uN=Object.getPrototypeOf,dx=Object.prototype;function o2(e,t,n){if(typeof t!="string"){if(dx){var r=uN(t);r&&r!==dx&&o2(e,r,n)}var i=aN(t);cx&&(i=i.concat(cx(t)));for(var o=lx(e),a=lx(t),u=0;u<i.length;++u){var l=i[u];if(!(l in rN||n&&n[l]||a&&l in a||o&&l in o)){var d=sN(t,l);try{oN(e,l,d)}catch{}}}}return e}function is(e){return typeof e=="function"}function P0(e){return typeof e=="object"&&"styledComponentId"in e}function Ua(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Hv(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function xu(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Gv(e,t,n){if(n===void 0&&(n=!1),!n&&!xu(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Gv(e[r],t[r]);else if(xu(t))for(var r in t)e[r]=Gv(e[r],t[r]);return e}function _0(e,t){Object.defineProperty(e,"toString",{value:t})}var lN=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 cN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,o=e.length;i<o;i+=1)r.push(e[i]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function qi(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(cN.apply(void 0,ns([lN[e]],t,!1)).trim())}var dN=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 qi(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var u=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(u,n[a])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(A0);return n},e}(),fN=1<<30,Of=new Map,Jf=new Map,Mf=1,af=function(e){if(Of.has(e))return Of.get(e);for(;Jf.has(Mf);)Mf++;var t=Mf++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>fN))throw qi(16,"".concat(t));return Of.set(e,t),Jf.set(t,e),t},hN=function(e,t){Mf=t+1,Of.set(e,t),Jf.set(t,e)},pN="style[".concat(rs,"][").concat(J5,'="').concat(qh,'"]'),mN=new RegExp("^".concat(rs,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),gN=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},yN=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(A0),i=[],o=0,a=r.length;o<a;o++){var u=r[o].trim();if(u){var l=u.match(mN);if(l){var d=0|parseInt(l[1],10),f=l[2];d!==0&&(hN(f,d),gN(e,f,l[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}},fx=function(e){for(var t=document.querySelectorAll(pN),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(rs)!==Z5&&(yN(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function vN(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var a2=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var l=Array.from(u.querySelectorAll("style[".concat(rs,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(rs,Z5),r.setAttribute(J5,qh);var a=vN();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},bN=function(){function e(t){this.element=a2(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw qi(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}(),$N=function(){function e(t){this.element=a2(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}(),xN=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}(),hx=Zf,wN={isServer:!Zf,useCSSOMInjection:!YV},s2=function(){function e(t,n,r){t===void 0&&(t=$u),n===void 0&&(n={});var i=this;this.options=Xn(Xn({},wN),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Zf&&hx&&(hx=!1,fx(this)),_0(this,function(){return function(o){for(var a=o.getTag(),u=a.length,l="",d=function(h){var m=function(b){return Jf.get(b)}(h);if(m===void 0)return"continue";var g=o.names.get(m),y=a.getGroup(h);if(g===void 0||!g.size||y.length===0)return"continue";var $="".concat(rs,".g").concat(h,'[id="').concat(m,'"]'),C="";g!==void 0&&g.forEach(function(b){b.length>0&&(C+="".concat(b,","))}),l+="".concat(y).concat($,'{content:"').concat(C,'"}').concat(A0)},f=0;f<u;f++)d(f);return l}(i)})}return e.registerId=function(t){return af(t)},e.prototype.rehydrate=function(){!this.server&&Zf&&fx(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Xn(Xn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new xN(i):r?new bN(i):new $N(i)}(this.options),new dN(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(af(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(af(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(af(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),DN=/&/g,CN=/^\s*\/\/.*$/gm;function u2(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=u2(n.children,t)),n})}function EN(e){var t,n,r,i=$u,o=i.options,a=o===void 0?$u:o,u=i.plugins,l=u===void 0?Hh:u,d=function(m,g,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):m},f=l.slice();f.push(function(m){m.type===Kh&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(DN,n).replace(r,d))}),a.prefix&&f.push(HV),f.push(zV);var h=function(m,g,y,$){g===void 0&&(g=""),y===void 0&&(y=""),$===void 0&&($="&"),t=$,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(CN,""),b=KV(y||g?"".concat(y," ").concat(g," { ").concat(C," }"):C);a.namespace&&(b=u2(b,a.namespace));var v=[];return Yf(b,WV(f.concat(qV(function(D){return v.push(D)})))),v};return h.hash=l.length?l.reduce(function(m,g){return g.name||qi(15),Na(m,g.name)},X5).toString():"",h}var SN=new s2,Yv=EN(),l2=x.createContext({shouldForwardProp:void 0,styleSheet:SN,stylis:Yv});l2.Consumer;x.createContext(void 0);function px(){return x.useContext(l2)}var Zv=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=Yv);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,_0(this,function(){throw qi(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Yv),this.name+t.hash},e}(),TN=function(e){return e>="A"&&e<="Z"};function mx(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;TN(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var c2=function(e){return e==null||e===!1||e===""},d2=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!c2(o)&&(Array.isArray(o)&&o.isCss||is(o)?r.push("".concat(mx(i),":"),o,";"):xu(o)?r.push.apply(r,ns(ns(["".concat(i," {")],d2(o),!1),["}"],!1)):r.push("".concat(mx(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in GV||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Xa(e,t,n,r){if(c2(e))return[];if(P0(e))return[".".concat(e.styledComponentId)];if(is(e)){if(!is(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 Zv||xu(i)||i===null||console.error("".concat(t2(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.")),Xa(i,t,n,r)}var o;return e instanceof Zv?n?(e.inject(n,r),[e.getName(r)]):[e]:xu(e)?d2(e):Array.isArray(e)?Array.prototype.concat.apply(Hh,e.map(function(a){return Xa(a,t,n,r)})):[e.toString()]}function AN(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(is(n)&&!P0(n))return!1}return!0}var PN=Q5(qh),_N=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&AN(t),this.componentId=n,this.baseHash=Na(PN,n),this.baseStyle=r,s2.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=Ua(i,this.staticRulesId);else{var o=Hv(Xa(this.rules,t,n,r)),a=qv(Na(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var u=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,u)}i=Ua(i,a),this.staticRulesId=a}else{for(var l=Na(this.baseHash,r.hash),d="",f=0;f<this.rules.length;f++){var h=this.rules[f];if(typeof h=="string")d+=h,process.env.NODE_ENV!=="production"&&(l=Na(l,h));else if(h){var m=Hv(Xa(h,t,n,r));l=Na(l,m+f),d+=m}}if(d){var g=qv(l>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(d,".".concat(g),void 0,this.componentId)),i=Ua(i,g)}}return i},e}(),fc=x.createContext(void 0);fc.Consumer;function RN(){var e=x.useContext(fc);if(!e)throw qi(18);return e}function ON(e){var t=x.useContext(fc),n=x.useMemo(function(){return function(r,i){if(!r)throw qi(14);if(is(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw qi(7);return o}if(Array.isArray(r)||typeof r!="object")throw qi(8);return i?Xn(Xn({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?x.createElement(fc.Provider,{value:n},e.children):null}var Jm={},gx=new Set;function MN(e,t,n){var r=P0(e),i=e,o=!Zm(e),a=t.attrs,u=a===void 0?Hh:a,l=t.componentId,d=l===void 0?function(T,E){var A=typeof T!="string"?"sc":sx(T);Jm[A]=(Jm[A]||0)+1;var R="".concat(A,"-").concat(e2(qh+A+Jm[A]));return E?"".concat(E,"-").concat(R):R}(t.displayName,t.parentComponentId):l,f=t.displayName,h=f===void 0?function(T){return Zm(T)?"styled.".concat(T):"Styled(".concat(t2(T),")")}(e):f,m=t.displayName&&t.componentId?"".concat(sx(t.displayName),"-").concat(t.componentId):t.componentId||d,g=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,y=t.shouldForwardProp;if(r&&i.shouldForwardProp){var $=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;y=function(T,E){return $(T,E)&&C(T,E)}}else y=$}var b=new _N(n,m,r?i.componentStyle:void 0);function v(T,E){return function(A,R,S){var U=A.attrs,j=A.componentStyle,M=A.defaultProps,X=A.foldedComponentIds,O=A.styledComponentId,I=A.target,W=x.useContext(fc),k=px(),V=A.shouldForwardProp||k.shouldForwardProp;process.env.NODE_ENV!=="production"&&x.useDebugValue(O);var _=JV(R,W,M)||$u,H=function($e,De,Ce){for(var Y,he=Xn(Xn({},De),{className:void 0,theme:Ce}),ye=0;ye<$e.length;ye+=1){var fe=is(Y=$e[ye])?Y(he):Y;for(var ae in fe)he[ae]=ae==="className"?Ua(he[ae],fe[ae]):ae==="style"?Xn(Xn({},he[ae]),fe[ae]):fe[ae]}return De.className&&(he.className=Ua(he.className,De.className)),he}(U,R,_),z=H.as||I,N={};for(var ne in H)H[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"&&H.theme===_||(ne==="forwardedAs"?N.as=H.forwardedAs:V&&!V(ne,z)||(N[ne]=H[ne],V||process.env.NODE_ENV!=="development"||PV(ne)||gx.has(ne)||!Wv.has(z)||(gx.add(ne),console.warn('styled-components: it looks like an unknown prop "'.concat(ne,'" 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 ie=function($e,De){var Ce=px(),Y=$e.generateAndInjectStyles(De,Ce.styleSheet,Ce.stylis);return process.env.NODE_ENV!=="production"&&x.useDebugValue(Y),Y}(j,H);process.env.NODE_ENV!=="production"&&A.warnTooManyClasses&&A.warnTooManyClasses(ie);var le=Ua(X,O);return ie&&(le+=" "+ie),H.className&&(le+=" "+H.className),N[Zm(z)&&!Wv.has(z)?"class":"className"]=le,S&&(N.ref=S),x.createElement(z,N)}(D,T,E)}v.displayName=h;var D=x.forwardRef(v);return D.attrs=g,D.componentStyle=b,D.displayName=h,D.shouldForwardProp=y,D.foldedComponentIds=r?Ua(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=m,D.target=r?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(T){this._foldedDefaultProps=r?function(E){for(var A=[],R=1;R<arguments.length;R++)A[R-1]=arguments[R];for(var S=0,U=A;S<U.length;S++)Gv(E,U[S],!0);return E}({},i.defaultProps,T):T}}),process.env.NODE_ENV!=="production"&&(ZV(h,m),D.warnTooManyClasses=function(T,E){var A={},R=!1;return function(S){if(!R&&(A[S]=!0,Object.keys(A).length>=200)){var U=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(T).concat(U,`.
46
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
47
+ Example:
48
+ const Component = styled.div.attrs(props => ({
49
+ style: {
50
+ background: props.background,
51
+ },
52
+ }))\`width: 100%;\`
53
+
54
+ <Component />`),R=!0,A={}}}}(h,m)),_0(D,function(){return".".concat(D.styledComponentId)}),o&&o2(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function yx(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 vx=function(e){return Object.assign(e,{isCss:!0})};function R0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(is(e)||xu(e))return vx(Xa(yx(Hh,ns([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Xa(r):vx(Xa(yx(r,t)))}function Jv(e,t,n){if(n===void 0&&(n=$u),!t)throw qi(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,R0.apply(void 0,ns([i],o,!1)))};return r.attrs=function(i){return Jv(e,t,Xn(Xn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Jv(e,t,Xn(Xn({},n),i))},r}var f2=function(e){return Jv(MN,e)},h2=f2;Wv.forEach(function(e){h2[e]=f2(e)});function FN(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=Hv(R0.apply(void 0,ns([e],t,!1))),i=e2(r);return new Zv(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 sf="__sc-".concat(rs,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[sf]||(window[sf]=0),window[sf]===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[sf]+=1);const wu=Math.min,Qa=Math.max,Xf=Math.round,uf=Math.floor,Hi=e=>({x:e,y:e}),kN={left:"right",right:"left",bottom:"top",top:"bottom"},BN={start:"end",end:"start"};function Xv(e,t,n){return Qa(e,wu(t,n))}function Fc(e,t){return typeof e=="function"?e(t):e}function os(e){return e.split("-")[0]}function kc(e){return e.split("-")[1]}function p2(e){return e==="x"?"y":"x"}function O0(e){return e==="y"?"height":"width"}function Du(e){return["top","bottom"].includes(os(e))?"y":"x"}function M0(e){return p2(Du(e))}function IN(e,t,n){n===void 0&&(n=!1);const r=kc(e),i=M0(e),o=O0(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Qf(a)),[a,Qf(a)]}function LN(e){const t=Qf(e);return[Qv(e),t,Qv(t)]}function Qv(e){return e.replace(/start|end/g,t=>BN[t])}function VN(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function NN(e,t,n,r){const i=kc(e);let o=VN(os(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Qv)))),o}function Qf(e){return e.replace(/left|right|bottom|top/g,t=>kN[t])}function jN(e){return{top:0,right:0,bottom:0,left:0,...e}}function m2(e){return typeof e!="number"?jN(e):{top:e,right:e,bottom:e,left:e}}function eh(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 bx(e,t,n){let{reference:r,floating:i}=e;const o=Du(t),a=M0(t),u=O0(a),l=os(t),d=o==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[u]/2-i[u]/2;let g;switch(l){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(kc(t)){case"start":g[a]-=m*(n&&d?-1:1);break;case"end":g[a]+=m*(n&&d?-1:1);break}return g}const KN=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,u=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=bx(d,r,l),m=r,g={},y=0;for(let $=0;$<u.length;$++){const{name:C,fn:b}=u[$],{x:v,y:D,data:T,reset:E}=await b({x:f,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});f=v??f,h=D??h,g={...g,[C]:{...g[C],...T}},E&&y<=50&&(y++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:f,y:h}=bx(d,m,l)),$=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:g}};async function g2(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:u,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=Fc(t,e),y=m2(g),C=u[m?h==="floating"?"reference":"floating":h],b=eh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:d,rootBoundary:f,strategy:l})),v=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),T=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=eh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:v,offsetParent:D,strategy:l}):v);return{top:(b.top-E.top+y.top)/T.y,bottom:(E.bottom-b.bottom+y.bottom)/T.y,left:(b.left-E.left+y.left)/T.x,right:(E.right-b.right+y.right)/T.x}}const UN=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:u,middlewareData:l}=t,{element:d,padding:f=0}=Fc(e,t)||{};if(d==null)return{};const h=m2(f),m={x:n,y:r},g=M0(i),y=O0(g),$=await a.getDimensions(d),C=g==="y",b=C?"top":"left",v=C?"bottom":"right",D=C?"clientHeight":"clientWidth",T=o.reference[y]+o.reference[g]-m[g]-o.floating[y],E=m[g]-o.reference[g],A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let R=A?A[D]:0;(!R||!await(a.isElement==null?void 0:a.isElement(A)))&&(R=u.floating[D]||o.floating[y]);const S=T/2-E/2,U=R/2-$[y]/2-1,j=wu(h[b],U),M=wu(h[v],U),X=j,O=R-$[y]-M,I=R/2-$[y]/2+S,W=Xv(X,I,O),k=!l.arrow&&kc(i)!=null&&I!==W&&o.reference[y]/2-(I<X?j:M)-$[y]/2<0,V=k?I<X?I-X:I-O:0;return{[g]:m[g]+V,data:{[g]:W,centerOffset:I-W-V,...k&&{alignmentOffset:V}},reset:k}}}),zN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:u,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:$=!0,...C}=Fc(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=os(i),v=Du(u),D=os(u)===u,T=await(l.isRTL==null?void 0:l.isRTL(d.floating)),E=m||(D||!$?[Qf(u)]:LN(u)),A=y!=="none";!m&&A&&E.push(...NN(u,$,y,T));const R=[u,...E],S=await g2(t,C),U=[];let j=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&U.push(S[b]),h){const I=IN(i,a,T);U.push(S[I[0]],S[I[1]])}if(j=[...j,{placement:i,overflows:U}],!U.every(I=>I<=0)){var M,X;const I=(((M=o.flip)==null?void 0:M.index)||0)+1,W=R[I];if(W)return{data:{index:I,overflows:j},reset:{placement:W}};let k=(X=j.filter(V=>V.overflows[0]<=0).sort((V,_)=>V.overflows[1]-_.overflows[1])[0])==null?void 0:X.placement;if(!k)switch(g){case"bestFit":{var O;const V=(O=j.filter(_=>{if(A){const H=Du(_.placement);return H===v||H==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(H=>H>0).reduce((H,z)=>H+z,0)]).sort((_,H)=>_[1]-H[1])[0])==null?void 0:O[0];V&&(k=V);break}case"initialPlacement":k=u;break}if(i!==k)return{reset:{placement:k}}}return{}}}};async function WN(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=os(n),u=kc(n),l=Du(n)==="y",d=["left","top"].includes(a)?-1:1,f=o&&l?-1:1,h=Fc(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof y=="number"&&(g=u==="end"?y*-1:y),l?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const qN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:u}=t,l=await WN(t,e);return a===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},HN=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:u={fn:C=>{let{x:b,y:v}=C;return{x:b,y:v}}},...l}=Fc(e,t),d={x:n,y:r},f=await g2(t,l),h=Du(os(i)),m=p2(h);let g=d[m],y=d[h];if(o){const C=m==="y"?"top":"left",b=m==="y"?"bottom":"right",v=g+f[C],D=g-f[b];g=Xv(v,g,D)}if(a){const C=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=y+f[C],D=y-f[b];y=Xv(v,y,D)}const $=u.fn({...t,[m]:g,[h]:y});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[m]:o,[h]:a}}}}}};function Gh(){return typeof window<"u"}function Ku(e){return y2(e)?(e.nodeName||"").toLowerCase():"#document"}function Mr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function eo(e){var t;return(t=(y2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function y2(e){return Gh()?e instanceof Node||e instanceof Mr(e).Node:!1}function xi(e){return Gh()?e instanceof Element||e instanceof Mr(e).Element:!1}function Ji(e){return Gh()?e instanceof HTMLElement||e instanceof Mr(e).HTMLElement:!1}function $x(e){return!Gh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mr(e).ShadowRoot}function Bc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function GN(e){return["table","td","th"].includes(Ku(e))}function Yh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function F0(e){const t=k0(),n=xi(e)?wi(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function YN(e){let t=fa(e);for(;Ji(t)&&!Cu(t);){if(F0(t))return t;if(Yh(t))return null;t=fa(t)}return null}function k0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Cu(e){return["html","body","#document"].includes(Ku(e))}function wi(e){return Mr(e).getComputedStyle(e)}function Zh(e){return xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fa(e){if(Ku(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$x(e)&&e.host||eo(e);return $x(t)?t.host:t}function v2(e){const t=fa(e);return Cu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ji(t)&&Bc(t)?t:v2(t)}function hc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=v2(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Mr(i);if(o){const u=eb(a);return t.concat(a,a.visualViewport||[],Bc(i)?i:[],u&&n?hc(u):[])}return t.concat(i,hc(i,[],n))}function eb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function b2(e){const t=wi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ji(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=Xf(n)!==o||Xf(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function B0(e){return xi(e)?e:e.contextElement}function cu(e){const t=B0(e);if(!Ji(t))return Hi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=b2(t);let a=(o?Xf(n.width):n.width)/r,u=(o?Xf(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const ZN=Hi(0);function $2(e){const t=Mr(e);return!k0()||!t.visualViewport?ZN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function JN(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mr(e)?!1:t}function as(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=B0(e);let a=Hi(1);t&&(r?xi(r)&&(a=cu(r)):a=cu(e));const u=JN(o,n,r)?$2(o):Hi(0);let l=(i.left+u.x)/a.x,d=(i.top+u.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(o){const m=Mr(o),g=r&&xi(r)?Mr(r):r;let y=m,$=eb(y);for(;$&&r&&g!==y;){const C=cu($),b=$.getBoundingClientRect(),v=wi($),D=b.left+($.clientLeft+parseFloat(v.paddingLeft))*C.x,T=b.top+($.clientTop+parseFloat(v.paddingTop))*C.y;l*=C.x,d*=C.y,f*=C.x,h*=C.y,l+=D,d+=T,y=Mr($),$=eb(y)}}return eh({width:f,height:h,x:l,y:d})}function I0(e,t){const n=Zh(e).scrollLeft;return t?t.left+n:as(eo(e)).left+n}function x2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:I0(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function XN(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=eo(r),u=t?Yh(t.floating):!1;if(r===a||u&&o)return n;let l={scrollLeft:0,scrollTop:0},d=Hi(1);const f=Hi(0),h=Ji(r);if((h||!h&&!o)&&((Ku(r)!=="body"||Bc(a))&&(l=Zh(r)),Ji(r))){const g=as(r);d=cu(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=a&&!h&&!o?x2(a,l,!0):Hi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-l.scrollTop*d.y+f.y+m.y}}function QN(e){return Array.from(e.getClientRects())}function ej(e){const t=eo(e),n=Zh(e),r=e.ownerDocument.body,i=Qa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Qa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+I0(e);const u=-n.scrollTop;return wi(r).direction==="rtl"&&(a+=Qa(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:u}}function tj(e,t){const n=Mr(e),r=eo(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,u=0,l=0;if(i){o=i.width,a=i.height;const d=k0();(!d||d&&t==="fixed")&&(u=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:u,y:l}}function nj(e,t){const n=as(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ji(e)?cu(e):Hi(1),a=e.clientWidth*o.x,u=e.clientHeight*o.y,l=i*o.x,d=r*o.y;return{width:a,height:u,x:l,y:d}}function xx(e,t,n){let r;if(t==="viewport")r=tj(e,n);else if(t==="document")r=ej(eo(e));else if(xi(t))r=nj(t,n);else{const i=$2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return eh(r)}function w2(e,t){const n=fa(e);return n===t||!xi(n)||Cu(n)?!1:wi(n).position==="fixed"||w2(n,t)}function rj(e,t){const n=t.get(e);if(n)return n;let r=hc(e,[],!1).filter(u=>xi(u)&&Ku(u)!=="body"),i=null;const o=wi(e).position==="fixed";let a=o?fa(e):e;for(;xi(a)&&!Cu(a);){const u=wi(a),l=F0(a);!l&&u.position==="fixed"&&(i=null),(o?!l&&!i:!l&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Bc(a)&&!l&&w2(e,a))?r=r.filter(f=>f!==a):i=u,a=fa(a)}return t.set(e,r),r}function ij(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Yh(t)?[]:rj(t,this._c):[].concat(n),r],u=a[0],l=a.reduce((d,f)=>{const h=xx(t,f,i);return d.top=Qa(h.top,d.top),d.right=wu(h.right,d.right),d.bottom=wu(h.bottom,d.bottom),d.left=Qa(h.left,d.left),d},xx(t,u,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function oj(e){const{width:t,height:n}=b2(e);return{width:t,height:n}}function aj(e,t,n){const r=Ji(t),i=eo(t),o=n==="fixed",a=as(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const l=Hi(0);if(r||!r&&!o)if((Ku(t)!=="body"||Bc(i))&&(u=Zh(t)),r){const m=as(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&(l.x=I0(i));const d=i&&!r&&!o?x2(i,u):Hi(0),f=a.left+u.scrollLeft-l.x-d.x,h=a.top+u.scrollTop-l.y-d.y;return{x:f,y:h,width:a.width,height:a.height}}function Xm(e){return wi(e).position==="static"}function wx(e,t){if(!Ji(e)||wi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return eo(e)===n&&(n=n.ownerDocument.body),n}function D2(e,t){const n=Mr(e);if(Yh(e))return n;if(!Ji(e)){let i=fa(e);for(;i&&!Cu(i);){if(xi(i)&&!Xm(i))return i;i=fa(i)}return n}let r=wx(e,t);for(;r&&GN(r)&&Xm(r);)r=wx(r,t);return r&&Cu(r)&&Xm(r)&&!F0(r)?n:r||YN(e)||n}const sj=async function(e){const t=this.getOffsetParent||D2,n=this.getDimensions,r=await n(e.floating);return{reference:aj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function uj(e){return wi(e).direction==="rtl"}const lj={convertOffsetParentRelativeRectToViewportRelativeRect:XN,getDocumentElement:eo,getClippingRect:ij,getOffsetParent:D2,getElementRects:sj,getClientRects:QN,getDimensions:oj,getScale:cu,isElement:xi,isRTL:uj};function C2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cj(e,t){let n=null,r;const i=eo(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),o();const d=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;const y=uf(h),$=uf(i.clientWidth-(f+m)),C=uf(i.clientHeight-(h+g)),b=uf(f),D={rootMargin:-y+"px "+-$+"px "+-C+"px "+-b+"px",threshold:Qa(0,wu(1,l))||1};let T=!0;function E(A){const R=A[0].intersectionRatio;if(R!==l){if(!T)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!C2(d,e.getBoundingClientRect())&&a(),T=!1}try{n=new IntersectionObserver(E,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,D)}n.observe(e)}return a(!0),o}function E2(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=B0(e),f=i||o?[...d?hc(d):[],...hc(t)]:[];f.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const h=d&&u?cj(d,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(b=>{let[v]=b;v&&v.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var D;(D=g)==null||D.observe(t)})),n()}),d&&!l&&g.observe(d),g.observe(t));let y,$=l?as(e):null;l&&C();function C(){const b=as(e);$&&!C2($,b)&&n(),$=b,y=requestAnimationFrame(C)}return n(),()=>{var b;f.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),h==null||h(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(y)}}const S2=qN,dj=HN,T2=zN,fj=UN,tb=(e,t,n)=>{const r=new Map,i={platform:lj,...n},o={...i.platform,_c:r};return KN(e,t,{...i,platform:o})};var Ff=typeof document<"u"?x.useLayoutEffect:x.useEffect;function th(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(!th(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)&&!th(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function A2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dx(e,t){const n=A2(e);return Math.round(t*n)/n}function Qm(e){const t=Ge.useRef(e);return Ff(()=>{t.current=e}),t}function hj(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:u=!0,whileElementsMounted:l,open:d}=e,[f,h]=Ge.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=Ge.useState(r);th(m,r)||g(r);const[y,$]=Ge.useState(null),[C,b]=Ge.useState(null),v=Ge.useCallback(_=>{_!==A.current&&(A.current=_,$(_))},[]),D=Ge.useCallback(_=>{_!==R.current&&(R.current=_,b(_))},[]),T=o||y,E=a||C,A=Ge.useRef(null),R=Ge.useRef(null),S=Ge.useRef(f),U=l!=null,j=Qm(l),M=Qm(i),X=Qm(d),O=Ge.useCallback(()=>{if(!A.current||!R.current)return;const _={placement:t,strategy:n,middleware:m};M.current&&(_.platform=M.current),tb(A.current,R.current,_).then(H=>{const z={...H,isPositioned:X.current!==!1};I.current&&!th(S.current,z)&&(S.current=z,Af.flushSync(()=>{h(z)}))})},[m,t,n,M,X]);Ff(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[d]);const I=Ge.useRef(!1);Ff(()=>(I.current=!0,()=>{I.current=!1}),[]),Ff(()=>{if(T&&(A.current=T),E&&(R.current=E),T&&E){if(j.current)return j.current(T,E,O);O()}},[T,E,O,j,U]);const W=Ge.useMemo(()=>({reference:A,floating:R,setReference:v,setFloating:D}),[v,D]),k=Ge.useMemo(()=>({reference:T,floating:E}),[T,E]),V=Ge.useMemo(()=>{const _={position:n,left:0,top:0};if(!k.floating)return _;const H=Dx(k.floating,f.x),z=Dx(k.floating,f.y);return u?{..._,transform:"translate("+H+"px, "+z+"px)",...A2(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:z}},[n,u,k.floating,f.x,f.y]);return Ge.useMemo(()=>({...f,update:O,refs:W,elements:k,floatingStyles:V}),[f,O,W,k,V])}const pj=(e,t)=>({...S2(e),options:[e,t]}),mj=(e,t)=>({...T2(e),options:[e,t]});var Kl={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 gj=Kl.exports,Cx;function yj(){return Cx||(Cx=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,m=2,g=4,y=1,$=2,C=1,b=2,v=4,D=8,T=16,E=32,A=64,R=128,S=256,U=512,j=30,M="...",X=800,O=16,I=1,W=2,k=3,V=1/0,_=9007199254740991,H=17976931348623157e292,z=NaN,N=4294967295,ne=N-1,ie=N>>>1,le=[["ary",R],["bind",C],["bindKey",b],["curry",D],["curryRight",T],["flip",U],["partial",E],["partialRight",A],["rearg",S]],$e="[object Arguments]",De="[object Array]",Ce="[object AsyncFunction]",Y="[object Boolean]",he="[object Date]",ye="[object DOMException]",fe="[object Error]",ae="[object Function]",Fe="[object GeneratorFunction]",et="[object Map]",dt="[object Number]",Dn="[object Null]",yt="[object Object]",G="[object Promise]",Z="[object Proxy]",re="[object RegExp]",pe="[object Set]",Ee="[object String]",we="[object Symbol]",_e="[object Undefined]",Ve="[object WeakMap]",mt="[object WeakSet]",ut="[object ArrayBuffer]",Rt="[object DataView]",Pn="[object Float32Array]",_n="[object Float64Array]",Yt="[object Int8Array]",Ln="[object Int16Array]",tn="[object Int32Array]",vt="[object Uint8Array]",Vn="[object Uint8ClampedArray]",Sr="[object Uint16Array]",Rn="[object Uint32Array]",er=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nn=/&(?:amp|lt|gt|quot|#39);/g,Cn=/[&<>"']/g,Ir=RegExp(Nn.source),Vt=RegExp(Cn.source),En=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,nn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fr=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Ye=RegExp(je.source),Ft=/^\s+/,rn=/\s/,jn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ut=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wt=/[()=,{}\[\]\/\s]/,li=/\\(\\)?/g,$a=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hr=/\w*$/,Fo=/^[-+]0x[0-9a-f]+$/i,ko=/^0b[01]+$/i,Bo=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,nr=/^(?:0|[1-9]\d*)$/,pr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Io=/['\n\r\u2028\u2029\\]/g,Lr="\\ud800-\\udfff",rl="\\u0300-\\u036f",xs="\\ufe20-\\ufe2f",il="\\u20d0-\\u20ff",Lo=rl+xs+il,Ai="\\u2700-\\u27bf",xa="a-z\\xdf-\\xf6\\xf8-\\xff",wa="\\xac\\xb1\\xd7\\xf7",ws="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ds="\\u2000-\\u206f",ol=" \\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",Cs="A-Z\\xc0-\\xd6\\xd8-\\xde",Da="\\ufe0e\\ufe0f",Es=wa+ws+Ds+ol,no="['’]",al="["+Lr+"]",Ss="["+Es+"]",Vo="["+Lo+"]",Ts="\\d+",B="["+Ai+"]",Q="["+xa+"]",ue="[^"+Lr+Es+Ts+Ai+xa+Cs+"]",be="\\ud83c[\\udffb-\\udfff]",Re="(?:"+Vo+"|"+be+")",it="[^"+Lr+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+Cs+"]",Wt="\\u200d",Mn="(?:"+Q+"|"+ue+")",Fn="(?:"+Ot+"|"+ue+")",Vr="(?:"+no+"(?:d|ll|m|re|s|t|ve))?",rr="(?:"+no+"(?:D|LL|M|RE|S|T|VE))?",As=Re+"?",Ca="["+Da+"]?",Ea="(?:"+Wt+"(?:"+[it,Ke,ze].join("|")+")"+Ca+As+")*",ro="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Np="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sl=Ca+As+Ea,jp="(?:"+[B,Ke,ze].join("|")+")"+sl,ul="(?:"+[it+Vo+"?",Vo,Ke,ze,al].join("|")+")",gd=RegExp(no,"g"),Kp=RegExp(Vo,"g"),ll=RegExp(be+"(?="+be+")|"+ul+sl,"g"),yd=RegExp([Ot+"?"+Q+"+"+Vr+"(?="+[Ss,Ot,"$"].join("|")+")",Fn+"+"+rr+"(?="+[Ss,Ot+Mn,"$"].join("|")+")",Ot+"?"+Mn+"+"+Vr,Ot+"+"+rr,Np,ro,Ts,jp].join("|"),"g"),Up=RegExp("["+Wt+Lr+Lo+Da+"]"),Ps=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zp=["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"],cl=-1,Bt={};Bt[Pn]=Bt[_n]=Bt[Yt]=Bt[Ln]=Bt[tn]=Bt[vt]=Bt[Vn]=Bt[Sr]=Bt[Rn]=!0,Bt[$e]=Bt[De]=Bt[ut]=Bt[Y]=Bt[Rt]=Bt[he]=Bt[fe]=Bt[ae]=Bt[et]=Bt[dt]=Bt[yt]=Bt[re]=Bt[pe]=Bt[Ee]=Bt[Ve]=!1;var Mt={};Mt[$e]=Mt[De]=Mt[ut]=Mt[Rt]=Mt[Y]=Mt[he]=Mt[Pn]=Mt[_n]=Mt[Yt]=Mt[Ln]=Mt[tn]=Mt[et]=Mt[dt]=Mt[yt]=Mt[re]=Mt[pe]=Mt[Ee]=Mt[we]=Mt[vt]=Mt[Vn]=Mt[Sr]=Mt[Rn]=!0,Mt[fe]=Mt[ae]=Mt[Ve]=!1;var K={À:"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"},oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ve={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},vn=parseFloat,Un=parseInt,Nr=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi,zn=typeof self=="object"&&self&&self.Object===Object&&self,mn=Nr||zn||Function("return this")(),Pi=t&&!t.nodeType&&t,_i=Pi&&!0&&e&&!e.nodeType&&e,dl=_i&&_i.exports===Pi,_s=dl&&Nr.process,Wn=function(){try{var ee=_i&&_i.require&&_i.require("util").types;return ee||_s&&_s.binding&&_s.binding("util")}catch{}}(),Sa=Wn&&Wn.isArrayBuffer,Q4=Wn&&Wn.isDate,e3=Wn&&Wn.isMap,t3=Wn&&Wn.isRegExp,n3=Wn&&Wn.isSet,r3=Wn&&Wn.isTypedArray;function Tr(ee,de,se){switch(se.length){case 0:return ee.call(de);case 1:return ee.call(de,se[0]);case 2:return ee.call(de,se[0],se[1]);case 3:return ee.call(de,se[0],se[1],se[2])}return ee.apply(de,se)}function ZF(ee,de,se,Me){for(var Je=-1,bt=ee==null?0:ee.length;++Je<bt;){var bn=ee[Je];de(Me,bn,se(bn),ee)}return Me}function jr(ee,de){for(var se=-1,Me=ee==null?0:ee.length;++se<Me&&de(ee[se],se,ee)!==!1;);return ee}function JF(ee,de){for(var se=ee==null?0:ee.length;se--&&de(ee[se],se,ee)!==!1;);return ee}function i3(ee,de){for(var se=-1,Me=ee==null?0:ee.length;++se<Me;)if(!de(ee[se],se,ee))return!1;return!0}function No(ee,de){for(var se=-1,Me=ee==null?0:ee.length,Je=0,bt=[];++se<Me;){var bn=ee[se];de(bn,se,ee)&&(bt[Je++]=bn)}return bt}function vd(ee,de){var se=ee==null?0:ee.length;return!!se&&Rs(ee,de,0)>-1}function Wp(ee,de,se){for(var Me=-1,Je=ee==null?0:ee.length;++Me<Je;)if(se(de,ee[Me]))return!0;return!1}function qt(ee,de){for(var se=-1,Me=ee==null?0:ee.length,Je=Array(Me);++se<Me;)Je[se]=de(ee[se],se,ee);return Je}function jo(ee,de){for(var se=-1,Me=de.length,Je=ee.length;++se<Me;)ee[Je+se]=de[se];return ee}function qp(ee,de,se,Me){var Je=-1,bt=ee==null?0:ee.length;for(Me&&bt&&(se=ee[++Je]);++Je<bt;)se=de(se,ee[Je],Je,ee);return se}function XF(ee,de,se,Me){var Je=ee==null?0:ee.length;for(Me&&Je&&(se=ee[--Je]);Je--;)se=de(se,ee[Je],Je,ee);return se}function Hp(ee,de){for(var se=-1,Me=ee==null?0:ee.length;++se<Me;)if(de(ee[se],se,ee))return!0;return!1}var QF=Gp("length");function e9(ee){return ee.split("")}function t9(ee){return ee.match(kt)||[]}function o3(ee,de,se){var Me;return se(ee,function(Je,bt,bn){if(de(Je,bt,bn))return Me=bt,!1}),Me}function bd(ee,de,se,Me){for(var Je=ee.length,bt=se+(Me?1:-1);Me?bt--:++bt<Je;)if(de(ee[bt],bt,ee))return bt;return-1}function Rs(ee,de,se){return de===de?h9(ee,de,se):bd(ee,a3,se)}function n9(ee,de,se,Me){for(var Je=se-1,bt=ee.length;++Je<bt;)if(Me(ee[Je],de))return Je;return-1}function a3(ee){return ee!==ee}function s3(ee,de){var se=ee==null?0:ee.length;return se?Zp(ee,de)/se:z}function Gp(ee){return function(de){return de==null?n:de[ee]}}function Yp(ee){return function(de){return ee==null?n:ee[de]}}function u3(ee,de,se,Me,Je){return Je(ee,function(bt,bn,It){se=Me?(Me=!1,bt):de(se,bt,bn,It)}),se}function r9(ee,de){var se=ee.length;for(ee.sort(de);se--;)ee[se]=ee[se].value;return ee}function Zp(ee,de){for(var se,Me=-1,Je=ee.length;++Me<Je;){var bt=de(ee[Me]);bt!==n&&(se=se===n?bt:se+bt)}return se}function Jp(ee,de){for(var se=-1,Me=Array(ee);++se<ee;)Me[se]=de(se);return Me}function i9(ee,de){return qt(de,function(se){return[se,ee[se]]})}function l3(ee){return ee&&ee.slice(0,h3(ee)+1).replace(Ft,"")}function Ar(ee){return function(de){return ee(de)}}function Xp(ee,de){return qt(de,function(se){return ee[se]})}function fl(ee,de){return ee.has(de)}function c3(ee,de){for(var se=-1,Me=ee.length;++se<Me&&Rs(de,ee[se],0)>-1;);return se}function d3(ee,de){for(var se=ee.length;se--&&Rs(de,ee[se],0)>-1;);return se}function o9(ee,de){for(var se=ee.length,Me=0;se--;)ee[se]===de&&++Me;return Me}var a9=Yp(K),s9=Yp(oe);function u9(ee){return"\\"+Ie[ee]}function l9(ee,de){return ee==null?n:ee[de]}function Os(ee){return Up.test(ee)}function c9(ee){return Ps.test(ee)}function d9(ee){for(var de,se=[];!(de=ee.next()).done;)se.push(de.value);return se}function Qp(ee){var de=-1,se=Array(ee.size);return ee.forEach(function(Me,Je){se[++de]=[Je,Me]}),se}function f3(ee,de){return function(se){return ee(de(se))}}function Ko(ee,de){for(var se=-1,Me=ee.length,Je=0,bt=[];++se<Me;){var bn=ee[se];(bn===de||bn===f)&&(ee[se]=f,bt[Je++]=se)}return bt}function $d(ee){var de=-1,se=Array(ee.size);return ee.forEach(function(Me){se[++de]=Me}),se}function f9(ee){var de=-1,se=Array(ee.size);return ee.forEach(function(Me){se[++de]=[Me,Me]}),se}function h9(ee,de,se){for(var Me=se-1,Je=ee.length;++Me<Je;)if(ee[Me]===de)return Me;return-1}function p9(ee,de,se){for(var Me=se+1;Me--;)if(ee[Me]===de)return Me;return Me}function Ms(ee){return Os(ee)?g9(ee):QF(ee)}function ci(ee){return Os(ee)?y9(ee):e9(ee)}function h3(ee){for(var de=ee.length;de--&&rn.test(ee.charAt(de)););return de}var m9=Yp(ve);function g9(ee){for(var de=ll.lastIndex=0;ll.test(ee);)++de;return de}function y9(ee){return ee.match(ll)||[]}function v9(ee){return ee.match(yd)||[]}var b9=function ee(de){de=de==null?mn:Fs.defaults(mn.Object(),de,Fs.pick(mn,zp));var se=de.Array,Me=de.Date,Je=de.Error,bt=de.Function,bn=de.Math,It=de.Object,em=de.RegExp,$9=de.String,Kr=de.TypeError,xd=se.prototype,x9=bt.prototype,ks=It.prototype,wd=de["__core-js_shared__"],Dd=x9.toString,At=ks.hasOwnProperty,w9=0,p3=function(){var s=/[^.]+$/.exec(wd&&wd.keys&&wd.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Cd=ks.toString,D9=Dd.call(It),C9=mn._,E9=em("^"+Dd.call(At).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ed=dl?de.Buffer:n,Uo=de.Symbol,Sd=de.Uint8Array,m3=Ed?Ed.allocUnsafe:n,Td=f3(It.getPrototypeOf,It),g3=It.create,y3=ks.propertyIsEnumerable,Ad=xd.splice,v3=Uo?Uo.isConcatSpreadable:n,hl=Uo?Uo.iterator:n,Ta=Uo?Uo.toStringTag:n,Pd=function(){try{var s=Oa(It,"defineProperty");return s({},"",{}),s}catch{}}(),S9=de.clearTimeout!==mn.clearTimeout&&de.clearTimeout,T9=Me&&Me.now!==mn.Date.now&&Me.now,A9=de.setTimeout!==mn.setTimeout&&de.setTimeout,_d=bn.ceil,Rd=bn.floor,tm=It.getOwnPropertySymbols,P9=Ed?Ed.isBuffer:n,b3=de.isFinite,_9=xd.join,R9=f3(It.keys,It),$n=bn.max,qn=bn.min,O9=Me.now,M9=de.parseInt,$3=bn.random,F9=xd.reverse,nm=Oa(de,"DataView"),pl=Oa(de,"Map"),rm=Oa(de,"Promise"),Bs=Oa(de,"Set"),ml=Oa(de,"WeakMap"),gl=Oa(It,"create"),Od=ml&&new ml,Is={},k9=Ma(nm),B9=Ma(pl),I9=Ma(rm),L9=Ma(Bs),V9=Ma(ml),Md=Uo?Uo.prototype:n,yl=Md?Md.valueOf:n,x3=Md?Md.toString:n;function F(s){if(on(s)&&!Xe(s)&&!(s instanceof ft)){if(s instanceof Ur)return s;if(At.call(s,"__wrapped__"))return w$(s)}return new Ur(s)}var Ls=function(){function s(){}return function(c){if(!Zt(c))return{};if(g3)return g3(c);s.prototype=c;var p=new s;return s.prototype=n,p}}();function Fd(){}function Ur(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}F.templateSettings={escape:En,evaluate:Ne,interpolate:tt,variable:"",imports:{_:F}},F.prototype=Fd.prototype,F.prototype.constructor=F,Ur.prototype=Ls(Fd.prototype),Ur.prototype.constructor=Ur;function ft(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=N,this.__views__=[]}function N9(){var s=new ft(this.__wrapped__);return s.__actions__=mr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=mr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=mr(this.__views__),s}function j9(){if(this.__filtered__){var s=new ft(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function K9(){var s=this.__wrapped__.value(),c=this.__dir__,p=Xe(s),w=c<0,P=p?s.length:0,L=ek(0,P,this.__views__),q=L.start,J=L.end,te=J-q,me=w?J:q-1,ge=this.__iteratees__,xe=ge.length,Pe=0,Le=qn(te,this.__takeCount__);if(!p||!w&&P==te&&Le==te)return W3(s,this.__actions__);var We=[];e:for(;te--&&Pe<Le;){me+=c;for(var ot=-1,qe=s[me];++ot<xe;){var lt=ge[ot],ht=lt.iteratee,Rr=lt.type,ar=ht(qe);if(Rr==W)qe=ar;else if(!ar){if(Rr==I)continue e;break e}}We[Pe++]=qe}return We}ft.prototype=Ls(Fd.prototype),ft.prototype.constructor=ft;function Aa(s){var c=-1,p=s==null?0:s.length;for(this.clear();++c<p;){var w=s[c];this.set(w[0],w[1])}}function U9(){this.__data__=gl?gl(null):{},this.size=0}function z9(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function W9(s){var c=this.__data__;if(gl){var p=c[s];return p===l?n:p}return At.call(c,s)?c[s]:n}function q9(s){var c=this.__data__;return gl?c[s]!==n:At.call(c,s)}function H9(s,c){var p=this.__data__;return this.size+=this.has(s)?0:1,p[s]=gl&&c===n?l:c,this}Aa.prototype.clear=U9,Aa.prototype.delete=z9,Aa.prototype.get=W9,Aa.prototype.has=q9,Aa.prototype.set=H9;function io(s){var c=-1,p=s==null?0:s.length;for(this.clear();++c<p;){var w=s[c];this.set(w[0],w[1])}}function G9(){this.__data__=[],this.size=0}function Y9(s){var c=this.__data__,p=kd(c,s);if(p<0)return!1;var w=c.length-1;return p==w?c.pop():Ad.call(c,p,1),--this.size,!0}function Z9(s){var c=this.__data__,p=kd(c,s);return p<0?n:c[p][1]}function J9(s){return kd(this.__data__,s)>-1}function X9(s,c){var p=this.__data__,w=kd(p,s);return w<0?(++this.size,p.push([s,c])):p[w][1]=c,this}io.prototype.clear=G9,io.prototype.delete=Y9,io.prototype.get=Z9,io.prototype.has=J9,io.prototype.set=X9;function oo(s){var c=-1,p=s==null?0:s.length;for(this.clear();++c<p;){var w=s[c];this.set(w[0],w[1])}}function Q9(){this.size=0,this.__data__={hash:new Aa,map:new(pl||io),string:new Aa}}function e8(s){var c=Hd(this,s).delete(s);return this.size-=c?1:0,c}function t8(s){return Hd(this,s).get(s)}function n8(s){return Hd(this,s).has(s)}function r8(s,c){var p=Hd(this,s),w=p.size;return p.set(s,c),this.size+=p.size==w?0:1,this}oo.prototype.clear=Q9,oo.prototype.delete=e8,oo.prototype.get=t8,oo.prototype.has=n8,oo.prototype.set=r8;function Pa(s){var c=-1,p=s==null?0:s.length;for(this.__data__=new oo;++c<p;)this.add(s[c])}function i8(s){return this.__data__.set(s,l),this}function o8(s){return this.__data__.has(s)}Pa.prototype.add=Pa.prototype.push=i8,Pa.prototype.has=o8;function di(s){var c=this.__data__=new io(s);this.size=c.size}function a8(){this.__data__=new io,this.size=0}function s8(s){var c=this.__data__,p=c.delete(s);return this.size=c.size,p}function u8(s){return this.__data__.get(s)}function l8(s){return this.__data__.has(s)}function c8(s,c){var p=this.__data__;if(p instanceof io){var w=p.__data__;if(!pl||w.length<i-1)return w.push([s,c]),this.size=++p.size,this;p=this.__data__=new oo(w)}return p.set(s,c),this.size=p.size,this}di.prototype.clear=a8,di.prototype.delete=s8,di.prototype.get=u8,di.prototype.has=l8,di.prototype.set=c8;function w3(s,c){var p=Xe(s),w=!p&&Fa(s),P=!p&&!w&&Go(s),L=!p&&!w&&!P&&Ks(s),q=p||w||P||L,J=q?Jp(s.length,$9):[],te=J.length;for(var me in s)(c||At.call(s,me))&&!(q&&(me=="length"||P&&(me=="offset"||me=="parent")||L&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||lo(me,te)))&&J.push(me);return J}function D3(s){var c=s.length;return c?s[pm(0,c-1)]:n}function d8(s,c){return Gd(mr(s),_a(c,0,s.length))}function f8(s){return Gd(mr(s))}function im(s,c,p){(p!==n&&!fi(s[c],p)||p===n&&!(c in s))&&ao(s,c,p)}function vl(s,c,p){var w=s[c];(!(At.call(s,c)&&fi(w,p))||p===n&&!(c in s))&&ao(s,c,p)}function kd(s,c){for(var p=s.length;p--;)if(fi(s[p][0],c))return p;return-1}function h8(s,c,p,w){return zo(s,function(P,L,q){c(w,P,p(P),q)}),w}function C3(s,c){return s&&Oi(c,Sn(c),s)}function p8(s,c){return s&&Oi(c,yr(c),s)}function ao(s,c,p){c=="__proto__"&&Pd?Pd(s,c,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[c]=p}function om(s,c){for(var p=-1,w=c.length,P=se(w),L=s==null;++p<w;)P[p]=L?n:Vm(s,c[p]);return P}function _a(s,c,p){return s===s&&(p!==n&&(s=s<=p?s:p),c!==n&&(s=s>=c?s:c)),s}function zr(s,c,p,w,P,L){var q,J=c&h,te=c&m,me=c&g;if(p&&(q=P?p(s,w,P,L):p(s)),q!==n)return q;if(!Zt(s))return s;var ge=Xe(s);if(ge){if(q=nk(s),!J)return mr(s,q)}else{var xe=Hn(s),Pe=xe==ae||xe==Fe;if(Go(s))return G3(s,J);if(xe==yt||xe==$e||Pe&&!P){if(q=te||Pe?{}:h$(s),!J)return te?W8(s,p8(q,s)):z8(s,C3(q,s))}else{if(!Mt[xe])return P?s:{};q=rk(s,xe,J)}}L||(L=new di);var Le=L.get(s);if(Le)return Le;L.set(s,q),K$(s)?s.forEach(function(qe){q.add(zr(qe,c,p,qe,s,L))}):N$(s)&&s.forEach(function(qe,lt){q.set(lt,zr(qe,c,p,lt,s,L))});var We=me?te?Em:Cm:te?yr:Sn,ot=ge?n:We(s);return jr(ot||s,function(qe,lt){ot&&(lt=qe,qe=s[lt]),vl(q,lt,zr(qe,c,p,lt,s,L))}),q}function m8(s){var c=Sn(s);return function(p){return E3(p,s,c)}}function E3(s,c,p){var w=p.length;if(s==null)return!w;for(s=It(s);w--;){var P=p[w],L=c[P],q=s[P];if(q===n&&!(P in s)||!L(q))return!1}return!0}function S3(s,c,p){if(typeof s!="function")throw new Kr(a);return El(function(){s.apply(n,p)},c)}function bl(s,c,p,w){var P=-1,L=vd,q=!0,J=s.length,te=[],me=c.length;if(!J)return te;p&&(c=qt(c,Ar(p))),w?(L=Wp,q=!1):c.length>=i&&(L=fl,q=!1,c=new Pa(c));e:for(;++P<J;){var ge=s[P],xe=p==null?ge:p(ge);if(ge=w||ge!==0?ge:0,q&&xe===xe){for(var Pe=me;Pe--;)if(c[Pe]===xe)continue e;te.push(ge)}else L(c,xe,w)||te.push(ge)}return te}var zo=Q3(Ri),T3=Q3(sm,!0);function g8(s,c){var p=!0;return zo(s,function(w,P,L){return p=!!c(w,P,L),p}),p}function Bd(s,c,p){for(var w=-1,P=s.length;++w<P;){var L=s[w],q=c(L);if(q!=null&&(J===n?q===q&&!_r(q):p(q,J)))var J=q,te=L}return te}function y8(s,c,p,w){var P=s.length;for(p=nt(p),p<0&&(p=-p>P?0:P+p),w=w===n||w>P?P:nt(w),w<0&&(w+=P),w=p>w?0:z$(w);p<w;)s[p++]=c;return s}function A3(s,c){var p=[];return zo(s,function(w,P,L){c(w,P,L)&&p.push(w)}),p}function kn(s,c,p,w,P){var L=-1,q=s.length;for(p||(p=ok),P||(P=[]);++L<q;){var J=s[L];c>0&&p(J)?c>1?kn(J,c-1,p,w,P):jo(P,J):w||(P[P.length]=J)}return P}var am=e$(),P3=e$(!0);function Ri(s,c){return s&&am(s,c,Sn)}function sm(s,c){return s&&P3(s,c,Sn)}function Id(s,c){return No(c,function(p){return co(s[p])})}function Ra(s,c){c=qo(c,s);for(var p=0,w=c.length;s!=null&&p<w;)s=s[Mi(c[p++])];return p&&p==w?s:n}function _3(s,c,p){var w=c(s);return Xe(s)?w:jo(w,p(s))}function ir(s){return s==null?s===n?_e:Dn:Ta&&Ta in It(s)?Q8(s):fk(s)}function um(s,c){return s>c}function v8(s,c){return s!=null&&At.call(s,c)}function b8(s,c){return s!=null&&c in It(s)}function $8(s,c,p){return s>=qn(c,p)&&s<$n(c,p)}function lm(s,c,p){for(var w=p?Wp:vd,P=s[0].length,L=s.length,q=L,J=se(L),te=1/0,me=[];q--;){var ge=s[q];q&&c&&(ge=qt(ge,Ar(c))),te=qn(ge.length,te),J[q]=!p&&(c||P>=120&&ge.length>=120)?new Pa(q&&ge):n}ge=s[0];var xe=-1,Pe=J[0];e:for(;++xe<P&&me.length<te;){var Le=ge[xe],We=c?c(Le):Le;if(Le=p||Le!==0?Le:0,!(Pe?fl(Pe,We):w(me,We,p))){for(q=L;--q;){var ot=J[q];if(!(ot?fl(ot,We):w(s[q],We,p)))continue e}Pe&&Pe.push(We),me.push(Le)}}return me}function x8(s,c,p,w){return Ri(s,function(P,L,q){c(w,p(P),L,q)}),w}function $l(s,c,p){c=qo(c,s),s=y$(s,c);var w=s==null?s:s[Mi(qr(c))];return w==null?n:Tr(w,s,p)}function R3(s){return on(s)&&ir(s)==$e}function w8(s){return on(s)&&ir(s)==ut}function D8(s){return on(s)&&ir(s)==he}function xl(s,c,p,w,P){return s===c?!0:s==null||c==null||!on(s)&&!on(c)?s!==s&&c!==c:C8(s,c,p,w,xl,P)}function C8(s,c,p,w,P,L){var q=Xe(s),J=Xe(c),te=q?De:Hn(s),me=J?De:Hn(c);te=te==$e?yt:te,me=me==$e?yt:me;var ge=te==yt,xe=me==yt,Pe=te==me;if(Pe&&Go(s)){if(!Go(c))return!1;q=!0,ge=!1}if(Pe&&!ge)return L||(L=new di),q||Ks(s)?c$(s,c,p,w,P,L):J8(s,c,te,p,w,P,L);if(!(p&y)){var Le=ge&&At.call(s,"__wrapped__"),We=xe&&At.call(c,"__wrapped__");if(Le||We){var ot=Le?s.value():s,qe=We?c.value():c;return L||(L=new di),P(ot,qe,p,w,L)}}return Pe?(L||(L=new di),X8(s,c,p,w,P,L)):!1}function E8(s){return on(s)&&Hn(s)==et}function cm(s,c,p,w){var P=p.length,L=P,q=!w;if(s==null)return!L;for(s=It(s);P--;){var J=p[P];if(q&&J[2]?J[1]!==s[J[0]]:!(J[0]in s))return!1}for(;++P<L;){J=p[P];var te=J[0],me=s[te],ge=J[1];if(q&&J[2]){if(me===n&&!(te in s))return!1}else{var xe=new di;if(w)var Pe=w(me,ge,te,s,c,xe);if(!(Pe===n?xl(ge,me,y|$,w,xe):Pe))return!1}}return!0}function O3(s){if(!Zt(s)||sk(s))return!1;var c=co(s)?E9:Bo;return c.test(Ma(s))}function S8(s){return on(s)&&ir(s)==re}function T8(s){return on(s)&&Hn(s)==pe}function A8(s){return on(s)&&ef(s.length)&&!!Bt[ir(s)]}function M3(s){return typeof s=="function"?s:s==null?vr:typeof s=="object"?Xe(s)?B3(s[0],s[1]):k3(s):tx(s)}function dm(s){if(!Cl(s))return R9(s);var c=[];for(var p in It(s))At.call(s,p)&&p!="constructor"&&c.push(p);return c}function P8(s){if(!Zt(s))return dk(s);var c=Cl(s),p=[];for(var w in s)w=="constructor"&&(c||!At.call(s,w))||p.push(w);return p}function fm(s,c){return s<c}function F3(s,c){var p=-1,w=gr(s)?se(s.length):[];return zo(s,function(P,L,q){w[++p]=c(P,L,q)}),w}function k3(s){var c=Tm(s);return c.length==1&&c[0][2]?m$(c[0][0],c[0][1]):function(p){return p===s||cm(p,s,c)}}function B3(s,c){return Pm(s)&&p$(c)?m$(Mi(s),c):function(p){var w=Vm(p,s);return w===n&&w===c?Nm(p,s):xl(c,w,y|$)}}function Ld(s,c,p,w,P){s!==c&&am(c,function(L,q){if(P||(P=new di),Zt(L))_8(s,c,q,p,Ld,w,P);else{var J=w?w(Rm(s,q),L,q+"",s,c,P):n;J===n&&(J=L),im(s,q,J)}},yr)}function _8(s,c,p,w,P,L,q){var J=Rm(s,p),te=Rm(c,p),me=q.get(te);if(me){im(s,p,me);return}var ge=L?L(J,te,p+"",s,c,q):n,xe=ge===n;if(xe){var Pe=Xe(te),Le=!Pe&&Go(te),We=!Pe&&!Le&&Ks(te);ge=te,Pe||Le||We?Xe(J)?ge=J:sn(J)?ge=mr(J):Le?(xe=!1,ge=G3(te,!0)):We?(xe=!1,ge=Y3(te,!0)):ge=[]:Sl(te)||Fa(te)?(ge=J,Fa(J)?ge=W$(J):(!Zt(J)||co(J))&&(ge=h$(te))):xe=!1}xe&&(q.set(te,ge),P(ge,te,w,L,q),q.delete(te)),im(s,p,ge)}function I3(s,c){var p=s.length;if(p)return c+=c<0?p:0,lo(c,p)?s[c]:n}function L3(s,c,p){c.length?c=qt(c,function(L){return Xe(L)?function(q){return Ra(q,L.length===1?L[0]:L)}:L}):c=[vr];var w=-1;c=qt(c,Ar(Ue()));var P=F3(s,function(L,q,J){var te=qt(c,function(me){return me(L)});return{criteria:te,index:++w,value:L}});return r9(P,function(L,q){return U8(L,q,p)})}function R8(s,c){return V3(s,c,function(p,w){return Nm(s,w)})}function V3(s,c,p){for(var w=-1,P=c.length,L={};++w<P;){var q=c[w],J=Ra(s,q);p(J,q)&&wl(L,qo(q,s),J)}return L}function O8(s){return function(c){return Ra(c,s)}}function hm(s,c,p,w){var P=w?n9:Rs,L=-1,q=c.length,J=s;for(s===c&&(c=mr(c)),p&&(J=qt(s,Ar(p)));++L<q;)for(var te=0,me=c[L],ge=p?p(me):me;(te=P(J,ge,te,w))>-1;)J!==s&&Ad.call(J,te,1),Ad.call(s,te,1);return s}function N3(s,c){for(var p=s?c.length:0,w=p-1;p--;){var P=c[p];if(p==w||P!==L){var L=P;lo(P)?Ad.call(s,P,1):ym(s,P)}}return s}function pm(s,c){return s+Rd($3()*(c-s+1))}function M8(s,c,p,w){for(var P=-1,L=$n(_d((c-s)/(p||1)),0),q=se(L);L--;)q[w?L:++P]=s,s+=p;return q}function mm(s,c){var p="";if(!s||c<1||c>_)return p;do c%2&&(p+=s),c=Rd(c/2),c&&(s+=s);while(c);return p}function st(s,c){return Om(g$(s,c,vr),s+"")}function F8(s){return D3(Us(s))}function k8(s,c){var p=Us(s);return Gd(p,_a(c,0,p.length))}function wl(s,c,p,w){if(!Zt(s))return s;c=qo(c,s);for(var P=-1,L=c.length,q=L-1,J=s;J!=null&&++P<L;){var te=Mi(c[P]),me=p;if(te==="__proto__"||te==="constructor"||te==="prototype")return s;if(P!=q){var ge=J[te];me=w?w(ge,te,J):n,me===n&&(me=Zt(ge)?ge:lo(c[P+1])?[]:{})}vl(J,te,me),J=J[te]}return s}var j3=Od?function(s,c){return Od.set(s,c),s}:vr,B8=Pd?function(s,c){return Pd(s,"toString",{configurable:!0,enumerable:!1,value:Km(c),writable:!0})}:vr;function I8(s){return Gd(Us(s))}function Wr(s,c,p){var w=-1,P=s.length;c<0&&(c=-c>P?0:P+c),p=p>P?P:p,p<0&&(p+=P),P=c>p?0:p-c>>>0,c>>>=0;for(var L=se(P);++w<P;)L[w]=s[w+c];return L}function L8(s,c){var p;return zo(s,function(w,P,L){return p=c(w,P,L),!p}),!!p}function Vd(s,c,p){var w=0,P=s==null?w:s.length;if(typeof c=="number"&&c===c&&P<=ie){for(;w<P;){var L=w+P>>>1,q=s[L];q!==null&&!_r(q)&&(p?q<=c:q<c)?w=L+1:P=L}return P}return gm(s,c,vr,p)}function gm(s,c,p,w){var P=0,L=s==null?0:s.length;if(L===0)return 0;c=p(c);for(var q=c!==c,J=c===null,te=_r(c),me=c===n;P<L;){var ge=Rd((P+L)/2),xe=p(s[ge]),Pe=xe!==n,Le=xe===null,We=xe===xe,ot=_r(xe);if(q)var qe=w||We;else me?qe=We&&(w||Pe):J?qe=We&&Pe&&(w||!Le):te?qe=We&&Pe&&!Le&&(w||!ot):Le||ot?qe=!1:qe=w?xe<=c:xe<c;qe?P=ge+1:L=ge}return qn(L,ne)}function K3(s,c){for(var p=-1,w=s.length,P=0,L=[];++p<w;){var q=s[p],J=c?c(q):q;if(!p||!fi(J,te)){var te=J;L[P++]=q===0?0:q}}return L}function U3(s){return typeof s=="number"?s:_r(s)?z:+s}function Pr(s){if(typeof s=="string")return s;if(Xe(s))return qt(s,Pr)+"";if(_r(s))return x3?x3.call(s):"";var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function Wo(s,c,p){var w=-1,P=vd,L=s.length,q=!0,J=[],te=J;if(p)q=!1,P=Wp;else if(L>=i){var me=c?null:Y8(s);if(me)return $d(me);q=!1,P=fl,te=new Pa}else te=c?[]:J;e:for(;++w<L;){var ge=s[w],xe=c?c(ge):ge;if(ge=p||ge!==0?ge:0,q&&xe===xe){for(var Pe=te.length;Pe--;)if(te[Pe]===xe)continue e;c&&te.push(xe),J.push(ge)}else P(te,xe,p)||(te!==J&&te.push(xe),J.push(ge))}return J}function ym(s,c){return c=qo(c,s),s=y$(s,c),s==null||delete s[Mi(qr(c))]}function z3(s,c,p,w){return wl(s,c,p(Ra(s,c)),w)}function Nd(s,c,p,w){for(var P=s.length,L=w?P:-1;(w?L--:++L<P)&&c(s[L],L,s););return p?Wr(s,w?0:L,w?L+1:P):Wr(s,w?L+1:0,w?P:L)}function W3(s,c){var p=s;return p instanceof ft&&(p=p.value()),qp(c,function(w,P){return P.func.apply(P.thisArg,jo([w],P.args))},p)}function vm(s,c,p){var w=s.length;if(w<2)return w?Wo(s[0]):[];for(var P=-1,L=se(w);++P<w;)for(var q=s[P],J=-1;++J<w;)J!=P&&(L[P]=bl(L[P]||q,s[J],c,p));return Wo(kn(L,1),c,p)}function q3(s,c,p){for(var w=-1,P=s.length,L=c.length,q={};++w<P;){var J=w<L?c[w]:n;p(q,s[w],J)}return q}function bm(s){return sn(s)?s:[]}function $m(s){return typeof s=="function"?s:vr}function qo(s,c){return Xe(s)?s:Pm(s,c)?[s]:x$(Dt(s))}var V8=st;function Ho(s,c,p){var w=s.length;return p=p===n?w:p,!c&&p>=w?s:Wr(s,c,p)}var H3=S9||function(s){return mn.clearTimeout(s)};function G3(s,c){if(c)return s.slice();var p=s.length,w=m3?m3(p):new s.constructor(p);return s.copy(w),w}function xm(s){var c=new s.constructor(s.byteLength);return new Sd(c).set(new Sd(s)),c}function N8(s,c){var p=c?xm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function j8(s){var c=new s.constructor(s.source,hr.exec(s));return c.lastIndex=s.lastIndex,c}function K8(s){return yl?It(yl.call(s)):{}}function Y3(s,c){var p=c?xm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function Z3(s,c){if(s!==c){var p=s!==n,w=s===null,P=s===s,L=_r(s),q=c!==n,J=c===null,te=c===c,me=_r(c);if(!J&&!me&&!L&&s>c||L&&q&&te&&!J&&!me||w&&q&&te||!p&&te||!P)return 1;if(!w&&!L&&!me&&s<c||me&&p&&P&&!w&&!L||J&&p&&P||!q&&P||!te)return-1}return 0}function U8(s,c,p){for(var w=-1,P=s.criteria,L=c.criteria,q=P.length,J=p.length;++w<q;){var te=Z3(P[w],L[w]);if(te){if(w>=J)return te;var me=p[w];return te*(me=="desc"?-1:1)}}return s.index-c.index}function J3(s,c,p,w){for(var P=-1,L=s.length,q=p.length,J=-1,te=c.length,me=$n(L-q,0),ge=se(te+me),xe=!w;++J<te;)ge[J]=c[J];for(;++P<q;)(xe||P<L)&&(ge[p[P]]=s[P]);for(;me--;)ge[J++]=s[P++];return ge}function X3(s,c,p,w){for(var P=-1,L=s.length,q=-1,J=p.length,te=-1,me=c.length,ge=$n(L-J,0),xe=se(ge+me),Pe=!w;++P<ge;)xe[P]=s[P];for(var Le=P;++te<me;)xe[Le+te]=c[te];for(;++q<J;)(Pe||P<L)&&(xe[Le+p[q]]=s[P++]);return xe}function mr(s,c){var p=-1,w=s.length;for(c||(c=se(w));++p<w;)c[p]=s[p];return c}function Oi(s,c,p,w){var P=!p;p||(p={});for(var L=-1,q=c.length;++L<q;){var J=c[L],te=w?w(p[J],s[J],J,p,s):n;te===n&&(te=s[J]),P?ao(p,J,te):vl(p,J,te)}return p}function z8(s,c){return Oi(s,Am(s),c)}function W8(s,c){return Oi(s,d$(s),c)}function jd(s,c){return function(p,w){var P=Xe(p)?ZF:h8,L=c?c():{};return P(p,s,Ue(w,2),L)}}function Vs(s){return st(function(c,p){var w=-1,P=p.length,L=P>1?p[P-1]:n,q=P>2?p[2]:n;for(L=s.length>3&&typeof L=="function"?(P--,L):n,q&&or(p[0],p[1],q)&&(L=P<3?n:L,P=1),c=It(c);++w<P;){var J=p[w];J&&s(c,J,w,L)}return c})}function Q3(s,c){return function(p,w){if(p==null)return p;if(!gr(p))return s(p,w);for(var P=p.length,L=c?P:-1,q=It(p);(c?L--:++L<P)&&w(q[L],L,q)!==!1;);return p}}function e$(s){return function(c,p,w){for(var P=-1,L=It(c),q=w(c),J=q.length;J--;){var te=q[s?J:++P];if(p(L[te],te,L)===!1)break}return c}}function q8(s,c,p){var w=c&C,P=Dl(s);function L(){var q=this&&this!==mn&&this instanceof L?P:s;return q.apply(w?p:this,arguments)}return L}function t$(s){return function(c){c=Dt(c);var p=Os(c)?ci(c):n,w=p?p[0]:c.charAt(0),P=p?Ho(p,1).join(""):c.slice(1);return w[s]()+P}}function Ns(s){return function(c){return qp(Q$(X$(c).replace(gd,"")),s,"")}}function Dl(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var p=Ls(s.prototype),w=s.apply(p,c);return Zt(w)?w:p}}function H8(s,c,p){var w=Dl(s);function P(){for(var L=arguments.length,q=se(L),J=L,te=js(P);J--;)q[J]=arguments[J];var me=L<3&&q[0]!==te&&q[L-1]!==te?[]:Ko(q,te);if(L-=me.length,L<p)return a$(s,c,Kd,P.placeholder,n,q,me,n,n,p-L);var ge=this&&this!==mn&&this instanceof P?w:s;return Tr(ge,this,q)}return P}function n$(s){return function(c,p,w){var P=It(c);if(!gr(c)){var L=Ue(p,3);c=Sn(c),p=function(J){return L(P[J],J,P)}}var q=s(c,p,w);return q>-1?P[L?c[q]:q]:n}}function r$(s){return uo(function(c){var p=c.length,w=p,P=Ur.prototype.thru;for(s&&c.reverse();w--;){var L=c[w];if(typeof L!="function")throw new Kr(a);if(P&&!q&&qd(L)=="wrapper")var q=new Ur([],!0)}for(w=q?w:p;++w<p;){L=c[w];var J=qd(L),te=J=="wrapper"?Sm(L):n;te&&_m(te[0])&&te[1]==(R|D|E|S)&&!te[4].length&&te[9]==1?q=q[qd(te[0])].apply(q,te[3]):q=L.length==1&&_m(L)?q[J]():q.thru(L)}return function(){var me=arguments,ge=me[0];if(q&&me.length==1&&Xe(ge))return q.plant(ge).value();for(var xe=0,Pe=p?c[xe].apply(this,me):ge;++xe<p;)Pe=c[xe].call(this,Pe);return Pe}})}function Kd(s,c,p,w,P,L,q,J,te,me){var ge=c&R,xe=c&C,Pe=c&b,Le=c&(D|T),We=c&U,ot=Pe?n:Dl(s);function qe(){for(var lt=arguments.length,ht=se(lt),Rr=lt;Rr--;)ht[Rr]=arguments[Rr];if(Le)var ar=js(qe),Or=o9(ht,ar);if(w&&(ht=J3(ht,w,P,Le)),L&&(ht=X3(ht,L,q,Le)),lt-=Or,Le&&lt<me){var un=Ko(ht,ar);return a$(s,c,Kd,qe.placeholder,p,ht,un,J,te,me-lt)}var hi=xe?p:this,ho=Pe?hi[s]:s;return lt=ht.length,J?ht=hk(ht,J):We&&lt>1&&ht.reverse(),ge&&te<lt&&(ht.length=te),this&&this!==mn&&this instanceof qe&&(ho=ot||Dl(ho)),ho.apply(hi,ht)}return qe}function i$(s,c){return function(p,w){return x8(p,s,c(w),{})}}function Ud(s,c){return function(p,w){var P;if(p===n&&w===n)return c;if(p!==n&&(P=p),w!==n){if(P===n)return w;typeof p=="string"||typeof w=="string"?(p=Pr(p),w=Pr(w)):(p=U3(p),w=U3(w)),P=s(p,w)}return P}}function wm(s){return uo(function(c){return c=qt(c,Ar(Ue())),st(function(p){var w=this;return s(c,function(P){return Tr(P,w,p)})})})}function zd(s,c){c=c===n?" ":Pr(c);var p=c.length;if(p<2)return p?mm(c,s):c;var w=mm(c,_d(s/Ms(c)));return Os(c)?Ho(ci(w),0,s).join(""):w.slice(0,s)}function G8(s,c,p,w){var P=c&C,L=Dl(s);function q(){for(var J=-1,te=arguments.length,me=-1,ge=w.length,xe=se(ge+te),Pe=this&&this!==mn&&this instanceof q?L:s;++me<ge;)xe[me]=w[me];for(;te--;)xe[me++]=arguments[++J];return Tr(Pe,P?p:this,xe)}return q}function o$(s){return function(c,p,w){return w&&typeof w!="number"&&or(c,p,w)&&(p=w=n),c=fo(c),p===n?(p=c,c=0):p=fo(p),w=w===n?c<p?1:-1:fo(w),M8(c,p,w,s)}}function Wd(s){return function(c,p){return typeof c=="string"&&typeof p=="string"||(c=Hr(c),p=Hr(p)),s(c,p)}}function a$(s,c,p,w,P,L,q,J,te,me){var ge=c&D,xe=ge?q:n,Pe=ge?n:q,Le=ge?L:n,We=ge?n:L;c|=ge?E:A,c&=~(ge?A:E),c&v||(c&=-4);var ot=[s,c,P,Le,xe,We,Pe,J,te,me],qe=p.apply(n,ot);return _m(s)&&v$(qe,ot),qe.placeholder=w,b$(qe,s,c)}function Dm(s){var c=bn[s];return function(p,w){if(p=Hr(p),w=w==null?0:qn(nt(w),292),w&&b3(p)){var P=(Dt(p)+"e").split("e"),L=c(P[0]+"e"+(+P[1]+w));return P=(Dt(L)+"e").split("e"),+(P[0]+"e"+(+P[1]-w))}return c(p)}}var Y8=Bs&&1/$d(new Bs([,-0]))[1]==V?function(s){return new Bs(s)}:Wm;function s$(s){return function(c){var p=Hn(c);return p==et?Qp(c):p==pe?f9(c):i9(c,s(c))}}function so(s,c,p,w,P,L,q,J){var te=c&b;if(!te&&typeof s!="function")throw new Kr(a);var me=w?w.length:0;if(me||(c&=-97,w=P=n),q=q===n?q:$n(nt(q),0),J=J===n?J:nt(J),me-=P?P.length:0,c&A){var ge=w,xe=P;w=P=n}var Pe=te?n:Sm(s),Le=[s,c,p,w,P,ge,xe,L,q,J];if(Pe&&ck(Le,Pe),s=Le[0],c=Le[1],p=Le[2],w=Le[3],P=Le[4],J=Le[9]=Le[9]===n?te?0:s.length:$n(Le[9]-me,0),!J&&c&(D|T)&&(c&=-25),!c||c==C)var We=q8(s,c,p);else c==D||c==T?We=H8(s,c,J):(c==E||c==(C|E))&&!P.length?We=G8(s,c,p,w):We=Kd.apply(n,Le);var ot=Pe?j3:v$;return b$(ot(We,Le),s,c)}function u$(s,c,p,w){return s===n||fi(s,ks[p])&&!At.call(w,p)?c:s}function l$(s,c,p,w,P,L){return Zt(s)&&Zt(c)&&(L.set(c,s),Ld(s,c,n,l$,L),L.delete(c)),s}function Z8(s){return Sl(s)?n:s}function c$(s,c,p,w,P,L){var q=p&y,J=s.length,te=c.length;if(J!=te&&!(q&&te>J))return!1;var me=L.get(s),ge=L.get(c);if(me&&ge)return me==c&&ge==s;var xe=-1,Pe=!0,Le=p&$?new Pa:n;for(L.set(s,c),L.set(c,s);++xe<J;){var We=s[xe],ot=c[xe];if(w)var qe=q?w(ot,We,xe,c,s,L):w(We,ot,xe,s,c,L);if(qe!==n){if(qe)continue;Pe=!1;break}if(Le){if(!Hp(c,function(lt,ht){if(!fl(Le,ht)&&(We===lt||P(We,lt,p,w,L)))return Le.push(ht)})){Pe=!1;break}}else if(!(We===ot||P(We,ot,p,w,L))){Pe=!1;break}}return L.delete(s),L.delete(c),Pe}function J8(s,c,p,w,P,L,q){switch(p){case Rt:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case ut:return!(s.byteLength!=c.byteLength||!L(new Sd(s),new Sd(c)));case Y:case he:case dt:return fi(+s,+c);case fe:return s.name==c.name&&s.message==c.message;case re:case Ee:return s==c+"";case et:var J=Qp;case pe:var te=w&y;if(J||(J=$d),s.size!=c.size&&!te)return!1;var me=q.get(s);if(me)return me==c;w|=$,q.set(s,c);var ge=c$(J(s),J(c),w,P,L,q);return q.delete(s),ge;case we:if(yl)return yl.call(s)==yl.call(c)}return!1}function X8(s,c,p,w,P,L){var q=p&y,J=Cm(s),te=J.length,me=Cm(c),ge=me.length;if(te!=ge&&!q)return!1;for(var xe=te;xe--;){var Pe=J[xe];if(!(q?Pe in c:At.call(c,Pe)))return!1}var Le=L.get(s),We=L.get(c);if(Le&&We)return Le==c&&We==s;var ot=!0;L.set(s,c),L.set(c,s);for(var qe=q;++xe<te;){Pe=J[xe];var lt=s[Pe],ht=c[Pe];if(w)var Rr=q?w(ht,lt,Pe,c,s,L):w(lt,ht,Pe,s,c,L);if(!(Rr===n?lt===ht||P(lt,ht,p,w,L):Rr)){ot=!1;break}qe||(qe=Pe=="constructor")}if(ot&&!qe){var ar=s.constructor,Or=c.constructor;ar!=Or&&"constructor"in s&&"constructor"in c&&!(typeof ar=="function"&&ar instanceof ar&&typeof Or=="function"&&Or instanceof Or)&&(ot=!1)}return L.delete(s),L.delete(c),ot}function uo(s){return Om(g$(s,n,E$),s+"")}function Cm(s){return _3(s,Sn,Am)}function Em(s){return _3(s,yr,d$)}var Sm=Od?function(s){return Od.get(s)}:Wm;function qd(s){for(var c=s.name+"",p=Is[c],w=At.call(Is,c)?p.length:0;w--;){var P=p[w],L=P.func;if(L==null||L==s)return P.name}return c}function js(s){var c=At.call(F,"placeholder")?F:s;return c.placeholder}function Ue(){var s=F.iteratee||Um;return s=s===Um?M3:s,arguments.length?s(arguments[0],arguments[1]):s}function Hd(s,c){var p=s.__data__;return ak(c)?p[typeof c=="string"?"string":"hash"]:p.map}function Tm(s){for(var c=Sn(s),p=c.length;p--;){var w=c[p],P=s[w];c[p]=[w,P,p$(P)]}return c}function Oa(s,c){var p=l9(s,c);return O3(p)?p:n}function Q8(s){var c=At.call(s,Ta),p=s[Ta];try{s[Ta]=n;var w=!0}catch{}var P=Cd.call(s);return w&&(c?s[Ta]=p:delete s[Ta]),P}var Am=tm?function(s){return s==null?[]:(s=It(s),No(tm(s),function(c){return y3.call(s,c)}))}:qm,d$=tm?function(s){for(var c=[];s;)jo(c,Am(s)),s=Td(s);return c}:qm,Hn=ir;(nm&&Hn(new nm(new ArrayBuffer(1)))!=Rt||pl&&Hn(new pl)!=et||rm&&Hn(rm.resolve())!=G||Bs&&Hn(new Bs)!=pe||ml&&Hn(new ml)!=Ve)&&(Hn=function(s){var c=ir(s),p=c==yt?s.constructor:n,w=p?Ma(p):"";if(w)switch(w){case k9:return Rt;case B9:return et;case I9:return G;case L9:return pe;case V9:return Ve}return c});function ek(s,c,p){for(var w=-1,P=p.length;++w<P;){var L=p[w],q=L.size;switch(L.type){case"drop":s+=q;break;case"dropRight":c-=q;break;case"take":c=qn(c,s+q);break;case"takeRight":s=$n(s,c-q);break}}return{start:s,end:c}}function tk(s){var c=s.match(Ut);return c?c[1].split(an):[]}function f$(s,c,p){c=qo(c,s);for(var w=-1,P=c.length,L=!1;++w<P;){var q=Mi(c[w]);if(!(L=s!=null&&p(s,q)))break;s=s[q]}return L||++w!=P?L:(P=s==null?0:s.length,!!P&&ef(P)&&lo(q,P)&&(Xe(s)||Fa(s)))}function nk(s){var c=s.length,p=new s.constructor(c);return c&&typeof s[0]=="string"&&At.call(s,"index")&&(p.index=s.index,p.input=s.input),p}function h$(s){return typeof s.constructor=="function"&&!Cl(s)?Ls(Td(s)):{}}function rk(s,c,p){var w=s.constructor;switch(c){case ut:return xm(s);case Y:case he:return new w(+s);case Rt:return N8(s,p);case Pn:case _n:case Yt:case Ln:case tn:case vt:case Vn:case Sr:case Rn:return Y3(s,p);case et:return new w;case dt:case Ee:return new w(s);case re:return j8(s);case pe:return new w;case we:return K8(s)}}function ik(s,c){var p=c.length;if(!p)return s;var w=p-1;return c[w]=(p>1?"& ":"")+c[w],c=c.join(p>2?", ":" "),s.replace(jn,`{
66
+ /* [wrapped with `+c+`] */
67
+ `)}function ok(s){return Xe(s)||Fa(s)||!!(v3&&s&&s[v3])}function lo(s,c){var p=typeof s;return c=c??_,!!c&&(p=="number"||p!="symbol"&&nr.test(s))&&s>-1&&s%1==0&&s<c}function or(s,c,p){if(!Zt(p))return!1;var w=typeof c;return(w=="number"?gr(p)&&lo(c,p.length):w=="string"&&c in p)?fi(p[c],s):!1}function Pm(s,c){if(Xe(s))return!1;var p=typeof s;return p=="number"||p=="symbol"||p=="boolean"||s==null||_r(s)?!0:fr.test(s)||!nn.test(s)||c!=null&&s in It(c)}function ak(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function _m(s){var c=qd(s),p=F[c];if(typeof p!="function"||!(c in ft.prototype))return!1;if(s===p)return!0;var w=Sm(p);return!!w&&s===w[0]}function sk(s){return!!p3&&p3 in s}var uk=wd?co:Hm;function Cl(s){var c=s&&s.constructor,p=typeof c=="function"&&c.prototype||ks;return s===p}function p$(s){return s===s&&!Zt(s)}function m$(s,c){return function(p){return p==null?!1:p[s]===c&&(c!==n||s in It(p))}}function lk(s){var c=Xd(s,function(w){return p.size===d&&p.clear(),w}),p=c.cache;return c}function ck(s,c){var p=s[1],w=c[1],P=p|w,L=P<(C|b|R),q=w==R&&p==D||w==R&&p==S&&s[7].length<=c[8]||w==(R|S)&&c[7].length<=c[8]&&p==D;if(!(L||q))return s;w&C&&(s[2]=c[2],P|=p&C?0:v);var J=c[3];if(J){var te=s[3];s[3]=te?J3(te,J,c[4]):J,s[4]=te?Ko(s[3],f):c[4]}return J=c[5],J&&(te=s[5],s[5]=te?X3(te,J,c[6]):J,s[6]=te?Ko(s[5],f):c[6]),J=c[7],J&&(s[7]=J),w&R&&(s[8]=s[8]==null?c[8]:qn(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=P,s}function dk(s){var c=[];if(s!=null)for(var p in It(s))c.push(p);return c}function fk(s){return Cd.call(s)}function g$(s,c,p){return c=$n(c===n?s.length-1:c,0),function(){for(var w=arguments,P=-1,L=$n(w.length-c,0),q=se(L);++P<L;)q[P]=w[c+P];P=-1;for(var J=se(c+1);++P<c;)J[P]=w[P];return J[c]=p(q),Tr(s,this,J)}}function y$(s,c){return c.length<2?s:Ra(s,Wr(c,0,-1))}function hk(s,c){for(var p=s.length,w=qn(c.length,p),P=mr(s);w--;){var L=c[w];s[w]=lo(L,p)?P[L]:n}return s}function Rm(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var v$=$$(j3),El=A9||function(s,c){return mn.setTimeout(s,c)},Om=$$(B8);function b$(s,c,p){var w=c+"";return Om(s,ik(w,pk(tk(w),p)))}function $$(s){var c=0,p=0;return function(){var w=O9(),P=O-(w-p);if(p=w,P>0){if(++c>=X)return arguments[0]}else c=0;return s.apply(n,arguments)}}function Gd(s,c){var p=-1,w=s.length,P=w-1;for(c=c===n?w:c;++p<c;){var L=pm(p,P),q=s[L];s[L]=s[p],s[p]=q}return s.length=c,s}var x$=lk(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(Te,function(p,w,P,L){c.push(P?L.replace(li,"$1"):w||p)}),c});function Mi(s){if(typeof s=="string"||_r(s))return s;var c=s+"";return c=="0"&&1/s==-1/0?"-0":c}function Ma(s){if(s!=null){try{return Dd.call(s)}catch{}try{return s+""}catch{}}return""}function pk(s,c){return jr(le,function(p){var w="_."+p[0];c&p[1]&&!vd(s,w)&&s.push(w)}),s.sort()}function w$(s){if(s instanceof ft)return s.clone();var c=new Ur(s.__wrapped__,s.__chain__);return c.__actions__=mr(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function mk(s,c,p){(p?or(s,c,p):c===n)?c=1:c=$n(nt(c),0);var w=s==null?0:s.length;if(!w||c<1)return[];for(var P=0,L=0,q=se(_d(w/c));P<w;)q[L++]=Wr(s,P,P+=c);return q}function gk(s){for(var c=-1,p=s==null?0:s.length,w=0,P=[];++c<p;){var L=s[c];L&&(P[w++]=L)}return P}function yk(){var s=arguments.length;if(!s)return[];for(var c=se(s-1),p=arguments[0],w=s;w--;)c[w-1]=arguments[w];return jo(Xe(p)?mr(p):[p],kn(c,1))}var vk=st(function(s,c){return sn(s)?bl(s,kn(c,1,sn,!0)):[]}),bk=st(function(s,c){var p=qr(c);return sn(p)&&(p=n),sn(s)?bl(s,kn(c,1,sn,!0),Ue(p,2)):[]}),$k=st(function(s,c){var p=qr(c);return sn(p)&&(p=n),sn(s)?bl(s,kn(c,1,sn,!0),n,p):[]});function xk(s,c,p){var w=s==null?0:s.length;return w?(c=p||c===n?1:nt(c),Wr(s,c<0?0:c,w)):[]}function wk(s,c,p){var w=s==null?0:s.length;return w?(c=p||c===n?1:nt(c),c=w-c,Wr(s,0,c<0?0:c)):[]}function Dk(s,c){return s&&s.length?Nd(s,Ue(c,3),!0,!0):[]}function Ck(s,c){return s&&s.length?Nd(s,Ue(c,3),!0):[]}function Ek(s,c,p,w){var P=s==null?0:s.length;return P?(p&&typeof p!="number"&&or(s,c,p)&&(p=0,w=P),y8(s,c,p,w)):[]}function D$(s,c,p){var w=s==null?0:s.length;if(!w)return-1;var P=p==null?0:nt(p);return P<0&&(P=$n(w+P,0)),bd(s,Ue(c,3),P)}function C$(s,c,p){var w=s==null?0:s.length;if(!w)return-1;var P=w-1;return p!==n&&(P=nt(p),P=p<0?$n(w+P,0):qn(P,w-1)),bd(s,Ue(c,3),P,!0)}function E$(s){var c=s==null?0:s.length;return c?kn(s,1):[]}function Sk(s){var c=s==null?0:s.length;return c?kn(s,V):[]}function Tk(s,c){var p=s==null?0:s.length;return p?(c=c===n?1:nt(c),kn(s,c)):[]}function Ak(s){for(var c=-1,p=s==null?0:s.length,w={};++c<p;){var P=s[c];w[P[0]]=P[1]}return w}function S$(s){return s&&s.length?s[0]:n}function Pk(s,c,p){var w=s==null?0:s.length;if(!w)return-1;var P=p==null?0:nt(p);return P<0&&(P=$n(w+P,0)),Rs(s,c,P)}function _k(s){var c=s==null?0:s.length;return c?Wr(s,0,-1):[]}var Rk=st(function(s){var c=qt(s,bm);return c.length&&c[0]===s[0]?lm(c):[]}),Ok=st(function(s){var c=qr(s),p=qt(s,bm);return c===qr(p)?c=n:p.pop(),p.length&&p[0]===s[0]?lm(p,Ue(c,2)):[]}),Mk=st(function(s){var c=qr(s),p=qt(s,bm);return c=typeof c=="function"?c:n,c&&p.pop(),p.length&&p[0]===s[0]?lm(p,n,c):[]});function Fk(s,c){return s==null?"":_9.call(s,c)}function qr(s){var c=s==null?0:s.length;return c?s[c-1]:n}function kk(s,c,p){var w=s==null?0:s.length;if(!w)return-1;var P=w;return p!==n&&(P=nt(p),P=P<0?$n(w+P,0):qn(P,w-1)),c===c?p9(s,c,P):bd(s,a3,P,!0)}function Bk(s,c){return s&&s.length?I3(s,nt(c)):n}var Ik=st(T$);function T$(s,c){return s&&s.length&&c&&c.length?hm(s,c):s}function Lk(s,c,p){return s&&s.length&&c&&c.length?hm(s,c,Ue(p,2)):s}function Vk(s,c,p){return s&&s.length&&c&&c.length?hm(s,c,n,p):s}var Nk=uo(function(s,c){var p=s==null?0:s.length,w=om(s,c);return N3(s,qt(c,function(P){return lo(P,p)?+P:P}).sort(Z3)),w});function jk(s,c){var p=[];if(!(s&&s.length))return p;var w=-1,P=[],L=s.length;for(c=Ue(c,3);++w<L;){var q=s[w];c(q,w,s)&&(p.push(q),P.push(w))}return N3(s,P),p}function Mm(s){return s==null?s:F9.call(s)}function Kk(s,c,p){var w=s==null?0:s.length;return w?(p&&typeof p!="number"&&or(s,c,p)?(c=0,p=w):(c=c==null?0:nt(c),p=p===n?w:nt(p)),Wr(s,c,p)):[]}function Uk(s,c){return Vd(s,c)}function zk(s,c,p){return gm(s,c,Ue(p,2))}function Wk(s,c){var p=s==null?0:s.length;if(p){var w=Vd(s,c);if(w<p&&fi(s[w],c))return w}return-1}function qk(s,c){return Vd(s,c,!0)}function Hk(s,c,p){return gm(s,c,Ue(p,2),!0)}function Gk(s,c){var p=s==null?0:s.length;if(p){var w=Vd(s,c,!0)-1;if(fi(s[w],c))return w}return-1}function Yk(s){return s&&s.length?K3(s):[]}function Zk(s,c){return s&&s.length?K3(s,Ue(c,2)):[]}function Jk(s){var c=s==null?0:s.length;return c?Wr(s,1,c):[]}function Xk(s,c,p){return s&&s.length?(c=p||c===n?1:nt(c),Wr(s,0,c<0?0:c)):[]}function Qk(s,c,p){var w=s==null?0:s.length;return w?(c=p||c===n?1:nt(c),c=w-c,Wr(s,c<0?0:c,w)):[]}function eB(s,c){return s&&s.length?Nd(s,Ue(c,3),!1,!0):[]}function tB(s,c){return s&&s.length?Nd(s,Ue(c,3)):[]}var nB=st(function(s){return Wo(kn(s,1,sn,!0))}),rB=st(function(s){var c=qr(s);return sn(c)&&(c=n),Wo(kn(s,1,sn,!0),Ue(c,2))}),iB=st(function(s){var c=qr(s);return c=typeof c=="function"?c:n,Wo(kn(s,1,sn,!0),n,c)});function oB(s){return s&&s.length?Wo(s):[]}function aB(s,c){return s&&s.length?Wo(s,Ue(c,2)):[]}function sB(s,c){return c=typeof c=="function"?c:n,s&&s.length?Wo(s,n,c):[]}function Fm(s){if(!(s&&s.length))return[];var c=0;return s=No(s,function(p){if(sn(p))return c=$n(p.length,c),!0}),Jp(c,function(p){return qt(s,Gp(p))})}function A$(s,c){if(!(s&&s.length))return[];var p=Fm(s);return c==null?p:qt(p,function(w){return Tr(c,n,w)})}var uB=st(function(s,c){return sn(s)?bl(s,c):[]}),lB=st(function(s){return vm(No(s,sn))}),cB=st(function(s){var c=qr(s);return sn(c)&&(c=n),vm(No(s,sn),Ue(c,2))}),dB=st(function(s){var c=qr(s);return c=typeof c=="function"?c:n,vm(No(s,sn),n,c)}),fB=st(Fm);function hB(s,c){return q3(s||[],c||[],vl)}function pB(s,c){return q3(s||[],c||[],wl)}var mB=st(function(s){var c=s.length,p=c>1?s[c-1]:n;return p=typeof p=="function"?(s.pop(),p):n,A$(s,p)});function P$(s){var c=F(s);return c.__chain__=!0,c}function gB(s,c){return c(s),s}function Yd(s,c){return c(s)}var yB=uo(function(s){var c=s.length,p=c?s[0]:0,w=this.__wrapped__,P=function(L){return om(L,s)};return c>1||this.__actions__.length||!(w instanceof ft)||!lo(p)?this.thru(P):(w=w.slice(p,+p+(c?1:0)),w.__actions__.push({func:Yd,args:[P],thisArg:n}),new Ur(w,this.__chain__).thru(function(L){return c&&!L.length&&L.push(n),L}))});function vB(){return P$(this)}function bB(){return new Ur(this.value(),this.__chain__)}function $B(){this.__values__===n&&(this.__values__=U$(this.value()));var s=this.__index__>=this.__values__.length,c=s?n:this.__values__[this.__index__++];return{done:s,value:c}}function xB(){return this}function wB(s){for(var c,p=this;p instanceof Fd;){var w=w$(p);w.__index__=0,w.__values__=n,c?P.__wrapped__=w:c=w;var P=w;p=p.__wrapped__}return P.__wrapped__=s,c}function DB(){var s=this.__wrapped__;if(s instanceof ft){var c=s;return this.__actions__.length&&(c=new ft(this)),c=c.reverse(),c.__actions__.push({func:Yd,args:[Mm],thisArg:n}),new Ur(c,this.__chain__)}return this.thru(Mm)}function CB(){return W3(this.__wrapped__,this.__actions__)}var EB=jd(function(s,c,p){At.call(s,p)?++s[p]:ao(s,p,1)});function SB(s,c,p){var w=Xe(s)?i3:g8;return p&&or(s,c,p)&&(c=n),w(s,Ue(c,3))}function TB(s,c){var p=Xe(s)?No:A3;return p(s,Ue(c,3))}var AB=n$(D$),PB=n$(C$);function _B(s,c){return kn(Zd(s,c),1)}function RB(s,c){return kn(Zd(s,c),V)}function OB(s,c,p){return p=p===n?1:nt(p),kn(Zd(s,c),p)}function _$(s,c){var p=Xe(s)?jr:zo;return p(s,Ue(c,3))}function R$(s,c){var p=Xe(s)?JF:T3;return p(s,Ue(c,3))}var MB=jd(function(s,c,p){At.call(s,p)?s[p].push(c):ao(s,p,[c])});function FB(s,c,p,w){s=gr(s)?s:Us(s),p=p&&!w?nt(p):0;var P=s.length;return p<0&&(p=$n(P+p,0)),tf(s)?p<=P&&s.indexOf(c,p)>-1:!!P&&Rs(s,c,p)>-1}var kB=st(function(s,c,p){var w=-1,P=typeof c=="function",L=gr(s)?se(s.length):[];return zo(s,function(q){L[++w]=P?Tr(c,q,p):$l(q,c,p)}),L}),BB=jd(function(s,c,p){ao(s,p,c)});function Zd(s,c){var p=Xe(s)?qt:F3;return p(s,Ue(c,3))}function IB(s,c,p,w){return s==null?[]:(Xe(c)||(c=c==null?[]:[c]),p=w?n:p,Xe(p)||(p=p==null?[]:[p]),L3(s,c,p))}var LB=jd(function(s,c,p){s[p?0:1].push(c)},function(){return[[],[]]});function VB(s,c,p){var w=Xe(s)?qp:u3,P=arguments.length<3;return w(s,Ue(c,4),p,P,zo)}function NB(s,c,p){var w=Xe(s)?XF:u3,P=arguments.length<3;return w(s,Ue(c,4),p,P,T3)}function jB(s,c){var p=Xe(s)?No:A3;return p(s,Qd(Ue(c,3)))}function KB(s){var c=Xe(s)?D3:F8;return c(s)}function UB(s,c,p){(p?or(s,c,p):c===n)?c=1:c=nt(c);var w=Xe(s)?d8:k8;return w(s,c)}function zB(s){var c=Xe(s)?f8:I8;return c(s)}function WB(s){if(s==null)return 0;if(gr(s))return tf(s)?Ms(s):s.length;var c=Hn(s);return c==et||c==pe?s.size:dm(s).length}function qB(s,c,p){var w=Xe(s)?Hp:L8;return p&&or(s,c,p)&&(c=n),w(s,Ue(c,3))}var HB=st(function(s,c){if(s==null)return[];var p=c.length;return p>1&&or(s,c[0],c[1])?c=[]:p>2&&or(c[0],c[1],c[2])&&(c=[c[0]]),L3(s,kn(c,1),[])}),Jd=T9||function(){return mn.Date.now()};function GB(s,c){if(typeof c!="function")throw new Kr(a);return s=nt(s),function(){if(--s<1)return c.apply(this,arguments)}}function O$(s,c,p){return c=p?n:c,c=s&&c==null?s.length:c,so(s,R,n,n,n,n,c)}function M$(s,c){var p;if(typeof c!="function")throw new Kr(a);return s=nt(s),function(){return--s>0&&(p=c.apply(this,arguments)),s<=1&&(c=n),p}}var km=st(function(s,c,p){var w=C;if(p.length){var P=Ko(p,js(km));w|=E}return so(s,w,c,p,P)}),F$=st(function(s,c,p){var w=C|b;if(p.length){var P=Ko(p,js(F$));w|=E}return so(c,w,s,p,P)});function k$(s,c,p){c=p?n:c;var w=so(s,D,n,n,n,n,n,c);return w.placeholder=k$.placeholder,w}function B$(s,c,p){c=p?n:c;var w=so(s,T,n,n,n,n,n,c);return w.placeholder=B$.placeholder,w}function I$(s,c,p){var w,P,L,q,J,te,me=0,ge=!1,xe=!1,Pe=!0;if(typeof s!="function")throw new Kr(a);c=Hr(c)||0,Zt(p)&&(ge=!!p.leading,xe="maxWait"in p,L=xe?$n(Hr(p.maxWait)||0,c):L,Pe="trailing"in p?!!p.trailing:Pe);function Le(un){var hi=w,ho=P;return w=P=n,me=un,q=s.apply(ho,hi),q}function We(un){return me=un,J=El(lt,c),ge?Le(un):q}function ot(un){var hi=un-te,ho=un-me,nx=c-hi;return xe?qn(nx,L-ho):nx}function qe(un){var hi=un-te,ho=un-me;return te===n||hi>=c||hi<0||xe&&ho>=L}function lt(){var un=Jd();if(qe(un))return ht(un);J=El(lt,ot(un))}function ht(un){return J=n,Pe&&w?Le(un):(w=P=n,q)}function Rr(){J!==n&&H3(J),me=0,w=te=P=J=n}function ar(){return J===n?q:ht(Jd())}function Or(){var un=Jd(),hi=qe(un);if(w=arguments,P=this,te=un,hi){if(J===n)return We(te);if(xe)return H3(J),J=El(lt,c),Le(te)}return J===n&&(J=El(lt,c)),q}return Or.cancel=Rr,Or.flush=ar,Or}var YB=st(function(s,c){return S3(s,1,c)}),ZB=st(function(s,c,p){return S3(s,Hr(c)||0,p)});function JB(s){return so(s,U)}function Xd(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new Kr(a);var p=function(){var w=arguments,P=c?c.apply(this,w):w[0],L=p.cache;if(L.has(P))return L.get(P);var q=s.apply(this,w);return p.cache=L.set(P,q)||L,q};return p.cache=new(Xd.Cache||oo),p}Xd.Cache=oo;function Qd(s){if(typeof s!="function")throw new Kr(a);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function XB(s){return M$(2,s)}var QB=V8(function(s,c){c=c.length==1&&Xe(c[0])?qt(c[0],Ar(Ue())):qt(kn(c,1),Ar(Ue()));var p=c.length;return st(function(w){for(var P=-1,L=qn(w.length,p);++P<L;)w[P]=c[P].call(this,w[P]);return Tr(s,this,w)})}),Bm=st(function(s,c){var p=Ko(c,js(Bm));return so(s,E,n,c,p)}),L$=st(function(s,c){var p=Ko(c,js(L$));return so(s,A,n,c,p)}),eI=uo(function(s,c){return so(s,S,n,n,n,c)});function tI(s,c){if(typeof s!="function")throw new Kr(a);return c=c===n?c:nt(c),st(s,c)}function nI(s,c){if(typeof s!="function")throw new Kr(a);return c=c==null?0:$n(nt(c),0),st(function(p){var w=p[c],P=Ho(p,0,c);return w&&jo(P,w),Tr(s,this,P)})}function rI(s,c,p){var w=!0,P=!0;if(typeof s!="function")throw new Kr(a);return Zt(p)&&(w="leading"in p?!!p.leading:w,P="trailing"in p?!!p.trailing:P),I$(s,c,{leading:w,maxWait:c,trailing:P})}function iI(s){return O$(s,1)}function oI(s,c){return Bm($m(c),s)}function aI(){if(!arguments.length)return[];var s=arguments[0];return Xe(s)?s:[s]}function sI(s){return zr(s,g)}function uI(s,c){return c=typeof c=="function"?c:n,zr(s,g,c)}function lI(s){return zr(s,h|g)}function cI(s,c){return c=typeof c=="function"?c:n,zr(s,h|g,c)}function dI(s,c){return c==null||E3(s,c,Sn(c))}function fi(s,c){return s===c||s!==s&&c!==c}var fI=Wd(um),hI=Wd(function(s,c){return s>=c}),Fa=R3(function(){return arguments}())?R3:function(s){return on(s)&&At.call(s,"callee")&&!y3.call(s,"callee")},Xe=se.isArray,pI=Sa?Ar(Sa):w8;function gr(s){return s!=null&&ef(s.length)&&!co(s)}function sn(s){return on(s)&&gr(s)}function mI(s){return s===!0||s===!1||on(s)&&ir(s)==Y}var Go=P9||Hm,gI=Q4?Ar(Q4):D8;function yI(s){return on(s)&&s.nodeType===1&&!Sl(s)}function vI(s){if(s==null)return!0;if(gr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||Go(s)||Ks(s)||Fa(s)))return!s.length;var c=Hn(s);if(c==et||c==pe)return!s.size;if(Cl(s))return!dm(s).length;for(var p in s)if(At.call(s,p))return!1;return!0}function bI(s,c){return xl(s,c)}function $I(s,c,p){p=typeof p=="function"?p:n;var w=p?p(s,c):n;return w===n?xl(s,c,n,p):!!w}function Im(s){if(!on(s))return!1;var c=ir(s);return c==fe||c==ye||typeof s.message=="string"&&typeof s.name=="string"&&!Sl(s)}function xI(s){return typeof s=="number"&&b3(s)}function co(s){if(!Zt(s))return!1;var c=ir(s);return c==ae||c==Fe||c==Ce||c==Z}function V$(s){return typeof s=="number"&&s==nt(s)}function ef(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=_}function Zt(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function on(s){return s!=null&&typeof s=="object"}var N$=e3?Ar(e3):E8;function wI(s,c){return s===c||cm(s,c,Tm(c))}function DI(s,c,p){return p=typeof p=="function"?p:n,cm(s,c,Tm(c),p)}function CI(s){return j$(s)&&s!=+s}function EI(s){if(uk(s))throw new Je(o);return O3(s)}function SI(s){return s===null}function TI(s){return s==null}function j$(s){return typeof s=="number"||on(s)&&ir(s)==dt}function Sl(s){if(!on(s)||ir(s)!=yt)return!1;var c=Td(s);if(c===null)return!0;var p=At.call(c,"constructor")&&c.constructor;return typeof p=="function"&&p instanceof p&&Dd.call(p)==D9}var Lm=t3?Ar(t3):S8;function AI(s){return V$(s)&&s>=-9007199254740991&&s<=_}var K$=n3?Ar(n3):T8;function tf(s){return typeof s=="string"||!Xe(s)&&on(s)&&ir(s)==Ee}function _r(s){return typeof s=="symbol"||on(s)&&ir(s)==we}var Ks=r3?Ar(r3):A8;function PI(s){return s===n}function _I(s){return on(s)&&Hn(s)==Ve}function RI(s){return on(s)&&ir(s)==mt}var OI=Wd(fm),MI=Wd(function(s,c){return s<=c});function U$(s){if(!s)return[];if(gr(s))return tf(s)?ci(s):mr(s);if(hl&&s[hl])return d9(s[hl]());var c=Hn(s),p=c==et?Qp:c==pe?$d:Us;return p(s)}function fo(s){if(!s)return s===0?s:0;if(s=Hr(s),s===V||s===-1/0){var c=s<0?-1:1;return c*H}return s===s?s:0}function nt(s){var c=fo(s),p=c%1;return c===c?p?c-p:c:0}function z$(s){return s?_a(nt(s),0,N):0}function Hr(s){if(typeof s=="number")return s;if(_r(s))return z;if(Zt(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=Zt(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=l3(s);var p=ko.test(s);return p||gt.test(s)?Un(s.slice(2),p?2:8):Fo.test(s)?z:+s}function W$(s){return Oi(s,yr(s))}function FI(s){return s?_a(nt(s),-9007199254740991,_):s===0?s:0}function Dt(s){return s==null?"":Pr(s)}var kI=Vs(function(s,c){if(Cl(c)||gr(c)){Oi(c,Sn(c),s);return}for(var p in c)At.call(c,p)&&vl(s,p,c[p])}),q$=Vs(function(s,c){Oi(c,yr(c),s)}),nf=Vs(function(s,c,p,w){Oi(c,yr(c),s,w)}),BI=Vs(function(s,c,p,w){Oi(c,Sn(c),s,w)}),II=uo(om);function LI(s,c){var p=Ls(s);return c==null?p:C3(p,c)}var VI=st(function(s,c){s=It(s);var p=-1,w=c.length,P=w>2?c[2]:n;for(P&&or(c[0],c[1],P)&&(w=1);++p<w;)for(var L=c[p],q=yr(L),J=-1,te=q.length;++J<te;){var me=q[J],ge=s[me];(ge===n||fi(ge,ks[me])&&!At.call(s,me))&&(s[me]=L[me])}return s}),NI=st(function(s){return s.push(n,l$),Tr(H$,n,s)});function jI(s,c){return o3(s,Ue(c,3),Ri)}function KI(s,c){return o3(s,Ue(c,3),sm)}function UI(s,c){return s==null?s:am(s,Ue(c,3),yr)}function zI(s,c){return s==null?s:P3(s,Ue(c,3),yr)}function WI(s,c){return s&&Ri(s,Ue(c,3))}function qI(s,c){return s&&sm(s,Ue(c,3))}function HI(s){return s==null?[]:Id(s,Sn(s))}function GI(s){return s==null?[]:Id(s,yr(s))}function Vm(s,c,p){var w=s==null?n:Ra(s,c);return w===n?p:w}function YI(s,c){return s!=null&&f$(s,c,v8)}function Nm(s,c){return s!=null&&f$(s,c,b8)}var ZI=i$(function(s,c,p){c!=null&&typeof c.toString!="function"&&(c=Cd.call(c)),s[c]=p},Km(vr)),JI=i$(function(s,c,p){c!=null&&typeof c.toString!="function"&&(c=Cd.call(c)),At.call(s,c)?s[c].push(p):s[c]=[p]},Ue),XI=st($l);function Sn(s){return gr(s)?w3(s):dm(s)}function yr(s){return gr(s)?w3(s,!0):P8(s)}function QI(s,c){var p={};return c=Ue(c,3),Ri(s,function(w,P,L){ao(p,c(w,P,L),w)}),p}function eL(s,c){var p={};return c=Ue(c,3),Ri(s,function(w,P,L){ao(p,P,c(w,P,L))}),p}var tL=Vs(function(s,c,p){Ld(s,c,p)}),H$=Vs(function(s,c,p,w){Ld(s,c,p,w)}),nL=uo(function(s,c){var p={};if(s==null)return p;var w=!1;c=qt(c,function(L){return L=qo(L,s),w||(w=L.length>1),L}),Oi(s,Em(s),p),w&&(p=zr(p,h|m|g,Z8));for(var P=c.length;P--;)ym(p,c[P]);return p});function rL(s,c){return G$(s,Qd(Ue(c)))}var iL=uo(function(s,c){return s==null?{}:R8(s,c)});function G$(s,c){if(s==null)return{};var p=qt(Em(s),function(w){return[w]});return c=Ue(c),V3(s,p,function(w,P){return c(w,P[0])})}function oL(s,c,p){c=qo(c,s);var w=-1,P=c.length;for(P||(P=1,s=n);++w<P;){var L=s==null?n:s[Mi(c[w])];L===n&&(w=P,L=p),s=co(L)?L.call(s):L}return s}function aL(s,c,p){return s==null?s:wl(s,c,p)}function sL(s,c,p,w){return w=typeof w=="function"?w:n,s==null?s:wl(s,c,p,w)}var Y$=s$(Sn),Z$=s$(yr);function uL(s,c,p){var w=Xe(s),P=w||Go(s)||Ks(s);if(c=Ue(c,4),p==null){var L=s&&s.constructor;P?p=w?new L:[]:Zt(s)?p=co(L)?Ls(Td(s)):{}:p={}}return(P?jr:Ri)(s,function(q,J,te){return c(p,q,J,te)}),p}function lL(s,c){return s==null?!0:ym(s,c)}function cL(s,c,p){return s==null?s:z3(s,c,$m(p))}function dL(s,c,p,w){return w=typeof w=="function"?w:n,s==null?s:z3(s,c,$m(p),w)}function Us(s){return s==null?[]:Xp(s,Sn(s))}function fL(s){return s==null?[]:Xp(s,yr(s))}function hL(s,c,p){return p===n&&(p=c,c=n),p!==n&&(p=Hr(p),p=p===p?p:0),c!==n&&(c=Hr(c),c=c===c?c:0),_a(Hr(s),c,p)}function pL(s,c,p){return c=fo(c),p===n?(p=c,c=0):p=fo(p),s=Hr(s),$8(s,c,p)}function mL(s,c,p){if(p&&typeof p!="boolean"&&or(s,c,p)&&(c=p=n),p===n&&(typeof c=="boolean"?(p=c,c=n):typeof s=="boolean"&&(p=s,s=n)),s===n&&c===n?(s=0,c=1):(s=fo(s),c===n?(c=s,s=0):c=fo(c)),s>c){var w=s;s=c,c=w}if(p||s%1||c%1){var P=$3();return qn(s+P*(c-s+vn("1e-"+((P+"").length-1))),c)}return pm(s,c)}var gL=Ns(function(s,c,p){return c=c.toLowerCase(),s+(p?J$(c):c)});function J$(s){return jm(Dt(s).toLowerCase())}function X$(s){return s=Dt(s),s&&s.replace(pr,a9).replace(Kp,"")}function yL(s,c,p){s=Dt(s),c=Pr(c);var w=s.length;p=p===n?w:_a(nt(p),0,w);var P=p;return p-=c.length,p>=0&&s.slice(p,P)==c}function vL(s){return s=Dt(s),s&&Vt.test(s)?s.replace(Cn,s9):s}function bL(s){return s=Dt(s),s&&Ye.test(s)?s.replace(je,"\\$&"):s}var $L=Ns(function(s,c,p){return s+(p?"-":"")+c.toLowerCase()}),xL=Ns(function(s,c,p){return s+(p?" ":"")+c.toLowerCase()}),wL=t$("toLowerCase");function DL(s,c,p){s=Dt(s),c=nt(c);var w=c?Ms(s):0;if(!c||w>=c)return s;var P=(c-w)/2;return zd(Rd(P),p)+s+zd(_d(P),p)}function CL(s,c,p){s=Dt(s),c=nt(c);var w=c?Ms(s):0;return c&&w<c?s+zd(c-w,p):s}function EL(s,c,p){s=Dt(s),c=nt(c);var w=c?Ms(s):0;return c&&w<c?zd(c-w,p)+s:s}function SL(s,c,p){return p||c==null?c=0:c&&(c=+c),M9(Dt(s).replace(Ft,""),c||0)}function TL(s,c,p){return(p?or(s,c,p):c===n)?c=1:c=nt(c),mm(Dt(s),c)}function AL(){var s=arguments,c=Dt(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var PL=Ns(function(s,c,p){return s+(p?"_":"")+c.toLowerCase()});function _L(s,c,p){return p&&typeof p!="number"&&or(s,c,p)&&(c=p=n),p=p===n?N:p>>>0,p?(s=Dt(s),s&&(typeof c=="string"||c!=null&&!Lm(c))&&(c=Pr(c),!c&&Os(s))?Ho(ci(s),0,p):s.split(c,p)):[]}var RL=Ns(function(s,c,p){return s+(p?" ":"")+jm(c)});function OL(s,c,p){return s=Dt(s),p=p==null?0:_a(nt(p),0,s.length),c=Pr(c),s.slice(p,p+c.length)==c}function ML(s,c,p){var w=F.templateSettings;p&&or(s,c,p)&&(c=n),s=Dt(s),c=nf({},c,w,u$);var P=nf({},c.imports,w.imports,u$),L=Sn(P),q=Xp(P,L),J,te,me=0,ge=c.interpolate||Kn,xe="__p += '",Pe=em((c.escape||Kn).source+"|"+ge.source+"|"+(ge===tt?$a:Kn).source+"|"+(c.evaluate||Kn).source+"|$","g"),Le="//# sourceURL="+(At.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cl+"]")+`
68
+ `;s.replace(Pe,function(qe,lt,ht,Rr,ar,Or){return ht||(ht=Rr),xe+=s.slice(me,Or).replace(Io,u9),lt&&(J=!0,xe+=`' +
69
+ __e(`+lt+`) +
70
+ '`),ar&&(te=!0,xe+=`';
71
+ `+ar+`;
72
+ __p += '`),ht&&(xe+=`' +
73
+ ((__t = (`+ht+`)) == null ? '' : __t) +
74
+ '`),me=Or+qe.length,qe}),xe+=`';
75
+ `;var We=At.call(c,"variable")&&c.variable;if(!We)xe=`with (obj) {
76
+ `+xe+`
77
+ }
78
+ `;else if(wt.test(We))throw new Je(u);xe=(te?xe.replace(er,""):xe).replace(On,"$1").replace(tr,"$1;"),xe="function("+(We||"obj")+`) {
79
+ `+(We?"":`obj || (obj = {});
80
+ `)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(te?`, __j = Array.prototype.join;
81
+ function print() { __p += __j.call(arguments, '') }
82
+ `:`;
83
+ `)+xe+`return __p
84
+ }`;var ot=ex(function(){return bt(L,Le+"return "+xe).apply(n,q)});if(ot.source=xe,Im(ot))throw ot;return ot}function FL(s){return Dt(s).toLowerCase()}function kL(s){return Dt(s).toUpperCase()}function BL(s,c,p){if(s=Dt(s),s&&(p||c===n))return l3(s);if(!s||!(c=Pr(c)))return s;var w=ci(s),P=ci(c),L=c3(w,P),q=d3(w,P)+1;return Ho(w,L,q).join("")}function IL(s,c,p){if(s=Dt(s),s&&(p||c===n))return s.slice(0,h3(s)+1);if(!s||!(c=Pr(c)))return s;var w=ci(s),P=d3(w,ci(c))+1;return Ho(w,0,P).join("")}function LL(s,c,p){if(s=Dt(s),s&&(p||c===n))return s.replace(Ft,"");if(!s||!(c=Pr(c)))return s;var w=ci(s),P=c3(w,ci(c));return Ho(w,P).join("")}function VL(s,c){var p=j,w=M;if(Zt(c)){var P="separator"in c?c.separator:P;p="length"in c?nt(c.length):p,w="omission"in c?Pr(c.omission):w}s=Dt(s);var L=s.length;if(Os(s)){var q=ci(s);L=q.length}if(p>=L)return s;var J=p-Ms(w);if(J<1)return w;var te=q?Ho(q,0,J).join(""):s.slice(0,J);if(P===n)return te+w;if(q&&(J+=te.length-J),Lm(P)){if(s.slice(J).search(P)){var me,ge=te;for(P.global||(P=em(P.source,Dt(hr.exec(P))+"g")),P.lastIndex=0;me=P.exec(ge);)var xe=me.index;te=te.slice(0,xe===n?J:xe)}}else if(s.indexOf(Pr(P),J)!=J){var Pe=te.lastIndexOf(P);Pe>-1&&(te=te.slice(0,Pe))}return te+w}function NL(s){return s=Dt(s),s&&Ir.test(s)?s.replace(Nn,m9):s}var jL=Ns(function(s,c,p){return s+(p?" ":"")+c.toUpperCase()}),jm=t$("toUpperCase");function Q$(s,c,p){return s=Dt(s),c=p?n:c,c===n?c9(s)?v9(s):t9(s):s.match(c)||[]}var ex=st(function(s,c){try{return Tr(s,n,c)}catch(p){return Im(p)?p:new Je(p)}}),KL=uo(function(s,c){return jr(c,function(p){p=Mi(p),ao(s,p,km(s[p],s))}),s});function UL(s){var c=s==null?0:s.length,p=Ue();return s=c?qt(s,function(w){if(typeof w[1]!="function")throw new Kr(a);return[p(w[0]),w[1]]}):[],st(function(w){for(var P=-1;++P<c;){var L=s[P];if(Tr(L[0],this,w))return Tr(L[1],this,w)}})}function zL(s){return m8(zr(s,h))}function Km(s){return function(){return s}}function WL(s,c){return s==null||s!==s?c:s}var qL=r$(),HL=r$(!0);function vr(s){return s}function Um(s){return M3(typeof s=="function"?s:zr(s,h))}function GL(s){return k3(zr(s,h))}function YL(s,c){return B3(s,zr(c,h))}var ZL=st(function(s,c){return function(p){return $l(p,s,c)}}),JL=st(function(s,c){return function(p){return $l(s,p,c)}});function zm(s,c,p){var w=Sn(c),P=Id(c,w);p==null&&!(Zt(c)&&(P.length||!w.length))&&(p=c,c=s,s=this,P=Id(c,Sn(c)));var L=!(Zt(p)&&"chain"in p)||!!p.chain,q=co(s);return jr(P,function(J){var te=c[J];s[J]=te,q&&(s.prototype[J]=function(){var me=this.__chain__;if(L||me){var ge=s(this.__wrapped__),xe=ge.__actions__=mr(this.__actions__);return xe.push({func:te,args:arguments,thisArg:s}),ge.__chain__=me,ge}return te.apply(s,jo([this.value()],arguments))})}),s}function XL(){return mn._===this&&(mn._=C9),this}function Wm(){}function QL(s){return s=nt(s),st(function(c){return I3(c,s)})}var eV=wm(qt),tV=wm(i3),nV=wm(Hp);function tx(s){return Pm(s)?Gp(Mi(s)):O8(s)}function rV(s){return function(c){return s==null?n:Ra(s,c)}}var iV=o$(),oV=o$(!0);function qm(){return[]}function Hm(){return!1}function aV(){return{}}function sV(){return""}function uV(){return!0}function lV(s,c){if(s=nt(s),s<1||s>_)return[];var p=N,w=qn(s,N);c=Ue(c),s-=N;for(var P=Jp(w,c);++p<s;)c(p);return P}function cV(s){return Xe(s)?qt(s,Mi):_r(s)?[s]:mr(x$(Dt(s)))}function dV(s){var c=++w9;return Dt(s)+c}var fV=Ud(function(s,c){return s+c},0),hV=Dm("ceil"),pV=Ud(function(s,c){return s/c},1),mV=Dm("floor");function gV(s){return s&&s.length?Bd(s,vr,um):n}function yV(s,c){return s&&s.length?Bd(s,Ue(c,2),um):n}function vV(s){return s3(s,vr)}function bV(s,c){return s3(s,Ue(c,2))}function $V(s){return s&&s.length?Bd(s,vr,fm):n}function xV(s,c){return s&&s.length?Bd(s,Ue(c,2),fm):n}var wV=Ud(function(s,c){return s*c},1),DV=Dm("round"),CV=Ud(function(s,c){return s-c},0);function EV(s){return s&&s.length?Zp(s,vr):0}function SV(s,c){return s&&s.length?Zp(s,Ue(c,2)):0}return F.after=GB,F.ary=O$,F.assign=kI,F.assignIn=q$,F.assignInWith=nf,F.assignWith=BI,F.at=II,F.before=M$,F.bind=km,F.bindAll=KL,F.bindKey=F$,F.castArray=aI,F.chain=P$,F.chunk=mk,F.compact=gk,F.concat=yk,F.cond=UL,F.conforms=zL,F.constant=Km,F.countBy=EB,F.create=LI,F.curry=k$,F.curryRight=B$,F.debounce=I$,F.defaults=VI,F.defaultsDeep=NI,F.defer=YB,F.delay=ZB,F.difference=vk,F.differenceBy=bk,F.differenceWith=$k,F.drop=xk,F.dropRight=wk,F.dropRightWhile=Dk,F.dropWhile=Ck,F.fill=Ek,F.filter=TB,F.flatMap=_B,F.flatMapDeep=RB,F.flatMapDepth=OB,F.flatten=E$,F.flattenDeep=Sk,F.flattenDepth=Tk,F.flip=JB,F.flow=qL,F.flowRight=HL,F.fromPairs=Ak,F.functions=HI,F.functionsIn=GI,F.groupBy=MB,F.initial=_k,F.intersection=Rk,F.intersectionBy=Ok,F.intersectionWith=Mk,F.invert=ZI,F.invertBy=JI,F.invokeMap=kB,F.iteratee=Um,F.keyBy=BB,F.keys=Sn,F.keysIn=yr,F.map=Zd,F.mapKeys=QI,F.mapValues=eL,F.matches=GL,F.matchesProperty=YL,F.memoize=Xd,F.merge=tL,F.mergeWith=H$,F.method=ZL,F.methodOf=JL,F.mixin=zm,F.negate=Qd,F.nthArg=QL,F.omit=nL,F.omitBy=rL,F.once=XB,F.orderBy=IB,F.over=eV,F.overArgs=QB,F.overEvery=tV,F.overSome=nV,F.partial=Bm,F.partialRight=L$,F.partition=LB,F.pick=iL,F.pickBy=G$,F.property=tx,F.propertyOf=rV,F.pull=Ik,F.pullAll=T$,F.pullAllBy=Lk,F.pullAllWith=Vk,F.pullAt=Nk,F.range=iV,F.rangeRight=oV,F.rearg=eI,F.reject=jB,F.remove=jk,F.rest=tI,F.reverse=Mm,F.sampleSize=UB,F.set=aL,F.setWith=sL,F.shuffle=zB,F.slice=Kk,F.sortBy=HB,F.sortedUniq=Yk,F.sortedUniqBy=Zk,F.split=_L,F.spread=nI,F.tail=Jk,F.take=Xk,F.takeRight=Qk,F.takeRightWhile=eB,F.takeWhile=tB,F.tap=gB,F.throttle=rI,F.thru=Yd,F.toArray=U$,F.toPairs=Y$,F.toPairsIn=Z$,F.toPath=cV,F.toPlainObject=W$,F.transform=uL,F.unary=iI,F.union=nB,F.unionBy=rB,F.unionWith=iB,F.uniq=oB,F.uniqBy=aB,F.uniqWith=sB,F.unset=lL,F.unzip=Fm,F.unzipWith=A$,F.update=cL,F.updateWith=dL,F.values=Us,F.valuesIn=fL,F.without=uB,F.words=Q$,F.wrap=oI,F.xor=lB,F.xorBy=cB,F.xorWith=dB,F.zip=fB,F.zipObject=hB,F.zipObjectDeep=pB,F.zipWith=mB,F.entries=Y$,F.entriesIn=Z$,F.extend=q$,F.extendWith=nf,zm(F,F),F.add=fV,F.attempt=ex,F.camelCase=gL,F.capitalize=J$,F.ceil=hV,F.clamp=hL,F.clone=sI,F.cloneDeep=lI,F.cloneDeepWith=cI,F.cloneWith=uI,F.conformsTo=dI,F.deburr=X$,F.defaultTo=WL,F.divide=pV,F.endsWith=yL,F.eq=fi,F.escape=vL,F.escapeRegExp=bL,F.every=SB,F.find=AB,F.findIndex=D$,F.findKey=jI,F.findLast=PB,F.findLastIndex=C$,F.findLastKey=KI,F.floor=mV,F.forEach=_$,F.forEachRight=R$,F.forIn=UI,F.forInRight=zI,F.forOwn=WI,F.forOwnRight=qI,F.get=Vm,F.gt=fI,F.gte=hI,F.has=YI,F.hasIn=Nm,F.head=S$,F.identity=vr,F.includes=FB,F.indexOf=Pk,F.inRange=pL,F.invoke=XI,F.isArguments=Fa,F.isArray=Xe,F.isArrayBuffer=pI,F.isArrayLike=gr,F.isArrayLikeObject=sn,F.isBoolean=mI,F.isBuffer=Go,F.isDate=gI,F.isElement=yI,F.isEmpty=vI,F.isEqual=bI,F.isEqualWith=$I,F.isError=Im,F.isFinite=xI,F.isFunction=co,F.isInteger=V$,F.isLength=ef,F.isMap=N$,F.isMatch=wI,F.isMatchWith=DI,F.isNaN=CI,F.isNative=EI,F.isNil=TI,F.isNull=SI,F.isNumber=j$,F.isObject=Zt,F.isObjectLike=on,F.isPlainObject=Sl,F.isRegExp=Lm,F.isSafeInteger=AI,F.isSet=K$,F.isString=tf,F.isSymbol=_r,F.isTypedArray=Ks,F.isUndefined=PI,F.isWeakMap=_I,F.isWeakSet=RI,F.join=Fk,F.kebabCase=$L,F.last=qr,F.lastIndexOf=kk,F.lowerCase=xL,F.lowerFirst=wL,F.lt=OI,F.lte=MI,F.max=gV,F.maxBy=yV,F.mean=vV,F.meanBy=bV,F.min=$V,F.minBy=xV,F.stubArray=qm,F.stubFalse=Hm,F.stubObject=aV,F.stubString=sV,F.stubTrue=uV,F.multiply=wV,F.nth=Bk,F.noConflict=XL,F.noop=Wm,F.now=Jd,F.pad=DL,F.padEnd=CL,F.padStart=EL,F.parseInt=SL,F.random=mL,F.reduce=VB,F.reduceRight=NB,F.repeat=TL,F.replace=AL,F.result=oL,F.round=DV,F.runInContext=ee,F.sample=KB,F.size=WB,F.snakeCase=PL,F.some=qB,F.sortedIndex=Uk,F.sortedIndexBy=zk,F.sortedIndexOf=Wk,F.sortedLastIndex=qk,F.sortedLastIndexBy=Hk,F.sortedLastIndexOf=Gk,F.startCase=RL,F.startsWith=OL,F.subtract=CV,F.sum=EV,F.sumBy=SV,F.template=ML,F.times=lV,F.toFinite=fo,F.toInteger=nt,F.toLength=z$,F.toLower=FL,F.toNumber=Hr,F.toSafeInteger=FI,F.toString=Dt,F.toUpper=kL,F.trim=BL,F.trimEnd=IL,F.trimStart=LL,F.truncate=VL,F.unescape=NL,F.uniqueId=dV,F.upperCase=jL,F.upperFirst=jm,F.each=_$,F.eachRight=R$,F.first=S$,zm(F,function(){var s={};return Ri(F,function(c,p){At.call(F.prototype,p)||(s[p]=c)}),s}(),{chain:!1}),F.VERSION=r,jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){F[s].placeholder=F}),jr(["drop","take"],function(s,c){ft.prototype[s]=function(p){p=p===n?1:$n(nt(p),0);var w=this.__filtered__&&!c?new ft(this):this.clone();return w.__filtered__?w.__takeCount__=qn(p,w.__takeCount__):w.__views__.push({size:qn(p,N),type:s+(w.__dir__<0?"Right":"")}),w},ft.prototype[s+"Right"]=function(p){return this.reverse()[s](p).reverse()}}),jr(["filter","map","takeWhile"],function(s,c){var p=c+1,w=p==I||p==k;ft.prototype[s]=function(P){var L=this.clone();return L.__iteratees__.push({iteratee:Ue(P,3),type:p}),L.__filtered__=L.__filtered__||w,L}}),jr(["head","last"],function(s,c){var p="take"+(c?"Right":"");ft.prototype[s]=function(){return this[p](1).value()[0]}}),jr(["initial","tail"],function(s,c){var p="drop"+(c?"":"Right");ft.prototype[s]=function(){return this.__filtered__?new ft(this):this[p](1)}}),ft.prototype.compact=function(){return this.filter(vr)},ft.prototype.find=function(s){return this.filter(s).head()},ft.prototype.findLast=function(s){return this.reverse().find(s)},ft.prototype.invokeMap=st(function(s,c){return typeof s=="function"?new ft(this):this.map(function(p){return $l(p,s,c)})}),ft.prototype.reject=function(s){return this.filter(Qd(Ue(s)))},ft.prototype.slice=function(s,c){s=nt(s);var p=this;return p.__filtered__&&(s>0||c<0)?new ft(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),c!==n&&(c=nt(c),p=c<0?p.dropRight(-c):p.take(c-s)),p)},ft.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ft.prototype.toArray=function(){return this.take(N)},Ri(ft.prototype,function(s,c){var p=/^(?:filter|find|map|reject)|While$/.test(c),w=/^(?:head|last)$/.test(c),P=F[w?"take"+(c=="last"?"Right":""):c],L=w||/^find/.test(c);P&&(F.prototype[c]=function(){var q=this.__wrapped__,J=w?[1]:arguments,te=q instanceof ft,me=J[0],ge=te||Xe(q),xe=function(lt){var ht=P.apply(F,jo([lt],J));return w&&Pe?ht[0]:ht};ge&&p&&typeof me=="function"&&me.length!=1&&(te=ge=!1);var Pe=this.__chain__,Le=!!this.__actions__.length,We=L&&!Pe,ot=te&&!Le;if(!L&&ge){q=ot?q:new ft(this);var qe=s.apply(q,J);return qe.__actions__.push({func:Yd,args:[xe],thisArg:n}),new Ur(qe,Pe)}return We&&ot?s.apply(this,J):(qe=this.thru(xe),We?w?qe.value()[0]:qe.value():qe)})}),jr(["pop","push","shift","sort","splice","unshift"],function(s){var c=xd[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var P=arguments;if(w&&!this.__chain__){var L=this.value();return c.apply(Xe(L)?L:[],P)}return this[p](function(q){return c.apply(Xe(q)?q:[],P)})}}),Ri(ft.prototype,function(s,c){var p=F[c];if(p){var w=p.name+"";At.call(Is,w)||(Is[w]=[]),Is[w].push({name:c,func:p})}}),Is[Kd(n,b).name]=[{name:"wrapper",func:n}],ft.prototype.clone=N9,ft.prototype.reverse=j9,ft.prototype.value=K9,F.prototype.at=yB,F.prototype.chain=vB,F.prototype.commit=bB,F.prototype.next=$B,F.prototype.plant=wB,F.prototype.reverse=DB,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=CB,F.prototype.first=F.prototype.head,hl&&(F.prototype[hl]=xB),F},Fs=b9();_i?((_i.exports=Fs)._=Fs,Pi._=Fs):mn._=Fs}).call(gj)}(Kl,Kl.exports)),Kl.exports}var P2=yj();const vj=Qi(P2);var eg={exports:{}};/*!
85
+ Copyright (c) 2018 Jed Watson.
86
+ Licensed under the MIT License (MIT), see
87
+ http://jedwatson.github.io/classnames
88
+ */var Ex;function bj(){return Ex||(Ex=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(o=i(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var u in o)t.call(o,u)&&o[u]&&(a=i(a,u));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(eg)),eg.exports}var $j=bj();const nb=Qi($j);/*
89
+ * React Tooltip
90
+ * {@link https://github.com/ReactTooltip/react-tooltip}
91
+ * @copyright ReactTooltip Team
92
+ * @license MIT
93
+ */const xj="react-tooltip-core-styles",wj="react-tooltip-base-styles",Sx={core:!1,base:!1};function Tx({css:e,id:t=wj,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||Sx[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=xj),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const u=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",a==="top"&&u.firstChild?u.insertBefore(l,u.firstChild):u.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),Sx[n]=!0}const Ax=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[S2(Number(i)),T2({fallbackAxisSideDirection:"start"}),dj({padding:5})],border:u})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=a;return n?(l.push(fj({element:n,padding:5})),tb(e,t,{placement:r,strategy:o,middleware:l}).then(({x:d,y:f,placement:h,middlewareData:m})=>{var g,y;const $={left:`${d}px`,top:`${f}px`,border:u},{x:C,y:b}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},v=(y={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&y!==void 0?y:"bottom",D=u&&{borderBottom:u,borderRight:u};let T=0;if(u){const E=`${u}`.match(/(\d+)px/);T=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:$,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:b!=null?`${b}px`:"",right:"",bottom:"",...D,[v]:`-${4+T}px`},place:h}})):tb(e,t,{placement:"bottom",strategy:o,middleware:l}).then(({x:d,y:f,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${f}px`},tooltipArrowStyles:{},place:h}))},Px=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),_x=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},Rx=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",rb=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>rb(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Rx(e)||!Rx(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>rb(e[i],t[i]))},Dj=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"})},Ox=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(Dj(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},Cj=typeof window<"u"?x.useLayoutEffect:x.useEffect,Gr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},Ej="DEFAULT_TOOLTIP_ID",Sj={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Tj=x.createContext({getTooltipData:()=>Sj});function _2(e=Ej){return x.useContext(Tj).getTooltipData(e)}var Ws={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"},tg={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 Aj=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:u="top",offset:l=10,events:d=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:m,wrapper:g,delayShow:y=0,delayHide:$=0,float:C=!1,hidden:b=!1,noArrow:v=!1,clickable:D=!1,closeOnEsc:T=!1,closeOnScroll:E=!1,closeOnResize:A=!1,openEvents:R,closeEvents:S,globalCloseEvents:U,imperativeModeOnly:j,style:M,position:X,afterShow:O,afterHide:I,disableTooltip:W,content:k,contentWrapperRef:V,isOpen:_,defaultIsOpen:H=!1,setIsOpen:z,activeAnchor:N,setActiveAnchor:ne,border:ie,opacity:le,arrowColor:$e,role:De="tooltip"})=>{var Ce;const Y=x.useRef(null),he=x.useRef(null),ye=x.useRef(null),fe=x.useRef(null),ae=x.useRef(null),[Fe,et]=x.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[dt,Dn]=x.useState(!1),[yt,G]=x.useState(!1),[Z,re]=x.useState(null),pe=x.useRef(!1),Ee=x.useRef(null),{anchorRefs:we,setActiveAnchor:_e}=_2(t),Ve=x.useRef(!1),[mt,ut]=x.useState([]),Rt=x.useRef(!1),Pn=f||d.includes("click"),_n=Pn||(R==null?void 0:R.click)||(R==null?void 0:R.dblclick)||(R==null?void 0:R.mousedown),Yt=R?{...R}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!R&&Pn&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ln=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&Pn&&Object.assign(Ln,{mouseleave:!1,blur:!1,mouseout:!1});const tn=U?{...U}:{escape:T||!1,scroll:E||!1,resize:A||!1,clickOutsideAnchor:_n||!1};j&&(Object.assign(Yt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ln,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(tn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),Cj(()=>(Rt.current=!0,()=>{Rt.current=!1}),[]);const vt=Te=>{Rt.current&&(Te&&G(!0),setTimeout(()=>{Rt.current&&(z==null||z(Te),_===void 0&&Dn(Te))},10))};x.useEffect(()=>{if(_===void 0)return()=>null;_&&G(!0);const Te=setTimeout(()=>{Dn(_)},10);return()=>{clearTimeout(Te)}},[_]),x.useEffect(()=>{if(dt!==pe.current)if(Gr(ae),pe.current=dt,dt)O==null||O();else{const Te=(je=>{const Ye=je.match(/^([\d.]+)(ms|s)$/);if(!Ye)return 0;const[,Ft,rn]=Ye;return Number(Ft)*(rn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ae.current=setTimeout(()=>{G(!1),re(null),I==null||I()},Te+25)}},[dt]);const Vn=Te=>{et(je=>rb(je,Te)?je:Te)},Sr=(Te=y)=>{Gr(ye),yt?vt(!0):ye.current=setTimeout(()=>{vt(!0)},Te)},Rn=(Te=$)=>{Gr(fe),fe.current=setTimeout(()=>{Ve.current||vt(!1)},Te)},er=Te=>{var je;if(!Te)return;const Ye=(je=Te.currentTarget)!==null&&je!==void 0?je:Te.target;if(!(Ye!=null&&Ye.isConnected))return ne(null),void _e({current:null});y?Sr():vt(!0),ne(Ye),_e({current:Ye}),Gr(fe)},On=()=>{D?Rn($||100):$?Rn():vt(!1),Gr(ye)},tr=({x:Te,y:je})=>{var Ye;const Ft={getBoundingClientRect:()=>({x:Te,y:je,width:0,height:0,top:je,left:Te,right:Te,bottom:je})};Ax({place:(Ye=Z==null?void 0:Z.place)!==null&&Ye!==void 0?Ye:u,offset:l,elementReference:Ft,tooltipReference:Y.current,tooltipArrowReference:he.current,strategy:h,middlewares:m,border:ie}).then(rn=>{Vn(rn)})},Nn=Te=>{if(!Te)return;const je=Te,Ye={x:je.clientX,y:je.clientY};tr(Ye),Ee.current=Ye},Cn=Te=>{var je;if(!dt)return;const Ye=Te.target;Ye.isConnected&&(!((je=Y.current)===null||je===void 0)&&je.contains(Ye)||[document.querySelector(`[id='${o}']`),...mt].some(Ft=>Ft==null?void 0:Ft.contains(Ye))||(vt(!1),Gr(ye)))},Ir=_x(er,50),Vt=_x(On,50),En=Te=>{Vt.cancel(),Ir(Te)},Ne=()=>{Ir.cancel(),Vt()},tt=x.useCallback(()=>{var Te,je;const Ye=(Te=Z==null?void 0:Z.position)!==null&&Te!==void 0?Te:X;Ye?tr(Ye):C?Ee.current&&tr(Ee.current):N!=null&&N.isConnected&&Ax({place:(je=Z==null?void 0:Z.place)!==null&&je!==void 0?je:u,offset:l,elementReference:N,tooltipReference:Y.current,tooltipArrowReference:he.current,strategy:h,middlewares:m,border:ie}).then(Ft=>{Rt.current&&Vn(Ft)})},[dt,N,k,M,u,Z==null?void 0:Z.place,l,h,X,Z==null?void 0:Z.position,C]);x.useEffect(()=>{var Te,je;const Ye=new Set(we);mt.forEach(gt=>{W!=null&&W(gt)||Ye.add({current:gt})});const Ft=document.querySelector(`[id='${o}']`);Ft&&!(W!=null&&W(Ft))&&Ye.add({current:Ft});const rn=()=>{vt(!1)},jn=Ox(N),Ut=Ox(Y.current);tn.scroll&&(window.addEventListener("scroll",rn),jn==null||jn.addEventListener("scroll",rn),Ut==null||Ut.addEventListener("scroll",rn));let an=null;tn.resize?window.addEventListener("resize",rn):N&&Y.current&&(an=E2(N,Y.current,tt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const kt=gt=>{gt.key==="Escape"&&vt(!1)};tn.escape&&window.addEventListener("keydown",kt),tn.clickOutsideAnchor&&window.addEventListener("click",Cn);const wt=[],li=gt=>{dt&&(gt==null?void 0:gt.target)===N||er(gt)},$a=gt=>{dt&&(gt==null?void 0:gt.target)===N&&On()},hr=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Fo=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:En}):Fo.includes(gt)&&wt.push({event:gt,listener:li}))}),Object.entries(Ln).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Ne}):Fo.includes(gt)&&wt.push({event:gt,listener:$a}))}),C&&wt.push({event:"pointermove",listener:Nn});const ko=()=>{Ve.current=!0},Bo=()=>{Ve.current=!1,On()};return D&&!_n&&((Te=Y.current)===null||Te===void 0||Te.addEventListener("mouseenter",ko),(je=Y.current)===null||je===void 0||je.addEventListener("mouseleave",Bo)),wt.forEach(({event:gt,listener:nr})=>{Ye.forEach(pr=>{var Kn;(Kn=pr.current)===null||Kn===void 0||Kn.addEventListener(gt,nr)})}),()=>{var gt,nr;tn.scroll&&(window.removeEventListener("scroll",rn),jn==null||jn.removeEventListener("scroll",rn),Ut==null||Ut.removeEventListener("scroll",rn)),tn.resize?window.removeEventListener("resize",rn):an==null||an(),tn.clickOutsideAnchor&&window.removeEventListener("click",Cn),tn.escape&&window.removeEventListener("keydown",kt),D&&!_n&&((gt=Y.current)===null||gt===void 0||gt.removeEventListener("mouseenter",ko),(nr=Y.current)===null||nr===void 0||nr.removeEventListener("mouseleave",Bo)),wt.forEach(({event:pr,listener:Kn})=>{Ye.forEach(Io=>{var Lr;(Lr=Io.current)===null||Lr===void 0||Lr.removeEventListener(pr,Kn)})})}},[N,tt,yt,we,mt,R,S,U,Pn,y,$]),x.useEffect(()=>{var Te,je;let Ye=(je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a)!==null&&je!==void 0?je:"";!Ye&&t&&(Ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ft=new MutationObserver(rn=>{const jn=[],Ut=[];rn.forEach(an=>{if(an.type==="attributes"&&an.attributeName==="data-tooltip-id"&&(an.target.getAttribute("data-tooltip-id")===t?jn.push(an.target):an.oldValue===t&&Ut.push(an.target)),an.type==="childList"){if(N){const kt=[...an.removedNodes].filter(wt=>wt.nodeType===1);if(Ye)try{Ut.push(...kt.filter(wt=>wt.matches(Ye))),Ut.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}kt.some(wt=>{var li;return!!(!((li=wt==null?void 0:wt.contains)===null||li===void 0)&&li.call(wt,N))&&(G(!1),vt(!1),ne(null),Gr(ye),Gr(fe),!0)})}if(Ye)try{const kt=[...an.addedNodes].filter(wt=>wt.nodeType===1);jn.push(...kt.filter(wt=>wt.matches(Ye))),jn.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}}}),(jn.length||Ut.length)&&ut(an=>[...an.filter(kt=>!Ut.includes(kt)),...jn])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,a,Z==null?void 0:Z.anchorSelect,N]),x.useEffect(()=>{tt()},[tt]),x.useEffect(()=>{if(!(V!=null&&V.current))return()=>null;const Te=new ResizeObserver(()=>{setTimeout(()=>tt())});return Te.observe(V.current),()=>{Te.disconnect()}},[k,V==null?void 0:V.current]),x.useEffect(()=>{var Te;const je=document.querySelector(`[id='${o}']`),Ye=[...mt,je];N&&Ye.includes(N)||ne((Te=mt[0])!==null&&Te!==void 0?Te:je)},[o,mt,N]),x.useEffect(()=>(H&&vt(!0),()=>{Gr(ye),Gr(fe)}),[]),x.useEffect(()=>{var Te;let je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a;if(!je&&t&&(je=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),je)try{const Ye=Array.from(document.querySelectorAll(je));ut(Ye)}catch{ut([])}},[t,a,Z==null?void 0:Z.anchorSelect]),x.useEffect(()=>{ye.current&&(Gr(ye),Sr(y))},[y]);const nn=(Ce=Z==null?void 0:Z.content)!==null&&Ce!==void 0?Ce:k,fr=dt&&Object.keys(Fe.tooltipStyles).length>0;return x.useImperativeHandle(e,()=>({open:Te=>{if(Te!=null&&Te.anchorSelect)try{document.querySelector(Te.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Te.anchorSelect}" is not a valid CSS selector`)}re(Te??null),Te!=null&&Te.delay?Sr(Te.delay):vt(!0)},close:Te=>{Te!=null&&Te.delay?Rn(Te.delay):vt(!1)},activeAnchor:N,place:Fe.place,isOpen:!!(yt&&!b&&nn&&fr)})),yt&&!b&&nn?x.createElement(g,{id:t,role:De,className:nb("react-tooltip",Ws.tooltip,tg.tooltip,tg[i],n,`react-tooltip__place-${Fe.place}`,Ws[fr?"show":"closing"],fr?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&Ws.fixed,D&&Ws.clickable),onTransitionEnd:Te=>{Gr(ae),dt||Te.propertyName!=="opacity"||(G(!1),re(null),I==null||I())},style:{...M,...Fe.tooltipStyles,opacity:le!==void 0&&fr?le:void 0},ref:Y},nn,x.createElement(g,{className:nb("react-tooltip-arrow",Ws.arrow,tg.arrow,r,v&&Ws.noArrow),style:{...Fe.tooltipArrowStyles,background:$e?`linear-gradient(to right bottom, transparent 50%, ${$e} 50%)`:void 0},ref:he})):null},Pj=({content:e})=>x.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),_j=x.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:u,variant:l="dark",place:d="top",offset:f=10,wrapper:h="div",children:m=null,events:g=["hover"],openOnClick:y=!1,positionStrategy:$="absolute",middlewares:C,delayShow:b=0,delayHide:v=0,float:D=!1,hidden:T=!1,noArrow:E=!1,clickable:A=!1,closeOnEsc:R=!1,closeOnScroll:S=!1,closeOnResize:U=!1,openEvents:j,closeEvents:M,globalCloseEvents:X,imperativeModeOnly:O=!1,style:I,position:W,isOpen:k,defaultIsOpen:V=!1,disableStyleInjection:_=!1,border:H,opacity:z,arrowColor:N,setIsOpen:ne,afterShow:ie,afterHide:le,disableTooltip:$e,role:De="tooltip"},Ce)=>{const[Y,he]=x.useState(r),[ye,fe]=x.useState(i),[ae,Fe]=x.useState(d),[et,dt]=x.useState(l),[Dn,yt]=x.useState(f),[G,Z]=x.useState(b),[re,pe]=x.useState(v),[Ee,we]=x.useState(D),[_e,Ve]=x.useState(T),[mt,ut]=x.useState(h),[Rt,Pn]=x.useState(g),[_n,Yt]=x.useState($),[Ln,tn]=x.useState(null),[vt,Vn]=x.useState(null),Sr=x.useRef(_),{anchorRefs:Rn,activeAnchor:er}=_2(e),On=Vt=>Vt==null?void 0:Vt.getAttributeNames().reduce((En,Ne)=>{var tt;return Ne.startsWith("data-tooltip-")&&(En[Ne.replace(/^data-tooltip-/,"")]=(tt=Vt==null?void 0:Vt.getAttribute(Ne))!==null&&tt!==void 0?tt:null),En},{}),tr=Vt=>{const En={place:Ne=>{var tt;Fe((tt=Ne)!==null&&tt!==void 0?tt:d)},content:Ne=>{he(Ne??r)},html:Ne=>{fe(Ne??i)},variant:Ne=>{var tt;dt((tt=Ne)!==null&&tt!==void 0?tt:l)},offset:Ne=>{yt(Ne===null?f:Number(Ne))},wrapper:Ne=>{var tt;ut((tt=Ne)!==null&&tt!==void 0?tt:h)},events:Ne=>{const tt=Ne==null?void 0:Ne.split(" ");Pn(tt??g)},"position-strategy":Ne=>{var tt;Yt((tt=Ne)!==null&&tt!==void 0?tt:$)},"delay-show":Ne=>{Z(Ne===null?b:Number(Ne))},"delay-hide":Ne=>{pe(Ne===null?v:Number(Ne))},float:Ne=>{we(Ne===null?D:Ne==="true")},hidden:Ne=>{Ve(Ne===null?T:Ne==="true")},"class-name":Ne=>{tn(Ne)}};Object.values(En).forEach(Ne=>Ne(null)),Object.entries(Vt).forEach(([Ne,tt])=>{var nn;(nn=En[Ne])===null||nn===void 0||nn.call(En,tt)})};x.useEffect(()=>{he(r)},[r]),x.useEffect(()=>{fe(i)},[i]),x.useEffect(()=>{Fe(d)},[d]),x.useEffect(()=>{dt(l)},[l]),x.useEffect(()=>{yt(f)},[f]),x.useEffect(()=>{Z(b)},[b]),x.useEffect(()=>{pe(v)},[v]),x.useEffect(()=>{we(D)},[D]),x.useEffect(()=>{Ve(T)},[T]),x.useEffect(()=>{Yt($)},[$]),x.useEffect(()=>{Sr.current!==_&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[_]),x.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:_==="core",disableBase:_}}))},[]),x.useEffect(()=>{var Vt;const En=new Set(Rn);let Ne=n;if(!Ne&&e&&(Ne=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(je=>{En.add({current:je})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const tt=document.querySelector(`[id='${t}']`);if(tt&&En.add({current:tt}),!En.size)return()=>null;const nn=(Vt=vt??tt)!==null&&Vt!==void 0?Vt:er.current,fr=new MutationObserver(je=>{je.forEach(Ye=>{var Ft;if(!nn||Ye.type!=="attributes"||!(!((Ft=Ye.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const rn=On(nn);tr(rn)})}),Te={attributes:!0,childList:!1,subtree:!1};if(nn){const je=On(nn);tr(je),fr.observe(nn,Te)}return()=>{fr.disconnect()}},[Rn,er,vt,t,n]),x.useEffect(()=>{I!=null&&I.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),H&&!Px("border",`${H}`)&&console.warn(`[react-tooltip] "${H}" is not a valid \`border\`.`),I!=null&&I.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),z&&!Px("opacity",`${z}`)&&console.warn(`[react-tooltip] "${z}" is not a valid \`opacity\`.`)},[]);let Nn=m;const Cn=x.useRef(null);if(o){const Vt=o({content:(vt==null?void 0:vt.getAttribute("data-tooltip-content"))||Y||null,activeAnchor:vt});Nn=Vt?x.createElement("div",{ref:Cn,className:"react-tooltip-content-wrapper"},Vt):null}else Y&&(Nn=Y);ye&&(Nn=x.createElement(Pj,{content:ye}));const Ir={forwardRef:Ce,id:e,anchorId:t,anchorSelect:n,className:nb(a,Ln),classNameArrow:u,content:Nn,contentWrapperRef:Cn,place:ae,variant:et,offset:Dn,wrapper:mt,events:Rt,openOnClick:y,positionStrategy:_n,middlewares:C,delayShow:G,delayHide:re,float:Ee,hidden:_e,noArrow:E,clickable:A,closeOnEsc:R,closeOnScroll:S,closeOnResize:U,openEvents:j,closeEvents:M,globalCloseEvents:X,imperativeModeOnly:O,style:I,position:W,isOpen:k,defaultIsOpen:V,border:H,opacity:z,arrowColor:N,setIsOpen:ne,afterShow:ie,afterHide:le,disableTooltip:$e,activeAnchor:vt,setActiveAnchor:Vt=>Vn(Vt),role:De};return x.createElement(Aj,{...Ir})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||Tx({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||Tx({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"})});var Ic=e=>e.type==="checkbox",za=e=>e instanceof Date,sr=e=>e==null;const R2=e=>typeof e=="object";var hn=e=>!sr(e)&&!Array.isArray(e)&&R2(e)&&!za(e),O2=e=>hn(e)&&e.target?Ic(e.target)?e.target.checked:e.target.value:e,Rj=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,M2=(e,t)=>e.has(Rj(t)),Oj=e=>{const t=e.constructor&&e.constructor.prototype;return hn(t)&&t.hasOwnProperty("isPrototypeOf")},L0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(L0&&(e instanceof Blob||r))&&(n||hn(e)))if(t=n?[]:{},!n&&!Oj(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var Jh=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!hn(e))return n;const r=Jh(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",V0=e=>/^\w*$/.test(e),F2=e=>Jh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=V0(t)?[t]:F2(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let l=n;if(r!==a){const d=e[u];l=hn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=l,e=e[u]}return e};const nh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},po={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},k2=x.createContext(null),Xh=()=>x.useContext(k2),Mj=e=>{const{children:t,...n}=e;return x.createElement(k2.Provider,{value:n},t)};var B2=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>hn(e)&&!Object.keys(e).length,I2=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},tc=e=>Array.isArray(e)?e:[e],L2=(e,t,n)=>!e||!t||e===t||tc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function N0(e){const t=x.useRef(e);t.current=e,x.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Fj(e){const t=Xh(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=x.useState(n._formState),l=x.useRef(!0),d=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=x.useRef(i);return f.current=i,N0({disabled:r,next:h=>l.current&&L2(f.current,h.name,o)&&I2(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),x.useEffect(()=>(l.current=!0,d.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),x.useMemo(()=>B2(a,n,d.current,!1),[a,n])}var Ni=e=>typeof e=="string",V2=(e,t,n,r,i)=>Ni(e)?(r&&t.watch.add(e),Ae(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ae(n,o))):(r&&(t.watchAll=!0),n);function N2(e){const t=Xh(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},u=x.useRef(r);u.current=r,N0({disabled:o,subject:n._subjects.values,next:f=>{L2(u.current,f.name,a)&&d(br(V2(u.current,n._names,f.values||n._formValues,!1,i)))}});const[l,d]=x.useState(n._getWatch(r,i));return x.useEffect(()=>n._removeUnmounted()),l}function kj(e){const t=Xh(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=M2(i._names.array,n),u=N2({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),l=Fj({control:i,name:n,exact:!0}),d=x.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=x.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(l.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(l.errors,n)}}),[l,n]),h=x.useMemo(()=>({name:n,value:u,...ti(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:O2(m),name:n},type:nh.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:nh.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:y=>m.setCustomValidity(y),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,l.disabled,u,i._fields]);return x.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(y,$)=>{const C=Ae(i._fields,y);C&&C._f&&(C._f.mount=$)};if(g(n,!0),m){const y=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,y),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,y)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),x.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),x.useMemo(()=>({field:h,formState:l,fieldState:f}),[h,l,f])}const Bj=e=>e.render(kj(e));var j2=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Mx=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),Fx=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const nc=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=Ae(e,i);if(o){const{_f:a,...u}=o;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],i)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(nc(u,t))break}else if(hn(u)&&nc(u,t))break}}};var Ij=(e,t,n)=>{const r=tc(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},j0=e=>e.type==="file",Li=e=>typeof e=="function",rh=e=>{if(!L0)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},kf=e=>Ni(e),K0=e=>e.type==="radio",ih=e=>e instanceof RegExp;const kx={value:!1,isValid:!1},Bx={value:!0,isValid:!0};var K2=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?Bx:{value:e[0].value,isValid:!0}:Bx:kx}return kx};const Ix={isValid:!1,value:null};var U2=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Ix):Ix;function Lx(e,t,n="validate"){if(kf(e)||Array.isArray(e)&&e.every(kf)||ti(e)&&!e)return{type:n,message:kf(e)?e:"",ref:t}}var qs=e=>hn(e)&&!ih(e)?e:{value:e,message:""},Vx=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:l,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:y,name:$,valueAsNumber:C,mount:b}=e._f,v=Ae(n,$);if(!b||t.has($))return{};const D=u?u[0]:a,T=X=>{i&&D.reportValidity&&(D.setCustomValidity(ti(X)?"":X||""),D.reportValidity())},E={},A=K0(a),R=Ic(a),S=A||R,U=(C||j0(a))&&dn(a.value)&&dn(v)||rh(a)&&a.value===""||v===""||Array.isArray(v)&&!v.length,j=j2.bind(null,$,r,E),M=(X,O,I,W=po.maxLength,k=po.minLength)=>{const V=X?O:I;E[$]={type:X?W:k,message:V,ref:a,...j(X?W:k,V)}};if(o?!Array.isArray(v)||!v.length:l&&(!S&&(U||sr(v))||ti(v)&&!v||R&&!K2(u).isValid||A&&!U2(u).isValid)){const{value:X,message:O}=kf(l)?{value:!!l,message:l}:qs(l);if(X&&(E[$]={type:po.required,message:O,ref:D,...j(po.required,O)},!r))return T(O),E}if(!U&&(!sr(h)||!sr(m))){let X,O;const I=qs(m),W=qs(h);if(!sr(v)&&!isNaN(v)){const k=a.valueAsNumber||v&&+v;sr(I.value)||(X=k>I.value),sr(W.value)||(O=k<W.value)}else{const k=a.valueAsDate||new Date(v),V=z=>new Date(new Date().toDateString()+" "+z),_=a.type=="time",H=a.type=="week";Ni(I.value)&&v&&(X=_?V(v)>V(I.value):H?v>I.value:k>new Date(I.value)),Ni(W.value)&&v&&(O=_?V(v)<V(W.value):H?v<W.value:k<new Date(W.value))}if((X||O)&&(M(!!X,I.message,W.message,po.max,po.min),!r))return T(E[$].message),E}if((d||f)&&!U&&(Ni(v)||o&&Array.isArray(v))){const X=qs(d),O=qs(f),I=!sr(X.value)&&v.length>+X.value,W=!sr(O.value)&&v.length<+O.value;if((I||W)&&(M(I,X.message,O.message),!r))return T(E[$].message),E}if(g&&!U&&Ni(v)){const{value:X,message:O}=qs(g);if(ih(X)&&!v.match(X)&&(E[$]={type:po.pattern,message:O,ref:a,...j(po.pattern,O)},!r))return T(O),E}if(y){if(Li(y)){const X=await y(v,n),O=Lx(X,D);if(O&&(E[$]={...O,...j(po.validate,O.message)},!r))return T(O.message),E}else if(hn(y)){let X={};for(const O in y){if(!$r(X)&&!r)break;const I=Lx(await y[O](v,n),D,O);I&&(X={...I,...j(O,I.message)},T(I.message),r&&(E[$]=X))}if(!$r(X)&&(E[$]={ref:D,...X},!r))return E}}return T(!0),E};function Lj(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dn(e)?r++:e[t[r++]];return e}function Vj(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function xn(e,t){const n=Array.isArray(t)?t:V0(t)?[t]:F2(t),r=n.length===1?e:Lj(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(hn(r)&&$r(r)||Array.isArray(r)&&Vj(r))&&xn(e,n.slice(0,-1)),e}var ng=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},ib=e=>sr(e)||!R2(e);function na(e,t){if(ib(e)||ib(t))return e===t;if(za(e)&&za(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=t[i];if(za(o)&&za(a)||hn(o)&&hn(a)||Array.isArray(o)&&Array.isArray(a)?!na(o,a):o!==a)return!1}}return!0}var z2=e=>e.type==="select-multiple",Nj=e=>K0(e)||Ic(e),rg=e=>rh(e)&&e.isConnected,W2=e=>{for(const t in e)if(Li(e[t]))return!0;return!1};function oh(e,t={}){const n=Array.isArray(e);if(hn(e)||n)for(const r in e)Array.isArray(e[r])||hn(e[r])&&!W2(e[r])?(t[r]=Array.isArray(e[r])?[]:{},oh(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function q2(e,t,n){const r=Array.isArray(e);if(hn(e)||r)for(const i in e)Array.isArray(e[i])||hn(e[i])&&!W2(e[i])?dn(t)||ib(n[i])?n[i]=Array.isArray(e[i])?oh(e[i],[]):{...oh(e[i])}:q2(e[i],sr(t)?{}:t[i],n[i]):n[i]=!na(e[i],t[i]);return n}var Tl=(e,t)=>q2(e,t,oh(t)),H2=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&Ni(e)?new Date(e):r?r(e):e;function ig(e){const t=e.ref;return j0(t)?t.files:K0(t)?U2(e.refs).value:z2(t)?[...t.selectedOptions].map(({value:n})=>n):Ic(t)?K2(e.refs).value:H2(dn(t.value)?e.ref.value:t.value,e)}var jj=(e,t,n,r)=>{const i={};for(const o of e){const a=Ae(t,o);a&&Tt(i,o,a._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Al=e=>dn(e)?e:ih(e)?e.source:hn(e)?ih(e.value)?e.value.source:e.value:e;const Nx="AsyncFunction";var Kj=e=>!!e&&!!e.validate&&!!(Li(e.validate)&&e.validate.constructor.name===Nx||hn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Nx)),Uj=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function jx(e,t,n){const r=Ae(e,n);if(r||V0(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var zj=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Wj=(e,t)=>!Jh(Ae(e,t)).length&&xn(e,t);const qj={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function Hj(e={}){let t={...qj,...e},n={submitCount:0,isDirty:!1,isLoading:Li(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=hn(t.defaultValues)||hn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:ng(),array:ng(),state:ng()},m=Mx(t.mode),g=Mx(t.reValidateMode),y=t.criteriaMode===yi.all,$=G=>Z=>{clearTimeout(d),d=setTimeout(G,Z)},C=async G=>{if(!t.disabled&&(f.isValid||G)){const Z=t.resolver?$r((await S()).errors):await j(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},b=(G,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((G||Array.from(u.mount)).forEach(re=>{re&&(Z?Tt(n.validatingFields,re,Z):xn(n.validatingFields,re))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},v=(G,Z=[],re,pe,Ee=!0,we=!0)=>{if(pe&&re&&!t.disabled){if(a.action=!0,we&&Array.isArray(Ae(r,G))){const _e=re(Ae(r,G),pe.argA,pe.argB);Ee&&Tt(r,G,_e)}if(we&&Array.isArray(Ae(n.errors,G))){const _e=re(Ae(n.errors,G),pe.argA,pe.argB);Ee&&Tt(n.errors,G,_e),Wj(n.errors,G)}if(f.touchedFields&&we&&Array.isArray(Ae(n.touchedFields,G))){const _e=re(Ae(n.touchedFields,G),pe.argA,pe.argB);Ee&&Tt(n.touchedFields,G,_e)}f.dirtyFields&&(n.dirtyFields=Tl(i,o)),h.state.next({name:G,isDirty:X(G,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,G,Z)},D=(G,Z)=>{Tt(n.errors,G,Z),h.state.next({errors:n.errors})},T=G=>{n.errors=G,h.state.next({errors:n.errors,isValid:!1})},E=(G,Z,re,pe)=>{const Ee=Ae(r,G);if(Ee){const we=Ae(o,G,dn(re)?Ae(i,G):re);dn(we)||pe&&pe.defaultChecked||Z?Tt(o,G,Z?we:ig(Ee._f)):W(G,we),a.mount&&C()}},A=(G,Z,re,pe,Ee)=>{let we=!1,_e=!1;const Ve={name:G};if(!t.disabled){const mt=!!(Ae(r,G)&&Ae(r,G)._f&&Ae(r,G)._f.disabled);if(!re||pe){f.isDirty&&(_e=n.isDirty,n.isDirty=Ve.isDirty=X(),we=_e!==Ve.isDirty);const ut=mt||na(Ae(i,G),Z);_e=!!(!mt&&Ae(n.dirtyFields,G)),ut||mt?xn(n.dirtyFields,G):Tt(n.dirtyFields,G,!0),Ve.dirtyFields=n.dirtyFields,we=we||f.dirtyFields&&_e!==!ut}if(re){const ut=Ae(n.touchedFields,G);ut||(Tt(n.touchedFields,G,re),Ve.touchedFields=n.touchedFields,we=we||f.touchedFields&&ut!==re)}we&&Ee&&h.state.next(Ve)}return we?Ve:{}},R=(G,Z,re,pe)=>{const Ee=Ae(n.errors,G),we=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&re?(l=$(()=>D(G,re)),l(t.delayError)):(clearTimeout(d),l=null,re?Tt(n.errors,G,re):xn(n.errors,G)),(re?!na(Ee,re):Ee)||!$r(pe)||we){const _e={...pe,...we&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:G};n={...n,..._e},h.state.next(_e)}},S=async G=>{b(G,!0);const Z=await t.resolver(o,t.context,jj(G||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return b(G),Z},U=async G=>{const{errors:Z}=await S(G);if(G)for(const re of G){const pe=Ae(Z,re);pe?Tt(n.errors,re,pe):xn(n.errors,re)}else n.errors=Z;return Z},j=async(G,Z,re={valid:!0})=>{for(const pe in G){const Ee=G[pe];if(Ee){const{_f:we,..._e}=Ee;if(we){const Ve=u.array.has(we.name),mt=Ee._f&&Kj(Ee._f);mt&&f.validatingFields&&b([pe],!0);const ut=await Vx(Ee,u.disabled,o,y,t.shouldUseNativeValidation&&!Z,Ve);if(mt&&f.validatingFields&&b([pe]),ut[we.name]&&(re.valid=!1,Z))break;!Z&&(Ae(ut,we.name)?Ve?Ij(n.errors,ut,we.name):Tt(n.errors,we.name,ut[we.name]):xn(n.errors,we.name))}!$r(_e)&&await j(_e,Z,re)}}return re.valid},M=()=>{for(const G of u.unMount){const Z=Ae(r,G);Z&&(Z._f.refs?Z._f.refs.every(re=>!rg(re)):!rg(Z._f.ref))&&De(G)}u.unMount=new Set},X=(G,Z)=>!t.disabled&&(G&&Z&&Tt(o,G,Z),!na(N(),i)),O=(G,Z,re)=>V2(G,u,{...a.mount?o:dn(Z)?i:Ni(G)?{[G]:Z}:Z},re,Z),I=G=>Jh(Ae(a.mount?o:i,G,t.shouldUnregister?Ae(i,G,[]):[])),W=(G,Z,re={})=>{const pe=Ae(r,G);let Ee=Z;if(pe){const we=pe._f;we&&(!we.disabled&&Tt(o,G,H2(Z,we)),Ee=rh(we.ref)&&sr(Z)?"":Z,z2(we.ref)?[...we.ref.options].forEach(_e=>_e.selected=Ee.includes(_e.value)):we.refs?Ic(we.ref)?we.refs.length>1?we.refs.forEach(_e=>(!_e.defaultChecked||!_e.disabled)&&(_e.checked=Array.isArray(Ee)?!!Ee.find(Ve=>Ve===_e.value):Ee===_e.value)):we.refs[0]&&(we.refs[0].checked=!!Ee):we.refs.forEach(_e=>_e.checked=_e.value===Ee):j0(we.ref)?we.ref.value="":(we.ref.value=Ee,we.ref.type||h.values.next({name:G,values:{...o}})))}(re.shouldDirty||re.shouldTouch)&&A(G,Ee,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&z(G)},k=(G,Z,re)=>{for(const pe in Z){const Ee=Z[pe],we=`${G}.${pe}`,_e=Ae(r,we);(u.array.has(G)||hn(Ee)||_e&&!_e._f)&&!za(Ee)?k(we,Ee,re):W(we,Ee,re)}},V=(G,Z,re={})=>{const pe=Ae(r,G),Ee=u.array.has(G),we=br(Z);Tt(o,G,we),Ee?(h.array.next({name:G,values:{...o}}),(f.isDirty||f.dirtyFields)&&re.shouldDirty&&h.state.next({name:G,dirtyFields:Tl(i,o),isDirty:X(G,we)})):pe&&!pe._f&&!sr(we)?k(G,we,re):W(G,we,re),Fx(G,u)&&h.state.next({...n}),h.values.next({name:a.mount?G:void 0,values:{...o}})},_=async G=>{a.mount=!0;const Z=G.target;let re=Z.name,pe=!0;const Ee=Ae(r,re),we=()=>Z.type?ig(Ee._f):O2(G),_e=Ve=>{pe=Number.isNaN(Ve)||za(Ve)&&isNaN(Ve.getTime())||na(Ve,Ae(o,re,Ve))};if(Ee){let Ve,mt;const ut=we(),Rt=G.type===nh.BLUR||G.type===nh.FOCUS_OUT,Pn=!Uj(Ee._f)&&!t.resolver&&!Ae(n.errors,re)&&!Ee._f.deps||zj(Rt,Ae(n.touchedFields,re),n.isSubmitted,g,m),_n=Fx(re,u,Rt);Tt(o,re,ut),Rt?(Ee._f.onBlur&&Ee._f.onBlur(G),l&&l(0)):Ee._f.onChange&&Ee._f.onChange(G);const Yt=A(re,ut,Rt,!1),Ln=!$r(Yt)||_n;if(!Rt&&h.values.next({name:re,type:G.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&Rt?C():Rt||C()),Ln&&h.state.next({name:re,..._n?{}:Yt});if(!Rt&&_n&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([re]);if(_e(ut),pe){const vt=jx(n.errors,r,re),Vn=jx(tn,r,vt.name||re);Ve=Vn.error,re=Vn.name,mt=$r(tn)}}else b([re],!0),Ve=(await Vx(Ee,u.disabled,o,y,t.shouldUseNativeValidation))[re],b([re]),_e(ut),pe&&(Ve?mt=!1:f.isValid&&(mt=await j(r,!0)));pe&&(Ee._f.deps&&z(Ee._f.deps),R(re,mt,Ve,Yt))}},H=(G,Z)=>{if(Ae(n.errors,Z)&&G.focus)return G.focus(),1},z=async(G,Z={})=>{let re,pe;const Ee=tc(G);if(t.resolver){const we=await U(dn(G)?G:Ee);re=$r(we),pe=G?!Ee.some(_e=>Ae(we,_e)):re}else G?(pe=(await Promise.all(Ee.map(async we=>{const _e=Ae(r,we);return await j(_e&&_e._f?{[we]:_e}:_e)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=re=await j(r);return h.state.next({...!Ni(G)||f.isValid&&re!==n.isValid?{}:{name:G},...t.resolver||!G?{isValid:re}:{},errors:n.errors}),Z.shouldFocus&&!pe&&nc(r,H,G?Ee:u.mount),pe},N=G=>{const Z={...a.mount?o:i};return dn(G)?Z:Ni(G)?Ae(Z,G):G.map(re=>Ae(Z,re))},ne=(G,Z)=>({invalid:!!Ae((Z||n).errors,G),isDirty:!!Ae((Z||n).dirtyFields,G),error:Ae((Z||n).errors,G),isValidating:!!Ae(n.validatingFields,G),isTouched:!!Ae((Z||n).touchedFields,G)}),ie=G=>{G&&tc(G).forEach(Z=>xn(n.errors,Z)),h.state.next({errors:G?n.errors:{}})},le=(G,Z,re)=>{const pe=(Ae(r,G,{_f:{}})._f||{}).ref,Ee=Ae(n.errors,G)||{},{ref:we,message:_e,type:Ve,...mt}=Ee;Tt(n.errors,G,{...mt,...Z,ref:pe}),h.state.next({name:G,errors:n.errors,isValid:!1}),re&&re.shouldFocus&&pe&&pe.focus&&pe.focus()},$e=(G,Z)=>Li(G)?h.values.subscribe({next:re=>G(O(void 0,Z),re)}):O(G,Z,!0),De=(G,Z={})=>{for(const re of G?tc(G):u.mount)u.mount.delete(re),u.array.delete(re),Z.keepValue||(xn(r,re),xn(o,re)),!Z.keepError&&xn(n.errors,re),!Z.keepDirty&&xn(n.dirtyFields,re),!Z.keepTouched&&xn(n.touchedFields,re),!Z.keepIsValidating&&xn(n.validatingFields,re),!t.shouldUnregister&&!Z.keepDefaultValue&&xn(i,re);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:X()}:{}}),!Z.keepIsValid&&C()},Ce=({disabled:G,name:Z,field:re,fields:pe})=>{(ti(G)&&a.mount||G||u.disabled.has(Z))&&(G?u.disabled.add(Z):u.disabled.delete(Z),A(Z,ig(re?re._f:Ae(pe,Z)._f),!1,!1,!0))},Y=(G,Z={})=>{let re=Ae(r,G);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,G,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:G}},name:G,mount:!0,...Z}}),u.mount.add(G),re?Ce({field:re,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:G}):E(G,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:Al(Z.min),max:Al(Z.max),minLength:Al(Z.minLength),maxLength:Al(Z.maxLength),pattern:Al(Z.pattern)}:{},name:G,onChange:_,onBlur:_,ref:Ee=>{if(Ee){Y(G,Z),re=Ae(r,G);const we=dn(Ee.value)&&Ee.querySelectorAll&&Ee.querySelectorAll("input,select,textarea")[0]||Ee,_e=Nj(we),Ve=re._f.refs||[];if(_e?Ve.find(mt=>mt===we):we===re._f.ref)return;Tt(r,G,{_f:{...re._f,..._e?{refs:[...Ve.filter(rg),we,...Array.isArray(Ae(i,G))?[{}]:[]],ref:{type:we.type,name:G}}:{ref:we}}}),E(G,!1,void 0,we)}else re=Ae(r,G,{}),re._f&&(re._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(M2(u.array,G)&&a.action)&&u.unMount.add(G)}}},he=()=>t.shouldFocusError&&nc(r,H,u.mount),ye=G=>{ti(G)&&(h.state.next({disabled:G}),nc(r,(Z,re)=>{const pe=Ae(r,re);pe&&(Z.disabled=pe._f.disabled||G,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ee=>{Ee.disabled=pe._f.disabled||G}))},0,!1))},fe=(G,Z)=>async re=>{let pe;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let Ee=br(o);if(u.disabled.size)for(const we of u.disabled)Tt(Ee,we,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:we,values:_e}=await S();n.errors=we,Ee=_e}else await j(r);if(xn(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await G(Ee,re)}catch(we){pe=we}}else Z&&await Z({...n.errors},re),he(),setTimeout(he);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},ae=(G,Z={})=>{Ae(r,G)&&(dn(Z.defaultValue)?V(G,br(Ae(i,G))):(V(G,Z.defaultValue),Tt(i,G,br(Z.defaultValue))),Z.keepTouched||xn(n.touchedFields,G),Z.keepDirty||(xn(n.dirtyFields,G),n.isDirty=Z.defaultValue?X(G,br(Ae(i,G))):X()),Z.keepError||(xn(n.errors,G),f.isValid&&C()),h.state.next({...n}))},Fe=(G,Z={})=>{const re=G?br(G):i,pe=br(re),Ee=$r(G),we=Ee?i:pe;if(Z.keepDefaultValues||(i=re),!Z.keepValues){if(Z.keepDirtyValues){const _e=new Set([...u.mount,...Object.keys(Tl(i,o))]);for(const Ve of Array.from(_e))Ae(n.dirtyFields,Ve)?Tt(we,Ve,Ae(o,Ve)):V(Ve,Ae(we,Ve))}else{if(L0&&dn(G))for(const _e of u.mount){const Ve=Ae(r,_e);if(Ve&&Ve._f){const mt=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(rh(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(we),h.array.next({values:{...we}}),h.values.next({values:{...we}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ee?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!na(G,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ee?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?Tl(i,o):n.dirtyFields:Z.keepDefaultValues&&G?Tl(i,G):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(G,Z)=>Fe(Li(G)?G(o):G,Z);return{control:{register:Y,unregister:De,getFieldState:ne,handleSubmit:fe,setError:le,_executeSchema:S,_getWatch:O,_getDirty:X,_updateValid:C,_removeUnmounted:M,_updateFieldArray:v,_updateDisabledField:Ce,_getFieldArray:I,_reset:Fe,_resetDefaultValues:()=>Li(t.defaultValues)&&t.defaultValues().then(G=>{et(G,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:G=>{n={...n,...G}},_disableForm:ye,_subjects:h,_proxyFormState:f,_setErrors:T,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(G){a=G},get _defaultValues(){return i},get _names(){return u},set _names(G){u=G},get _formState(){return n},set _formState(G){n=G},get _options(){return t},set _options(G){t={...t,...G}}},trigger:z,register:Y,handleSubmit:fe,watch:$e,setValue:V,getValues:N,reset:et,resetField:ae,clearErrors:ie,unregister:De,setError:le,setFocus:(G,Z={})=>{const re=Ae(r,G),pe=re&&re._f;if(pe){const Ee=pe.refs?pe.refs[0]:pe.ref;Ee.focus&&(Ee.focus(),Z.shouldSelect&&Li(Ee.select)&&Ee.select())}},getFieldState:ne}}function Gj(e={}){const t=x.useRef(void 0),n=x.useRef(void 0),[r,i]=x.useState({isDirty:!1,isValidating:!1,isLoading:Li(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Li(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Hj(e),formState:r});const o=t.current.control;return o._options=e,N0({subject:o._subjects.state,next:a=>{I2(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),x.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),x.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),x.useEffect(()=>{e.values&&!na(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),x.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),x.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),x.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=B2(r,o),t.current}const Lt=typeof document<"u"?x.useLayoutEffect:()=>{};function fn(e){const t=x.useRef(null);return Lt(()=>{t.current=e},[e]),x.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function Yj(e){let[t,n]=x.useState(e),r=x.useRef(null),i=fn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});Lt(()=>{r.current&&i()});let o=fn(a=>{r.current=a(t),i()});return[t,o]}const ah={prefix:String(Math.round(Math.random()*1e10)),current:0},G2=x.createContext(ah),Zj=x.createContext(!1);let Jj=!!(typeof window<"u"&&window.document&&window.document.createElement),og=new WeakMap;function Xj(e=!1){let t=x.useContext(G2),n=x.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=og.get(o);a==null?og.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,og.delete(o))}n.current=++t.current}return n.current}function Qj(e){let t=x.useContext(G2);t===ah&&!Jj&&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=Xj(!!e),r=t===ah&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function eK(e){let t=x.useId(),[n]=x.useState(U0()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ah.prefix}`;return e||`${r}-${t}`}const tK=typeof x.useId=="function"?eK:Qj;function nK(){return!1}function rK(){return!0}function iK(e){return()=>{}}function U0(){return typeof x.useSyncExternalStore=="function"?x.useSyncExternalStore(iK,nK,rK):x.useContext(Zj)}let oK=!!(typeof window<"u"&&window.document&&window.document.createElement),ea=new Map;function Cr(e){let[t,n]=x.useState(e),r=x.useRef(null),i=tK(t),o=x.useCallback(a=>{r.current=a},[]);return oK&&(ea.has(i)&&!ea.get(i).includes(o)?ea.set(i,[...ea.get(i),o]):ea.set(i,[o])),Lt(()=>{let a=i;return()=>{ea.delete(a)}},[i]),x.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function aK(e,t){if(e===t)return e;let n=ea.get(e);if(n)return n.forEach(i=>i(t)),t;let r=ea.get(t);return r?(r.forEach(i=>i(e)),e):t}function Eu(e=[]){let t=Cr(),[n,r]=Yj(t),i=x.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Lt(i,[t,i,...e]),n}function ss(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const jt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ha=e=>e&&"window"in e&&e.window===e?e:jt(e).defaultView||window;function Y2(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=Y2(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sK(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Y2(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=ss(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=sK(o,a):i==="id"&&o&&a?t.id=aK(o,a):t[i]=a!==void 0?a:o}}return t}const uK=new Set(["id"]),lK=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),cK=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),dK=/^(data-.*)$/;function _o(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(uK.has(a)||n&&lK.has(a)||r&&cK.has(a)||i!=null&&i.has(a)||dK.test(a))&&(o[a]=e[a]);return o}function vi(e){if(fK())e.focus({preventScroll:!0});else{let t=hK(e);e.focus(),pK(t)}}let lf=null;function fK(){if(lf==null){lf=!1;try{document.createElement("div").focus({get preventScroll(){return lf=!0,!0}})}catch{}}return lf}function hK(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 pK(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Qh(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 z0(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 Ro(e){let t=null;return()=>(t==null&&(t=e()),t)}const To=Ro(function(){return z0(/^Mac/i)}),mK=Ro(function(){return z0(/^iPhone/i)}),Z2=Ro(function(){return z0(/^iPad/i)||To()&&navigator.maxTouchPoints>1}),Lc=Ro(function(){return mK()||Z2()}),Bf=Ro(function(){return To()||Lc()}),W0=Ro(function(){return Qh(/AppleWebKit/i)&&!J2()}),J2=Ro(function(){return Qh(/Chrome/i)}),q0=Ro(function(){return Qh(/Android/i)}),gK=Ro(function(){return Qh(/Firefox/i)}),yK=x.createContext({isNative:!0,open:bK,useHref:e=>e});function ep(){return x.useContext(yK)}function us(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:l}=t;gK()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(To()?o=!0:a=!0);let d=W0()&&To()&&!Z2()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});us.isOpening=n,vi(e),e.dispatchEvent(d),us.isOpening=!1}us.isOpening=!1;function vK(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 bK(e,t){vK(e,n=>us(n,t))}function $K(e){let t=ep();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 Zs=new Map,ob=new Set;function Kx(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Zs.get(r.target);i||(i=new Set,Zs.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=Zs.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Zs.delete(r.target)),Zs.size===0)){for(let o of ob)o();ob.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Kx():document.addEventListener("DOMContentLoaded",Kx));function X2(e){requestAnimationFrame(()=>{Zs.size===0?e():ob.add(e)})}function Uu(){let e=x.useRef(new Map),t=x.useCallback((i,o,a,u)=>{let l=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:l,options:u}),i.addEventListener(o,l,u)},[]),n=x.useCallback((i,o,a,u)=>{var l;let d=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=x.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return x.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Su(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Cr(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 Ux(e,t){const n=x.useRef(!0),r=x.useRef(null);x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),x.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function zx(e,t){const n=x.useRef(!0),r=x.useRef(null);Lt(()=>(n.current=!0,()=>{n.current=!1}),[]),Lt(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function xK(){return typeof window.ResizeObserver<"u"}function Wx(e){const{ref:t,box:n,onResize:r}=e;x.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(xK()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function Q2(e,t){Lt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function pc(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 tp(e,t){let n=e;for(pc(n,t)&&(n=n.parentElement);n&&!pc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function wK(e,t){const n=[];for(;e&&e!==document.documentElement;)pc(e,t)&&n.push(e),e=e.parentElement;return n}let DK=0;const ag=new Map;function Vc(e){let[t,n]=x.useState();return Lt(()=>{if(!e)return;let r=ag.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${DK++}`;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},ag.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),ag.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ji(e,t,n,r){let i=fn(n),o=n==null;x.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function eT(e,t){let n=qx(e,t,"left"),r=qx(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:l,borderLeftWidth:d,scrollPaddingTop:f,scrollPaddingRight:h,scrollPaddingBottom:m,scrollPaddingLeft:g}=getComputedStyle(e),y=a+parseInt(d,10),$=u+parseInt(l,10),C=y+e.clientWidth,b=$+e.clientHeight,v=parseInt(f,10)||0,D=parseInt(m,10)||0,T=parseInt(h,10)||0,E=parseInt(g,10)||0;n<=a+E?a=n-parseInt(d,10)-E:n+i>C-T&&(a+=n+i-C+T),r<=$+v?u=r-parseInt(l,10)-v:r+o>b-D&&(u+=r+o-b+D),e.scrollLeft=a,e.scrollTop=u}function qx(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 sh(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=wK(e);for(let d of l)eT(d,e)}else{var n;let{left:l,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(l-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function ab(e){return e.mozInputSource===0&&e.isTrusted?!0:q0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function CK(e){return!q0()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function tT(e,t){let n=x.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function H0(e,t,n){let r=x.useRef(t),i=fn(()=>{n&&n(r.current)});x.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}const EK="react-aria-clear-focus",SK="react-aria-focus",nT="react-aria-update-activedescendant";function Js(e){return To()?e.metaKey:e.ctrlKey}function Fr(e,t,n){let[r,i]=x.useState(e||t),o=x.useRef(e!==void 0),a=e!==void 0;x.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,l=x.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...y)=>{let $=d(a?u:g,...y);return h($,...f),a?g:$})):(a||i(d),h(d,...f))},[a,u,n]);return[u,l]}function Tu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function cf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let a=Math.pow(10,o);n=Math.round(n*a)/a}return n}function Pl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=cf(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(cf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(cf((n-t)/r,r))*r),o=cf(o,r),o}let Qs="default",sb="",If=new WeakMap;function ub(e){if(Lc()){if(Qs==="default"){const t=jt(e);sb=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Qs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(If.set(e,e.style.userSelect),e.style.userSelect="none")}function Ul(e){if(Lc()){if(Qs!=="disabled")return;Qs="restoring",setTimeout(()=>{X2(()=>{if(Qs==="restoring"){const t=jt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=sb||""),sb="",Qs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&If.has(e)){let t=If.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),If.delete(e)}}const G0=x.createContext({register:()=>{}});G0.displayName="PressResponderContext";function TK(e,t){return t.get?t.get.call(e):t.value}function rT(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function AK(e,t){var n=rT(e,t,"get");return TK(e,n)}function PK(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Nc(e,t,n){PK(e,t),t.set(e,n)}function _K(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 Hx(e,t,n){var r=rT(e,t,"set");return _K(e,r,n),n}function RK(e){let t=x.useContext(G0);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return Q2(t,e.ref),e}var df=new WeakMap;class ff{continuePropagation(){Hx(this,df,!1)}get shouldStopPropagation(){return AK(this,df)}constructor(t,n,r,i){Nc(this,df,{writable:!0,value:void 0}),Hx(this,df,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let l,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(l=f-u.left,d=h-u.top):(l=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=l,this.y=d}}const Gx=Symbol("linkClicked");function jc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:l,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=RK(e),[g,y]=x.useState(!1),$=x.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:b}=Uu(),v=fn((S,U)=>{let j=$.current;if(a||j.didFirePressStart)return!1;let M=!0;if(j.isTriggeringEvent=!0,r){let X=new ff("pressstart",U,S);r(X),M=X.shouldStopPropagation}return n&&n(!0),j.isTriggeringEvent=!1,j.didFirePressStart=!0,y(!0),M}),D=fn((S,U,j=!0)=>{let M=$.current;if(!M.didFirePressStart)return!1;M.ignoreClickAfterPress=!0,M.didFirePressStart=!1,M.isTriggeringEvent=!0;let X=!0;if(i){let O=new ff("pressend",U,S);i(O),X=O.shouldStopPropagation}if(n&&n(!1),y(!1),t&&j&&!a){let O=new ff("press",U,S);t(O),X&&(X=O.shouldStopPropagation)}return M.isTriggeringEvent=!1,X}),T=fn((S,U)=>{let j=$.current;if(a)return!1;if(o){j.isTriggeringEvent=!0;let M=new ff("pressup",U,S);return o(M),j.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),E=fn(S=>{let U=$.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&D(mo(U.target,S),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,b(),f||Ul(U.target))}),A=fn(S=>{d&&E(S)}),R=x.useMemo(()=>{let S=$.current,U={onKeyDown(M){if(sg(M.nativeEvent,M.currentTarget)&&M.currentTarget.contains(M.target)){var X;Zx(M.target,M.key)&&M.preventDefault();let O=!0;if(!S.isPressed&&!M.repeat){S.target=M.currentTarget,S.isPressed=!0,O=v(M,"keyboard");let I=M.currentTarget,W=k=>{sg(k,I)&&!k.repeat&&I.contains(k.target)&&S.target&&T(mo(S.target,k),"keyboard")};C(jt(M.currentTarget),"keyup",ss(W,j),!0)}O&&M.stopPropagation(),M.metaKey&&To()&&((X=S.metaKeyEvents)===null||X===void 0||X.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(M){if(!(M&&!M.currentTarget.contains(M.target))&&M&&M.button===0&&!S.isTriggeringEvent&&!us.isOpening){let X=!0;if(a&&M.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||ab(M.nativeEvent))){!a&&!l&&vi(M.currentTarget);let O=v(M,"virtual"),I=T(M,"virtual"),W=D(M,"virtual");X=O&&I&&W}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,X&&M.stopPropagation()}}},j=M=>{var X;if(S.isPressed&&S.target&&sg(M,S.target)){var O;Zx(M.target,M.key)&&M.preventDefault();let W=M.target;D(mo(S.target,M),"keyboard",S.target.contains(W)),b(),M.key!=="Enter"&&Y0(S.target)&&S.target.contains(W)&&!M[Gx]&&(M[Gx]=!0,us(S.target,M,!1)),S.isPressed=!1,(O=S.metaKeyEvents)===null||O===void 0||O.delete(M.key)}else if(M.key==="Meta"&&(!((X=S.metaKeyEvents)===null||X===void 0)&&X.size)){var I;let W=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let k of W.values())(I=S.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",k))}};if(typeof PointerEvent<"u"){U.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(CK(I.nativeEvent)){S.pointerType="virtual";return}lg(I.currentTarget)&&I.preventDefault(),S.pointerType=I.pointerType;let W=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=I.pointerId,S.target=I.currentTarget,!a&&!l&&vi(I.currentTarget),f||ub(S.target),W=v(I,S.pointerType);let k=I.target;"releasePointerCapture"in k&&k.releasePointerCapture(I.pointerId),C(jt(I.currentTarget),"pointerup",M,!1),C(jt(I.currentTarget),"pointercancel",O,!1)}W&&I.stopPropagation()},U.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(lg(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},U.onPointerUp=I=>{!I.currentTarget.contains(I.target)||S.pointerType==="virtual"||I.button===0&&T(I,S.pointerType||I.pointerType)},U.onPointerEnter=I=>{I.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,v(mo(S.target,I),S.pointerType))},U.onPointerLeave=I=>{I.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(mo(S.target,I),S.pointerType,!1),A(I))};let M=I=>{I.pointerId===S.activePointerId&&S.isPressed&&I.button===0&&S.target&&(S.target.contains(I.target)&&S.pointerType!=null?D(mo(S.target,I),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(mo(S.target,I),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,b(),f||Ul(S.target),"ontouchend"in S.target&&I.pointerType!=="mouse"&&C(S.target,"touchend",X,{once:!0}))},X=I=>{iT(I.currentTarget)&&I.preventDefault()},O=I=>{E(I)};U.onDragStart=I=>{I.currentTarget.contains(I.target)&&E(I)}}else{U.onMouseDown=O=>{if(O.button!==0||!O.currentTarget.contains(O.target))return;if(lg(O.currentTarget)&&O.preventDefault(),S.ignoreEmulatedMouseEvents){O.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=O.currentTarget,S.pointerType=ab(O.nativeEvent)?"virtual":"mouse",!a&&!l&&vi(O.currentTarget),v(O,S.pointerType)&&O.stopPropagation(),C(jt(O.currentTarget),"mouseup",M,!1)},U.onMouseEnter=O=>{if(!O.currentTarget.contains(O.target))return;let I=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,I=v(O,S.pointerType)),I&&O.stopPropagation()},U.onMouseLeave=O=>{if(!O.currentTarget.contains(O.target))return;let I=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,I=D(O,S.pointerType,!1),A(O)),I&&O.stopPropagation()},U.onMouseUp=O=>{O.currentTarget.contains(O.target)&&!S.ignoreEmulatedMouseEvents&&O.button===0&&T(O,S.pointerType||"mouse")};let M=O=>{if(O.button===0){if(S.isPressed=!1,b(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&ug(O,S.target)&&S.pointerType!=null?D(mo(S.target,O),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(mo(S.target,O),S.pointerType,!1),S.isOverTarget=!1}};U.onTouchStart=O=>{if(!O.currentTarget.contains(O.target))return;let I=OK(O.nativeEvent);if(!I)return;S.activePointerId=I.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=O.currentTarget,S.pointerType="touch",!a&&!l&&vi(O.currentTarget),f||ub(S.target),v(Yo(S.target,O),S.pointerType)&&O.stopPropagation(),C(ha(O.currentTarget),"scroll",X,!0)},U.onTouchMove=O=>{if(!O.currentTarget.contains(O.target))return;if(!S.isPressed){O.stopPropagation();return}let I=Yx(O.nativeEvent,S.activePointerId),W=!0;I&&ug(I,O.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,W=v(Yo(S.target,O),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(Yo(S.target,O),S.pointerType,!1),A(Yo(S.target,O))),W&&O.stopPropagation()},U.onTouchEnd=O=>{if(!O.currentTarget.contains(O.target))return;if(!S.isPressed){O.stopPropagation();return}let I=Yx(O.nativeEvent,S.activePointerId),W=!0;I&&ug(I,O.currentTarget)&&S.pointerType!=null?(T(Yo(S.target,O),S.pointerType),W=D(Yo(S.target,O),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(W=D(Yo(S.target,O),S.pointerType,!1)),W&&O.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&Ul(S.target),b()},U.onTouchCancel=O=>{O.currentTarget.contains(O.target)&&(O.stopPropagation(),S.isPressed&&E(Yo(S.target,O)))};let X=O=>{S.isPressed&&O.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=O=>{O.currentTarget.contains(O.target)&&E(O)}}return U},[C,a,l,b,f,E,A,D,v,T]);return x.useEffect(()=>()=>{var S;f||Ul((S=$.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,R)}}function Y0(e){return e.tagName==="A"&&e.hasAttribute("href")}function sg(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ha(i).HTMLInputElement&&!oT(i,n)||i instanceof ha(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&Y0(i))&&n!=="Enter")}function OK(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Yx(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 Yo(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 mo(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 MK(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 FK(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function ug(e,t){let n=t.getBoundingClientRect(),r=MK(e);return FK(n,r)}function lg(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function iT(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Y0(e)}function Zx(e,t){return e instanceof HTMLInputElement?!oT(e,t):iT(e)}const kK=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function oT(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":kK.has(e.type)}function BK({children:e}){let t=x.useMemo(()=>({register:()=>{}}),[]);return x.createElement(G0.Provider,{value:t},e)}class IK{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 aT(e){let t=x.useRef({isFocused:!1,observer:null});Lt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=fn(r=>{e==null||e(r)});return x.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new IK("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let u=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:u})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:u}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function LK(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=x.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),a=aT(o),u=x.useCallback(l=>{const d=jt(l.target);l.target===l.currentTarget&&d.activeElement===l.target&&(n&&n(l),i&&i(!0),a(l))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let ps=null,VK=new Set,rc=new Map,ls=!1,lb=!1;function np(e,t){for(let n of VK)n(e,t)}function NK(e){return!(e.metaKey||!To()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function uh(e){ls=!0,NK(e)&&(ps="keyboard",np("keyboard",e))}function ni(e){ps="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ls=!0,np("pointer",e))}function sT(e){ab(e)&&(ls=!0,ps="virtual")}function uT(e){e.target===window||e.target===document||(!ls&&!lb&&(ps="virtual",np("virtual",e)),ls=!1,lb=!1)}function lT(){ls=!1,lb=!0}function Jx(e){if(typeof window>"u"||rc.get(ha(e)))return;const t=ha(e),n=jt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ls=!0,r.apply(this,arguments)},n.addEventListener("keydown",uh,!0),n.addEventListener("keyup",uh,!0),n.addEventListener("click",sT,!0),t.addEventListener("focus",uT,!0),t.addEventListener("blur",lT,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{cT(e)},{once:!0}),rc.set(t,{focus:r})}const cT=(e,t)=>{const n=ha(e),r=jt(e);t&&r.removeEventListener("DOMContentLoaded",t),rc.has(n)&&(n.HTMLElement.prototype.focus=rc.get(n).focus,r.removeEventListener("keydown",uh,!0),r.removeEventListener("keyup",uh,!0),r.removeEventListener("click",sT,!0),n.removeEventListener("focus",uT,!0),n.removeEventListener("blur",lT,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),rc.delete(n))};function jK(e){const t=jt(e);let n;return t.readyState!=="loading"?Jx(e):(n=()=>{Jx(e)},t.addEventListener("DOMContentLoaded",n)),()=>cT(e,n)}typeof document<"u"&&jK();function Xx(){return ps!=="pointer"}function mc(){return ps}function dT(e){ps=e,np(e,null)}function zu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=x.useRef({isFocusWithin:!1}),a=x.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=aT(a),l=x.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}let lh=!1,cg=0;function cb(){lh=!0,setTimeout(()=>{lh=!1},50)}function Qx(e){e.pointerType==="touch"&&cb()}function KK(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Qx):document.addEventListener("touchend",cb),cg++,()=>{cg--,!(cg>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Qx):document.removeEventListener("touchend",cb))}}function UK(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=x.useState(!1),u=x.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;x.useEffect(KK,[]);let{hoverProps:l,triggerHoverEnd:d}=x.useMemo(()=>{let f=(g,y)=>{if(u.pointerType=y,i||y==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:y}),n&&n(!0),a(!0)},h=(g,y)=>{if(u.pointerType="",u.target=null,y==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:y}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{lh&&g.pointerType==="mouse"||f(g,g.pointerType)},m.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,g.pointerType)}):(m.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=g=>{!u.ignoreEmulatedMouseEvents&&!lh&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return x.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:l,isHovered:o}}function zK(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=x.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=fn(l=>{n&&hf(l,t)&&(i&&i(l),o.current.isPointerDown=!0)}),u=fn(l=>{n&&n(l)});x.useEffect(()=>{let l=o.current;if(r)return;const d=t.current,f=jt(d);if(typeof PointerEvent<"u"){let h=m=>{l.isPointerDown&&hf(m,t)&&u(m),l.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&hf(g,t)&&u(g),l.isPointerDown=!1},m=g=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&hf(g,t)&&u(g),l.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function hf(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 ew(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(r),t&&n.stopPropagation()}}function fT(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ew(e.onKeyDown),onKeyUp:ew(e.onKeyUp)}}}function hT(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=x.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Uu(),u=fn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),l=fn((f,h)=>{Ul(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:x.useMemo(()=>{let f={},h=()=>{ub(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=b=>{if(b.button===0){var v,D,T,E;u(b,"mouse",b.pageX-((T=(v=i.current.lastPosition)===null||v===void 0?void 0:v.pageX)!==null&&T!==void 0?T:0),b.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY}}},y=b=>{b.button===0&&(l(b,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",y,!1))};f.onMouseDown=b=>{b.button===0&&(h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:b.pageX,pageY:b.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",y,!1))};let $=b=>{let v=[...b.changedTouches].findIndex(({identifier:R})=>R===i.current.id);if(v>=0){var D,T;let{pageX:R,pageY:S}=b.changedTouches[v];var E,A;u(b,"touch",R-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((A=(T=i.current.lastPosition)===null||T===void 0?void 0:T.pageY)!==null&&A!==void 0?A:0)),i.current.lastPosition={pageX:R,pageY:S}}},C=b=>{[...b.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(l(b,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=b=>{if(b.changedTouches.length===0||i.current.id!=null)return;let{pageX:v,pageY:D,identifier:T}=b.changedTouches[0];h(),b.stopPropagation(),b.preventDefault(),i.current.lastPosition={pageX:v,pageY:D},i.current.id=T,o(window,"touchmove",$,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var C,b;let T=$.pointerType||"mouse";var v,D;u($,T,$.pageX-((v=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&v!==void 0?v:0),$.pageY-((D=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},y=$=>{if($.pointerId===i.current.id){let C=$.pointerType||"mouse";l($,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",y,!1),a(window,"pointercancel",y,!1)}};f.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",y,!1),o(window,"pointercancel",y,!1))}}let m=(g,y,$)=>{h(),u(g,"keyboard",y,$),l(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,l])}}const WK=500;function pT(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=WK,accessibilityDescription:a}=e;const u=x.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:d}=Uu(),{pressProps:f}=jc({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=y=>{y.preventDefault()};l(m.target,"contextmenu",g,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=Vc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function cs(e){const t=jt(e);if(mc()==="virtual"){let n=t.activeElement;X2(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function qK(e){const t=ha(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:o}=e.ownerDocument.defaultView;let{display:a,visibility:u}=o(e);i=a!=="none"&&u!=="hidden"&&u!=="collapse"}return i}function HK(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 mT(e,t){return e.nodeName!=="#comment"&&qK(e)&&HK(e,t)&&(!e.parentElement||mT(e.parentElement,e))}const tw=x.createContext(null),db="react-aria-focus-scope-restore";let Nt=null;function GK(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=x.useRef(null),a=x.useRef(null),u=x.useRef([]),{parentNode:l}=x.useContext(tw)||{},d=x.useMemo(()=>new hb({scopeRef:u}),[u]);Lt(()=>{let m=l||gn.root;if(gn.getTreeNode(m.scopeRef)&&Nt&&!ch(Nt,m.scopeRef)){let g=gn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),gn.addNode(d)},[d,l]),Lt(()=>{let m=gn.getTreeNode(u);m&&(m.contain=!!n)},[n]),Lt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,y=[],$=C=>C.stopPropagation();for(;g&&g!==a.current;)y.push(g),g.addEventListener(db,$),g=g.nextSibling;return u.current=y,()=>{for(let C of y)C.removeEventListener(db,$)}},[t]),tU(u,r,n),XK(u,n),nU(u,r,n),eU(u,i),x.useEffect(()=>{const m=jt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let y of gn.traverse())y.scopeRef&&ui(m,y.scopeRef.current)&&(g=y);g===gn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),Lt(()=>()=>{var m,g,y;let $=(y=(g=gn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&y!==void 0?y:null;(u===Nt||ch(u,Nt))&&(!$||gn.getTreeNode($))&&(Nt=$),gn.removeTreeNode(u)},[u]);let f=x.useMemo(()=>YK(u),[]),h=x.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return x.createElement(tw.Provider,{value:h},x.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,x.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function YK(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||jt(n[0]).activeElement,l=n[0].previousElementSibling,d=Wa(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:l;let h=f.nextNode();return!h&&o&&(f.currentNode=l,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||jt(n[0]).activeElement,l=n[n.length-1].nextElementSibling,d=Wa(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:l;let h=f.previousNode();return!h&&o&&(f.currentNode=l,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Wa(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[0].previousElementSibling;let u=a.nextNode();return u&&xr(u,!0),u},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Wa(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const Z0=["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]:not([contenteditable^="false"])'],ZK=Z0.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Z0.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const JK=Z0.join(':not([hidden]):not([tabindex="-1"]),');function Wa(e){return e[0].parentElement}function zl(e){let t=gn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function XK(e,t){let n=x.useRef(void 0),r=x.useRef(void 0);Lt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=jt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!zl(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=Wa(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let y=d.shiftKey?g.previousNode():g.nextNode();y||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,y=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),y&&xr(y,!0)},u=d=>{(!Nt||ch(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):zl(e)&&!ia(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&fb(Nt.current):zl(e)&&(n.current=d.target)},l=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{let f=mc();if(!((f==="virtual"||f===null)&&q0()&&J2())&&o.activeElement&&zl(e)&&!ia(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var m;n.current=d.target,(m=n.current)===null||m===void 0||m.focus()}else Nt.current&&fb(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",l,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",l,!1))}},[e,t]),Lt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function gT(e){return ia(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function ia(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of gn.traverse(gn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function QK(e){return ia(e,Nt)}function ch(e,t){var n;let r=(n=gn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{cs(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function yT(e,t=!0){let n=e[0].previousElementSibling,r=Wa(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Wa(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function fb(e,t=!0){xr(yT(e,t))}function eU(e,t){const n=x.useRef(t);x.useEffect(()=>{if(n.current){Nt=e;const r=jt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&fb(e.current)}n.current=!1},[e])}function tU(e,t,n){Lt(()=>{if(t||n)return;let r=e.current;const i=jt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:gT(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function nw(e){let t=gn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function nU(e,t,n){const r=x.useRef(typeof document<"u"?jt(e.current?e.current[0]:void 0).activeElement:null);Lt(()=>{let i=e.current;const o=jt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||ch(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),Lt(()=>{const i=jt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!zl(e)||a.isComposing)return;let u=i.activeElement;if(!ia(u,e)||!nw(e))return;let l=gn.getTreeNode(e);if(!l)return;let d=l.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,l.nodeToRestore=void 0),(!h||!ia(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(ia(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):gT(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),Lt(()=>{const i=jt(e.current?e.current[0]:void 0);if(!t)return;let o=gn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=gn.getTreeNode(e);if(!u)return;let l=u.nodeToRestore;if(t&&l&&(i.activeElement&&ia(i.activeElement,e)||i.activeElement===i.body&&nw(e))){let d=gn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){rw(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&gn.getTreeNode(f.scopeRef)){let h=yT(f.scopeRef.current,!0);rw(h);return}f=f.parent}}})}}}},[e,t])}function rw(e){e.dispatchEvent(new CustomEvent(db,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?JK:ZK,i=jt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&mT(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function rp(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,l=i||jt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(l)&&(d.currentNode=l);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,l=i||jt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(l))d.currentNode=l;else{let h=dg(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=dg(d);if(!h)return null;f=h}return f&&xr(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,u=wr(r,{tabbable:i,accept:o}).nextNode();return u&&xr(u,!0),u},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:o=t.accept}=n,a=wr(r,{tabbable:i,accept:o}),u=dg(a);return u&&xr(u,!0),u??null}}}function dg(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class J0{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 hb({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new J0;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 hb({scopeRef:null}),this.fastMap.set(null,this.root)}}class hb{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 gn=new J0,rU=x.createContext(null);function iU(e){let t=x.useContext(rU)||{};Q2(t,e);let{ref:n,...r}=t;return r}function X0(e,t){let{focusProps:n}=LK(e),{keyboardProps:r}=fT(e),i=xt(n,r),o=iU(t),a=e.isDisabled?{}:o,u=x.useRef(e.autoFocus);return x.useEffect(()=>{u.current&&t.current&&cs(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const oU=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),aU=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function sU(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 oU.has(n.script)}let t=e.split("-")[0];return aU.has(t)}const uU=Symbol.for("react-aria.i18n.locale");function vT(){let e=typeof window<"u"&&window[uU]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:sU(e)?"rtl":"ltr"}}let pb=vT(),Wl=new Set;function iw(){pb=vT();for(let e of Wl)e(pb)}function lU(){let e=U0(),[t,n]=x.useState(pb);return x.useEffect(()=>(Wl.size===0&&window.addEventListener("languagechange",iw),Wl.add(n),()=>{Wl.delete(n),Wl.size===0&&window.removeEventListener("languagechange",iw)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const cU=x.createContext(null);function Qn(){let e=lU();return x.useContext(cU)||e}const dU=Symbol.for("react-aria.i18n.locale"),fU=Symbol.for("react-aria.i18n.strings");let Hs;class va{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=hU(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[dU];if(Hs===void 0){let i=window[fU];if(!i)return null;Hs={};for(let o in i)Hs[o]=new va({[n]:i[o]},n)}let r=Hs==null?void 0:Hs[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 hU(e,t,n="en-US"){if(t[e])return t[e];let r=pU(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function pU(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const ow=new Map,aw=new Map;class bT{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=ow.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),ow.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=aw.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),aw.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 sw=new WeakMap;function mU(e){let t=sw.get(e);return t||(t=new va(e),sw.set(e,t)),t}function $T(e,t){return t&&va.getGlobalDictionaryForPackage(t)||mU(e)}function to(e,t){let{locale:n}=Qn(),r=$T(e,t);return x.useMemo(()=>new bT(n,r),[n,r])}function du(e,t){return e-t*Math.floor(e/t)}const xT=1721426;function qa(e,t,n,r){t=Kc(e,t);let i=t-1,o=-2;return n<=2?o=0:oa(t)&&(o=-1),xT-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function oa(e){return e%4===0&&(e%100!==0||e%400===0)}function Kc(e,t){return e==="BC"?1-t:t}function ip(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const gU={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class dr{fromJulianDay(t){let n=t,r=n-xT,i=Math.floor(r/146097),o=du(r,146097),a=Math.floor(o/36524),u=du(o,36524),l=Math.floor(u/1461),d=du(u,1461),f=Math.floor(d/365),h=i*400+a*100+l*4+f+(a!==4&&f!==4?1:0),[m,g]=ip(h),y=n-qa(m,g,1,1),$=2;n<qa(m,g,3,1)?$=0:oa(g)&&($=1);let C=Math.floor(((y+$)*12+373)/367),b=n-qa(m,g,C,1)+1;return new pn(m,g,C,b)}toJulianDay(t){return qa(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return gU[oa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return oa(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 yU={"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 wn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function mb(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 wT(e,t){return wn(e,op(t))}const vU={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function Q0(e,t,n){let r=e.calendar.toJulianDay(e),i=n?vU[n]:CU(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function DT(e){return $o(Date.now(),e)}function op(e){return cr(DT(e))}function CT(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function ET(e,t){return uw(e)-uw(t)}function uw(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let fg=null;function Uc(){return fg==null&&(fg=new Intl.DateTimeFormat().resolvedOptions().timeZone),fg}function zc(e){return e.subtract({days:e.day-1})}function gb(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function bU(e){return zc(e.subtract({months:e.month-1}))}function $U(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function xU(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function gc(e,t,n){let r=Q0(e,t,n);return e.subtract({days:r})}function wU(e,t,n){return gc(e,t,n).add({days:6})}const lw=new Map;function DU(e){if(Intl.Locale){let n=lw.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&lw.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function CU(e){let t=DU(e);return t&&yU[t]||0}function EU(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((Q0(zc(e),t,n)+r)/7)}function e1(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function t1(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Au(e){e=Qt(e,new dr);let t=Kc(e.era,e.year);return ST(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function ST(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function yb(e,t){if(t==="UTC")return 0;if(e>0&&t===Uc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=TT(e,t);return ST(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const cw=new Map;function TT(e,t){let n=cw.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"}),cw.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 dw=864e5;function SU(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>TU(e,t,o))}function TU(e,t,n){let r=TT(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 bo(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Au(r);if(t===Uc()&&n==="compatible"){r=Qt(r,new dr);let l=new Date,d=Kc(r.era,r.year);return l.setFullYear(d,r.month-1,r.day),l.setHours(r.hour,r.minute,r.second,r.millisecond),l.getTime()}let i=Au(r),o=yb(i-dw,t),a=yb(i+dw,t),u=SU(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function AT(e,t,n="compatible"){return new Date(bo(e,t,n))}function $o(e,t){let n=yb(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),l=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new bc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,l,d,f)}function cr(e){return new pn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new vc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function fw(e){return new Wc(e.hour,e.minute,e.second,e.millisecond)}function Qt(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,ds(r),r}function PT(e,t,n){if(e instanceof bc)return e.timeZone===t?e:PU(e,t);let r=bo(e,t,n);return $o(r,t)}function AU(e){let t=Au(e)-e.offset;return new Date(t)}function PU(e,t){let n=Au(e)-e.offset;return Qt($o(n,t),e.calendar)}const _l=36e5;function ap(e,t){let n=e.copy(),r="hour"in n?MT(n,t):0;vb(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,bb(n),_T(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,_U(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let l=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=l?1:n.calendar.getMonthsInYear(n),n.day=l?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function vb(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function bb(e){for(;e.month<1;)vb(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,vb(e,1)}function _U(e){for(;e.day<1;)e.month--,bb(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,bb(e)}function _T(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 ds(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),_T(e)}function n1(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function RT(e,t){return ap(e,n1(t))}function r1(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),ds(n),n}function yc(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),OT(n),n}function RU(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=pf(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=pf(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=pf(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=pf(e.hour,24),t}function OT(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 pf(e,t){let n=e%t;return n<0&&(n+=t),n}function MT(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,RU(e)}function FT(e,t){let n=e.copy();return MT(n,t),n}function OU(e,t){return FT(e,n1(t))}function i1(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),l=u.indexOf(e.era);if(l<0)throw new Error("Invalid era: "+e.era);l=xo(l,n,0,u.length-1,r==null?void 0:r.round),i.era=u[l],ds(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=xo(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=xo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=xo(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),ds(i),i}function o1(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let l=o>=12;a=l?12:0,u=l?23:11}i.hour=xo(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=xo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=xo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=xo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function xo(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 kT(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=ap(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=bo(i,e.timeZone)}else n=Au(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=$o(n,e.timeZone);return Qt(r,e.calendar)}function MU(e,t){return kT(e,n1(t))}function FU(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let y=e.hour>=12;i=y?12:0,o=y?23:11}let a=Di(e),u=Qt(yc(a,{hour:i}),new dr),l=[bo(u,e.timeZone,"earlier"),bo(u,e.timeZone,"later")].filter(y=>$o(y,e.timeZone).day===u.day)[0],d=Qt(yc(a,{hour:o}),new dr),f=[bo(d,e.timeZone,"earlier"),bo(d,e.timeZone,"later")].filter(y=>$o(y,e.timeZone).day===d.day).pop(),h=Au(e)-e.offset,m=Math.floor(h/_l),g=h%_l;return h=xo(m,n,Math.floor(l/_l),Math.floor(f/_l),r==null?void 0:r.round)*_l+g,Qt($o(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return o1(e,t,n,r);case"era":case"year":case"month":case"day":{let i=i1(Di(e),t,n,r),o=bo(i,e.timeZone);return Qt($o(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function kU(e,t,n){let r=Di(e),i=yc(r1(r,t),t);if(i.compare(r)===0)return e;let o=bo(i,e.timeZone,n);return Qt($o(o,e.timeZone),e.calendar)}const BU=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,IU=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function LU(e){let t=e.match(BU);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new pn(Fi(t[1],0,9999),Fi(t[2],1,12),1);return n.day=Fi(t[3],0,n.calendar.getDaysInMonth(n)),n}function VU(e){let t=e.match(IU);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Fi(t[1],-9999,9999),r=n<1?"BC":"AD",i=new vc(r,n<1?-n+1:n,Fi(t[2],1,12),1,t[4]?Fi(t[4],0,23):0,t[5]?Fi(t[5],0,59):0,t[6]?Fi(t[6],0,59):0,t[7]?Fi(t[7],0,1/0)*1e3:0);return i.day=Fi(t[3],0,i.calendar.getDaysInMonth(i)),i}function Fi(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 BT(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 IT(e){let t=Qt(e,new dr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function LT(e){return`${IT(e)}T${BT(e)}`}function NU(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 jU(e){return`${LT(e)}${NU(e.offset)}[${e.timeZone}]`}function a1(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var KU=new WeakMap;class pn{copy(){return this.era?new pn(this.calendar,this.era,this.year,this.month,this.day):new pn(this.calendar,this.year,this.month,this.day)}add(t){return ap(this,t)}subtract(t){return RT(this,t)}set(t){return r1(this,t)}cycle(t,n,r){return i1(this,t,n,r)}toDate(t){return AT(this,t)}toString(){return IT(this)}compare(t){return CT(this,t)}constructor(...t){Nc(this,KU,{writable:!0,value:void 0});let[n,r,i,o,a]=a1(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,ds(this)}}var UU=new WeakMap;class Wc{copy(){return new Wc(this.hour,this.minute,this.second,this.millisecond)}add(t){return FT(this,t)}subtract(t){return OU(this,t)}set(t){return yc(this,t)}cycle(t,n,r){return o1(this,t,n,r)}toString(){return BT(this)}compare(t){return ET(this,t)}constructor(t=0,n=0,r=0,i=0){Nc(this,UU,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,OT(this)}}var zU=new WeakMap;class vc{copy(){return this.era?new vc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new vc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ap(this,t)}subtract(t){return RT(this,t)}set(t){return r1(yc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return i1(this,t,n,r);default:return o1(this,t,n,r)}}toDate(t,n){return AT(this,t,n)}toString(){return LT(this)}compare(t){let n=CT(this,t);return n===0?ET(this,Di(t)):n}constructor(...t){Nc(this,zU,{writable:!0,value:void 0});let[n,r,i,o,a]=a1(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ds(this)}}var WU=new WeakMap;class bc{copy(){return this.era?new bc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new bc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return kT(this,t)}subtract(t){return MU(this,t)}set(t,n){return kU(this,t,n)}cycle(t,n,r){return FU(this,t,n,r)}toDate(){return AU(this)}toString(){return jU(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-PT(t,this.timeZone).toDate().getTime()}constructor(...t){Nc(this,WU,{writable:!0,value:void 0});let[n,r,i,o,a]=a1(t),u=t.shift(),l=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=l,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ds(this)}}const fu=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],qU=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Lf=[1867,1911,1925,1988,2018],ta=["meiji","taisho","showa","heisei","reiwa"];function hw(e){const t=fu.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?fu.length-1:t===0?0:t-1}function hg(e){let t=Lf[ta.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new pn(e.year+t,e.month,e.day)}class HU extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=hw(n);return new pn(this,ta[r],n.year-Lf[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(hg(t))}balanceDate(t){let n=hg(t),r=hw(n);ta[r]!==t.era&&(t.era=ta[r],t.year=n.year-Lf[r]),this.constrainDate(t)}constrainDate(t){let n=ta.indexOf(t.era),r=qU[n];if(r!=null){let[i,o,a]=r,u=i-Lf[n];t.year=Math.max(1,Math.min(u,t.year)),t.year===u&&(t.month=Math.min(o,t.month),t.month===o&&(t.day=Math.min(a,t.day)))}if(t.year===1&&n>=0){let[,i,o]=fu[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(o,t.day))}}getEras(){return ta}getYearsInEra(t){let n=ta.indexOf(t.era),r=fu[n],i=fu[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(hg(t))}getMinimumMonthInYear(t){let n=pw(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=pw(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function pw(e){if(e.year===1){let t=ta.indexOf(e.era);return fu[t]}}const VT=-543;class GU extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Kc(n.era,n.year);return new pn(this,r-VT,n.month,n.day)}toJulianDay(t){return super.toJulianDay(mw(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(mw(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function mw(e){let[t,n]=ip(e.year+VT);return new pn(t,n,e.month,e.day)}const dh=1911;function NT(e){return e.era==="minguo"?e.year+dh:1-e.year+dh}function gw(e){let t=e-dh;return t>0?["minguo",t]:["before_minguo",1-t]}class YU extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Kc(n.era,n.year),[i,o]=gw(r);return new pn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(yw(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=gw(NT(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(yw(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-dh}constructor(...t){super(...t),this.identifier="roc"}}function yw(e){let[t,n]=ip(NT(e));return new pn(t,n,e.month,e.day)}const vw=1948320,bw=[0,31,62,93,124,155,186,216,246,276,306,336];class ZU{fromJulianDay(t){let n=t-vw,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-bw[a]+1;return new pn(this,r,a+1,u)}toJulianDay(t){let n=vw-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=bw[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||du(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const pg=78,$w=80;class JU extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-pg,i=t-qa(n.era,n.year,1,1),o;i<$w?(r--,o=oa(n.year-1)?31:30,i+=o+155+90+10):(o=oa(n.year)?31:30,i-=$w);let a,u;if(i<o)a=1,u=i+1;else{let l=i-o;l<155?(a=Math.floor(l/31)+2,u=l%31+1):(l-=155,a=Math.floor(l/30)+7,u=l%30+1)}return new pn(this,r,a,u)}toJulianDay(t){let n=t.year+pg,[r,i]=ip(n),o,a;return oa(i)?(o=31,a=qa(r,i,3,21)):(o=30,a=qa(r,i,3,22)),t.month===1?a+t.day-1:(a+=o+Math.min(t.month-2,5)*31,t.month>=8&&(a+=(t.month-7)*30),a+=t.day-1,a)}getDaysInMonth(t){return t.month===1&&oa(t.year+pg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const fh=1948440,xw=1948439,ei=1300,Gs=1600,XU=460322;function hh(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function jT(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+hh(t,r,1,1)))/29.5)+1),o=n-hh(t,r,i,1)+1;return new pn(e,r,i,o)}function ww(e){return(14+11*e)%30<11}class s1{fromJulianDay(t){return jT(this,fh,t)}toJulianDay(t){return hh(fh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&ww(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return ww(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class QU extends s1{fromJulianDay(t){return jT(this,xw,t)}toJulianDay(t){return hh(xw,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const ez="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let $b,hu;function Vf(e){return XU+hu[e-ei]}function ql(e,t){let n=e-ei,r=1<<11-(t-1);return $b[n]&r?30:29}function Dw(e,t){let n=Vf(e);for(let r=1;r<t;r++)n+=ql(e,r);return n}function Cw(e){return hu[e+1-ei]-hu[e-ei]}class tz extends s1{fromJulianDay(t){let n=t-fh,r=Vf(ei),i=Vf(Gs);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-Vf(o)+1;let l=Cw(o);if(u===l){a=12;break}else if(u<l){let d=ql(o,a);for(a=1;u>d;)u-=d,a++,d=ql(o,a);break}}return new pn(this,o,a,n-Dw(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>Gs?super.toJulianDay(t):fh+Dw(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>Gs?super.getDaysInMonth(t):ql(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>Gs?super.getDaysInYear(t):Cw(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",$b||($b=new Uint16Array(Uint8Array.from(atob(ez),t=>t.charCodeAt(0)).buffer)),!hu){hu=new Uint32Array(Gs-ei+1);let t=0;for(let n=ei;n<=Gs;n++){hu[n-ei]=t;for(let r=1;r<=12;r++)t+=ql(n,r)}}}}const Ew=347997,KT=1080,UT=24*KT,nz=29,rz=12*KT+793,iz=nz*UT+rz;function ja(e){return du(e*7+1,19)<7}function Nf(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return du(3*(r+1),7)<3&&(r+=1),r}function oz(e){let t=Nf(e-1),n=Nf(e);return Nf(e+1)-n===356?2:n-t===382?1:0}function ic(e){return Nf(e)+oz(e)}function zT(e){return ic(e+1)-ic(e)}function az(e){let t=zT(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function mf(e,t){if(t>=6&&!ja(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=az(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?ja(e)?30:0:30}class sz{fromJulianDay(t){let n=t-Ew,r=n*UT/iz,i=Math.floor((19*r+234)/235)+1,o=ic(i),a=Math.floor(n-o);for(;a<1;)i--,o=ic(i),a=Math.floor(n-o);let u=1,l=0;for(;l<a;)l+=mf(i,u),u++;u--,l-=mf(i,u);let d=a-l;return new pn(this,i,u,d)}toJulianDay(t){let n=ic(t.year);for(let r=1;r<t.month;r++)n+=mf(t.year,r);return n+t.day+Ew}getDaysInMonth(t){return mf(t.year,t.month)}getMonthsInYear(t){return ja(t.year)?13:12}getDaysInYear(t){return zT(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(ja(n.year)&&!ja(t.year)&&n.month>6?t.month--:!ja(n.year)&&ja(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const xb=1723856,Sw=1824665,wb=5500;function ph(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function u1(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-ph(e,n,1,1))/30),i=t+1-ph(e,n,r,1);return[n,r,i]}function WT(e){return Math.floor(e%4/3)}function qT(e,t){return t%13!==0?30:WT(e)+5}class l1{fromJulianDay(t){let[n,r,i]=u1(xb,t),o="AM";return n<=0&&(o="AA",n+=wb),new pn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=wb),ph(xb,n,t.month,t.day)}getDaysInMonth(t){return qT(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+WT(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class uz extends l1{fromJulianDay(t){let[n,r,i]=u1(xb,t);return n+=wb,new pn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class lz extends l1{fromJulianDay(t){let[n,r,i]=u1(Sw,t),o="CE";return n<=0&&(o="BCE",n=1-n),new pn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),ph(Sw,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),qT(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 cz(e){switch(e){case"buddhist":return new GU;case"ethiopic":return new l1;case"ethioaa":return new uz;case"coptic":return new lz;case"hebrew":return new sz;case"indian":return new JU;case"islamic-civil":return new s1;case"islamic-tbla":return new QU;case"islamic-umalqura":return new tz;case"japanese":return new HU;case"persian":return new ZU;case"roc":return new YU;case"gregory":default:return new dr}}let mg=new Map;class ii{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return hz()&&(this.resolvedHourCycle||(this.resolvedHourCycle=pz(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=HT(t,n),this.options=n}}const dz={true:{ja:"h11"},false:{}};function HT(e,t={}){if(typeof t.hour12=="boolean"&&fz()){t={...t};let i=dz[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(mg.has(n))return mg.get(n);let r=new Intl.DateTimeFormat(e,t);return mg.set(n,r),r}let gg=null;function fz(){return gg==null&&(gg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),gg}let yg=null;function hz(){return yg==null&&(yg=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),yg}function pz(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=HT(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 Ki(e){e=tT(e??{},mz);let{locale:t}=Qn();return x.useMemo(()=>new ii(t,e),[t,e])}function mz(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 vg=new Map,Db=!1;try{Db=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let mh=!1;try{mh=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const GT={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class YT{format(t){let n="";if(!Db&&this.options.signDisplay!=null?n=yz(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!mh){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=GT[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Db&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!mh&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=gz(t,n),this.options=n}}function gz(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!mh){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=GT[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(vg.has(i))return vg.get(i);let o=new Intl.NumberFormat(e,t);return vg.set(i,o),o}function yz(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),a=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(a,"+").replace("!!!",o)}else return e.format(n)}}const vz=new RegExp("^.*\\(.*\\).*$"),bz=["latn","arab","hanidec","deva","beng"];class ZT{parse(t){return bg(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return bg(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return bg(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Tw=new Map;function bg(e,t,n){let r=Aw(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of bz)if(i!==r.options.numberingSystem){let o=Aw(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function Aw(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=Tw.get(n);return r||(r=new $z(e,t),Tw.set(n,r)),r}class $z{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=gf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new ZT(this.locale,a).parse(new YT(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&vz.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=gf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=gf(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=gf(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=wz(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 Pw=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),xz=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function wz(e,t,n,r){var i,o,a,u;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=l.formatToParts(-10000.111),f=l.formatToParts(10000.111),h=xz.map(j=>l.formatToParts(j));var m;let g=(m=(i=d.find(j=>j.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",y=(o=f.find(j=>j.type==="plusSign"))===null||o===void 0?void 0:o.value;!y&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(y="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(j=>j.type==="decimal"))===null||a===void 0?void 0:a.value,b=(u=d.find(j=>j.type==="group"))===null||u===void 0?void 0:u.value,v=d.filter(j=>!Pw.has(j.type)).map(j=>_w(j.value)),D=h.flatMap(j=>j.filter(M=>!Pw.has(M.type)).map(M=>_w(M.value))),T=[...new Set([...v,...D])].sort((j,M)=>M.length-j.length),E=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),A=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),R=new Map(A.map((j,M)=>[j,M])),S=new RegExp(`[${A.join("")}]`,"g");return{minusSign:g,plusSign:y,decimal:C,group:b,literals:E,numeral:S,index:j=>String(R.get(j))}}function gf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function _w(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dz(e={}){let{locale:t}=Qn();return x.useMemo(()=>new YT(t,e),[t,e])}let $g=new Map;function JT(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if($g.has(n))return $g.get(n);let r=new Intl.Collator(t,e);return $g.set(n,r),r}function XT(e){let t=JT({usage:"search",...e}),n=x.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=x.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=x.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,l=a.length;for(;u+l<=o.length;u++){let d=o.slice(u,u+l);if(t.compare(a,d)===0)return!0}return!1},[t]);return x.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function Cz(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:y,type:$="button"}=e,C;n==="button"?C={type:$,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?y:void 0};let{pressProps:b,isPressed:v}=jc({onPressStart:o,onPressEnd:a,onPressChange:l,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=X0(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let T=xt(D,b,_o(e,{labelable:!0}));return{isPressed:v,buttonProps:xt(C,T,{"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 QT={};QT={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 eA={};eA={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 tA={};tA={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 nA={};nA={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 rA={};rA={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 iA={};iA={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 oA={};oA={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 aA={};aA={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 sA={};sA={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 uA={};uA={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 lA={};lA={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 cA={};cA={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 dA={};dA={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 fA={};fA={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 hA={};hA={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 pA={};pA={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 mA={};mA={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 gA={};gA={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 yA={};yA={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 vA={};vA={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 bA={};bA={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 $A={};$A={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 xA={};xA={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 wA={};wA={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 DA={};DA={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 CA={};CA={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 EA={};EA={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 SA={};SA={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 TA={};TA={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 AA={};AA={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 PA={};PA={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 _A={};_A={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 RA={};RA={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 OA={};OA={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 qc={};qc={"ar-AE":QT,"bg-BG":eA,"cs-CZ":tA,"da-DK":nA,"de-DE":rA,"el-GR":iA,"en-US":oA,"es-ES":aA,"et-EE":sA,"fi-FI":uA,"fr-FR":lA,"he-IL":cA,"hr-HR":dA,"hu-HU":fA,"it-IT":hA,"ja-JP":pA,"ko-KR":mA,"lt-LT":gA,"lv-LV":yA,"nb-NO":vA,"nl-NL":bA,"pl-PL":$A,"pt-BR":xA,"pt-PT":wA,"ro-RO":DA,"ru-RU":CA,"sk-SK":EA,"sl-SI":SA,"sr-SP":TA,"sv-SE":AA,"tr-TR":PA,"uk-UA":_A,"zh-CN":RA,"zh-TW":OA};function MA(e){return e&&e.__esModule?e.default:e}const c1=new WeakMap;function $c(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function Ez(e){let t=to(MA(qc),"@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=Ki({weekday:"long",month:"long",year:"numeric",day:"numeric",era:$c(n)||$c(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return x.useMemo(()=>{if(!a&&n&&r)if(wn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Eb(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function Cb(e,t,n,r){let i=to(MA(qc),"@react-aria/calendar"),o=$c(e)||$c(t),a=Ki({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=Ki({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return x.useMemo(()=>{if(wn(e,zc(e))){if(wn(t,gb(e)))return a.format(e.toDate(n));if(wn(t,gb(t)))return r?Eb(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Eb(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Eb(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",l="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(l+=o[d].value);return t.format("dateRange",{startDate:u,endDate:l})}const FA=7e3;let Xr=null;function pu(e,t="assertive",n=FA){Xr?Xr.announce(e,t,n):(Xr=new Tz,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Xr.announce(e,t,n):setTimeout(()=>{Xr!=null&&Xr.isAttached()&&(Xr==null||Xr.announce(e,t,n))},100))}function Sz(e){Xr&&Xr.clear(e)}class Tz{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=FA){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function Az(e){return e&&e.__esModule?e.default:e}function kA(e,t){let n=to(Az(qc),"@react-aria/calendar"),r=_o(e),i=Cb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=Cb(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);Ux(()=>{t.isFocused||pu(o)},[o]);let a=Ez(t);Ux(()=>{a&&pu(a,"polite",4e3)},[a]);let u=Eu([!!e.errorMessage,e.isInvalid,e.validationState]);c1.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[l,d]=x.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&l&&(d(!1),t.setFocused(!0));let[h,m]=x.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let y=Su({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,y,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function Pz(e,t){return kA(e,t)}function _z(e,t,n){let r=kA(e,t),i=x.useRef(!1),o=x.useRef(typeof window<"u"?window:null);return ji(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),ji(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let l=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(l)||!l.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},ji(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function Rz(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end,firstDayOfWeek:i}=e,{direction:o}=Qn(),a=y=>{switch(y.key){case"Enter":case" ":y.preventDefault(),t.selectFocusedDate();break;case"PageUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousSection(y.shiftKey);break;case"PageDown":y.preventDefault(),y.stopPropagation(),t.focusNextSection(y.shiftKey);break;case"End":y.preventDefault(),y.stopPropagation(),t.focusSectionEnd();break;case"Home":y.preventDefault(),y.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":y.preventDefault(),y.stopPropagation(),o==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":y.preventDefault(),y.stopPropagation(),o==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":y.preventDefault(),y.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(y.preventDefault(),t.setAnchorDate(null));break}},u=Cb(n,r,t.timeZone,!0),{ariaLabel:l,ariaLabelledBy:d}=c1.get(t),f=Su({"aria-label":[l,u].filter(Boolean).join(", "),"aria-labelledby":d}),h=Ki({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:m}=Qn(),g=x.useMemo(()=>{let y=gc(op(t.timeZone),m,i);return[...new Array(7).keys()].map($=>{let b=y.add({days:$}).toDate(t.timeZone);return h.format(b)})},[m,t.timeZone,h,i]);return{gridProps:xt(f,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:g}}function Oz(e){return e&&e.__esModule?e.default:e}function Mz(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=c1.get(t),u=to(Oz(qc),"@react-aria/calendar"),l=Ki({weekday:"long",day:"numeric",month:"long",year:"numeric",era:$c(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&wn(t.value,r));g&&(d=!0),r=tT(r,mb);let y=x.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=wT(r,t.timeZone),C=x.useMemo(()=>{let M="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(wn(r,t.value.start)||wn(r,t.value.end))&&(M=a+", "),M+=l.format(y),$?M=u.format(d?"todayDateSelected":"todayDate",{date:M}):d&&(M=u.format("dateSelected",{date:M})),t.minValue&&wn(r,t.minValue)?M+=", "+u.format("minimumDate"):t.maxValue&&wn(r,t.maxValue)&&(M+=", "+u.format("maximumDate")),M},[l,y,u,d,$,r,t,a]),b="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?b=u.format("finishRangeSelectionPrompt"):b=u.format("startRangeSelectionPrompt"));let v=Vc(b),D=x.useRef(!1),T=x.useRef(!1),E=x.useRef(void 0),{pressProps:A,isPressed:R}=jc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(M){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(M.pointerType==="mouse"||M.pointerType==="touch")){if(t.highlightedRange&&!g){if(wn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}else if(wn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),T.current=!0;return}}let X=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};M.pointerType==="touch"?E.current=setTimeout(X,200):X()}},onPressEnd(){T.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(M){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(T.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(M.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let X=r.add({days:1});t.isInvalid(X)&&(X=r.subtract({days:1})),t.isInvalid(X)||t.setFocusedDate(X)}else M.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=wn(r,t.focusedDate)?0:-1),x.useEffect(()=>{f&&n.current&&(vi(n.current),mc()!=="pointer"&&document.activeElement===n.current&&sh(n.current,{containingElement:tp(n.current)}))},[f,n]);let U=Ki({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),j=x.useMemo(()=>U.formatToParts(y).find(M=>M.type==="day").value,[U,y]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(A,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,v["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(M){"highlightDate"in t&&(M.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(M){"releasePointerCapture"in M.target&&M.target.releasePointerCapture(M.pointerId)},onContextMenu(M){M.preventDefault()}}),isPressed:R,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:j}}const sp={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},BA={...sp,customError:!0,valid:!1},Ka={isInvalid:!1,validationDetails:sp,validationErrors:[]},Fz=x.createContext({}),Pu="__formValidationState"+Date.now();function Hc(e){if(e[Pu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}=e[Pu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:o}}return kz(e)}function kz(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:BA}:null,d=x.useMemo(()=>{if(!a||i==null)return null;let j=Bz(a,i);return Rw(j)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=x.useContext(Fz),h=x.useMemo(()=>r?Array.isArray(r)?r.flatMap(j=>Sb(f[j])):Sb(f[r]):[],[f,r]),[m,g]=x.useState(f),[y,$]=x.useState(!1);f!==m&&(g(f),$(!1));let C=x.useMemo(()=>Rw(y?[]:h),[y,h]),b=x.useRef(Ka),[v,D]=x.useState(Ka),T=x.useRef(Ka),E=()=>{if(!A)return;R(!1);let j=d||o||b.current;xg(j,T.current)||(T.current=j,D(j))},[A,R]=x.useState(!1);return x.useEffect(E),{realtimeValidation:l||C||d||o||Ka,displayValidation:u==="native"?l||C||v:l||C||d||o||v,updateValidation(j){u==="aria"&&!xg(v,j)?D(j):b.current=j},resetValidation(){let j=Ka;xg(j,T.current)||(T.current=j,D(j)),u==="native"&&R(!1),$(!0)},commitValidation(){u==="native"&&R(!0),$(!0)}}}function Sb(e){return e?Array.isArray(e)?e:[e]:[]}function Bz(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Sb(n)}return[]}function Rw(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:BA}:null}function xg(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 gh(...e){let t=new Set,n=!1,r={...sp};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function IA(e,t,n){let{validationBehavior:r,focus:i}=e;Lt(()=>{if(r==="native"&&(n!=null&&n.current)&&!n.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(Lz(n.current))}});let o=fn(()=>{t.resetValidation()}),a=fn(l=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!l.defaultPrevented&&n&&f&&Vz(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),dT("keyboard")}l.preventDefault()}),u=fn(()=>{t.commitValidation()});x.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let d=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function Iz(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 Lz(e){return{isInvalid:!e.validity.valid,validationDetails:Iz(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Vz(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function up(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Cr(t);let a=Cr(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Su({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:l}}function lp(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=up(e),u=Eu([!!t,!!n,r,i]),l=Eu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:l}}}const Nz=0,jz=100,Kz=1;function Uz(e){const{isDisabled:t=!1,minValue:n=Nz,maxValue:r=jz,numberFormatter:i,step:o=Kz,orientation:a="horizontal"}=e;let u=x.useMemo(()=>{let N=(r-n)/10;return N=Pl(N,0,N+o,o),Math.max(N,o)},[o,r,n]),l=x.useCallback(N=>N==null?void 0:N.map((ne,ie)=>{let le=ie===0?n:N[ie-1],$e=ie===N.length-1?r:N[ie+1];return Pl(ne,le,$e,o)}),[n,r,o]),d=x.useMemo(()=>l(Mw(e.value)),[e.value]),f=x.useMemo(()=>{var N;return l((N=Mw(e.defaultValue))!==null&&N!==void 0?N:[n])},[e.defaultValue,n]),h=Fw(e.value,e.defaultValue,e.onChange),m=Fw(e.value,e.defaultValue,e.onChangeEnd);const[g,y]=Fr(d,f,h),[$,C]=x.useState(new Array(g.length).fill(!1)),b=x.useRef(new Array(g.length).fill(!0)),[v,D]=x.useState(void 0),T=x.useRef(g),E=x.useRef($);let A=N=>{T.current=N,y(N)},R=N=>{E.current=N,C(N)};function S(N){return(N-n)/(r-n)}function U(N){return N===0?n:g[N-1]}function j(N){return N===g.length-1?r:g[N+1]}function M(N){return b.current[N]}function X(N,ne){b.current[N]=ne}function O(N,ne){if(t||!M(N))return;const ie=U(N),le=j(N);ne=Pl(ne,ie,le,o);let $e=Ow(T.current,N,ne);A($e)}function I(N,ne){if(t||!M(N))return;ne&&(T.current=g);const ie=E.current[N];E.current=Ow(E.current,N,ne),R(E.current),ie&&!E.current.some(Boolean)&&m(T.current)}function W(N){return i.format(N)}function k(N,ne){O(N,_(ne))}function V(N){return Math.round((N-n)/o)*o+n}function _(N){const ne=N*(r-n)+n;return Tu(V(ne),n,r)}function H(N,ne=1){let ie=Math.max(ne,o);O(N,Pl(g[N]+ie,n,r,o))}function z(N,ne=1){let ie=Math.max(ne,o);O(N,Pl(g[N]-ie,n,r,o))}return{values:g,getThumbValue:N=>g[N],setThumbValue:O,setThumbPercent:k,isThumbDragging:N=>$[N],setThumbDragging:I,focusedThumb:v,setFocusedThumb:D,getThumbPercent:N=>S(g[N]),getValuePercent:S,getThumbValueLabel:N=>W(g[N]),getFormattedValue:W,getThumbMinValue:U,getThumbMaxValue:j,getPercentValue:_,isThumbEditable:M,setThumbEditable:X,incrementThumb:H,decrementThumb:z,step:o,pageSize:u,orientation:a,isDisabled:t}}function Ow(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function Mw(e){if(e!=null)return Array.isArray(e)?e:[e]}function Fw(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const kw={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 zz(e={}){let{style:t,isFocusable:n}=e,[r,i]=x.useState(!1),{focusWithinProps:o}=zu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=x.useMemo(()=>r?t:t?{...kw,...t}:kw,[r]);return{visuallyHiddenProps:{...o,style:a}}}function Wz(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=zz(e);return x.createElement(n,xt(o,a),t)}const d1=new WeakMap;function Tb(e,t){let n=d1.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function qz(e,t,n){let{labelProps:r,fieldProps:i}=up(e),o=e.orientation==="vertical";var a;d1.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:l,removeGlobalListener:d}=Uu();const f=x.useRef(null),h=u==="rtl",m=x.useRef(null),{moveProps:g}=hT({onMoveStart(){m.current=null},onMove({deltaX:b,deltaY:v}){if(!n.current)return;let{height:D,width:T}=n.current.getBoundingClientRect(),E=o?D:T;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let A=o?v:b;if((o||h)&&(A=-A),m.current+=A,f.current!=null&&n.current){const R=Tu(m.current/E,0,1);t.setThumbPercent(f.current,R)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let y=x.useRef(void 0),$=(b,v,D,T)=>{if(n.current&&!e.isDisabled&&t.values.every((E,A)=>!t.isThumbDragging(A))){let{height:E,width:A,top:R,left:S}=n.current.getBoundingClientRect(),U=o?E:A,O=((o?T:D)-(o?R:S))/U;(u==="rtl"||o)&&(O=1-O);let I=t.getPercentValue(O),W,k=t.values.findIndex(V=>I-V<0);if(k===0)W=k;else if(k===-1)W=t.values.length-1;else{let V=t.values[k-1],_=t.values[k];Math.abs(V-I)<Math.abs(_-I)?W=k-1:W=k}W>=0&&t.isThumbEditable(W)?(b.preventDefault(),f.current=W,t.setFocusedThumb(W),y.current=v,t.setThumbDragging(f.current,!0),t.setThumbValue(W,I),l(window,"mouseup",C,!1),l(window,"touchend",C,!1),l(window,"pointerup",C,!1)):f.current=null}},C=b=>{var v,D;((D=b.pointerId)!==null&&D!==void 0?D:(v=b.changedTouches)===null||v===void 0?void 0:v[0].identifier)===y.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var b;(b=document.getElementById(Tb(t,0)))===null||b===void 0||b.focus(),dT("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(b){b.button!==0||b.altKey||b.ctrlKey||b.metaKey||$(b,void 0,b.clientX,b.clientY)},onPointerDown(b){b.pointerType==="mouse"&&(b.button!==0||b.altKey||b.ctrlKey||b.metaKey)||$(b,b.pointerId,b.clientX,b.clientY)},onTouchStart(b){$(b,b.changedTouches[0].identifier,b.changedTouches[0].clientX,b.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((b,v)=>Tb(t,v)).join(" "),"aria-live":"off"}}}function Hz(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:l=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=l==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:y}=Uu(),$=d1.get(t);var C;const{labelProps:b,fieldProps:v}=up({...e,id:Tb(t,n),"aria-labelledby":`${$.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],T=x.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;x.useEffect(()=>{E&&T()},[E,T]);let A=m==="rtl",R=x.useRef(null),{keyboardProps:S}=fT({onKeyDown(k){let{getThumbMaxValue:V,getThumbMinValue:_,decrementThumb:H,incrementThumb:z,setThumbValue:N,setThumbDragging:ne,pageSize:ie}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(k.key)){k.continuePropagation();return}switch(k.preventDefault(),ne(n,!0),k.key){case"PageUp":z(n,ie);break;case"PageDown":H(n,ie);break;case"Home":N(n,_(n));break;case"End":N(n,V(n));break}ne(n,!1)}}),{moveProps:U}=hT({onMoveStart(){R.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:k,deltaY:V,pointerType:_,shiftKey:H}){const{getThumbPercent:z,setThumbPercent:N,decrementThumb:ne,incrementThumb:ie,step:le,pageSize:$e}=t;if(!a.current)return;let{width:De,height:Ce}=a.current.getBoundingClientRect(),Y=h?Ce:De;if(R.current==null&&(R.current=z(n)*Y),_==="keyboard")k>0&&A||k<0&&!A||V>0?ne(n,H?$e:le):ie(n,H?$e:le);else{let he=h?V:k;(h||A)&&(he=-he),R.current+=he,N(n,Tu(R.current/Y,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:j}=X0(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let M=x.useRef(void 0),X=k=>{T(),M.current=k,t.setThumbDragging(n,!0),g(window,"mouseup",O,!1),g(window,"touchend",O,!1),g(window,"pointerup",O,!1)},O=k=>{var V,_;((_=k.pointerId)!==null&&_!==void 0?_:(V=k.changedTouches)===null||V===void 0?void 0:V[0].identifier)===M.current&&(T(),t.setThumbDragging(n,!1),y(window,"mouseup",O,!1),y(window,"touchend",O,!1),y(window,"pointerup",O,!1))},I=t.getThumbPercent(n);(h||m==="rtl")&&(I=1-I);let W=f?{}:xt(S,U,{onMouseDown:k=>{k.button!==0||k.altKey||k.ctrlKey||k.metaKey||X()},onPointerDown:k=>{k.button!==0||k.altKey||k.ctrlKey||k.metaKey||X(k.pointerId)},onTouchStart:k=>{X(k.changedTouches[0].identifier)}});return H0(u,D,k=>{t.setThumbValue(n,k)}),{inputProps:xt(j,v,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[$["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[$["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:k=>{t.setThumbValue(n,parseFloat(k.target.value))}}),thumbProps:{...W,style:{position:"absolute",[h?"top":"left"]:`${I*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:b,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function Gz(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[l,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=X0(e,t),h=Hc({...e,value:l}),{isInvalid:m,validationErrors:g,validationDetails:y}=h.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:b,errorMessageProps:v}=lp({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=_o(e,{labelable:!0});const T={type:a,pattern:e.pattern};return H0(t,l,d),IA(e,h,t),x.useEffect(()=>{if(t.current instanceof ha(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:xt(D,n==="input"?T:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,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,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:b,errorMessageProps:v,isInvalid:m,validationErrors:g,validationDetails:y}}var LA={};LA={Empty:"فارغ"};var VA={};VA={Empty:"Изпразни"};var NA={};NA={Empty:"Prázdné"};var jA={};jA={Empty:"Tom"};var KA={};KA={Empty:"Leer"};var UA={};UA={Empty:"Άδειο"};var zA={};zA={Empty:"Empty"};var WA={};WA={Empty:"Vacío"};var qA={};qA={Empty:"Tühjenda"};var HA={};HA={Empty:"Tyhjä"};var GA={};GA={Empty:"Vide"};var YA={};YA={Empty:"ריק"};var ZA={};ZA={Empty:"Prazno"};var JA={};JA={Empty:"Üres"};var XA={};XA={Empty:"Vuoto"};var QA={};QA={Empty:"空"};var eP={};eP={Empty:"비어 있음"};var tP={};tP={Empty:"Tuščias"};var nP={};nP={Empty:"Tukšs"};var rP={};rP={Empty:"Tom"};var iP={};iP={Empty:"Leeg"};var oP={};oP={Empty:"Pusty"};var aP={};aP={Empty:"Vazio"};var sP={};sP={Empty:"Vazio"};var uP={};uP={Empty:"Gol"};var lP={};lP={Empty:"Не заполнено"};var cP={};cP={Empty:"Prázdne"};var dP={};dP={Empty:"Prazen"};var fP={};fP={Empty:"Prazno"};var hP={};hP={Empty:"Tomt"};var pP={};pP={Empty:"Boş"};var mP={};mP={Empty:"Пусто"};var gP={};gP={Empty:"空"};var yP={};yP={Empty:"空白"};var vP={};vP={"ar-AE":LA,"bg-BG":VA,"cs-CZ":NA,"da-DK":jA,"de-DE":KA,"el-GR":UA,"en-US":zA,"es-ES":WA,"et-EE":qA,"fi-FI":HA,"fr-FR":GA,"he-IL":YA,"hr-HR":ZA,"hu-HU":JA,"it-IT":XA,"ja-JP":QA,"ko-KR":eP,"lt-LT":tP,"lv-LV":nP,"nb-NO":rP,"nl-NL":iP,"pl-PL":oP,"pt-BR":aP,"pt-PT":sP,"ro-RO":uP,"ru-RU":lP,"sk-SK":cP,"sl-SI":dP,"sr-SP":fP,"sv-SE":hP,"tr-TR":pP,"uk-UA":mP,"zh-CN":gP,"zh-TW":yP};function Yz(e){return e&&e.__esModule?e.default:e}function Zz(e){const t=x.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:l,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:y}=e;const $=to(Yz(vP),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);x.useEffect(()=>()=>C(),[]);let b=M=>{if(!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey||u))switch(M.key){case"PageUp":if(f){M.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(M.preventDefault(),d==null||d());break;case"PageDown":if(m){M.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(M.preventDefault(),h==null||h());break;case"Home":g&&(M.preventDefault(),g==null||g());break;case"End":y&&(M.preventDefault(),y==null||y());break}},v=x.useRef(!1),D=()=>{v.current=!0},T=()=>{v.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");x.useEffect(()=>{v.current&&(Sz("assertive"),pu(E,"assertive"))},[E]);const A=fn(M=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&A(60)},M)}),R=fn(M=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&R(60)},M)});let S=M=>{M.preventDefault()},{addGlobalListener:U,removeAllGlobalListeners:j}=Uu();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":E,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":a||void 0,"aria-readonly":u||void 0,"aria-required":l||void 0,onKeyDown:b,onFocus:D,onBlur:T},incrementButtonProps:{onPressStart:()=>{A(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),j()},onFocus:D,onBlur:T},decrementButtonProps:{onPressStart:()=>{R(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),j()},onFocus:D,onBlur:T}}}var bP={};bP={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 $P={};$P={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 xP={};xP={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 wP={};wP={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 DP={};DP={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 CP={};CP={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 EP={};EP={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 SP={};SP={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 TP={};TP={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 AP={};AP={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 PP={};PP={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 _P={};_P={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 RP={};RP={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 OP={};OP={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 MP={};MP={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 FP={};FP={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 kP={};kP={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 BP={};BP={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 IP={};IP={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 LP={};LP={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 VP={};VP={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 NP={};NP={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 jP={};jP={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 KP={};KP={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 UP={};UP={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 zP={};zP={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 WP={};WP={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 qP={};qP={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 HP={};HP={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 GP={};GP={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 YP={};YP={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 ZP={};ZP={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 JP={};JP={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 XP={};XP={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 QP={};QP={"ar-AE":bP,"bg-BG":$P,"cs-CZ":xP,"da-DK":wP,"de-DE":DP,"el-GR":CP,"en-US":EP,"es-ES":SP,"et-EE":TP,"fi-FI":AP,"fr-FR":PP,"he-IL":_P,"hr-HR":RP,"hu-HU":OP,"it-IT":MP,"ja-JP":FP,"ko-KR":kP,"lt-LT":BP,"lv-LV":IP,"nb-NO":LP,"nl-NL":VP,"pl-PL":NP,"pt-BR":jP,"pt-PT":KP,"ro-RO":UP,"ru-RU":zP,"sk-SK":WP,"sl-SI":qP,"sr-SP":HP,"sv-SE":GP,"tr-TR":YP,"uk-UA":ZP,"zh-CN":JP,"zh-TW":XP};const Ui={top:"top",bottom:"top",left:"left",right:"left"},yh={top:"bottom",bottom:"top",left:"right",right:"left"},Jz={top:"left",left:"top"},Ab={top:"height",left:"width"},e6={width:"totalWidth",height:"totalHeight"},yf={};let Tn=typeof document<"u"?window.visualViewport:null;function Bw(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var l;let d=((l=Tn==null?void 0:Tn.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let y=document.documentElement;r=y.clientWidth,i=y.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=y.scrollTop||e.scrollTop,u.left=y.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=mu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(W0()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function Xz(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function Iw(e,t,n,r,i,o,a){var u;let l=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Ab[e]],f=r.scroll[Ui[e]]+o,h=d+r.scroll[Ui[e]]-o,m=t-l+a[e]-r[Ui[e]],g=t-l+n+a[e]-r[Ui[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function Qz(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 Lw(e){if(yf[e])return yf[e];let[t,n]=e.split(" "),r=Ui[t]||"right",i=Jz[r];Ui[n]||(n="center");let o=Ab[r],a=Ab[i];return yf[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},yf[e]}function wg(e,t,n,r,i,o,a,u,l,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:y,crossSize:$}=r,C={};var b;C[g]=(b=e[g])!==null&&b!==void 0?b:0;var v,D,T,E;h==="center"?C[g]+=(((v=e[$])!==null&&v!==void 0?v:0)-((D=n[$])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((T=e[$])!==null&&T!==void 0?T:0)-((E=n[$])!==null&&E!==void 0?E:0)),C[g]+=o;const A=e[g]-n[$]+l+d,R=e[g]+e[$]-l-d;if(C[g]=Tu(C[g],A,R),f===m){const S=u?a[y]:t[e6[y]];C[yh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[y]+i);return C}function eW(e,t,n,r,i,o,a,u){const l=r?n.height:t[e6.height];var d;let f=e.top!=null?n.top+e.top:n.top+(l-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,y,$,C;let b=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((y=t.scroll.top)!==null&&y!==void 0?y:0))-((($=i.top)!==null&&$!==void 0?$:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,b)}function Vw(e,t,n,r,i,o){let{placement:a,axis:u,size:l}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[yh[u]]-i);var h;return Math.max(0,e[l]+e[u]+e.scroll[u]-t[u]-n[u]-n[l]-((h=r[u])!==null&&h!==void 0?h:0)-r[yh[u]]-i)}function tW(e,t,n,r,i,o,a,u,l,d,f,h,m,g,y,$){let C=Lw(e),{size:b,crossAxis:v,crossSize:D,placement:T,crossPlacement:E}=C,A=wg(t,u,n,C,f,h,d,m,y,$),R=f,S=Vw(u,d,t,i,o+f,C);if(a&&r[b]>S){let le=Lw(`${yh[T]} ${E}`),$e=wg(t,u,n,le,f,h,d,m,y,$);Vw(u,d,t,i,o+f,le)>S&&(C=le,A=$e,R=f)}let U="bottom";C.axis==="top"?C.placement==="top"?U="top":C.placement==="bottom"&&(U="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?U="bottom":C.crossPlacement==="bottom"&&(U="top"));let j=Iw(v,A[v],n[D],u,l,o,d);A[v]+=j;let M=eW(A,u,d,m,i,o,n.height,U);g&&g<M&&(M=g),n.height=Math.min(n.height,M),A=wg(t,u,n,C,R,h,d,m,y,$),j=Iw(v,A[v],n[D],u,l,o,d),A[v]+=j;let X={},O=t[v]+.5*t[D]-A[v]-i[Ui[v]];const I=y/2+$;var W,k,V,_;const H=Ui[v]==="left"?((W=i.left)!==null&&W!==void 0?W:0)+((k=i.right)!==null&&k!==void 0?k:0):((V=i.top)!==null&&V!==void 0?V:0)+((_=i.bottom)!==null&&_!==void 0?_:0),z=n[D]-H-y/2-$,N=t[v]+y/2-(A[v]+i[Ui[v]]),ne=t[v]+t[D]-y/2-(A[v]+i[Ui[v]]),ie=Tu(O,N,ne);return X[v]=Tu(ie,I,z),{position:A,maxHeight:M,arrowOffsetLeft:X.left,arrowOffsetTop:X.top,placement:C.placement}}function nW(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:l,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?rW(r):document.documentElement,y=g===document.documentElement;const $=window.getComputedStyle(g).position;let C=!!$&&$!=="static",b=y?mu(n):Nw(n,g);if(!y){let{marginTop:X,marginLeft:O}=window.getComputedStyle(n);b.top+=parseInt(X,10)||0,b.left+=parseInt(O,10)||0}let v=mu(r),D=Qz(r);var T,E;v.width+=((T=D.left)!==null&&T!==void 0?T:0)+((E=D.right)!==null&&E!==void 0?E:0);var A,R;v.height+=((A=D.top)!==null&&A!==void 0?A:0)+((R=D.bottom)!==null&&R!==void 0?R:0);let S=Xz(i),U=Bw(u),j=Bw(g),M=u.tagName==="BODY"?mu(g):Nw(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(j.scroll.top=0,j.scroll.left=0),tW(t,b,v,S,D,o,a,U,j,M,l,d,C,f,h,m)}function mu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:o,scrollLeft:a,clientTop:u,clientLeft:l}=document.documentElement;return{top:t+o-u,left:n+a-l,width:r,height:i}}function Nw(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=mu(e);let i=mu(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 rW(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!jw(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!jw(t);)t=t.parentElement;return t||document.documentElement}function jw(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 t6=new WeakMap;function iW(e){let{triggerRef:t,isOpen:n,onClose:r}=e;x.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||t6.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function oW(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:l=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:y,maxHeight:$,arrowBoundaryOffset:C=0}=e,[b,v]=x.useState(null),D=[m,a,i.current,r.current,o.current,u,l,d,f,h,g,t,$,C,n],T=x.useRef(ln==null?void 0:ln.scale);x.useEffect(()=>{g&&(T.current=ln==null?void 0:ln.scale)},[g]);let E=x.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==T.current)return;let j=null;if(o.current&&o.current.contains(document.activeElement)){var M;let _=(M=document.activeElement)===null||M===void 0?void 0:M.getBoundingClientRect(),H=o.current.getBoundingClientRect();var X;if(j={type:"top",offset:((X=_==null?void 0:_.top)!==null&&X!==void 0?X:0)-H.top},j.offset>H.height/2){j.type="bottom";var O;j.offset=((O=_==null?void 0:_.bottom)!==null&&O!==void 0?O:0)-H.bottom}}let I=i.current;if(!$&&i.current){var W;I.style.top="0px",I.style.bottom="";var k;I.style.maxHeight=((k=(W=window.visualViewport)===null||W===void 0?void 0:W.height)!==null&&k!==void 0?k:window.innerHeight)+"px"}let V=nW({placement:sW(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:l,boundaryElement:d,offset:f,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:C});if(V.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(V.position).forEach(_=>I.style[_]=V.position[_]+"px"),I.style.maxHeight=V.maxHeight!=null?V.maxHeight+"px":"",j&&document.activeElement&&o.current){let _=document.activeElement.getBoundingClientRect(),H=o.current.getBoundingClientRect(),z=_[j.type]-H[j.type];o.current.scrollTop+=z-j.offset}v(V)}},D);Lt(E,D),aW(E),Wx({ref:i,onResize:E}),Wx({ref:r,onResize:E});let A=x.useRef(!1);Lt(()=>{let j,M=()=>{A.current=!0,clearTimeout(j),j=setTimeout(()=>{A.current=!1},500),E()},X=()=>{A.current&&M()};return ln==null||ln.addEventListener("resize",M),ln==null||ln.addEventListener("scroll",X),()=>{ln==null||ln.removeEventListener("resize",M),ln==null||ln.removeEventListener("scroll",X)}},[E]);let R=x.useCallback(()=>{A.current||y==null||y()},[y,A]);iW({triggerRef:r,isOpen:g,onClose:y&&R});var S,U;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...b==null?void 0:b.position,maxHeight:(S=b==null?void 0:b.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(U=b==null?void 0:b.placement)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b==null?void 0:b.arrowOffsetLeft,top:b==null?void 0:b.arrowOffsetTop}},updatePosition:E}}function aW(e){Lt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function sW(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const go=[];function uW(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;x.useEffect(()=>(i&&go.push(t),()=>{let y=go.indexOf(t);y>=0&&go.splice(y,1)}),[i,t]);let l=()=>{go[go.length-1]===t&&n&&n()},d=y=>{(!u||u(y.target))&&go[go.length-1]===t&&(y.stopPropagation(),y.preventDefault())},f=y=>{(!u||u(y.target))&&(go[go.length-1]===t&&(y.stopPropagation(),y.preventDefault()),l())},h=y=>{y.key==="Escape"&&!a&&!y.nativeEvent.isComposing&&(y.stopPropagation(),y.preventDefault(),l())};zK({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=zu({isDisabled:!r,onBlurWithin:y=>{!y.relatedTarget||QK(y.relatedTarget)||(!u||u(y.relatedTarget))&&(n==null||n())}}),g=y=>{y.target===y.currentTarget&&y.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function lW(e,t,n){let{type:r}=e,{isOpen:i}=t;x.useEffect(()=>{n&&n.current&&t6.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Cr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const Dg=typeof document<"u"&&window.visualViewport,cW=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let vf=0,Cg;function dW(e={}){let{isDisabled:t}=e;Lt(()=>{if(!t)return vf++,vf===1&&(Lc()?Cg=hW():Cg=fW()),()=>{vf--,vf===0&&Cg()}},[t])}function fW(){return ss(eu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),eu(document.documentElement,"overflow","hidden"))}function hW(){let e,t,n=d=>{e=tp(d.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=eu(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=()=>{t&&t()},o=d=>{let f=d.target;pW(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Dg&&(Dg.height<window.innerHeight?requestAnimationFrame(()=>{Kw(f)}):Dg.addEventListener("resize",()=>Kw(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=ss(Rl(window,"scroll",d),eu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),eu(document.documentElement,"overflow","hidden"),eu(document.body,"marginTop",`-${h}px`),()=>{window.scrollTo(f,h)}),window.scrollTo(0,0)},l=ss(Rl(document,"touchstart",n,{passive:!1,capture:!0}),Rl(document,"touchmove",r,{passive:!1,capture:!0}),Rl(document,"touchend",i,{passive:!1,capture:!0}),Rl(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),l()}}function eu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Rl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Kw(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=tp(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 pW(e){return e instanceof HTMLInputElement&&!cW.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Ol=new WeakMap,Yr=[];function n6(e,t=document.body){let n=new Set(e),r=new Set,i=l=>{for(let m of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(l);if(h===NodeFilter.FILTER_ACCEPT&&o(l),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=l=>{var d;let f=(d=Ol.get(l))!==null&&d!==void 0?d:0;l.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&l.setAttribute("aria-hidden","true"),r.add(l),Ol.set(l,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(l=>{for(let d of l)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let l of r){let d=Ol.get(l);d!=null&&(d===1?(l.removeAttribute("aria-hidden"),Ol.delete(l)):Ol.set(l,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function mW(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:l,underlayProps:d}=uW({isOpen:t.isOpen&&!u["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a},r),{overlayProps:f,arrowProps:h,placement:m}=oW({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:null});return dW({isDisabled:i||!t.isOpen}),Lt(()=>{if(t.isOpen&&!i&&r.current)return n6([r.current])},[i,t.isOpen,r]),{popoverProps:xt(l,f),arrowProps:h,underlayProps:d,placement:m}}const gW=x.createContext({});function yW(){var e;return(e=x.useContext(gW))!==null&&e!==void 0?e:{}}const r6=x.createContext(null);function vW(e){let t=U0(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=x.useState(!1),a=x.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=yW();if(!e.portalContainer&&u&&(n=u()),!n)return null;let l=e.children;return e.disableFocusManagement||(l=x.createElement(GK,{restoreFocus:!0,contain:i&&!r},l)),l=x.createElement(r6.Provider,{value:a},x.createElement(BK,null,l)),ua.createPortal(l,n)}function bW(){let e=x.useContext(r6),t=e==null?void 0:e.setContain;Lt(()=>{t==null||t(!0)},[t])}const cp=new WeakMap;function $W(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function i6(e,t){let n=cp.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${$W(t)}`}function Pb(e){return Bf()?e.altKey:e.ctrlKey}const xW=1e3;function wW(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=x.useRef({search:"",timeout:void 0}).current,o=a=>{let u=DW(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let l=t.getKeyForSearch(i.search,n.focusedKey);l==null&&(l=t.getKeyForSearch(i.search)),l!=null&&(n.setFocusedKey(l),r&&r(l))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},xW)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function DW(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function o6(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:l=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:y="action"}=e,{direction:$}=Qn(),C=ep(),b=O=>{var I;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((I=r.current)===null||I===void 0)&&I.contains(O.target)))return;const W=(Y,he)=>{if(Y!=null){if(t.isLink(Y)&&y==="selection"&&l&&!Pb(O)){var ye;ua.flushSync(()=>{t.setFocusedKey(Y,he)});let fe=(ye=g.current)===null||ye===void 0?void 0:ye.querySelector(`[data-key="${CSS.escape(Y.toString())}"]`),ae=t.getItemProps(Y);fe&&C.open(fe,O,ae.href,ae.routerOptions);return}if(t.setFocusedKey(Y,he),t.isLink(Y)&&y==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):l&&!Pb(O)&&t.replaceSelection(Y)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var k,V,_;let Y=t.focusedKey!=null?(k=n.getKeyBelow)===null||k===void 0?void 0:k.call(n,t.focusedKey):(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n);Y==null&&o&&(Y=(_=n.getFirstKey)===null||_===void 0?void 0:_.call(n,t.focusedKey)),Y!=null&&(O.preventDefault(),W(Y))}break;case"ArrowUp":if(n.getKeyAbove){var H,z,N;let Y=t.focusedKey!=null?(H=n.getKeyAbove)===null||H===void 0?void 0:H.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n);Y==null&&o&&(Y=(N=n.getLastKey)===null||N===void 0?void 0:N.call(n,t.focusedKey)),Y!=null&&(O.preventDefault(),W(Y))}break;case"ArrowLeft":if(n.getKeyLeftOf){var ne,ie,le;let Y=t.focusedKey!=null?(ne=n.getKeyLeftOf)===null||ne===void 0?void 0:ne.call(n,t.focusedKey):null;Y==null&&o&&(Y=$==="rtl"?(ie=n.getFirstKey)===null||ie===void 0?void 0:ie.call(n,t.focusedKey):(le=n.getLastKey)===null||le===void 0?void 0:le.call(n,t.focusedKey)),Y!=null&&(O.preventDefault(),W(Y,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var $e,De,Ce;let Y=t.focusedKey!=null?($e=n.getKeyRightOf)===null||$e===void 0?void 0:$e.call(n,t.focusedKey):null;Y==null&&o&&(Y=$==="rtl"?(De=n.getLastKey)===null||De===void 0?void 0:De.call(n,t.focusedKey):(Ce=n.getFirstKey)===null||Ce===void 0?void 0:Ce.call(n,t.focusedKey)),Y!=null&&(O.preventDefault(),W(Y,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Y=n.getFirstKey(t.focusedKey,Js(O));t.setFocusedKey(Y),Y!=null&&(Js(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):l&&t.replaceSelection(Y))}break;case"End":if(n.getLastKey){if(t.focusedKey===null&&O.shiftKey)return;O.preventDefault();let Y=n.getLastKey(t.focusedKey,Js(O));t.setFocusedKey(Y),Y!=null&&(Js(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):l&&t.replaceSelection(Y))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Y=n.getKeyPageBelow(t.focusedKey);Y!=null&&(O.preventDefault(),W(Y))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Y=n.getKeyPageAbove(t.focusedKey);Y!=null&&(O.preventDefault(),W(Y))}break;case"a":Js(O)&&t.selectionMode==="multiple"&&u!==!0&&(O.preventDefault(),t.selectAll());break;case"Escape":!a&&t.selectedKeys.size!==0&&(O.stopPropagation(),O.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(O.shiftKey)r.current.focus();else{let Y=wr(r.current,{tabbable:!0}),he,ye;do ye=Y.lastChild(),ye&&(he=ye);while(ye);he&&!he.contains(document.activeElement)&&vi(he)}break}}},v=x.useRef({top:0,left:0});ji(g,"scroll",m?void 0:()=>{var O,I,W,k;v.current={top:(W=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&W!==void 0?W:0,left:(k=(I=g.current)===null||I===void 0?void 0:I.scrollLeft)!==null&&k!==void 0?k:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var I,W;let _=z=>{z!=null&&(t.setFocusedKey(z),l&&t.replaceSelection(z))},H=O.relatedTarget;var k,V;H&&O.currentTarget.compareDocumentPosition(H)&Node.DOCUMENT_POSITION_FOLLOWING?_((k=t.lastSelectedKey)!==null&&k!==void 0?k:(I=n.getLastKey)===null||I===void 0?void 0:I.call(n)):_((V=t.firstSelectedKey)!==null&&V!==void 0?V:(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n))}else!m&&g.current&&(g.current.scrollTop=v.current.top,g.current.scrollLeft=v.current.left);if(t.focusedKey!=null&&g.current){let _=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);_&&(_.contains(document.activeElement)||vi(_),mc()==="keyboard"&&sh(_,{containingElement:r.current}))}}},T=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)},E=x.useRef(!1);ji(r,SK,f?O=>{let{detail:I}=O;O.stopPropagation(),t.setFocused(!0),(I==null?void 0:I.focusStrategy)==="first"&&(E.current=!0)}:void 0);let A=fn(()=>{var O,I;let W=(I=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&I!==void 0?I:null;if(W==null){var k;(k=r.current)===null||k===void 0||k.dispatchEvent(new CustomEvent(nT,{cancelable:!0,bubbles:!0})),t.collection.size>0&&(E.current=!1)}else t.setFocusedKey(W),E.current=!1});zx(()=>{E.current&&A()},[t.collection,A]);let R=fn(()=>{t.collection.size>0&&(E.current=!1)});zx(()=>{R()},[t.focusedKey,R]),ji(r,EK,f?O=>{O.stopPropagation(),t.setFocused(!1),t.setFocusedKey(null)}:void 0);const S=x.useRef(i);x.useEffect(()=>{if(S.current){var O,I;let V=null;var W;i==="first"&&(V=(W=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&W!==void 0?W:null);var k;i==="last"&&(V=(k=(I=n.getLastKey)===null||I===void 0?void 0:I.call(n))!==null&&k!==void 0?k:null);let _=t.selectedKeys;if(_.size){for(let H of _)if(t.canSelectItem(H)){V=H;break}}t.setFocused(!0),t.setFocusedKey(V),V==null&&!f&&r.current&&cs(r.current)}},[]);let U=x.useRef(t.focusedKey);x.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==U.current||S.current)&&g.current&&r.current){let O=mc(),I=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!I)return;(O==="keyboard"||S.current)&&(eT(g.current,I),O!=="virtual"&&sh(I,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&U.current!=null&&r.current&&cs(r.current),U.current=t.focusedKey,S.current=!1}),ji(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let j={onKeyDown:b,onFocus:D,onBlur:T,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:M}=wW({keyboardDelegate:n,selectionManager:t});d||(j=xt(M,j));let X;return f?X=-1:X=t.focusedKey==null?0:-1,{collectionProps:{...j,tabIndex:X}}}function CW(e){let{id:t,selectionManager:n,key:r,ref:i,shouldSelectOnPressUp:o,shouldUseVirtualFocus:a,focus:u,isDisabled:l,onAction:d,allowsDifferentPressOrigin:f,linkBehavior:h="action"}=e,m=ep();t=Cr(t);let g=_=>{if(_.pointerType==="keyboard"&&Pb(_))n.toggleSelection(r);else{if(n.selectionMode==="none")return;if(n.isLink(r)){if(h==="selection"&&i.current){let H=n.getItemProps(r);m.open(i.current,_,H.href,H.routerOptions),n.setSelectedKeys(n.selectedKeys);return}else if(h==="override"||h==="none")return}n.selectionMode==="single"?n.isSelected(r)&&!n.disallowEmptySelection?n.toggleSelection(r):n.replaceSelection(r):_&&_.shiftKey?n.extendSelection(r):n.selectionBehavior==="toggle"||_&&(Js(_)||_.pointerType==="touch"||_.pointerType==="virtual")?n.toggleSelection(r):n.replaceSelection(r)}};x.useEffect(()=>{if(r===n.focusedKey&&n.isFocused)if(!a)u?u():document.activeElement!==i.current&&i.current&&cs(i.current);else{var H;let z=new CustomEvent(nT,{cancelable:!0,bubbles:!0});(H=i.current)===null||H===void 0||H.dispatchEvent(z)}},[i,r,n.focusedKey,n.childFocusStrategy,n.isFocused,a]),l=l||n.isDisabled(r);let y={};!a&&!l?y={tabIndex:r===n.focusedKey?0:-1,onFocus(_){_.target===i.current&&n.setFocusedKey(r)}}:l&&(y.onMouseDown=_=>{_.preventDefault()});let $=n.isLink(r)&&h==="override",C=n.isLink(r)&&h!=="selection"&&h!=="none",b=!l&&n.canSelectItem(r)&&!$,v=(d||C)&&!l,D=v&&(n.selectionBehavior==="replace"?!b:!b||n.isEmpty),T=v&&b&&n.selectionBehavior==="replace",E=D||T,A=x.useRef(null),R=E&&b,S=x.useRef(!1),U=x.useRef(!1),j=_=>{if(d&&d(),C&&i.current){let H=n.getItemProps(r);m.open(i.current,_,H.href,H.routerOptions)}},M={};o?(M.onPressStart=_=>{A.current=_.pointerType,S.current=R,_.pointerType==="keyboard"&&(!E||zw())&&g(_)},f?(M.onPressUp=D?void 0:_=>{_.pointerType==="mouse"&&b&&g(_)},M.onPress=D?j:_=>{_.pointerType!=="keyboard"&&_.pointerType!=="mouse"&&b&&g(_)}):M.onPress=_=>{if(D||T&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!Uw())return;j(_)}else _.pointerType!=="keyboard"&&b&&g(_)}):(M.onPressStart=_=>{A.current=_.pointerType,S.current=R,U.current=D,b&&(_.pointerType==="mouse"&&!D||_.pointerType==="keyboard"&&(!v||zw()))&&g(_)},M.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&E&&Uw()||_.pointerType==="mouse"&&U.current)&&(E?j(_):b&&g(_))}),y["data-key"]=r,M.preventFocusOnPress=a;let{pressProps:X,isPressed:O}=jc(M),I=T?_=>{A.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),j(_))}:void 0,{longPressProps:W}=pT({isDisabled:!R,onLongPress(_){_.pointerType==="touch"&&(g(_),n.setSelectionBehavior("toggle"))}}),k=_=>{A.current==="touch"&&S.current&&_.preventDefault()},V=n.isLink(r)?_=>{us.isOpening||_.preventDefault()}:void 0;return{itemProps:xt(y,b||D?X:{},R?W:{},{onDoubleClick:I,onDragStartCapture:k,onClick:V,id:t}),isPressed:O,isSelected:n.isSelected(r),isFocused:n.isFocused&&n.focusedKey===r,isDisabled:l,allowsSelection:b,hasAction:E}}function Uw(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function zw(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Ww{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 a6{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!pc(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&&!pc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Ww(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 Ww(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function EW(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=JT({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,d=x.useMemo(()=>o||new a6({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,l]),{collectionProps:f}=o6({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function SW(e,t,n){let r=_o(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=EW({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:o}),{focusWithinProps:u}=zu({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Cr(e.id);cp.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=up({...e,id:l,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function s6(e){return null}s6.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:TW(t),*childNodes(){if(r)for(let l of r)yield{type:"item",value:l};else if(i){let l=[];x.Children.forEach(o,d=>{l.push({type:"item",element:d})}),yield*l}}}};function TW(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&x.Children.count(e.children)>0)}let AW=s6;class PW{build(t,n){return this.context=n,qw(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(x.isValidElement(n)&&n.type===x.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=[];x.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let l of u)o++,yield l}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(x.isValidElement(t.element)&&t.element.type===x.Fragment){let C=[];x.Children.forEach(t.element.props.children,v=>{C.push(v)});var o;let b=(o=t.index)!==null&&o!==void 0?o:0;for(const v of C)yield*this.getFullNode({element:v,index:b++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if(x.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let T=a.type;throw new Error(`Unknown element <${T}> in collection.`)}let b=C.getCollectionNode(a.props,this.context);var u;let v=(u=t.index)!==null&&u!==void 0?u:0,D=b.next();for(;!D.done&&D.value;){let T=D.value;t.index=v;var l;let E=(l=T.key)!==null&&l!==void 0?l:null;E==null&&(E=T.element?null:this.getKey(a,t,n,r));let R=[...this.getFullNode({...T,key:E,index:v,wrapper:_W(t.wrapper,T.wrapper)},this.getChildState(n,T),r?`${r}${a.key}`:a.key,i)];for(let S of R){var d,f;S.value=(f=(d=T.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${Eg(S.type)}> in <${Eg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${Eg(t.type)}> is supported.`);v++,yield S}D=b.next(R)}return}if(t.key==null||t.type==null)return;let m=this;var g,y;let $={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(y=t.textValue)!==null&&y!==void 0?y:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:qw(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let b of t.childNodes()){b.key!=null&&(b.key=`${$.key}${b.key}`);let v=m.getFullNode({...b,index:C},m.getChildState(n,b),$.key,$);for(let D of v)C++,yield D}})};yield $}constructor(){this.cache=new WeakMap}}function qw(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 _W(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Eg(e){return e[0].toUpperCase()+e.slice(1)}function RW(e,t,n){let r=x.useMemo(()=>new PW,[]),{children:i,items:o,collection:a}=e;return x.useMemo(()=>{if(a)return a;let l=r.build({children:i,items:o},n);return t(l)},[r,i,o,a,n,t])}function dp(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function OW(e){return MW(e)}function MW(e,t){for(let n of e)return n}function Sg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Hw(e,t),t],i=[...Hw(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function Hw(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 Gw=new WeakMap;function u6(e){let t=Gw.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(dp(o,e)):n++};return r(e),Gw.set(e,n),n}function FW(e,t,n){var r,i;let{key:o}=e,a=cp.get(t);var u;let l=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let y=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var $;let C=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var b;let v=(b=e.isVirtualized)!==null&&b!==void 0?b:a==null?void 0:a.isVirtualized,D=Eu(),T=Eu(),E={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};To()&&W0()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=T);let A=t.collection.getItem(o);if(v){let V=Number(A==null?void 0:A.index);E["aria-posinset"]=Number.isNaN(V)?void 0:V+1,E["aria-setsize"]=u6(t.collection)}let R=a!=null&&a.onAction?()=>{var V;return a==null||(V=a.onAction)===null||V===void 0?void 0:V.call(a,o)}:void 0,S=i6(t,o),{itemProps:U,isPressed:j,isFocused:M,hasAction:X,allowsSelection:O}=CW({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&y,isVirtualized:v,shouldUseVirtualFocus:C,isDisabled:l,onAction:R||!(A==null||(r=A.props)===null||r===void 0)&&r.onAction?ss(A==null||(i=A.props)===null||i===void 0?void 0:i.onAction,R):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:S}),{hoverProps:I}=UK({isDisabled:l||!y,onHoverStart(){Xx()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=_o(A==null?void 0:A.props);delete W.id;let k=$K(A==null?void 0:A.props);return{optionProps:{...E,...xt(W,U,I,k),id:S},labelProps:{id:D},descriptionProps:{id:T},isFocused:M,isFocusVisible:M&&Xx(),isSelected:f,isDisabled:l,isPressed:j,allowsSelection:O,hasAction:X}}var l6={};l6={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var c6={};c6={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var d6={};d6={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var f6={};f6={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var h6={};h6={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var p6={};p6={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var m6={};m6={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var g6={};g6={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var y6={};y6={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var v6={};v6={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var b6={};b6={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var $6={};$6={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var x6={};x6={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var w6={};w6={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var D6={};D6={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var C6={};C6={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var E6={};E6={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var S6={};S6={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var T6={};T6={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var A6={};A6={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var P6={};P6={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var _6={};_6={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var R6={};R6={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var O6={};O6={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var M6={};M6={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var F6={};F6={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var k6={};k6={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var B6={};B6={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var I6={};I6={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var L6={};L6={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var V6={};V6={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var N6={};N6={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var j6={};j6={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var K6={};K6={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var U6={};U6={"ar-AE":l6,"bg-BG":c6,"cs-CZ":d6,"da-DK":f6,"de-DE":h6,"el-GR":p6,"en-US":m6,"es-ES":g6,"et-EE":y6,"fi-FI":v6,"fr-FR":b6,"he-IL":$6,"hr-HR":x6,"hu-HU":w6,"it-IT":D6,"ja-JP":C6,"ko-KR":E6,"lt-LT":S6,"lv-LV":T6,"nb-NO":A6,"nl-NL":P6,"pl-PL":_6,"pt-BR":R6,"pt-PT":O6,"ro-RO":M6,"ru-RU":F6,"sk-SK":k6,"sl-SI":B6,"sr-SP":I6,"sv-SE":L6,"tr-TR":V6,"uk-UA":N6,"zh-CN":j6,"zh-TW":K6};function kW(e){return e&&e.__esModule?e.default:e}function BW(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Cr(),{triggerProps:u,overlayProps:l}=lW({type:r},t,n),d=g=>{if(!i&&!(o==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(o==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},f=to(kW(U6),"@react-aria/menu"),{longPressProps:h}=pT({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function IW(e){return e&&e.__esModule?e.default:e}function LW(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:l,isReadOnly:d,isDisabled:f}=e,h=x.useRef(null);n=n??h;let m=to(IW(QP),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:y}=BW({type:"listbox",isDisabled:f||d},t,n);cp.set(t,{id:y.id});let{collection:$}=t,{disabledKeys:C}=t.selectionManager,b=x.useMemo(()=>a||new a6({collection:$,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,$,C,o]),{collectionProps:v}=o6({selectionManager:t.selectionManager,keyboardDelegate:b,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),D=ep(),T=fe=>{if(!fe.nativeEvent.isComposing)switch(fe.key){case"Enter":case"Tab":if(t.isOpen&&fe.key==="Enter"&&fe.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(fe.key==="Enter"&&ae instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(ae,fe,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&fe.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=fe=>{var ae;let Fe=(n==null?void 0:n.current)&&n.current===fe.relatedTarget,et=(ae=r.current)===null||ae===void 0?void 0:ae.contains(fe.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(fe),t.setFocused(!1))},A=fe=>{t.isFocused||(e.onFocus&&e.onFocus(fe),t.setFocused(!0))},{isInvalid:R,validationErrors:S,validationDetails:U}=t.displayValidation,{labelProps:j,inputProps:M,descriptionProps:X,errorMessageProps:O}=Gz({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:ss(t.isOpen&&v.onKeyDown,T,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:A,autoComplete:"off",validate:void 0,[Pu]:t},i),I=fe=>{if(fe.pointerType==="touch"){var ae;(ae=i.current)===null||ae===void 0||ae.focus(),t.toggle(null,"manual")}},W=fe=>{if(fe.pointerType!=="touch"){var ae;(ae=i.current)===null||ae===void 0||ae.focus(),t.toggle(fe.pointerType==="keyboard"||fe.pointerType==="virtual"?"first":null,"manual")}},k=Su({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),V=Su({id:y.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||j.id}),_=x.useRef(0),H=fe=>{if(f||d)return;if(fe.timeStamp-_.current<500){var ae;fe.preventDefault(),(ae=i.current)===null||ae===void 0||ae.focus();return}let Fe=fe.target.getBoundingClientRect(),et=fe.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;fe.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),_.current=fe.timeStamp}},z=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var N;let ne=(N=z==null?void 0:z.parentKey)!==null&&N!==void 0?N:null;var ie;let le=(ie=t.selectionManager.focusedKey)!==null&&ie!==void 0?ie:null,$e=x.useRef(ne),De=x.useRef(le);x.useEffect(()=>{if(Bf()&&z!=null&&le!=null&&le!==De.current){let ae=t.selectionManager.isSelected(le),Fe=ne!=null?t.collection.getItem(ne):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var fe;let dt=m.format("focusAnnouncement",{isGroupChange:(fe=Fe&&ne!==$e.current)!==null&&fe!==void 0?fe:!1,groupTitle:et,groupCount:Fe?[...dp(Fe,t.collection)].length:0,optionText:z["aria-label"]||z.textValue||"",isSelected:ae});pu(dt)}$e.current=ne,De.current=le});let Ce=u6(t.collection),Y=x.useRef(Ce),he=x.useRef(t.isOpen);x.useEffect(()=>{let fe=t.isOpen!==he.current&&(t.selectionManager.focusedKey==null||Bf());if(t.isOpen&&(fe||Ce!==Y.current)){let ae=m.format("countAnnouncement",{optionCount:Ce});pu(ae)}Y.current=Ce,he.current=t.isOpen});let ye=x.useRef(t.selectedKey);return x.useEffect(()=>{if(Bf()&&t.isFocused&&t.selectedItem&&t.selectedKey!==ye.current){let fe=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ae=m.format("selectedAnnouncement",{optionText:fe});pu(ae)}ye.current=t.selectedKey}),x.useEffect(()=>{if(t.isOpen)return n6([i.current,r.current].filter(fe=>fe!=null))},[t.isOpen,i,r]),{labelProps:j,buttonProps:{...g,...k,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:I,onPressStart:W,isDisabled:f||d},inputProps:xt(M,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?y.id:void 0,"aria-autocomplete":"list","aria-activedescendant":z?i6(t,z.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(y,V,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:X,errorMessageProps:O,isInvalid:R,validationErrors:S,validationDetails:U}}var z6={};z6={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 W6={};W6={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 q6={};q6={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 H6={};H6={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 G6={};G6={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 Y6={};Y6={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 Z6={};Z6={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 J6={};J6={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 X6={};X6={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 Q6={};Q6={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 e_={};e_={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 t_={};t_={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 n_={};n_={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 r_={};r_={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 i_={};i_={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 o_={};o_={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 a_={};a_={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 s_={};s_={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 u_={};u_={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 l_={};l_={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 c_={};c_={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 d_={};d_={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 f_={};f_={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 h_={};h_={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 p_={};p_={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 m_={};m_={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 g_={};g_={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 y_={};y_={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 v_={};v_={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 b_={};b_={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 $_={};$_={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 x_={};x_={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 w_={};w_={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 D_={};D_={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 Gc={};Gc={"ar-AE":z6,"bg-BG":W6,"cs-CZ":q6,"da-DK":H6,"de-DE":G6,"el-GR":Y6,"en-US":Z6,"es-ES":J6,"et-EE":X6,"fi-FI":Q6,"fr-FR":e_,"he-IL":t_,"hr-HR":n_,"hu-HU":r_,"it-IT":i_,"ja-JP":o_,"ko-KR":a_,"lt-LT":s_,"lv-LV":u_,"nb-NO":l_,"nl-NL":c_,"pl-PL":d_,"pt-BR":f_,"pt-PT":h_,"ro-RO":p_,"ru-RU":m_,"sk-SK":g_,"sl-SI":y_,"sr-SP":v_,"sv-SE":b_,"tr-TR":$_,"uk-UA":x_,"zh-CN":w_,"zh-TW":D_};function f1(e,t,n){let{direction:r}=Qn(),i=x.useMemo(()=>rp(t),[t]),o=l=>{if(l.currentTarget.contains(l.target)&&(l.altKey&&(l.key==="ArrowDown"||l.key==="ArrowUp")&&"setOpen"in e&&(l.preventDefault(),l.stopPropagation(),e.setOpen(!0)),!n))switch(l.key){case"ArrowLeft":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":l.preventDefault(),l.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var l;if(!t.current)return;let d=(l=window.event)===null||l===void 0?void 0:l.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=jc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(l){l.pointerType==="mouse"&&a()},onPress(l){l.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function VW(e){return e&&e.__esModule?e.default:e}const C_=new WeakMap,oc="__role_"+Date.now(),E_="__focusManager_"+Date.now();function S_(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:l,descriptionProps:d,errorMessageProps:f}=lp({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=x.useRef(null),{focusWithinProps:m}=zu({...e,onFocusWithin(j){var M;h.current=t.value,(M=e.onFocus)===null||M===void 0||M.call(e,j)},onBlurWithin:j=>{var M;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(M=e.onBlur)===null||M===void 0||M.call(e,j)},onFocusWithinChange:e.onFocusChange}),g=to(VW(Gc),"@react-aria/datepicker"),y=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(y,{[$]:t.formatValue({month:"long"})}):"",b=Vc(C),v=e[oc]==="presentation"?l["aria-describedby"]:[b["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[E_],T=x.useMemo(()=>D||rp(n),[D,n]),E=f1(t,n,e[oc]==="presentation");C_.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:T});let A=x.useRef(e.autoFocus),R;e[oc]==="presentation"?R={role:"presentation"}:R=xt(l,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":v}),x.useEffect(()=>{A.current&&T.focusFirst(),A.current=!1},[T]),H0(e.inputRef,t.value,t.setValue),IA({...e,focus(){T.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let U=_o(e);return{labelProps:{...u,onClick:()=>{T.focusFirst()}},fieldProps:xt(U,R,E,m,{onKeyDown(j){e.onKeyDown&&e.onKeyDown(j)},onKeyUp(j){e.onKeyUp&&e.onKeyUp(j)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function NW(e,t,n){var r;let i=S_(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function jW(e){return e&&e.__esModule?e.default:e}function KW(e,t,n){let r=Cr(),i=Cr(),o=Cr(),a=to(jW(Gc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=lp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),y=f1(t,n),$=h["aria-labelledby"]||h.id,{locale:C}=Qn(),b=t.formatValue(C,{month:"long"}),v=b?a.format("selectedDateDescription",{date:b}):"",D=Vc(v),T=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=_o(e),A=x.useMemo(()=>rp(n),[n]),{focusWithinProps:R}=zu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,y,h,D,R,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":T,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{A.focusFirst()}},fieldProps:{...h,id:o,[oc]:"presentation","aria-describedby":T,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,[Pu]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:m,errorMessageProps:g,buttonProps:{...D,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${$}`,"aria-describedby":T,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function UW(e){return e&&e.__esModule?e.default:e}function zW(){let{locale:e}=Qn(),t=$T(UW(Gc),"@react-aria/datepicker");return x.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new WW(e,t)}},[e,t])}class WW{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function qW(e,t,n){let r=x.useRef(""),{locale:i}=Qn(),o=zW(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:l,focusManager:d}=C_.get(t),f=e.isPlaceholder?"":e.text,h=x.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Ki({month:"long",timeZone:h.timeZone}),g=Ki({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let _=m.format(t.dateValue);f=_!==f?`${f} – ${_}`:_}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:y}=Zz({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=x.useMemo(()=>new ZT(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let _=e.text.slice(0,-1),H=$.parse(_);_=H===0?"":_,_.length===0||H===0?t.clearSegment(e.type):t.setSegment(e.type,H),r.current=_}else e.type==="dayPeriod"&&t.clearSegment(e.type)},b=_=>{if(_.key==="a"&&(To()?_.metaKey:_.ctrlKey)&&_.preventDefault(),!(_.ctrlKey||_.metaKey||_.shiftKey||_.altKey))switch(_.key){case"Backspace":case"Delete":_.preventDefault(),_.stopPropagation(),C();break}},{startsWith:v}=XT({sensitivity:"base"}),D=Ki({hour:"numeric",hour12:!0}),T=x.useMemo(()=>{let _=new Date;return _.setHours(0),D.formatToParts(_).find(H=>H.type==="dayPeriod").value},[D]),E=x.useMemo(()=>{let _=new Date;return _.setHours(12),D.formatToParts(_).find(H=>H.type==="dayPeriod").value},[D]),A=Ki({year:"numeric",era:"narrow",timeZone:"UTC"}),R=x.useMemo(()=>{if(e.type!=="era")return[];let _=Qt(new pn(1,1,1),t.calendar),H=t.calendar.getEras().map(N=>{let ne=_.set({year:1,month:1,day:1,era:N}).toDate("UTC"),le=A.formatToParts(ne).find($e=>$e.type==="era").value;return{era:N,formatted:le}}),z=HW(H.map(N=>N.formatted));if(z)for(let N of H)N.formatted=N.formatted.slice(z);return H},[A,t.calendar,e.type]),S=_=>{if(t.isDisabled||t.isReadOnly)return;let H=r.current+_;switch(e.type){case"dayPeriod":if(v(T,_))t.setSegment("dayPeriod",0);else if(v(E,_))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let z=R.find(N=>v(N.formatted,_));z&&(t.setSegment("era",z.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(H))return;let z=$.parse(H),N=z,ne=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":z>11&&(N=$.parse(_));break;case"h12":ne=!1,z>12&&(N=$.parse(_));break}e.value!==void 0&&e.value>=12&&z>1&&(z+=12)}else e.maxValue!==void 0&&z>e.maxValue&&(N=$.parse(_));if(isNaN(z))return;let ie=N!==0||ne;ie&&t.setSegment(e.type,N),e.maxValue!==void 0&&(+(z+"0")>e.maxValue||H.length>=String(e.maxValue).length)?(r.current="",ie&&d.focusNext()):r.current=H;break}}},U=()=>{r.current="",n.current&&sh(n.current,{containingElement:tp(n.current)});let _=window.getSelection();_==null||_.collapse(n.current)},j=x.useRef(typeof document<"u"?document:null);ji(j,"selectionchange",()=>{var _;let H=window.getSelection();H!=null&&H.anchorNode&&(!((_=n.current)===null||_===void 0)&&_.contains(H==null?void 0:H.anchorNode))&&H.collapse(n.current)});let M=x.useRef("");ji(n,"beforeinput",_=>{if(n.current)switch(_.preventDefault(),_.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":M.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:_.data!=null&&S(_.data);break}}),ji(n,"input",_=>{let{inputType:H,data:z}=_;switch(H){case"insertCompositionText":n.current&&(n.current.textContent=M.current),z!=null&&(v(T,z)||v(E,z))&&S(z);break}}),Lt(()=>{let _=n.current;return()=>{document.activeElement===_&&(d.focusPrevious()||d.focusNext())}},[n,d]);let X=Lc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},O=x.useMemo(()=>t.segments.find(_=>_.isEditable),[t.segments]);e!==O&&!t.isInvalid&&(l=void 0);let I=Cr(),W=!t.isDisabled&&!t.isReadOnly&&e.isEditable,k=e.type==="literal"?"":o.of(e.type),V=Su({"aria-label":`${k}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(y,V,{id:I,...X,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":l,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:W,suppressContentEditableWarning:W,spellCheck:W?"false":void 0,autoCorrect:W?"off":void 0,[parseInt(x.version,10)>=17?"enterKeyHint":"enterkeyhint"]:W?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!W?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:b,onFocus:U,style:{caretColor:"transparent"},onPointerDown(_){_.stopPropagation()},onMouseDown(_){_.stopPropagation()}})}}function HW(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 GW(e){return e&&e.__esModule?e.default:e}function YW(e,t,n){var r,i,o;let a=to(GW(Gc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:l,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=lp({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||l}),y=h["aria-labelledby"]||h.id,{locale:$}=Qn(),C=t.formatValue($,{month:"long"}),b=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",v=Vc(b),D={"aria-label":a.format("startDate"),"aria-labelledby":y},T={"aria-label":a.format("endDate"),"aria-labelledby":y},E=Cr(),A=Cr(),R=f1(t,n),S=[v["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,U=x.useMemo(()=>rp(n,{accept:V=>V.id!==E}),[n,E]),j={[E_]:U,[oc]:"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},M=_o(e),{focusWithinProps:X}=zu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),O=x.useRef(Ka),I=x.useRef(Ka);var W,k;return{groupProps:xt(M,R,h,v,X,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(V){t.isOpen||e.onKeyDown&&e.onKeyDown(V)},onKeyUp(V){t.isOpen||e.onKeyUp&&e.onKeyUp(V)}}),labelProps:{...f,onClick:()=>{U.focusFirst()}},buttonProps:{...v,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${y}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:A,"aria-labelledby":`${E} ${y}`},startFieldProps:{...D,...j,value:(W=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&W!==void 0?W:null,onChange:V=>t.setDateTime("start",V),autoFocus:e.autoFocus,name:e.startName,[Pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(V){O.current=V,t.updateValidation(gh(V,I.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...T,...j,value:(k=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&k!==void 0?k:null,onChange:V=>t.setDateTime("end",V),name:e.endName,[Pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(V){I.current=V,t.updateValidation(gh(O.current,V))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:l,validationDetails:d}}function ZW(e,t){let{role:n="dialog"}=e,r=Eu();r=e["aria-label"]?void 0:r;let i=x.useRef(!1);return x.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){cs(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),cs(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),bW(),{dialogProps:{..._o(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}function gu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function _b(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=Ha(e,t,n).subtract(o);return xc(e,a,t,n,r,i)}function Ha(e,t,n,r,i){let o=e;return t.years?o=bU(e):t.months?o=zc(e):t.weeks&&(o=gc(e,n)),xc(e,o,t,n,r,i)}function Rb(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=Ha(e,t,n).subtract(o);return xc(e,a,t,n,r,i)}function xc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=t1(t,Ha(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=e1(t,Rb(cr(o),n,r));a&&(t=a)}return t}function Jo(e,t,n){if(t){let r=t1(e,cr(t));r&&(e=r)}if(n){let r=e1(e,cr(n));r&&(e=r)}return e}function T_(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 A_(e){let t=x.useMemo(()=>new ii(e.locale),[e.locale]),n=x.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:l,isDateUnavailable:d,pageBehavior:f="visible",firstDayOfWeek:h}=e,m=x.useMemo(()=>i(n.calendar),[i,n.calendar]);var g;let[y,$]=Fr(e.value,(g=e.defaultValue)!==null&&g!==void 0?g:null,e.onChange),C=x.useMemo(()=>y?Qt(cr(y),m):null,[y,m]),b=x.useMemo(()=>y&&"timeZone"in y?y.timeZone:n.timeZone,[y,n.timeZone]),v=x.useMemo(()=>e.focusedValue?Jo(Qt(cr(e.focusedValue),m),a,u):void 0,[e.focusedValue,m,a,u]),D=x.useMemo(()=>Jo(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),m):C||Qt(op(b),m),a,u),[e.defaultFocusedValue,C,b,m,a,u]),[T,E]=Fr(v,D,e.onFocusChange),[A,R]=x.useState(()=>{switch(l){case"start":return Ha(T,o,r,a,u);case"end":return Rb(T,o,r,a,u);case"center":default:return _b(T,o,r,a,u)}}),[S,U]=x.useState(e.autoFocus||!1),j=x.useMemo(()=>{let N={...o};return N.days?N.days--:N.days=-1,A.add(N)},[A,o]),[M,X]=x.useState(m.identifier);if(m.identifier!==M){let N=Qt(T,m);R(_b(N,o,r,a,u)),E(N),X(m.identifier)}gu(T,a,u)?E(Jo(T,a,u)):T.compare(A)<0?R(Rb(T,o,r,a,u)):T.compare(j)>0&&R(Ha(T,o,r,a,u));function O(N){N=Jo(N,a,u),E(N)}function I(N){if(!e.isDisabled&&!e.isReadOnly){let ne=N;if(ne===null){$(null);return}if(ne=Jo(ne,a,u),ne=T_(ne,A,d),!ne)return;ne=Qt(ne,(y==null?void 0:y.calendar)||new dr),y&&"hour"in y?$(y.set(ne)):$(ne)}}let W=x.useMemo(()=>C?d&&d(C)?!0:gu(C,a,u):!1,[C,d,a,u]),k=e.isInvalid||e.validationState==="invalid"||W,V=k?"invalid":null,_=x.useMemo(()=>f==="visible"?o:Tg(o),[f,o]);var H,z;return{isDisabled:(H=e.isDisabled)!==null&&H!==void 0?H:!1,isReadOnly:(z=e.isReadOnly)!==null&&z!==void 0?z:!1,value:C,setValue:I,visibleRange:{start:A,end:j},minValue:a,maxValue:u,focusedDate:T,timeZone:b,validationState:V,isValueInvalid:k,setFocusedDate(N){O(N),U(!0)},focusNextDay(){O(T.add({days:1}))},focusPreviousDay(){O(T.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&O(T.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&O(T.subtract({weeks:1}))},focusNextPage(){let N=A.add(_);E(Jo(T.add(_),a,u)),R(Ha(xc(T,N,_,r,a,u),_,r))},focusPreviousPage(){let N=A.subtract(_);E(Jo(T.subtract(_),a,u)),R(Ha(xc(T,N,_,r,a,u),_,r))},focusSectionStart(){o.days?O(A):o.weeks?O(gc(T,r)):(o.months||o.years)&&O(zc(T))},focusSectionEnd(){o.days?O(j):o.weeks?O(wU(T,r)):(o.months||o.years)&&O(gb(T))},focusNextSection(N){if(!N&&!o.days){O(T.add(Tg(o)));return}o.days?this.focusNextPage():o.weeks?O(T.add({months:1})):(o.months||o.years)&&O(T.add({years:1}))},focusPreviousSection(N){if(!N&&!o.days){O(T.subtract(Tg(o)));return}o.days?this.focusPreviousPage():o.weeks?O(T.subtract({months:1})):(o.months||o.years)&&O(T.subtract({years:1}))},selectFocusedDate(){d&&d(T)||I(T)},selectDate(N){I(N)},isFocused:S,setFocused:U,isInvalid(N){return gu(N,a,u)},isSelected(N){return C!=null&&wn(N,C)&&!this.isCellDisabled(N)&&!this.isCellUnavailable(N)},isCellFocused(N){return S&&T&&wn(N,T)},isCellDisabled(N){return e.isDisabled||N.compare(A)<0||N.compare(j)>0||this.isInvalid(N)},isCellUnavailable(N){return e.isDateUnavailable?e.isDateUnavailable(N):!1},isPreviousVisibleRangeInvalid(){let N=A.subtract({days:1});return wn(N,A)||this.isInvalid(N)},isNextVisibleRangeInvalid(){let N=j.add({days:1});return wn(N,j)||this.isInvalid(N)},getDatesInWeek(N,ne=A){let ie=ne.add({weeks:N}),le=[];ie=gc(ie,r,h);let $e=Q0(ie,r,h);for(let De=0;De<$e;De++)le.push(null);for(;le.length<7;){le.push(ie);let De=ie.add({days:1});if(wn(ie,De))break;ie=De}for(;le.length<7;)le.push(null);return le}}}function Tg(e){let t={...e};for(let n in e)t[n]=1;return t}function JW(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:l,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=x.useState(null),y="center";if(f&&f.start&&f.end){let _=_b(cr(f.start),a,o,u,l).add(a).subtract({days:1});f.end.compare(_)>0&&(y="start")}let $=x.useRef(null),[C,b]=x.useState(null),v=x.useMemo(()=>t1(u,C==null?void 0:C.start),[u,C]),D=x.useMemo(()=>e1(l,C==null?void 0:C.end),[l,C]),T=A_({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:v,maxValue:D,selectionAlignment:y}),E=V=>{if(V&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const _=Zw(V,T,-1),H=Zw(V,T,1);$.current={start:_,end:H},b($.current)}else $.current=null,b(null)},[A,R]=x.useState(T.visibleRange);(!mb(T.visibleRange.start,A.start)||!mb(T.visibleRange.end,A.end))&&(E(m),R(T.visibleRange));let S=V=>{V?(g(V),E(V)):(g(null),E(null))},U=m?Ag(m,T.focusedDate):f&&Ag(f.start,f.end),j=V=>{if(e.isReadOnly)return;const _=Jo(V,v,D),H=T_(_,T.visibleRange.start,e.isDateUnavailable);if(H)if(!m)S(H);else{let z=Ag(m,H);z&&h({start:Yw(z.start,f==null?void 0:f.start),end:Yw(z.end,f==null?void 0:f.end)}),S(null)}},[M,X]=x.useState(!1),{isDateUnavailable:O}=e,I=x.useMemo(()=>!f||m?!1:O&&(O(f.start)||O(f.end))?!0:gu(f.start,u,l)||gu(f.end,u,l),[O,f,m,u,l]),W=e.isInvalid||e.validationState==="invalid"||I;return{...T,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:U,validationState:W?"invalid":null,isValueInvalid:W,selectFocusedDate(){j(T.focusedDate)},selectDate:j,highlightDate(V){m&&T.setFocusedDate(V)},isSelected(V){return!!(U&&V.compare(U.start)>=0&&V.compare(U.end)<=0&&!T.isCellDisabled(V)&&!T.isCellUnavailable(V))},isInvalid(V){var _,H;return T.isInvalid(V)||gu(V,(_=$.current)===null||_===void 0?void 0:_.start,(H=$.current)===null||H===void 0?void 0:H.end)},isDragging:M,setDragging:X}}function Ag(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function Yw(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function Zw(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 Ob{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function XW(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function QW(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=x.useRef(!1),[,u]=x.useState(!1),l=x.useRef(null),d=x.useRef(null),[,f]=x.useState(null),h=x.useMemo(()=>Jw(e.selectedKeys),[e.selectedKeys]),m=x.useMemo(()=>Jw(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,y]=Fr(h,m,e.onSelectionChange),$=x.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,b]=x.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&b("replace");let v=x.useRef(i);return x.useEffect(()=>{i!==v.current&&(b(i),v.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return l.current},get childFocusStrategy(){return d.current},setFocusedKey(D,T="first"){l.current=D,d.current=T,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!XW(D,g))&&y(D)},disabledKeys:$,disabledBehavior:o}}function Jw(e,t){return e?e==="all"?"all":new mi(e):t}class eq{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&&Sg(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&&Sg(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let l of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(l);for(let l of this.getKeyRange(n,u))this.canSelectItem(l)&&r.add(l)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Sg(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new mi(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=OW(dp(a,this.collection)))===null||i===void 0?void 0:i.key)!==null&&o!==void 0?o:null)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new mi)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=(r==null?void 0:r.layoutDelegate)||null}}function tq(e){let{filter:t,layoutDelegate:n}=e,r=QW(e),i=x.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=x.useCallback(f=>t?new Ob(t(f)):new Ob(f),[t]),a=x.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=RW(e,o,a),l=x.useMemo(()=>new eq(u,r,{layoutDelegate:n}),[u,r,n]);const d=x.useRef(null);return x.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const b=d.current.getItem(r.focusedKey),v=[...d.current.getKeys()].map(S=>{const U=d.current.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const U=u.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null);var f,h;const T=((f=v==null?void 0:v.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,y;let E=Math.min(T>1?Math.max(((m=b==null?void 0:b.index)!==null&&m!==void 0?m:0)-T+1,0):(g=b==null?void 0:b.index)!==null&&g!==void 0?g:0,((y=D==null?void 0:D.length)!==null&&y!==void 0?y:0)-1),A=null,R=!1;for(;E>=0;){if(!l.isDisabled(D[E].key)){A=D[E];break}if(E<D.length-1&&!R)E++;else{R=!0;var $,C;E>(($=b==null?void 0:b.index)!==null&&$!==void 0?$:0)&&(E=(C=b==null?void 0:b.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(A?A.key:null)}d.current=u},[u,l,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:l}}function nq(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=x.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=tq({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),l=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:l}}function h1(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=x.useCallback(()=>{n(!0)},[n]),i=x.useCallback(()=>{n(!1)},[n]),o=x.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function rq(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,l]=x.useState(!1),[d,f]=x.useState(!1),[h,m]=x.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===b&&(le(),N())};var y;let{collection:$,selectionManager:C,selectedKey:b,setSelectedKey:v,selectedItem:D,disabledKeys:T}=nq({...e,onSelectionChange:g,items:(y=e.items)!==null&&y!==void 0?y:e.defaultItems}),E=e.defaultInputValue;if(E==null){var A,R;b==null?E="":E=(R=(A=$.getItem(b))===null||A===void 0?void 0:A.textValue)!==null&&R!==void 0?R:""}let[S,U]=Fr(e.inputValue,E,e.onInputChange),j=$,M=x.useMemo(()=>e.items!=null||!n?$:iq($,S,n),[$,S,n,e.items]),[X,O]=x.useState(M),I=x.useRef("focus"),k=h1({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?I.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),V=(Z=null,re)=>{let pe=re==="manual"||re==="focus"&&r==="focus";(i||M.size>0||pe&&j.size>0||e.items)&&(pe&&!k.isOpen&&e.items===void 0&&l(!0),I.current=re,m(Z),k.open())},_=(Z=null,re)=>{let pe=re==="manual"||re==="focus"&&r==="focus";!(i||M.size>0||pe&&j.size>0||e.items)&&!k.isOpen||(pe&&!k.isOpen&&e.items===void 0&&l(!0),k.isOpen||(I.current=re),z(Z))},H=x.useCallback(()=>{O(u?j:M)},[u,j,M]),z=x.useCallback((Z=null)=>{k.isOpen&&H(),m(Z),k.toggle()},[k,H]),N=x.useCallback(()=>{k.isOpen&&(H(),k.close())},[k,H]),[ne,ie]=x.useState(S),le=()=>{var Z,re;let pe=b!=null&&(re=(Z=$.getItem(b))===null||Z===void 0?void 0:Z.textValue)!==null&&re!==void 0?re:"";ie(pe),U(pe)};var $e,De;let Ce=x.useRef((De=($e=e.selectedKey)!==null&&$e!==void 0?$e:e.defaultSelectedKey)!==null&&De!==void 0?De:null);var Y;let he=x.useRef(b!=null&&(Y=(t=$.getItem(b))===null||t===void 0?void 0:t.textValue)!==null&&Y!==void 0?Y:"");x.useEffect(()=>{var Z;d&&(M.size>0||i)&&!k.isOpen&&S!==ne&&r!=="manual"&&V(null,"input"),!u&&!i&&k.isOpen&&M.size===0&&N(),b!=null&&b!==Ce.current&&N(),S!==ne&&(C.setFocusedKey(null),l(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&v(null)),b!==Ce.current&&(e.inputValue===void 0||e.selectedKey===void 0)?le():ne!==S&&ie(S);var re;let pe=b!=null&&(re=(Z=$.getItem(b))===null||Z===void 0?void 0:Z.textValue)!==null&&re!==void 0?re:"";!d&&b!=null&&e.inputValue===void 0&&b===Ce.current&&he.current!==pe&&(ie(pe),U(pe)),Ce.current=b,he.current=pe});let ye=Hc({...e,value:x.useMemo(()=>({inputValue:S,selectedKey:b}),[S,b])}),fe=()=>{o&&b==null?ae():Fe()},ae=()=>{Ce.current=null,v(null),N()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,re;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,b);var pe;let Ee=b!=null&&(pe=(re=$.getItem(b))===null||re===void 0?void 0:re.textValue)!==null&&pe!==void 0?pe:"";ie(Ee),N()}else le(),N()};const et=()=>{if(o){var Z,re;const pe=b!=null&&(re=(Z=$.getItem(b))===null||Z===void 0?void 0:Z.textValue)!==null&&re!==void 0?re:"";S===pe?Fe():ae()}else Fe()};let dt=()=>{k.isOpen&&C.focusedKey!=null?b===C.focusedKey?Fe():v(C.focusedKey):et()},Dn=x.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&V(null,"focus")):(a&&et(),S!==Dn.current&&ye.commitValidation()),f(Z)},G=x.useMemo(()=>k.isOpen?u?j:M:X,[k.isOpen,j,M,u,X]);return{...ye,...k,focusStrategy:h,toggle:_,open:V,close:et,selectionManager:C,selectedKey:b,setSelectedKey:v,disabledKeys:T,isFocused:d,setFocused:yt,selectedItem:D,collection:G,inputValue:S,setInputValue:U,commit:dt,revert:fe}}function iq(e,t,n){return new Ob(P_(e,e,t,n))}function P_(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=P_(e,dp(o,e),n,r);[...a].some(u=>u.type==="item")&&i.push({...o,childNodes:a})}else o.type==="item"&&r(o.textValue,n)?i.push({...o}):o.type!=="item"&&i.push({...o});return i}var __={};__={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var R_={};R_={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var O_={};O_={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 M_={};M_={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 F_={};F_={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 k_={};k_={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var B_={};B_={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 I_={};I_={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 L_={};L_={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 V_={};V_={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 N_={};N_={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 j_={};j_={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var K_={};K_={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 U_={};U_={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 z_={};z_={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 W_={};W_={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var q_={};q_={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var H_={};H_={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 G_={};G_={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 Y_={};Y_={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 Z_={};Z_={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 J_={};J_={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 X_={};X_={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 Q_={};Q_={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 eR={};eR={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 tR={};tR={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var nR={};nR={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 rR={};rR={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 iR={};iR={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 oR={};oR={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 aR={};aR={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 sR={};sR={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var uR={};uR={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var lR={};lR={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var cR={};cR={"ar-AE":__,"bg-BG":R_,"cs-CZ":O_,"da-DK":M_,"de-DE":F_,"el-GR":k_,"en-US":B_,"es-ES":I_,"et-EE":L_,"fi-FI":V_,"fr-FR":N_,"he-IL":j_,"hr-HR":K_,"hu-HU":U_,"it-IT":z_,"ja-JP":W_,"ko-KR":q_,"lt-LT":H_,"lv-LV":G_,"nb-NO":Y_,"nl-NL":Z_,"pl-PL":J_,"pt-BR":X_,"pt-PT":Q_,"ro-RO":eR,"ru-RU":tR,"sk-SK":nR,"sl-SI":rR,"sr-SP":iR,"sv-SE":oR,"tr-TR":aR,"uk-UA":sR,"zh-CN":uR,"zh-TW":lR};function oq(e){return e&&e.__esModule?e.default:e}const dR=new va(oq(cR));function fR(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function vh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,l=o||a||u,d=[];if(l){let f=fR(),h=va.getGlobalDictionaryForPackage("@react-stately/datepicker")||dR,m=new bT(f,h),g=new ii(f,Do({},i)),y=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(y))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(y))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:l,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!l}}}function aq(e,t,n,r,i){var o;let a=vh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let l=vh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=gh(a,l);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=va.getGlobalDictionaryForPackage("@react-stately/datepicker")||dR;d=gh(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",fR())],validationDetails:{...sp,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const sq={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},uq={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Do(e,t){e={...t.shouldForceLeadingZeros?uq:sq,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let l=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(l.hour12=t.hourCycle===12),l.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(l.timeZoneName="short"),t.showEra&&a===0&&(l.era="short"),l}function tu(e){return e&&"hour"in e?e:new Wc}function hR(e,t){if(e===null)return null;if(e)return Qt(e,t)}function Ml(e,t,n,r){if(e)return hR(e,n);let i=Qt(DT(r??Uc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function p1(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]=x.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function lq(e){let t=h1(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=p1(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,l=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=x.useState(null),[g,y]=x.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=x.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,$]),{minValue:b,maxValue:v,isDateUnavailable:D}=e,T=x.useMemo(()=>vh(n,b,v,D,C),[n,b,v,D,C]),E=Hc({...e,value:n,builtinValidation:T}),A=E.displayValidation.isInvalid,R=e.validationState||(A?"invalid":null),S=(M,X)=>{r("timeZone"in X?X.set(cr(M)):Di(M,X)),m(null),y(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:M=>{let X=typeof f=="function"?f():f;l?g||X?S(M,g||tu(e.defaultValue||e.placeholderValue)):m(M):(r(M),E.commitValidation()),X&&t.setOpen(!1)},setTimeValue:M=>{h&&M?S(h,M):y(M)},granularity:o,hasTime:l,...t,setOpen(M){!M&&!n&&h&&l&&S(h,g||tu(e.defaultValue||e.placeholderValue)),t.setOpen(M)},validationState:R,isInvalid:A,formatValue(M,X){if(!u)return"";let O=Do(X,C);return new ii(M,O).format(u)},getDateFormatter(M,X){let O={...C,...X},I=Do({},O);return new ii(M,I)}}}const cq=new va({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 dq(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?cq.getStringForLocale(e,n):"––"}const bf={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Xw={year:5,month:2,day:7,hour:2,minute:15,second:15},fq={dayperiod:"dayPeriod"};function pR(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:l,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=p1(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let y=x.useMemo(()=>new ii(t),[t]),$=x.useMemo(()=>n(y.resolvedOptions().calendar),[n,y]);var C;let[b,v]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=x.useMemo(()=>{var Y;return(Y=hR(b,$))!==null&&Y!==void 0?Y:null},[b,$]),[T,E]=x.useState(()=>Ml(e.placeholderValue,h,$,m)),A=D||T,R=$.identifier==="gregory"&&A.era==="BC",S=x.useMemo(()=>{var Y;return{granularity:h,maxGranularity:(Y=e.maxGranularity)!==null&&Y!==void 0?Y:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:R,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,R]),U=x.useMemo(()=>Do({},S),[S]),j=x.useMemo(()=>new ii(t,U),[t,U]),M=x.useMemo(()=>j.resolvedOptions(),[j]),X=x.useMemo(()=>j.formatToParts(new Date).filter(Y=>bf[Y.type]).reduce((Y,he)=>(Y[he.type]=!0,Y),{}),[j]),[O,I]=x.useState(()=>e.value||e.defaultValue?{...X}:{}),W=x.useRef(null),k=x.useRef($.identifier);x.useEffect(()=>{$.identifier!==k.current&&(k.current=$.identifier,E(Y=>Object.keys(O).length>0?Qt(Y,$):Ml(e.placeholderValue,h,$,m)))},[$,h,O,m,e.placeholderValue]),b&&Object.keys(O).length<Object.keys(X).length&&(O={...X},I(O)),b==null&&Object.keys(O).length===Object.keys(X).length&&(O={},I(O),E(Ml(e.placeholderValue,h,$,m)));let V=D&&Object.keys(O).length>=Object.keys(X).length?D:T,_=Y=>{if(e.isDisabled||e.isReadOnly)return;let he=Object.keys(O),ye=Object.keys(X);Y==null?(v(null),E(Ml(e.placeholderValue,h,$,m)),I({})):he.length>=ye.length||he.length===ye.length-1&&X.dayPeriod&&!O.dayPeriod&&W.current!=="dayPeriod"?(Y=Qt(Y,(f==null?void 0:f.calendar)||new dr),v(Y)):E(Y),W.current=null},H=x.useMemo(()=>V.toDate(g),[V,g]),z=x.useMemo(()=>j.formatToParts(H).map(Y=>{let he=bf[Y.type];Y.type==="era"&&$.getEras().length===1&&(he=!1);let ye=bf[Y.type]&&!O[Y.type],fe=bf[Y.type]?dq(Y.type,Y.value,t):null;return{type:fq[Y.type]||Y.type,text:ye?fe:Y.value,...hq(V,Y.type,M),isPlaceholder:ye,placeholder:fe,isEditable:he}}),[H,O,j,M,V,$,t]);X.era&&O.year&&!O.era?(O.era=!0,I({...O})):!X.era&&O.era&&(delete O.era,I({...O}));let N=Y=>{O[Y]=!0,Y==="year"&&X.era&&(O.era=!0),I({...O})},ne=(Y,he)=>{if(O[Y])_(pq(V,Y,he,M));else{N(Y);let ye=Object.keys(O),fe=Object.keys(X);(ye.length>=fe.length||ye.length===fe.length-1&&X.dayPeriod&&!O.dayPeriod)&&_(V)}},ie=x.useMemo(()=>vh(b,u,l,d,S),[b,u,l,d,S]),le=Hc({...e,value:b,builtinValidation:ie}),$e=le.displayValidation.isInvalid,De=e.validationState||($e?"invalid":null);var Ce;return{...le,value:D,dateValue:H,calendar:$,setValue:_,segments:z,dateFormatter:j,validationState:De,isInvalid:$e,granularity:h,maxGranularity:(Ce=e.maxGranularity)!==null&&Ce!==void 0?Ce:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(Y){ne(Y,1)},decrement(Y){ne(Y,-1)},incrementPage(Y){ne(Y,Xw[Y]||1)},decrementPage(Y){ne(Y,-(Xw[Y]||1))},setSegment(Y,he){N(Y),_(mq(V,Y,he,M))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let Y=Object.keys(O),he=Object.keys(X);Y.length===he.length-1&&X.dayPeriod&&!O.dayPeriod&&(O={...X},I(O),_(V.copy()))},clearSegment(Y){delete O[Y],W.current=Y,I({...O});let he=Ml(e.placeholderValue,h,$,m),ye=V;if(Y==="dayPeriod"&&"hour"in V&&"hour"in he){let fe=V.hour>=12,ae=he.hour>=12;fe&&!ae?ye=V.set({hour:V.hour-12}):!fe&&ae&&(ye=V.set({hour:V.hour+12}))}else Y in V&&(ye=V.set({[Y]:he[Y]}));v(null),_(ye)},formatValue(Y){if(!D)return"";let he=Do(Y,S);return new ii(t,he).format(H)},getDateFormatter(Y,he){let ye={...S,...he},fe=Do({},ye);return new ii(Y,fe)}}}function hq(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:$U(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:xU(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 pq(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 mq(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 gq(e){var t,n;let r=h1(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=x.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let l=i||a,d=k=>{u(k||{start:null,end:null}),ka(k)?o(k):o(null)},f=(l==null?void 0:l.start)||(l==null?void 0:l.end)||e.placeholderValue||null,[h,m]=p1(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var y;let $=(y=e.shouldCloseOnSelect)!==null&&y!==void 0?y:!0,[C,b]=x.useState(null),[v,D]=x.useState(null);l&&ka(l)&&(C=l,"hour"in l.start&&(v=l));let T=(k,V)=>{d({start:"timeZone"in V.start?V.start.set(cr(k.start)):Di(k.start,V.start),end:"timeZone"in V.end?V.end.set(cr(k.end)):Di(k.end,V.end)}),b(null),D(null),O.commitValidation()},E=k=>{let V=typeof $=="function"?$():$;g?ka(k)&&(v!=null&&v.start)&&(v!=null&&v.end)?T(k,{start:(v==null?void 0:v.start)||tu(e.placeholderValue),end:(v==null?void 0:v.end)||tu(e.placeholderValue)}):b(k):ka(k)?(d(k),O.commitValidation()):b(k),V&&r.setOpen(!1)},A=k=>{ka(C)&&ka(k)?T(C,k):D(k)},R=(l==null||(t=l.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&l.start.era==="BC"||(l==null||(n=l.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&l.end.era==="BC",S=x.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:R}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,R]),{minValue:U,maxValue:j,isDateUnavailable:M}=e,X=x.useMemo(()=>aq(l,U,j,M,S),[l,U,j,M,S]),O=Hc({...e,value:i,name:x.useMemo(()=>[e.startName,e.endName].filter(k=>k!=null),[e.startName,e.endName]),builtinValidation:X}),I=O.displayValidation.isInvalid,W=e.validationState||(I?"invalid":null);return{...O,value:l,setValue:d,dateRange:C,timeRange:v,granularity:h,hasTime:g,setDate(k,V){var _,H;E(k==="start"?{start:V,end:(_=C==null?void 0:C.end)!==null&&_!==void 0?_:null}:{start:(H=C==null?void 0:C.start)!==null&&H!==void 0?H:null,end:V})},setTime(k,V){var _,H;A(k==="start"?{start:V,end:(_=v==null?void 0:v.end)!==null&&_!==void 0?_:null}:{start:(H=v==null?void 0:v.start)!==null&&H!==void 0?H:null,end:V})},setDateTime(k,V){var _,H;d(k==="start"?{start:V,end:(_=l==null?void 0:l.end)!==null&&_!==void 0?_:null}:{start:(H=l==null?void 0:l.start)!==null&&H!==void 0?H:null,end:V})},setDateRange:E,setTimeRange:A,...r,setOpen(k){!k&&!(l!=null&&l.start&&(l!=null&&l.end))&&ka(C)&&g&&T(C,{start:(v==null?void 0:v.start)||tu(e.placeholderValue),end:(v==null?void 0:v.end)||tu(e.placeholderValue)}),r.setOpen(k)},validationState:W,isInvalid:I,formatValue(k,V){if(!l||!l.start||!l.end)return null;let _="timeZone"in l.start?l.start.timeZone:void 0,H=e.granularity||(l.start&&"minute"in l.start?"minute":"day"),z="timeZone"in l.end?l.end.timeZone:void 0,N=e.granularity||(l.end&&"minute"in l.end?"minute":"day"),ne=Do(V,{granularity:H,timeZone:_,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),ie=l.start.toDate(_||"UTC"),le=l.end.toDate(z||"UTC"),$e=new ii(k,ne),De;if(_===z&&H===N&&l.start.compare(l.end)!==0){try{let Ce=$e.formatRangeToParts(ie,le),Y=-1;for(let fe=0;fe<Ce.length;fe++){let ae=Ce[fe];if(ae.source==="shared"&&ae.type==="literal")Y=fe;else if(ae.source==="endRange")break}let he="",ye="";for(let fe=0;fe<Ce.length;fe++)fe<Y?he+=Ce[fe].value:fe>Y&&(ye+=Ce[fe].value);return{start:he,end:ye}}catch{}De=$e}else{let Ce=Do(V,{granularity:N,timeZone:z,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});De=new ii(k,Ce)}return{start:$e.format(ie),end:De.format(le)}},getDateFormatter(k,V){let _={...S,...V},H=Do({},_);return new ii(k,H)}}}function ka(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function yq(e){let{placeholderValue:t=new Wc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,l]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=x.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?PT(Fl(t),D||h):Fl(t)},[t,d,h]),g=x.useMemo(()=>Fl(n,f),[n,f]),y=x.useMemo(()=>Fl(r,f),[r,f]),$=x.useMemo(()=>u&&"day"in u?fw(u):u,[u]),C=x.useMemo(()=>u==null?null:Fl(u),[u]);return{...pR({...e,value:C,defaultValue:void 0,minValue:g,maxValue:y,onChange:D=>{l(f||h?D:D&&fw(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:x.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:$}}function Fl(e,t=op(Uc())){return e?"day"in e?e:Di(t,e):null}var jf={exports:{}},vq=jf.exports,Qw;function bq(){return Qw||(Qw=1,function(e,t){(function(n,r){e.exports=r()})(vq,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",l="hour",d="day",f="week",h="month",m="quarter",g="year",y="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var W=["th","st","nd","rd"],k=I%100;return"["+I+(W[(k-20)%10]||W[k]||W[0])+"]"}},D=function(I,W,k){var V=String(I);return!V||V.length>=W?I:""+Array(W+1-V.length).join(k)+I},T={s:D,z:function(I){var W=-I.utcOffset(),k=Math.abs(W),V=Math.floor(k/60),_=k%60;return(W<=0?"+":"-")+D(V,2,"0")+":"+D(_,2,"0")},m:function I(W,k){if(W.date()<k.date())return-I(k,W);var V=12*(k.year()-W.year())+(k.month()-W.month()),_=W.clone().add(V,h),H=k-_<0,z=W.clone().add(V+(H?-1:1),h);return+(-(V+(k-_)/(H?_-z:z-_))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:h,y:g,w:f,d,D:y,h:l,m:u,s:a,ms:o,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},E="en",A={};A[E]=v;var R="$isDayjsObject",S=function(I){return I instanceof X||!(!I||!I[R])},U=function I(W,k,V){var _;if(!W)return E;if(typeof W=="string"){var H=W.toLowerCase();A[H]&&(_=H),k&&(A[H]=k,_=H);var z=W.split("-");if(!_&&z.length>1)return I(z[0])}else{var N=W.name;A[N]=W,_=N}return!V&&_&&(E=_),_||!V&&E},j=function(I,W){if(S(I))return I.clone();var k=typeof W=="object"?W:{};return k.date=I,k.args=arguments,new X(k)},M=T;M.l=U,M.i=S,M.w=function(I,W){return j(I,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var X=function(){function I(k){this.$L=U(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[R]=!0}var W=I.prototype;return W.parse=function(k){this.$d=function(V){var _=V.date,H=V.utc;if(_===null)return new Date(NaN);if(M.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var z=_.match(C);if(z){var N=z[2]-1||0,ne=(z[7]||"0").substring(0,3);return H?new Date(Date.UTC(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,ne)):new Date(z[1],N,z[3]||1,z[4]||0,z[5]||0,z[6]||0,ne)}}return new Date(_)}(k),this.init()},W.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},W.$utils=function(){return M},W.isValid=function(){return this.$d.toString()!==$},W.isSame=function(k,V){var _=j(k);return this.startOf(V)<=_&&_<=this.endOf(V)},W.isAfter=function(k,V){return j(k)<this.startOf(V)},W.isBefore=function(k,V){return this.endOf(V)<j(k)},W.$g=function(k,V,_){return M.u(k)?this[V]:this.set(_,k)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(k,V){var _=this,H=!!M.u(V)||V,z=M.p(k),N=function(he,ye){var fe=M.w(_.$u?Date.UTC(_.$y,ye,he):new Date(_.$y,ye,he),_);return H?fe:fe.endOf(d)},ne=function(he,ye){return M.w(_.toDate()[he].apply(_.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(ye)),_)},ie=this.$W,le=this.$M,$e=this.$D,De="set"+(this.$u?"UTC":"");switch(z){case g:return H?N(1,0):N(31,11);case h:return H?N(1,le):N(0,le+1);case f:var Ce=this.$locale().weekStart||0,Y=(ie<Ce?ie+7:ie)-Ce;return N(H?$e-Y:$e+(6-Y),le);case d:case y:return ne(De+"Hours",0);case l:return ne(De+"Minutes",1);case u:return ne(De+"Seconds",2);case a:return ne(De+"Milliseconds",3);default:return this.clone()}},W.endOf=function(k){return this.startOf(k,!1)},W.$set=function(k,V){var _,H=M.p(k),z="set"+(this.$u?"UTC":""),N=(_={},_[d]=z+"Date",_[y]=z+"Date",_[h]=z+"Month",_[g]=z+"FullYear",_[l]=z+"Hours",_[u]=z+"Minutes",_[a]=z+"Seconds",_[o]=z+"Milliseconds",_)[H],ne=H===d?this.$D+(V-this.$W):V;if(H===h||H===g){var ie=this.clone().set(y,1);ie.$d[N](ne),ie.init(),this.$d=ie.set(y,Math.min(this.$D,ie.daysInMonth())).$d}else N&&this.$d[N](ne);return this.init(),this},W.set=function(k,V){return this.clone().$set(k,V)},W.get=function(k){return this[M.p(k)]()},W.add=function(k,V){var _,H=this;k=Number(k);var z=M.p(V),N=function(le){var $e=j(H);return M.w($e.date($e.date()+Math.round(le*k)),H)};if(z===h)return this.set(h,this.$M+k);if(z===g)return this.set(g,this.$y+k);if(z===d)return N(1);if(z===f)return N(7);var ne=(_={},_[u]=r,_[l]=i,_[a]=n,_)[z]||1,ie=this.$d.getTime()+k*ne;return M.w(ie,this)},W.subtract=function(k,V){return this.add(-1*k,V)},W.format=function(k){var V=this,_=this.$locale();if(!this.isValid())return _.invalidDate||$;var H=k||"YYYY-MM-DDTHH:mm:ssZ",z=M.z(this),N=this.$H,ne=this.$m,ie=this.$M,le=_.weekdays,$e=_.months,De=_.meridiem,Ce=function(ye,fe,ae,Fe){return ye&&(ye[fe]||ye(V,H))||ae[fe].slice(0,Fe)},Y=function(ye){return M.s(N%12||12,ye,"0")},he=De||function(ye,fe,ae){var Fe=ye<12?"AM":"PM";return ae?Fe.toLowerCase():Fe};return H.replace(b,function(ye,fe){return fe||function(ae){switch(ae){case"YY":return String(V.$y).slice(-2);case"YYYY":return M.s(V.$y,4,"0");case"M":return ie+1;case"MM":return M.s(ie+1,2,"0");case"MMM":return Ce(_.monthsShort,ie,$e,3);case"MMMM":return Ce($e,ie);case"D":return V.$D;case"DD":return M.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return Ce(_.weekdaysMin,V.$W,le,2);case"ddd":return Ce(_.weekdaysShort,V.$W,le,3);case"dddd":return le[V.$W];case"H":return String(N);case"HH":return M.s(N,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return he(N,ne,!0);case"A":return he(N,ne,!1);case"m":return String(ne);case"mm":return M.s(ne,2,"0");case"s":return String(V.$s);case"ss":return M.s(V.$s,2,"0");case"SSS":return M.s(V.$ms,3,"0");case"Z":return z}return null}(ye)||z.replace(":","")})},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(k,V,_){var H,z=this,N=M.p(V),ne=j(k),ie=(ne.utcOffset()-this.utcOffset())*r,le=this-ne,$e=function(){return M.m(z,ne)};switch(N){case g:H=$e()/12;break;case h:H=$e();break;case m:H=$e()/3;break;case f:H=(le-ie)/6048e5;break;case d:H=(le-ie)/864e5;break;case l:H=le/i;break;case u:H=le/r;break;case a:H=le/n;break;default:H=le}return _?H:M.a(H)},W.daysInMonth=function(){return this.endOf(h).$D},W.$locale=function(){return A[this.$L]},W.locale=function(k,V){if(!k)return this.$L;var _=this.clone(),H=U(k,V,!0);return H&&(_.$L=H),_},W.clone=function(){return M.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},I}(),O=X.prototype;return j.prototype=O,[["$ms",o],["$s",a],["$m",u],["$H",l],["$W",d],["$M",h],["$y",g],["$D",y]].forEach(function(I){O[I[1]]=function(W){return this.$g(W,I[0],I[1])}}),j.extend=function(I,W){return I.$i||(I(W,X,j),I.$i=!0),j},j.locale=U,j.isDayjs=S,j.unix=function(I){return j(1e3*I)},j.en=A[E],j.Ls=A,j.p={},j})}(jf)),jf.exports}var $q=bq();const xq=Qi($q);var ms=[["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"]],wq="react-international-phone-",mR=(...e)=>e.filter(t=>!!t).join(" ").trim(),Dq=(...e)=>mR(...e).split(" ").map(t=>`${wq}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>mR(Dq(...e),...t),Cq=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,l=0;for(let d of t.split("")){if(l>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[l],l+=1):u+=d}return u},Xs=e=>e?/^\d+$/.test(e):!1,fp=e=>e.replace(/\D/g,""),Eq=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top-r.top,a=r.bottom-i.bottom;o>=0&&a>=0||(Math.abs(o)<Math.abs(a)?e.scrollTop+=o:e.scrollTop-=a),e.style.display=n},Sq=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),Tq=(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=fp(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:l}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,l=Cq({value:l,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&l.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${l}`)},Aq=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!e)return n.length;let a=null;for(let f=r-1;f>=0;f-=1)if(Xs(t[f])){a=f;break}if(a===null){for(let f=0;f<t.length;f+=1)if(Xs(n[f]))return f;return t.length}let u=0;for(let f=0;f<a;f+=1)Xs(t[f])&&(u+=1);let l=0,d=0;for(let f=0;f<n.length&&(l+=1,Xs(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Xs(n[l])&&l<n.length;)l+=1;return l},Kf=({phone:e,prefix:t})=>e?`${t}${fp(e)}`:"";function Mb({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:l,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;l&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?Iq({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,y=(g==null?void 0:g.country)??t,$=Tq(m,{prefix:o,mask:kq({phone:m,country:y,defaultMask:d,disableFormatting:h}),maskChar:gR,dialCode:y.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:y;return{phone:Kf({phone:l?`${C.dialCode}${$}`:$,prefix:o}),inputValue:$,country:C}}var Pq=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},_q=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:l,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,y=Pq(g),$=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",b=(m==null?void 0:m.data)||void 0,v=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Kf({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Xs(b)&&v!==i)return{inputValue:r,phone:Kf({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((b==null?void 0:b.length)??0),country:t};if(a&&!v.startsWith(`${i}${t.dialCode}`)&&!$){let S=v?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Kf({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:T,inputValue:E,country:A}=Mb({value:v,country:t,trimNonDigitsEnd:y==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),R=Aq({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:y});return{phone:T,inputValue:E,cursorPosition:R,country:A}},Rq=(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},Oq=()=>{let e=x.useRef(),t=x.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}}},Mq={size:20,overrideLastItemDebounceMS:-1};function Fq(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...Mq,...t},[o,a]=x.useState(e),[u,l]=x.useState([o]),[d,f]=x.useState(0),h=Oq();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&Rq(m,o)||m===o)return;let y=r>0,$=h.check(),C=y&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)l(b=>[...b.slice(0,d),m]);else{let b=u.length>=n;l(v=>[...v.slice(b?1:0,d+1),m]),b||f(v=>v+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var gR=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:ms,preferredCountries:[]},yR=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:l=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let y={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=x.useRef(null),C=g||$,b=I=>{Promise.resolve().then(()=>{var W;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((W=C.current)==null||W.setSelectionRange(I,I))})},[{phone:v,inputValue:D,country:T},E,A,R]=Fq(()=>{let I=nu({value:e,field:"iso2",countries:n});I||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let W=I||nu({value:"us",field:"iso2",countries:n}),{phone:k,inputValue:V,country:_}=Mb({value:t,country:W,insertDialCodeOnEmpty:!l,...y});return b(V.length),{phone:k,inputValue:V,country:_.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:I,phone:W,country:k})=>{if(!m)return;let V=S(k);m({phone:W,inputValue:I,country:V})}}),S=x.useCallback(I=>nu({value:I,field:"iso2",countries:n}),[n]),U=x.useMemo(()=>S(T),[T,S]);x.useEffect(()=>{let I=C.current;if(!I)return;let W=k=>{if(!k.key)return;let V=k.ctrlKey,_=k.metaKey,H=k.shiftKey;if(k.key.toLowerCase()==="z"){if(Sq()){if(!_)return}else if(!V)return;H?R():A()}};return I.addEventListener("keydown",W),()=>{I.removeEventListener("keydown",W)}},[C,A,R]);let j=I=>{I.preventDefault();let{phone:W,inputValue:k,country:V,cursorPosition:_}=_q(I,{country:U,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...y});return E({inputValue:k,phone:W,country:V.iso2}),b(_),t},M=(I,W={focusOnInput:!1})=>{let k=nu({value:I,field:"iso2",countries:n});if(!k){console.error(`[react-international-phone]: can not find a country with "${I}" iso2 code`);return}let V=f?"":`${r}${k.dialCode}${o}`;E({inputValue:V,phone:`${r}${k.dialCode}`,country:k.iso2}),W.focusOnInput&&Promise.resolve().then(()=>{var _;(_=C.current)==null||_.focus()})},[X,O]=x.useState(!1);return x.useEffect(()=>{if(!X){O(!0),t!==v&&(m==null||m({inputValue:D,phone:v,country:U}));return}if(t===v)return;let{phone:I,inputValue:W,country:k}=Mb({value:t,country:U,insertDialCodeOnEmpty:!l,...y});E({phone:I,inputValue:W,country:k.iso2})},[t]),{phone:v,inputValue:D,country:U,setCountry:M,handlePhoneValueChange:j,inputRef:C}},kq=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${gR}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let l=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return l.test(fp(d))});return o(a?i[a]:i.default)},gi=e=>{let[t,n,r,i,o,a]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:o,areaCodes:a}},Bq=e=>`Field "${e}" is not supported`,nu=({field:e,value:t,countries:n=ms})=>{if(["priority"].includes(e))throw new Error(Bq(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},Iq=({phone:e,countries:t=ms,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=fp(e);if(!i)return r;let o=r,a=({country:l,fullDialCodeMatch:d})=>{var m,g;let f=l.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(l.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:l,fullDialCodeMatch:d})};for(let l of t){let d=gi(l),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let y of h)if(g.startsWith(y))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let l=nu({value:n,field:"iso2",countries:t});if(!l)return o;let d=l?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(l):!1;o&&((u=o.country)==null?void 0:u.dialCode)===l.dialCode&&o.country!==l&&o.fullDialCodeMatch&&(!l.areaCodes||d)&&(o={country:l,fullDialCodeMatch:!0})}return o},Lq=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},Vq="abcdefghijklmnopqrstuvwxyz",Nq="1f1e6",eD=Vq.split("").reduce((e,t,n)=>({...e,[t]:Lq(Nq,n)}),{}),jq=e=>[eD[e[0]],eD[e[1]]].join("-"),m1=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return x.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let l=()=>{if(n)return n;let d=jq(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return x.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:l(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},Kq=1e3,Uq=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=ms,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...l})=>{let d=x.useRef(null),f=x.useRef(),h=x.useMemo(()=>{if(!i||!i.length)return r;let A=[],R=[...r];for(let S of i){let U=R.findIndex(j=>gi(j).iso2===S);if(U!==-1){let j=R.splice(U,1)[0];A.push(j)}}return A.concat(R)},[r,i]),m=x.useRef({updatedAt:void 0,value:""}),g=A=>{let R=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>Kq;m.current={value:R?A:`${m.current.value}${A}`,updatedAt:new Date};let S=h.findIndex(U=>gi(U).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},y=x.useCallback(A=>h.findIndex(R=>gi(R).iso2===A),[h]),[$,C]=x.useState(y(n)),b=()=>{f.current!==n&&C(y(n))},v=x.useCallback(A=>{C(y(A.iso2)),a==null||a(A)},[a,y]),D=A=>{let R=h.length-1,S=U=>A==="prev"?U-1:A==="next"?U+1:A==="last"?R:0;C(U=>{let j=S(U);return j<0?0:j>R?R:j})},T=A=>{if(A.stopPropagation(),A.key==="Enter"){A.preventDefault();let R=gi(h[$]);v(R);return}if(A.key==="Escape"){u==null||u();return}if(A.key==="ArrowUp"){A.preventDefault(),D("prev");return}if(A.key==="ArrowDown"){A.preventDefault(),D("next");return}if(A.key==="PageUp"){A.preventDefault(),D("first");return}if(A.key==="PageDown"){A.preventDefault(),D("last");return}A.key===" "&&A.preventDefault(),A.key.length===1&&!A.altKey&&!A.ctrlKey&&!A.metaKey&&g(A.key.toLocaleLowerCase())},E=x.useCallback(()=>{if(!d.current||$===void 0)return;let A=gi(h[$]).iso2;if(A===f.current)return;let R=d.current.querySelector(`[data-country="${A}"]`);R&&(Eq(d.current,R),f.current=A)},[$,h]);return x.useEffect(()=>{E()},[$,E]),x.useEffect(()=>{d.current&&(e?d.current.focus():b())},[e]),x.useEffect(()=>{b()},[n]),x.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[l.className]}),style:{display:e?"block":"none",...l.style},onKeyDown:T,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[$]).iso2}-option`},h.map((A,R)=>{let S=gi(A),U=S.iso2===n,j=R===$,M=i.includes(S.iso2),X=R===i.length-1,O=o==null?void 0:o.find(I=>I.iso2===S.iso2);return x.createElement(x.Fragment,{key:S.iso2},x.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":U,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",M&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",j&&"country-selector-dropdown__list-item--focused"],rawClassNames:[l.listItemClassName]}),onClick:()=>v(S),style:l.listItemStyle,title:S.name},x.createElement(m1,{iso2:S.iso2,src:O==null?void 0:O.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[l.listItemFlagClassName]}),style:l.listItemFlagStyle}),x.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[l.listItemCountryNameClassName]}),style:l.listItemCountryNameStyle},S.name),x.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[l.listItemDialCodeClassName]}),style:l.listItemDialCodeStyle},t,S.dialCode)),X?x.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[l.preferredListDividerClassName]}),style:l.preferredListDividerStyle}):null)}))},zq=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=ms,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...l})=>{let[d,f]=x.useState(!1),h=x.useMemo(()=>{if(e)return nu({value:e,field:"iso2",countries:i})},[i,e]),m=x.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),f(!0))},y=()=>{var b;let $={title:h==null?void 0:h.name,onClick:()=>f(v=>!v),onMouseDown:v=>v.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=x.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[l.buttonContentWrapperClassName]}),style:l.buttonContentWrapperStyle},x.createElement(m1,{iso2:e,src:(b=a==null?void 0:a.find(v=>v.iso2===e))==null?void 0:b.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[l.flagClassName]}),style:{visibility:e?"visible":"hidden",...l.flagStyle}}),!r&&x.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[l.dropdownArrowClassName]}),style:l.dropdownArrowStyle}));return u?u({children:C,rootProps:$}):x.createElement("button",{...$,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[l.buttonClassName]}),"data-country":e,style:l.buttonStyle},C)};return x.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[l.className]}),style:l.style,ref:m},y(),x.createElement(Uq,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:$=>{f(!1),t==null||t($)},selectedCountry:e,onClose:()=>{f(!1)},...l.dropdownStyleProps}))},Wq=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>x.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);x.forwardRef(({value:e,onChange:t,countries:n=ms,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:l,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:y,placeholder:$,disabled:C,name:b,onFocus:v,onBlur:D,required:T,autoFocus:E,...A},R)=>{let{phone:S,inputValue:U,inputRef:j,country:M,setCountry:X,handlePhoneValueChange:O}=yR({value:e,countries:n,...A,onChange:W=>{t==null||t(W.phone,{country:W.country,inputValue:W.inputValue})}}),I=A.disableDialCodeAndPrefix&&o&&(M==null?void 0:M.dialCode);return x.useImperativeHandle(R,()=>j.current?Object.assign(j.current,{setCountry:X,state:{phone:S,inputValue:U,country:M}}):null,[j,X,S,U,M]),x.createElement("div",{ref:R,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:l},x.createElement(zq,{onSelect:W=>X(W.iso2,{focusOnInput:!a}),flags:u,selectedCountry:M.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),I&&x.createElement(Wq,{dialCode:M.dialCode,prefix:A.prefix??"+",disabled:C,...g}),x.createElement("input",{onChange:O,value:U,type:"tel",ref:j,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:C,style:f,name:b,onFocus:v,onBlur:D,autoFocus:E,required:T,...y}))});var aa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fb={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",l="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Object]",$="[object Promise]",C="[object RegExp]",b="[object Set]",v="[object String]",D="[object Symbol]",T="[object WeakMap]",E="[object ArrayBuffer]",A="[object DataView]",R="[object Float32Array]",S="[object Float64Array]",U="[object Int8Array]",j="[object Int16Array]",M="[object Int32Array]",X="[object Uint8Array]",O="[object Uint8ClampedArray]",I="[object Uint16Array]",W="[object Uint32Array]",k=/[\\^$.*+?()[\]{}|]/g,V=/\w*$/,_=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,z={};z[o]=z[a]=z[E]=z[A]=z[u]=z[l]=z[R]=z[S]=z[U]=z[j]=z[M]=z[m]=z[g]=z[y]=z[C]=z[b]=z[v]=z[D]=z[X]=z[O]=z[I]=z[W]=!0,z[d]=z[f]=z[T]=!1;var N=typeof aa=="object"&&aa&&aa.Object===Object&&aa,ne=typeof self=="object"&&self&&self.Object===Object&&self,ie=N||ne||Function("return this")(),le=t&&!t.nodeType&&t,$e=le&&!0&&e&&!e.nodeType&&e,De=$e&&$e.exports===le;function Ce(K,oe){return K.set(oe[0],oe[1]),K}function Y(K,oe){return K.add(oe),K}function he(K,oe){for(var ve=-1,Ie=K?K.length:0;++ve<Ie&&oe(K[ve],ve,K)!==!1;);return K}function ye(K,oe){for(var ve=-1,Ie=oe.length,vn=K.length;++ve<Ie;)K[vn+ve]=oe[ve];return K}function fe(K,oe,ve,Ie){for(var vn=-1,Un=K?K.length:0;++vn<Un;)ve=oe(ve,K[vn],vn,K);return ve}function ae(K,oe){for(var ve=-1,Ie=Array(K);++ve<K;)Ie[ve]=oe(ve);return Ie}function Fe(K,oe){return K==null?void 0:K[oe]}function et(K){var oe=!1;if(K!=null&&typeof K.toString!="function")try{oe=!!(K+"")}catch{}return oe}function dt(K){var oe=-1,ve=Array(K.size);return K.forEach(function(Ie,vn){ve[++oe]=[vn,Ie]}),ve}function Dn(K,oe){return function(ve){return K(oe(ve))}}function yt(K){var oe=-1,ve=Array(K.size);return K.forEach(function(Ie){ve[++oe]=Ie}),ve}var G=Array.prototype,Z=Function.prototype,re=Object.prototype,pe=ie["__core-js_shared__"],Ee=function(){var K=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return K?"Symbol(src)_1."+K:""}(),we=Z.toString,_e=re.hasOwnProperty,Ve=re.toString,mt=RegExp("^"+we.call(_e).replace(k,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=De?ie.Buffer:void 0,Rt=ie.Symbol,Pn=ie.Uint8Array,_n=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Ln=re.propertyIsEnumerable,tn=G.splice,vt=Object.getOwnPropertySymbols,Vn=ut?ut.isBuffer:void 0,Sr=Dn(Object.keys,Object),Rn=ze(ie,"DataView"),er=ze(ie,"Map"),On=ze(ie,"Promise"),tr=ze(ie,"Set"),Nn=ze(ie,"WeakMap"),Cn=ze(Object,"create"),Ir=ro(Rn),Vt=ro(er),En=ro(On),Ne=ro(tr),tt=ro(Nn),nn=Rt?Rt.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(K){var oe=-1,ve=K?K.length:0;for(this.clear();++oe<ve;){var Ie=K[oe];this.set(Ie[0],Ie[1])}}function je(){this.__data__=Cn?Cn(null):{}}function Ye(K){return this.has(K)&&delete this.__data__[K]}function Ft(K){var oe=this.__data__;if(Cn){var ve=oe[K];return ve===r?void 0:ve}return _e.call(oe,K)?oe[K]:void 0}function rn(K){var oe=this.__data__;return Cn?oe[K]!==void 0:_e.call(oe,K)}function jn(K,oe){var ve=this.__data__;return ve[K]=Cn&&oe===void 0?r:oe,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Ut(K){var oe=-1,ve=K?K.length:0;for(this.clear();++oe<ve;){var Ie=K[oe];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(K){var oe=this.__data__,ve=Ai(oe,K);if(ve<0)return!1;var Ie=oe.length-1;return ve==Ie?oe.pop():tn.call(oe,ve,1),!0}function wt(K){var oe=this.__data__,ve=Ai(oe,K);return ve<0?void 0:oe[ve][1]}function li(K){return Ai(this.__data__,K)>-1}function $a(K,oe){var ve=this.__data__,Ie=Ai(ve,K);return Ie<0?ve.push([K,oe]):ve[Ie][1]=oe,this}Ut.prototype.clear=an,Ut.prototype.delete=kt,Ut.prototype.get=wt,Ut.prototype.has=li,Ut.prototype.set=$a;function hr(K){var oe=-1,ve=K?K.length:0;for(this.clear();++oe<ve;){var Ie=K[oe];this.set(Ie[0],Ie[1])}}function Fo(){this.__data__={hash:new Te,map:new(er||Ut),string:new Te}}function ko(K){return Ke(this,K).delete(K)}function Bo(K){return Ke(this,K).get(K)}function gt(K){return Ke(this,K).has(K)}function nr(K,oe){return Ke(this,K).set(K,oe),this}hr.prototype.clear=Fo,hr.prototype.delete=ko,hr.prototype.get=Bo,hr.prototype.has=gt,hr.prototype.set=nr;function pr(K){this.__data__=new Ut(K)}function Kn(){this.__data__=new Ut}function Io(K){return this.__data__.delete(K)}function Lr(K){return this.__data__.get(K)}function rl(K){return this.__data__.has(K)}function xs(K,oe){var ve=this.__data__;if(ve instanceof Ut){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([K,oe]),this;ve=this.__data__=new hr(Ie)}return ve.set(K,oe),this}pr.prototype.clear=Kn,pr.prototype.delete=Io,pr.prototype.get=Lr,pr.prototype.has=rl,pr.prototype.set=xs;function il(K,oe){var ve=ul(K)||jp(K)?ae(K.length,String):[],Ie=ve.length,vn=!!Ie;for(var Un in K)_e.call(K,Un)&&!(vn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function Lo(K,oe,ve){var Ie=K[oe];(!(_e.call(K,oe)&&sl(Ie,ve))||ve===void 0&&!(oe in K))&&(K[oe]=ve)}function Ai(K,oe){for(var ve=K.length;ve--;)if(sl(K[ve][0],oe))return ve;return-1}function xa(K,oe){return K&&be(oe,cl(oe),K)}function wa(K,oe,ve,Ie,vn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(K,vn,Un,Nr):Ie(K)),zn!==void 0)return zn;if(!Ps(K))return K;var mn=ul(K);if(mn){if(zn=Mn(K),!oe)return ue(K,zn)}else{var Pi=Wt(K),_i=Pi==f||Pi==h;if(ll(K))return Es(K,oe);if(Pi==y||Pi==o||_i&&!Un){if(et(K))return Un?K:{};if(zn=Fn(_i?{}:K),!oe)return Re(K,xa(zn,K))}else{if(!z[Pi])return Un?K:{};zn=Vr(K,Pi,wa,oe)}}Nr||(Nr=new pr);var dl=Nr.get(K);if(dl)return dl;if(Nr.set(K,zn),!mn)var _s=ve?it(K):cl(K);return he(_s||K,function(Wn,Sa){_s&&(Sa=Wn,Wn=K[Sa]),Lo(zn,Sa,wa(Wn,oe,ve,Ie,Sa,K,Nr))}),zn}function ws(K){return Ps(K)?Yt(K):{}}function Ds(K,oe,ve){var Ie=oe(K);return ul(K)?Ie:ye(Ie,ve(K))}function ol(K){return Ve.call(K)}function Cs(K){if(!Ps(K)||Ca(K))return!1;var oe=yd(K)||et(K)?mt:_;return oe.test(ro(K))}function Da(K){if(!Ea(K))return Sr(K);var oe=[];for(var ve in Object(K))_e.call(K,ve)&&ve!="constructor"&&oe.push(ve);return oe}function Es(K,oe){if(oe)return K.slice();var ve=new K.constructor(K.length);return K.copy(ve),ve}function no(K){var oe=new K.constructor(K.byteLength);return new Pn(oe).set(new Pn(K)),oe}function al(K,oe){var ve=oe?no(K.buffer):K.buffer;return new K.constructor(ve,K.byteOffset,K.byteLength)}function Ss(K,oe,ve){var Ie=oe?ve(dt(K),!0):dt(K);return fe(Ie,Ce,new K.constructor)}function Vo(K){var oe=new K.constructor(K.source,V.exec(K));return oe.lastIndex=K.lastIndex,oe}function Ts(K,oe,ve){var Ie=oe?ve(yt(K),!0):yt(K);return fe(Ie,Y,new K.constructor)}function B(K){return fr?Object(fr.call(K)):{}}function Q(K,oe){var ve=oe?no(K.buffer):K.buffer;return new K.constructor(ve,K.byteOffset,K.length)}function ue(K,oe){var ve=-1,Ie=K.length;for(oe||(oe=Array(Ie));++ve<Ie;)oe[ve]=K[ve];return oe}function be(K,oe,ve,Ie){ve||(ve={});for(var vn=-1,Un=oe.length;++vn<Un;){var Nr=oe[vn],zn=void 0;Lo(ve,Nr,zn===void 0?K[Nr]:zn)}return ve}function Re(K,oe){return be(K,Ot(K),oe)}function it(K){return Ds(K,cl,Ot)}function Ke(K,oe){var ve=K.__data__;return As(oe)?ve[typeof oe=="string"?"string":"hash"]:ve.map}function ze(K,oe){var ve=Fe(K,oe);return Cs(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=ol;(Rn&&Wt(new Rn(new ArrayBuffer(1)))!=A||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=$||tr&&Wt(new tr)!=b||Nn&&Wt(new Nn)!=T)&&(Wt=function(K){var oe=Ve.call(K),ve=oe==y?K.constructor:void 0,Ie=ve?ro(ve):void 0;if(Ie)switch(Ie){case Ir:return A;case Vt:return m;case En:return $;case Ne:return b;case tt:return T}return oe});function Mn(K){var oe=K.length,ve=K.constructor(oe);return oe&&typeof K[0]=="string"&&_e.call(K,"index")&&(ve.index=K.index,ve.input=K.input),ve}function Fn(K){return typeof K.constructor=="function"&&!Ea(K)?ws(_n(K)):{}}function Vr(K,oe,ve,Ie){var vn=K.constructor;switch(oe){case E:return no(K);case u:case l:return new vn(+K);case A:return al(K,Ie);case R:case S:case U:case j:case M:case X:case O:case I:case W:return Q(K,Ie);case m:return Ss(K,Ie,ve);case g:case v:return new vn(K);case C:return Vo(K);case b:return Ts(K,Ie,ve);case D:return B(K)}}function rr(K,oe){return oe=oe??i,!!oe&&(typeof K=="number"||H.test(K))&&K>-1&&K%1==0&&K<oe}function As(K){var oe=typeof K;return oe=="string"||oe=="number"||oe=="symbol"||oe=="boolean"?K!=="__proto__":K===null}function Ca(K){return!!Ee&&Ee in K}function Ea(K){var oe=K&&K.constructor,ve=typeof oe=="function"&&oe.prototype||re;return K===ve}function ro(K){if(K!=null){try{return we.call(K)}catch{}try{return K+""}catch{}}return""}function Np(K){return wa(K,!0,!0)}function sl(K,oe){return K===oe||K!==K&&oe!==oe}function jp(K){return Kp(K)&&_e.call(K,"callee")&&(!Ln.call(K,"callee")||Ve.call(K)==o)}var ul=Array.isArray;function gd(K){return K!=null&&Up(K.length)&&!yd(K)}function Kp(K){return zp(K)&&gd(K)}var ll=Vn||Mt;function yd(K){var oe=Ps(K)?Ve.call(K):"";return oe==f||oe==h}function Up(K){return typeof K=="number"&&K>-1&&K%1==0&&K<=i}function Ps(K){var oe=typeof K;return!!K&&(oe=="object"||oe=="function")}function zp(K){return!!K&&typeof K=="object"}function cl(K){return gd(K)?il(K):Da(K)}function Bt(){return[]}function Mt(){return!1}e.exports=Np})(Fb,Fb.exports);var sa=Fb.exports,kb=function(){return kb=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},kb.apply(this,arguments)};function qq(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function l(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,l)}d((r=r.apply(e,[])).next())})}function Hq(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return l([d,f])}}function l(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function bh(e,t,n,r,i){return qq(this,void 0,void 0,function(){var o,a;return Hq(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var Bb=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:kb({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},Gq=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=sa(n);bh(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var l=Bb(i,u);o.imgElement.setAttribute("src",a.toURL(l))}})}return e.prototype.update=function(t,n,r){var i=this,o=sa(t);bh(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=Bb(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},Yq=class extends Error{constructor(t="Unsupported"){super(t)}};function g1(e){return new Yq(e)}function Zq(){return this._qualifierModel||{error:g1(`unsupported qualifier ${this.constructor.name}`)}}let Jq=class{constructor(){this._qualifierModel={}}toJson(){return Zq.apply(this)}},rt=class extends Jq{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof en?this.qualifierValue=n:(this.qualifierValue=new en,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},ai=class extends rt{constructor(t,n){let r;n?r=new en([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function Xq(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function Qq(){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:g1(`unsupported action ${this.constructor.name}`)}}let eH=class{constructor(){this._actionModel={}}toJson(){return Qq.apply(this)}},Ci=class extends eH{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(),Xq(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new ai(r)):this.qualifiers.set(n,new rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class y1 extends Ci{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class hp extends y1{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new rt("h",t)),this}static fromJson(t){const n=new hp;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 tH(){return new hp}function vR(){return new y1("faces")}function nH(){return new y1("ocr_text")}class rH extends Ci{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`blur_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`blur_faces${t}`))):this.addQualifier(new rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(vR()),r&&r.regionType==="ocr_text"&&i.region(nH()),r&&r.regionType==="custom"&&i.region(hp.fromJson(r)),i}}function gs(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const bR={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},iH={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},$R={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},xR={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},oH={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},wR={444:"CHROMA_444",420:"CHROMA_420"},aH={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},sH=gs(wR);gs(aH);const uH=gs(bR),lH=gs(iH),DR=gs($R);gs(xR);gs(oH);class CR extends Ci{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=DR[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new en([t,`${n}`]).setDelimiter(":"):r=new en(t),new rt("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,o=$R[n]||n;return new this(o,r||i)}}class cH extends CR{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=DR[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 pp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class dH extends Ci{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,l=new this;return r&&l.paths(r),i&&l.cornersLevel(i),o&&l.despeckleLevel(o),a&&l.detailsLevel(a),u&&l.numOfColors(u),l}}class fH extends cH{level(t){return this._actionModel.level=t,this.setLevel(t)}}class hH extends Ci{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class pH extends fH{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(pp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class mH extends Ci{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`pixelate_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`pixelate_faces${t}`))):this.addQualifier(new rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(vR()),n&&n.regionType==="custom"&&i.region(tH()),i}}function gH(e){return new rH(e)}function yH(){return new CR("grayscale")}function tD(e){return new pH("colorize",e)}function vH(){return new dH}function bH(){return new hH}function $H(e){return new mH(e)}let xH=class extends Ci{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(pp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},nD=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:g1(`unsupported action ${this.constructor.name}`)}}};function wH(e){const t=e;return"error"in t&&!!t.error}function DH(){return new ai("ignore_aspect_ratio")}function CH(){return new ai("lossy")}function EH(){return new ai("preserve_transparency")}function SH(e){return new ai("progressive",e)}function TH(){return new ai("region_relative")}function AH(){return new ai("relative")}let v1=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},ER=class extends Ci{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof v1?i=n.getValue():i=n,this._actionModel.actionType=lH[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},PH=class extends ai{constructor(t){super("progressive",t)}},Ib=class extends ER{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(CH()),this}progressive(t){return t instanceof PH?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(SH(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(EH()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}},mp=class SR{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 nD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof SR?this.actions=this.actions.concat(t.actions):this.actions.push(new nD(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 Ib("q",t)),this}format(t){return this.addAction(new Ib("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 xH(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ci;let r=t;return typeof t=="string"&&(r=new ai(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(wH(r))return r;t.push(r)}return{actions:t}}};function rD(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 _H extends en{}class RH extends Ci{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=uH[t]||t,this.addQualifier(new rt("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new rt("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new rt("w",t))}aspectRatio(t){if(t instanceof _H)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=rD(t),this.addQualifier(new rt("ar",rD(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(AH())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(TH())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:l}=r,d=bR[n]||n,f=new this(d,u,l);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?DH():a),i&&f.relative(),o&&f.regionRelative(),f}}class b1 extends rt{constructor(t){super("g",new en(t))}}class TR extends b1{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class AR extends b1{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class PR extends b1{constructor(t){super(t)}}function OH(e){return new PR(e)}function _R(...e){const t=[...e];return new AR(t)}function RR(){return new TR}class _u extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function MH(){return new _u("ocr_text")}function FH(e){return e&&`${e}`.split(":")[0]==="auto"}function kH(e){const t=$1(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function $1(e){return`${e}`.replace("g_","")}function BH(e){return{compass:$1(e),gravityType:"direction"}}function IH(e){return $1(e)==="ocr_text"}function LH(){return{gravityType:"ocr"}}function VH(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function NH(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 OR(e){let t;const n=e==="auto"?new TR: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(NH)}}function jH(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(o=>`${o}`)};if(t){const o=n[n.length-1].values.slice(1),a=RR().autoFocus(...o);i.fallbackGravity=OR(a)}return i}function KH(e){const n=e.split(":").map(r=>new _u(r));return new AR(n)}function UH(e){return kH(e)?BH(e):IH(e)?LH():FH(e)||VH(e)?OR(e):jH(typeof e=="string"?KH(e):e)}class x1 extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof _u?t:new _u(t);return new x1(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 MR extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function zH(e){return e.gravityType==="direction"}function WH(e){return e.gravityType==="ocr"}function qH(e){return e.gravityType==="auto"}function HH(e){const{object:t,weight:n,avoid:r}=e,i=new x1(new _u(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function FR(e){const n=(e.autoFocus||[]).map(HH);return RR().autoFocus(...n)}function GH(e){const t=(e.focusOnObjects||[]).map(r=>new _u(r)),n=_R(...t);if(e.fallbackGravity){const r=FR(e.fallbackGravity);n.fallbackGravity(r)}return n}function YH(e){return zH(e)?new PR(new MR(e.compass)):WH(e)?_R(MH()):qH(e)?FR(e):GH(e)}class w1 extends RH{gravity(t){this._actionModel.gravity=UH(t);const n=typeof t=="string"?new rt("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(YH(t.gravity)),n}}class Yc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const kR=100,ZH=0;class JH extends Yc{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}`:`:${kR}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var BR=JH;class D1 extends Yc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>pp(n)),this}}class IR extends D1{toString(){return`
95
+ b_auto:border
96
+ ${this._contrast?"_contrast":""}
97
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
98
+ `.replace(/\s+/g,"")}}class LR extends D1{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class VR extends LR{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 NR extends LR{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 jR extends D1{toString(){return`
111
+ b_auto:predominant
112
+ ${this._contrast?"_contrast":""}
113
+ ${this._palette.length?`:palette_${this._palette.join("_")}`:""}
114
+ `.replace(/\s+/g,"")}}class KR extends Yc{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 UR(e){return`${e}`.replace("b_","")}function XH(){return{backgroundType:"auto"}}function QH(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 C1(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function eG(e){return Object.assign(Object.assign({},C1(e)),{backgroundType:"border"})}function zR(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=C1(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function tG(e){return Object.assign(Object.assign({},zR(e)),{backgroundType:"borderGradient"})}function nG(e){return{backgroundType:"color",color:UR(e)}}function rG(e){return Object.assign(Object.assign({},C1(e)),{backgroundType:"predominant"})}function iG(e){return Object.assign(Object.assign({},zR(e)),{backgroundType:"predominantGradient"})}function oG(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function aG(e){return UR(e)==="auto"?XH():e instanceof BR?QH(e):e instanceof IR?eG(e):e instanceof VR?tG(e):e instanceof jR?rG(e):e instanceof NR?iG(e):e instanceof KR?oG(e):nG(e)}function sG(){return new v1("svg")}function E1(){return new v1("auto")}function WR(){return new IR}function qR(){return new Yc("auto")}function HR(){return new VR}function GR(){return new NR}function YR(){return new jR}function ZR(e){return new Yc(pp(e))}function uG(){return new BR}function JR(){return new KR}const XR={auto:qR,border:WR,borderGradient:HR,predominantGradient:GR,predominant:YR,color:ZR,blurred:uG,generativeFill:JR};function lG(e){const{brightness:t,intensity:n}=e,r=XR.blurred();return r.brightness(t??ZH),r.intensity(n??kR),r}function iD(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 oD(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function cG(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function dG(e){const{backgroundType:t}=e;switch(t){case"auto":return qR();case"blurred":return lG(e);case"border":return oD(WR(),e);case"borderGradient":return iD(HR(),e);case"predominant":return oD(YR(),e);case"predominantGradient":return iD(GR(),e);case"generativeFill":return cG(JR(),e);default:return ZR(e.color)}}class fG extends w1{background(t){return this._actionModel.background=aG(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(dG(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class hG extends w1{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new rt("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class pG extends w1{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function mG(e,t){return new hG("crop",e,t)}function gG(e,t){return new pG("fill",e,t)}function yG(e,t){return new fG("pad",e,t)}class vG extends ER{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=wR[t];const n=new en([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new rt("q",n))}quantization(t){this._actionModel.quantization=t;const n=new en([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new rt("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,o=xR[n]||n,a=new this(o);if(r){const u=sH[r.toUpperCase()];u&&a.chromaSubSampling(+u)}return i&&a.quantization(i),a}}function gp(e){return new Ib("f",e)}function yp(e){return new vG(e)}function bG(){return new MR("north_east")}tD(70).color("black"),tD(40).color("white"),yH(),bH();var $G=new mp().effect(vH()).delivery(yp("auto")).delivery(gp(sG())),xG=new mp().effect($H()).delivery(yp("auto")).delivery(gp(E1())),wG=new mp().effect(gH(2e3)).delivery(yp("auto")).delivery(gp(E1())),DG=new mp().resize(yG("iw_div_2").aspectRatio(1).background(XR.auto())).resize(mG(1,1).gravity(OH(bG()))).resize(gG().height("ih").width("iw")).delivery(yp("auto")).delivery(gp(E1())),aD={vectorize:$G,pixelate:xG,blur:wG,"predominant-color":DG},sD="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",uD={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},lD="?_a=",CG=function(){function e(t,n,r,i,o,a,u){var l=this;this.mimeType="video",this.mimeSubTypes=uD,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=sa(n);bh(t,n,i,this.htmlPluginState).then(function(){l.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),l.setVideoAttributes(o,a),l.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(sa(t),o)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var o=i.type,a=i.codecs,u=i.transcode;return r.appendSourceTag(sa(t).transcode(u),o,r.buildMimeType(o,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var u=t.toURL(),l=u.split(lD),d=l[1]?"".concat(lD).concat(l[1]):"",f=a?"":".".concat(n);o.src="".concat(l[0]).concat(f).concat(d),o.type=r||"video/".concat(uD[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=sa(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var o=0,a=Object.entries(t);o<a.length;o++){var u=a[o],l=u[0],d=u[1];d&&this.videoElement.setAttribute(l,l==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var a=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);bh(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,o),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),EG=typeof aa=="object"&&aa&&aa.Object===Object&&aa,SG=typeof self=="object"&&self&&self.Object===Object&&self;EG||SG||Function("return this")();function S1(){return typeof window<"u"}function TG(e){return e instanceof HTMLImageElement}function AG(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return PG.bind(null,r,o)}function PG(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),S1()?new Promise(function(a){var u=function(){return a({lazyload:!0})},l=RG(n,u,e,t);i.cleanupCallbacks.push(function(){l(),a("canceled")})}):!1}function _G(){return window&&"IntersectionObserver"in window}function RG(e,t,n,r){try{if(!_G())return t(),function(){};var i=new IntersectionObserver(function(o){o.forEach(function(a){a.isIntersecting&&(i.unobserve(a.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function OG(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return MG.bind(null,r)}function MG(e,t,n,r,i,o){aD[e]||(e="vectorize");var a=aD[e].actions,u=sa(n);if(a.forEach(function(d){u.addAction(d)}),!S1())return n.transformation=u.transformation,!0;if(TG(t)){u.transformation.actions.forEach(function(d,f){d instanceof Ci&&d.getActionTag()==="responsive"&&delete u.transformation.actions[f]});var l=Bb(i,{placeholder:!0});return t.src=u.toURL(l),t.onerror=function(){t.src=sD},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=sD,d("canceled")});var f=new Image;f.src=n.toURL(l),f.onload=function(){d({placeholder:!0})},f.onerror=function(){d({placeholder:!0})}})})}}function FG(e,t,n){var r=sa(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 $h(e){e.cleanupCallbacks.forEach(function(t){t()})}var Lb=function(e,t){return Lb=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])},Lb(e,t)};function QR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var wc=function(){return wc=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},wc.apply(this,arguments)};function e7(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 Dc={exports:{}},_t={};/*
115
+ object-assign
116
+ (c) Sindre Sorhus
117
+ @license MIT
118
+ */var cD=Object.getOwnPropertySymbols,kG=Object.prototype.hasOwnProperty,BG=Object.prototype.propertyIsEnumerable;function IG(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function LG(){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 t7=LG()?Object.assign:function(e,t){for(var n,r=IG(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)kG.call(n,a)&&(r[a]=n[a]);if(cD){i=cD(n);for(var u=0;u<i.length;u++)BG.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
119
+ * react.production.min.js
120
+ *
121
+ * Copyright (c) Facebook, Inc. and its affiliates.
122
+ *
123
+ * This source code is licensed under the MIT license found in the
124
+ * LICENSE file in the root directory of this source tree.
125
+ */var T1=t7,Ei=typeof Symbol=="function"&&Symbol.for,Zc=Ei?Symbol.for("react.element"):60103,VG=Ei?Symbol.for("react.portal"):60106,NG=Ei?Symbol.for("react.fragment"):60107,jG=Ei?Symbol.for("react.strict_mode"):60108,KG=Ei?Symbol.for("react.profiler"):60114,UG=Ei?Symbol.for("react.provider"):60109,zG=Ei?Symbol.for("react.context"):60110,WG=Ei?Symbol.for("react.forward_ref"):60112,qG=Ei?Symbol.for("react.suspense"):60113,HG=Ei?Symbol.for("react.memo"):60115,GG=Ei?Symbol.for("react.lazy"):60116,dD=typeof Symbol=="function"&&Symbol.iterator;function Jc(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 n7={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r7={};function Wu(e,t,n){this.props=e,this.context=t,this.refs=r7,this.updater=n||n7}Wu.prototype.isReactComponent={};Wu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Jc(85));this.updater.enqueueSetState(this,e,t,"setState")};Wu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function i7(){}i7.prototype=Wu.prototype;function A1(e,t,n){this.props=e,this.context=t,this.refs=r7,this.updater=n||n7}var P1=A1.prototype=new i7;P1.constructor=A1;T1(P1,Wu.prototype);P1.isPureReactComponent=!0;var _1={current:null},o7=Object.prototype.hasOwnProperty,a7={key:!0,ref:!0,__self:!0,__source:!0};function s7(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)o7.call(t,r)&&!a7.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var l=Array(u),d=0;d<u;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Zc,type:e,key:o,ref:a,props:i,_owner:_1.current}}function YG(e,t){return{$$typeof:Zc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function R1(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zc}function ZG(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var u7=/\/+/g,xh=[];function l7(e,t,n,r){if(xh.length){var i=xh.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 c7(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>xh.length&&xh.push(e)}function Vb(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Zc:case VG:o=!0}}if(o)return n(r,e,t===""?"."+Pg(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){i=e[a];var u=t+Pg(i,a);o+=Vb(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=dD&&e[dD]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=t+Pg(i,a++),o+=Vb(i,u,n,r);else if(i==="object")throw n=""+e,Error(Jc(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function Nb(e,t,n){return e==null?0:Vb(e,"",t,n)}function Pg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ZG(e.key):t.toString(36)}function JG(e,t){e.func.call(e.context,t,e.count++)}function XG(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?jb(e,r,n,function(o){return o}):e!=null&&(R1(e)&&(e=YG(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(u7,"$&/")+"/")+n)),r.push(e))}function jb(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(u7,"$&/")+"/"),t=l7(t,o,r,i),Nb(e,XG,t),c7(t)}var d7={current:null};function Oo(){var e=d7.current;if(e===null)throw Error(Jc(321));return e}var QG={ReactCurrentDispatcher:d7,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_1,IsSomeRendererActing:{current:!1},assign:T1};_t.Children={map:function(e,t,n){if(e==null)return e;var r=[];return jb(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=l7(null,null,t,n),Nb(e,JG,t),c7(t)},count:function(e){return Nb(e,function(){return null},null)},toArray:function(e){var t=[];return jb(e,t,null,function(n){return n}),t},only:function(e){if(!R1(e))throw Error(Jc(143));return e}};_t.Component=Wu;_t.Fragment=NG;_t.Profiler=KG;_t.PureComponent=A1;_t.StrictMode=jG;_t.Suspense=qG;_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QG;_t.cloneElement=function(e,t,n){if(e==null)throw Error(Jc(267,e));var r=T1({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=_1.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)o7.call(t,l)&&!a7.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&u!==void 0?u[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){u=Array(l);for(var d=0;d<l;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:Zc,type:e.type,key:i,ref:o,props:r,_owner:a}};_t.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:zG,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:UG,_context:e},e.Consumer=e};_t.createElement=s7;_t.createFactory=function(e){var t=s7.bind(null,e);return t.type=e,t};_t.createRef=function(){return{current:null}};_t.forwardRef=function(e){return{$$typeof:WG,render:e}};_t.isValidElement=R1;_t.lazy=function(e){return{$$typeof:GG,_ctor:e,_status:-1,_result:null}};_t.memo=function(e,t){return{$$typeof:HG,type:e,compare:t===void 0?null:t}};_t.useCallback=function(e,t){return Oo().useCallback(e,t)};_t.useContext=function(e,t){return Oo().useContext(e,t)};_t.useDebugValue=function(){};_t.useEffect=function(e,t){return Oo().useEffect(e,t)};_t.useImperativeHandle=function(e,t,n){return Oo().useImperativeHandle(e,t,n)};_t.useLayoutEffect=function(e,t){return Oo().useLayoutEffect(e,t)};_t.useMemo=function(e,t){return Oo().useMemo(e,t)};_t.useReducer=function(e,t,n){return Oo().useReducer(e,t,n)};_t.useRef=function(e){return Oo().useRef(e)};_t.useState=function(e){return Oo().useState(e)};_t.version="16.14.0";var Pt={},eY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",tY=eY,nY=Function.call.bind(Object.prototype.hasOwnProperty),Kb=function(){};if(process.env.NODE_ENV!=="production"){var rY=tY,Ub={},iY=nY;Kb=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function f7(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(iY(e,o)){var a;try{if(typeof e[o]!="function"){var u=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}a=e[o](t,o,r,n,null,rY)}catch(d){a=d}if(a&&!(a instanceof Error)&&Kb((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in Ub)){Ub[a.message]=!0;var l=i?i():"";Kb("Failed "+n+" type: "+a.message+(l??""))}}}}f7.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Ub={})};var oY=f7;/** @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=t7,t=oY,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,$=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,T=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function R(B){if(B===null||typeof B!="object")return null;var Q=E&&B[E]||B[A];return typeof Q=="function"?Q:null}var S={current:null},U={suspense:null},j={current:null},M=/^(.*)[\\\/]/;function X(B,Q,ue){var be="";if(Q){var Re=Q.fileName,it=Re.replace(M,"");if(/^index\./.test(it)){var Ke=Re.match(M);if(Ke){var ze=Ke[1];if(ze){var Ot=ze.replace(M,"");it=Ot+"/"+it}}}be=" (at "+it+":"+Q.lineNumber+")"}else ue&&(be=" (created by "+ue+")");return`
133
+ in `+(B||"Unknown")+be}var O=1;function I(B){return B._status===O?B._result:null}function W(B,Q,ue){var be=Q.displayName||Q.name||"";return B.displayName||(be!==""?ue+"("+be+")":ue)}function k(B){if(B==null)return null;if(typeof B.tag=="number"&&ie("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case a:return"Fragment";case o:return"Portal";case l:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case y:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case m:return W(B,B.render,"ForwardRef");case $:return k(B.type);case b:return k(B.render);case C:{var Q=B,ue=I(Q);if(ue)return k(ue);break}}return null}var V={},_=null;function H(B){_=B}V.getCurrentStack=null,V.getStackAddendum=function(){var B="";if(_){var Q=k(_.type),ue=_._owner;B+=X(Q,_._source,ue&&k(ue.type))}var be=V.getCurrentStack;return be&&(B+=be()||""),B};var z={current:!1},N={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:U,ReactCurrentOwner:j,IsSomeRendererActing:z,assign:e};e(N,{ReactDebugCurrentFrame:V,ReactComponentTreeHook:{}});function ne(B){{for(var Q=arguments.length,ue=new Array(Q>1?Q-1:0),be=1;be<Q;be++)ue[be-1]=arguments[be];le("warn",B,ue)}}function ie(B){{for(var Q=arguments.length,ue=new Array(Q>1?Q-1:0),be=1;be<Q;be++)ue[be-1]=arguments[be];le("error",B,ue)}}function le(B,Q,ue){{var be=ue.length>0&&typeof ue[ue.length-1]=="string"&&ue[ue.length-1].indexOf(`
134
+ in`)===0;if(!be){var Re=N.ReactDebugCurrentFrame,it=Re.getStackAddendum();it!==""&&(Q+="%s",ue=ue.concat([it]))}var Ke=ue.map(function(Wt){return""+Wt});Ke.unshift("Warning: "+Q),Function.prototype.apply.call(console[B],console,Ke);try{var ze=0,Ot="Warning: "+Q.replace(/%s/g,function(){return ue[ze++]});throw new Error(Ot)}catch{}}}var $e={};function De(B,Q){{var ue=B.constructor,be=ue&&(ue.displayName||ue.name)||"ReactClass",Re=be+"."+Q;if($e[Re])return;ie("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.",Q,be),$e[Re]=!0}}var Ce={isMounted:function(B){return!1},enqueueForceUpdate:function(B,Q,ue){De(B,"forceUpdate")},enqueueReplaceState:function(B,Q,ue,be){De(B,"replaceState")},enqueueSetState:function(B,Q,ue,be){De(B,"setState")}},Y={};Object.freeze(Y);function he(B,Q,ue){this.props=B,this.context=Q,this.refs=Y,this.updater=ue||Ce}he.prototype.isReactComponent={},he.prototype.setState=function(B,Q){if(!(typeof B=="object"||typeof B=="function"||B==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,Q,"setState")},he.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};{var ye={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)."]},fe=function(B,Q){Object.defineProperty(he.prototype,B,{get:function(){ne("%s(...) is deprecated in plain JavaScript React classes. %s",Q[0],Q[1])}})};for(var ae in ye)ye.hasOwnProperty(ae)&&fe(ae,ye[ae])}function Fe(){}Fe.prototype=he.prototype;function et(B,Q,ue){this.props=B,this.context=Q,this.refs=Y,this.updater=ue||Ce}var dt=et.prototype=new Fe;dt.constructor=et,e(dt,he.prototype),dt.isPureReactComponent=!0;function Dn(){var B={current:null};return Object.seal(B),B}var yt=Object.prototype.hasOwnProperty,G={key:!0,ref:!0,__self:!0,__source:!0},Z,re,pe;pe={};function Ee(B){if(yt.call(B,"ref")){var Q=Object.getOwnPropertyDescriptor(B,"ref").get;if(Q&&Q.isReactWarning)return!1}return B.ref!==void 0}function we(B){if(yt.call(B,"key")){var Q=Object.getOwnPropertyDescriptor(B,"key").get;if(Q&&Q.isReactWarning)return!1}return B.key!==void 0}function _e(B,Q){var ue=function(){Z||(Z=!0,ie("%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)",Q))};ue.isReactWarning=!0,Object.defineProperty(B,"key",{get:ue,configurable:!0})}function Ve(B,Q){var ue=function(){re||(re=!0,ie("%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)",Q))};ue.isReactWarning=!0,Object.defineProperty(B,"ref",{get:ue,configurable:!0})}function mt(B){if(typeof B.ref=="string"&&j.current&&B.__self&&j.current.stateNode!==B.__self){var Q=k(j.current.type);pe[Q]||(ie('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',k(j.current.type),B.ref),pe[Q]=!0)}}var ut=function(B,Q,ue,be,Re,it,Ke){var ze={$$typeof:i,type:B,key:Q,ref:ue,props:Ke,_owner:it};return ze._store={},Object.defineProperty(ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.freeze&&(Object.freeze(ze.props),Object.freeze(ze)),ze};function Rt(B,Q,ue){var be,Re={},it=null,Ke=null,ze=null,Ot=null;if(Q!=null){Ee(Q)&&(Ke=Q.ref,mt(Q)),we(Q)&&(it=""+Q.key),ze=Q.__self===void 0?null:Q.__self,Ot=Q.__source===void 0?null:Q.__source;for(be in Q)yt.call(Q,be)&&!G.hasOwnProperty(be)&&(Re[be]=Q[be])}var Wt=arguments.length-2;if(Wt===1)Re.children=ue;else if(Wt>1){for(var Mn=Array(Wt),Fn=0;Fn<Wt;Fn++)Mn[Fn]=arguments[Fn+2];Object.freeze&&Object.freeze(Mn),Re.children=Mn}if(B&&B.defaultProps){var Vr=B.defaultProps;for(be in Vr)Re[be]===void 0&&(Re[be]=Vr[be])}if(it||Ke){var rr=typeof B=="function"?B.displayName||B.name||"Unknown":B;it&&_e(Re,rr),Ke&&Ve(Re,rr)}return ut(B,it,Ke,ze,Ot,j.current,Re)}function Pn(B,Q){var ue=ut(B.type,Q,B.ref,B._self,B._source,B._owner,B.props);return ue}function _n(B,Q,ue){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var be,Re=e({},B.props),it=B.key,Ke=B.ref,ze=B._self,Ot=B._source,Wt=B._owner;if(Q!=null){Ee(Q)&&(Ke=Q.ref,Wt=j.current),we(Q)&&(it=""+Q.key);var Mn;B.type&&B.type.defaultProps&&(Mn=B.type.defaultProps);for(be in Q)yt.call(Q,be)&&!G.hasOwnProperty(be)&&(Q[be]===void 0&&Mn!==void 0?Re[be]=Mn[be]:Re[be]=Q[be])}var Fn=arguments.length-2;if(Fn===1)Re.children=ue;else if(Fn>1){for(var Vr=Array(Fn),rr=0;rr<Fn;rr++)Vr[rr]=arguments[rr+2];Re.children=Vr}return ut(B.type,it,Ke,ze,Ot,Wt,Re)}function Yt(B){return typeof B=="object"&&B!==null&&B.$$typeof===i}var Ln=".",tn=":";function vt(B){var Q=/[=:]/g,ue={"=":"=0",":":"=2"},be=(""+B).replace(Q,function(Re){return ue[Re]});return"$"+be}var Vn=!1,Sr=/\/+/g;function Rn(B){return(""+B).replace(Sr,"$&/")}var er=10,On=[];function tr(B,Q,ue,be){if(On.length){var Re=On.pop();return Re.result=B,Re.keyPrefix=Q,Re.func=ue,Re.context=be,Re.count=0,Re}else return{result:B,keyPrefix:Q,func:ue,context:be,count:0}}function Nn(B){B.result=null,B.keyPrefix=null,B.func=null,B.context=null,B.count=0,On.length<er&&On.push(B)}function Cn(B,Q,ue,be){var Re=typeof B;(Re==="undefined"||Re==="boolean")&&(B=null);var it=!1;if(B===null)it=!0;else switch(Re){case"string":case"number":it=!0;break;case"object":switch(B.$$typeof){case i:case o:it=!0}}if(it)return ue(be,B,Q===""?Ln+Vt(B,0):Q),1;var Ke,ze,Ot=0,Wt=Q===""?Ln:Q+tn;if(Array.isArray(B))for(var Mn=0;Mn<B.length;Mn++)Ke=B[Mn],ze=Wt+Vt(Ke,Mn),Ot+=Cn(Ke,ze,ue,be);else{var Fn=R(B);if(typeof Fn=="function"){Fn===B.entries&&(Vn||ne("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Vn=!0);for(var Vr=Fn.call(B),rr,As=0;!(rr=Vr.next()).done;)Ke=rr.value,ze=Wt+Vt(Ke,As++),Ot+=Cn(Ke,ze,ue,be)}else if(Re==="object"){var Ca="";Ca=" If you meant to render a collection of children, use an array instead."+V.getStackAddendum();var Ea=""+B;throw Error("Objects are not valid as a React child (found: "+(Ea==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":Ea)+")."+Ca)}}return Ot}function Ir(B,Q,ue){return B==null?0:Cn(B,"",Q,ue)}function Vt(B,Q){return typeof B=="object"&&B!==null&&B.key!=null?vt(B.key):Q.toString(36)}function En(B,Q,ue){var be=B.func,Re=B.context;be.call(Re,Q,B.count++)}function Ne(B,Q,ue){if(B==null)return B;var be=tr(null,null,Q,ue);Ir(B,En,be),Nn(be)}function tt(B,Q,ue){var be=B.result,Re=B.keyPrefix,it=B.func,Ke=B.context,ze=it.call(Ke,Q,B.count++);Array.isArray(ze)?nn(ze,be,ue,function(Ot){return Ot}):ze!=null&&(Yt(ze)&&(ze=Pn(ze,Re+(ze.key&&(!Q||Q.key!==ze.key)?Rn(ze.key)+"/":"")+ue)),be.push(ze))}function nn(B,Q,ue,be,Re){var it="";ue!=null&&(it=Rn(ue)+"/");var Ke=tr(Q,it,be,Re);Ir(B,tt,Ke),Nn(Ke)}function fr(B,Q,ue){if(B==null)return B;var be=[];return nn(B,be,null,Q,ue),be}function Te(B){return Ir(B,function(){return null},null)}function je(B){var Q=[];return nn(B,Q,null,function(ue){return ue}),Q}function Ye(B){if(!Yt(B))throw Error("React.Children.only expected to receive a single React element child.");return B}function Ft(B,Q){Q===void 0?Q=null:Q!==null&&typeof Q!="function"&&ie("createContext: Expected the optional second argument to be a function. Instead received: %s",Q);var ue={$$typeof:f,_calculateChangedBits:Q,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null};ue.Provider={$$typeof:d,_context:ue};var be=!1,Re=!1;{var it={$$typeof:f,_context:ue,_calculateChangedBits:ue._calculateChangedBits};Object.defineProperties(it,{Provider:{get:function(){return Re||(Re=!0,ie("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),ue.Provider},set:function(Ke){ue.Provider=Ke}},_currentValue:{get:function(){return ue._currentValue},set:function(Ke){ue._currentValue=Ke}},_currentValue2:{get:function(){return ue._currentValue2},set:function(Ke){ue._currentValue2=Ke}},_threadCount:{get:function(){return ue._threadCount},set:function(Ke){ue._threadCount=Ke}},Consumer:{get:function(){return be||(be=!0,ie("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),ue.Consumer}}}),ue.Consumer=it}return ue._currentRenderer=null,ue._currentRenderer2=null,ue}function rn(B){var Q={$$typeof:C,_ctor:B,_status:-1,_result:null};{var ue,be;Object.defineProperties(Q,{defaultProps:{configurable:!0,get:function(){return ue},set:function(Re){ie("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ue=Re,Object.defineProperty(Q,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return be},set:function(Re){ie("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),be=Re,Object.defineProperty(Q,"propTypes",{enumerable:!0})}}})}return Q}function jn(B){return B!=null&&B.$$typeof===$?ie("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof B!="function"?ie("forwardRef requires a render function but was given %s.",B===null?"null":typeof B):B.length!==0&&B.length!==2&&ie("forwardRef render functions accept exactly two parameters: props and ref. %s",B.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),B!=null&&(B.defaultProps!=null||B.propTypes!=null)&&ie("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:m,render:B}}function Ut(B){return typeof B=="string"||typeof B=="function"||B===a||B===h||B===l||B===u||B===g||B===y||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===$||B.$$typeof===d||B.$$typeof===f||B.$$typeof===m||B.$$typeof===v||B.$$typeof===D||B.$$typeof===T||B.$$typeof===b)}function an(B,Q){return Ut(B)||ie("memo: The first argument must be a component. Instead received: %s",B===null?"null":typeof B),{$$typeof:$,type:B,compare:Q===void 0?null:Q}}function kt(){var B=S.current;if(B===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
135
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
136
+ 2. You might be breaking the Rules of Hooks
137
+ 3. You might have more than one copy of React in the same app
138
+ See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return B}function wt(B,Q){var ue=kt();if(Q!==void 0&&ie("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",Q,typeof Q=="number"&&Array.isArray(arguments[2])?`
139
+
140
+ Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),B._context!==void 0){var be=B._context;be.Consumer===B?ie("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):be.Provider===B&&ie("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return ue.useContext(B,Q)}function li(B){var Q=kt();return Q.useState(B)}function $a(B,Q,ue){var be=kt();return be.useReducer(B,Q,ue)}function hr(B){var Q=kt();return Q.useRef(B)}function Fo(B,Q){var ue=kt();return ue.useEffect(B,Q)}function ko(B,Q){var ue=kt();return ue.useLayoutEffect(B,Q)}function Bo(B,Q){var ue=kt();return ue.useCallback(B,Q)}function gt(B,Q){var ue=kt();return ue.useMemo(B,Q)}function nr(B,Q,ue){var be=kt();return be.useImperativeHandle(B,Q,ue)}function pr(B,Q){{var ue=kt();return ue.useDebugValue(B,Q)}}var Kn;Kn=!1;function Io(){if(j.current){var B=k(j.current.type);if(B)return`
141
+
142
+ Check the render method of \``+B+"`."}return""}function Lr(B){if(B!==void 0){var Q=B.fileName.replace(/^.*[\\\/]/,""),ue=B.lineNumber;return`
143
+
144
+ Check your code at `+Q+":"+ue+"."}return""}function rl(B){return B!=null?Lr(B.__source):""}var xs={};function il(B){var Q=Io();if(!Q){var ue=typeof B=="string"?B:B.displayName||B.name;ue&&(Q=`
145
+
146
+ Check the top-level render call using <`+ue+">.")}return Q}function Lo(B,Q){if(!(!B._store||B._store.validated||B.key!=null)){B._store.validated=!0;var ue=il(Q);if(!xs[ue]){xs[ue]=!0;var be="";B&&B._owner&&B._owner!==j.current&&(be=" It was passed a child from "+k(B._owner.type)+"."),H(B),ie('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',ue,be),H(null)}}}function Ai(B,Q){if(typeof B=="object"){if(Array.isArray(B))for(var ue=0;ue<B.length;ue++){var be=B[ue];Yt(be)&&Lo(be,Q)}else if(Yt(B))B._store&&(B._store.validated=!0);else if(B){var Re=R(B);if(typeof Re=="function"&&Re!==B.entries)for(var it=Re.call(B),Ke;!(Ke=it.next()).done;)Yt(Ke.value)&&Lo(Ke.value,Q)}}}function xa(B){{var Q=B.type;if(Q==null||typeof Q=="string")return;var ue=k(Q),be;if(typeof Q=="function")be=Q.propTypes;else if(typeof Q=="object"&&(Q.$$typeof===m||Q.$$typeof===$))be=Q.propTypes;else return;be?(H(B),t(be,B.props,"prop",ue,V.getStackAddendum),H(null)):Q.PropTypes!==void 0&&!Kn&&(Kn=!0,ie("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")),typeof Q.getDefaultProps=="function"&&!Q.getDefaultProps.isReactClassApproved&&ie("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wa(B){{H(B);for(var Q=Object.keys(B.props),ue=0;ue<Q.length;ue++){var be=Q[ue];if(be!=="children"&&be!=="key"){ie("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be);break}}B.ref!==null&&ie("Invalid attribute `ref` supplied to `React.Fragment`."),H(null)}}function ws(B,Q,ue){var be=Ut(B);if(!be){var Re="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=rl(Q);it?Re+=it:Re+=Io();var Ke;B===null?Ke="null":Array.isArray(B)?Ke="array":B!==void 0&&B.$$typeof===i?(Ke="<"+(k(B.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof B,ie("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,Re)}var ze=Rt.apply(this,arguments);if(ze==null)return ze;if(be)for(var Ot=2;Ot<arguments.length;Ot++)Ai(arguments[Ot],B);return B===a?wa(ze):xa(ze),ze}var Ds=!1;function ol(B){var Q=ws.bind(null,B);return Q.type=B,Ds||(Ds=!0,ne("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Q,"type",{enumerable:!1,get:function(){return ne("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:B}),B}}),Q}function Cs(B,Q,ue){for(var be=_n.apply(this,arguments),Re=2;Re<arguments.length;Re++)Ai(arguments[Re],be.type);return xa(be),be}try{var Da=Object.freeze({}),Es=new Map([[Da,null]]),no=new Set([Da]);Es.set(0,0),no.add(0)}catch{}var al=ws,Ss=Cs,Vo=ol,Ts={map:fr,forEach:Ne,count:Te,toArray:je,only:Ye};Pt.Children=Ts,Pt.Component=he,Pt.Fragment=a,Pt.Profiler=l,Pt.PureComponent=et,Pt.StrictMode=u,Pt.Suspense=g,Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,Pt.cloneElement=Ss,Pt.createContext=Ft,Pt.createElement=al,Pt.createFactory=Vo,Pt.createRef=Dn,Pt.forwardRef=jn,Pt.isValidElement=Yt,Pt.lazy=rn,Pt.memo=an,Pt.useCallback=Bo,Pt.useContext=wt,Pt.useDebugValue=pr,Pt.useEffect=Fo,Pt.useImperativeHandle=nr,Pt.useLayoutEffect=ko,Pt.useMemo=gt,Pt.useReducer=$a,Pt.useRef=hr,Pt.useState=li,Pt.version=n}();process.env.NODE_ENV==="production"?Dc.exports=_t:Dc.exports=Pt;var ru=Dc.exports,_g={sdkSemver:"1.13.1",techVersion:ru.version,sdkCode:"J"},aY=function(e){QR(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=ru.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new Gq(this.imageRef.current,this.props.cldImg,this.props.plugins,_g)},t.prototype.componentDidUpdate=function(){$h(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,_g)},t.prototype.componentWillUnmount=function(){$h(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=e7(n,["cldImg","plugins"]);if(S1())return ru.createElement("img",wc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=FG(this.props.plugins,this.props.cldImg,_g);return ru.createElement("img",wc({},r,{src:i}))},t}(ru.Component),sY=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){QR(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=Dc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new CG(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(){$h(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){$h(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return sY.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=e7(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return ru.createElement("video",wc({},r,{ref:this.attachRef}))},t})(Dc.exports.Component);function uY(e){return!(typeof e!="object"||e instanceof Array)}class lY{filterOutNonSupportedKeys(t,n){const r=Object.create({});return uY(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 fD=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class O1 extends lY{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,fD);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,fD);return new O1(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 Cc{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 cY extends Error{constructor(t="Unsupported"){super(t)}}function M1(e){return new cY(e)}function dY(){return this._qualifierModel||{error:M1(`unsupported qualifier ${this.constructor.name}`)}}class fY{constructor(){this._qualifierModel={}}toJson(){return dY.apply(this)}}class vp extends fY{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Cc?this.qualifierValue=n:(this.qualifierValue=new Cc,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 la extends vp{constructor(t,n){let r;n?r=new Cc([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function hY(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function pY(){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:M1(`unsupported action ${this.constructor.name}`)}}class mY{constructor(){this._actionModel={}}toJson(){return pY.apply(this)}}class F1 extends mY{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(),hY(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 la(r)):this.qualifiers.set(n,new vp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new la(t)):t instanceof la&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function gY(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class yY extends F1{constructor(t){super(),this._actionModel={},this.addQualifier(new vp("b",new Cc(gY(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class hD{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:M1(`unsupported action ${this.constructor.name}`)}}}function vY(e){const t=e;return"error"in t&&!!t.error}function bY(){return new la("lossy")}function $Y(){return new la("preserve_transparency")}function xY(e){return new la("progressive",e)}class wY extends Cc{constructor(t){super(t),this.val=t}getValue(){return this.val}}function ys(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const DY={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},CY={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},EY={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},SY={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},TY={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},AY={444:"CHROMA_444",420:"CHROMA_420"},PY={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};ys(AY);ys(PY);ys(DY);const _Y=ys(CY);ys(EY);ys(SY);ys(TY);class RY extends F1{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof wY?i=n.getValue():i=n,this._actionModel.actionType=_Y[t],this._actionModel[r]=i,this.addQualifier(new vp(t,n))}}class OY extends la{constructor(t){super("progressive",t)}}class wh extends RY{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(bY()),this}progressive(t){return t instanceof OY?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(xY(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag($Y()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:o}=t;let a;return n?a=new this("f",n):a=new this("f"),i&&(i.mode?a.progressive(i.mode):a.progressive()),r&&a.lossy(),o&&a.preserveTransparency(),a}}class bp{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 hD(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof bp?this.actions=this.actions.concat(t.actions):this.actions.push(new hD(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 wh("q",t)),this}format(t){return this.addAction(new wh("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 yY(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new F1;let r=t;return typeof t=="string"&&(r=new la(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(vY(r))return r;t.push(r)}return{actions:t}}}class MY extends bp{}class FY extends bp{}function kY(e){return e.match(/^https?:\//)}function BY(e){return e.indexOf("/")<0}function IY(e){return e.match(/^v[0-9]+/)}function LY(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 VY(e){return e||"image"}function NY(e){return e||"upload"}function jY(e,t,n){const r=n!==!1;return t?`v${t}`:IY(e)||kY(e)||BY(e)?"":r?"v1":""}function k1(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=KY(i,r/i.length)),i.slice(0,r)+String(e))}function KY(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const UY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Dh={};let pD=0;UY.split("").forEach(e=>{let t=pD.toString(2);t=k1(t,6,"0"),Dh[t]=e,pD++});function zY(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function WY(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 k1(t,2,"0")}).join(".")}function mD(e){let t="";const r=e.split(".").length*6,i=zY(e),o=WY(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=k1(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(l=>{t+=Dh[l]}),t}function qY(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 HY="1.21.0";function GY(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),a=i.padStart(6,"0");return Dh[o]+Dh[a]}function YY(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function ZY(e){const t={techVersion:YY(),sdkCode:"T",sdkSemver:HY.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 gD(e){const t=ZY(e),n=qY(t);try{const r=JY(n.techVersion),i=mD(n.sdkSemver),o=mD(r),a=GY(n.osVersion),u=n.feature,l=n.sdkCode,{product:d,osType:f}=n;return`D${d}${l}${i}${o}${f}${a}${u}`}catch{return"E"}}function JY(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const yD={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class XY{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new O1(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=VY(this.assetType),n=NY(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=yD[`${t}/${n}`],a=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(yD).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=LY(this.cloudName,this.urlConfig),i=t?t.toString():"",o=jY(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,a.replace(/,/g,"%2C"),this.suffix].filter(l=>l).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),l=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);l&&f.set("_a",gD(n)),d=f.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",l&&(d+=`${d.length>0?"&":""}_a=${gD(n)}`);return d?`${u}?${d}`:u}}}class h7 extends XY{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 wh("q",t)),this}format(t){return this.addAction(new wh("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 QY extends h7{constructor(t,n,r){super(t,n,r,new MY)}}class eZ extends h7{constructor(t,n,r){super(t,n,r,new FY),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class tZ{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new QY(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new eZ(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var Rg,vD;function nZ(){if(vD)return Rg;vD=1;function e(){this.__data__=[],this.size=0}return Rg=e,Rg}var Og,bD;function p7(){if(bD)return Og;bD=1;function e(t,n){return t===n||t!==t&&n!==n}return Og=e,Og}var Mg,$D;function $p(){if($D)return Mg;$D=1;var e=p7();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Mg=t,Mg}var Fg,xD;function rZ(){if(xD)return Fg;xD=1;var e=$p(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var u=o.length-1;return a==u?o.pop():n.call(o,a,1),--this.size,!0}return Fg=r,Fg}var kg,wD;function iZ(){if(wD)return kg;wD=1;var e=$p();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return kg=t,kg}var Bg,DD;function oZ(){if(DD)return Bg;DD=1;var e=$p();function t(n){return e(this.__data__,n)>-1}return Bg=t,Bg}var Ig,CD;function aZ(){if(CD)return Ig;CD=1;var e=$p();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return Ig=t,Ig}var Lg,ED;function xp(){if(ED)return Lg;ED=1;var e=nZ(),t=rZ(),n=iZ(),r=oZ(),i=aZ();function o(a){var u=-1,l=a==null?0:a.length;for(this.clear();++u<l;){var d=a[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Lg=o,Lg}var Vg,SD;function sZ(){if(SD)return Vg;SD=1;var e=xp();function t(){this.__data__=new e,this.size=0}return Vg=t,Vg}var Ng,TD;function uZ(){if(TD)return Ng;TD=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Ng=e,Ng}var jg,AD;function lZ(){if(AD)return jg;AD=1;function e(t){return this.__data__.get(t)}return jg=e,jg}var Kg,PD;function cZ(){if(PD)return Kg;PD=1;function e(t){return this.__data__.has(t)}return Kg=e,Kg}var Ug,_D;function m7(){if(_D)return Ug;_D=1;var e=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi;return Ug=e,Ug}var zg,RD;function Mo(){if(RD)return zg;RD=1;var e=m7(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return zg=n,zg}var Wg,OD;function B1(){if(OD)return Wg;OD=1;var e=Mo(),t=e.Symbol;return Wg=t,Wg}var qg,MD;function dZ(){if(MD)return qg;MD=1;var e=B1(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),l=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=l:delete a[i]),f}return qg=o,qg}var Hg,FD;function fZ(){if(FD)return Hg;FD=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Hg=n,Hg}var Gg,kD;function Xc(){if(kD)return Gg;kD=1;var e=B1(),t=dZ(),n=fZ(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Gg=a,Gg}var Yg,BD;function g7(){if(BD)return Yg;BD=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Yg=e,Yg}var Zg,ID;function y7(){if(ID)return Zg;ID=1;var e=Xc(),t=g7(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(u){if(!t(u))return!1;var l=e(u);return l==r||l==i||l==n||l==o}return Zg=a,Zg}var Jg,LD;function hZ(){if(LD)return Jg;LD=1;var e=Mo(),t=e["__core-js_shared__"];return Jg=t,Jg}var Xg,VD;function pZ(){if(VD)return Xg;VD=1;var e=hZ(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return Xg=n,Xg}var Qg,ND;function v7(){if(ND)return Qg;ND=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Qg=n,Qg}var ey,jD;function mZ(){if(jD)return ey;jD=1;var e=y7(),t=pZ(),n=g7(),r=v7(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(m){if(!n(m)||t(m))return!1;var g=e(m)?f:o;return g.test(r(m))}return ey=h,ey}var ty,KD;function gZ(){if(KD)return ty;KD=1;function e(t,n){return t==null?void 0:t[n]}return ty=e,ty}var ny,UD;function qu(){if(UD)return ny;UD=1;var e=mZ(),t=gZ();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return ny=n,ny}var ry,zD;function I1(){if(zD)return ry;zD=1;var e=qu(),t=Mo(),n=e(t,"Map");return ry=n,ry}var iy,WD;function wp(){if(WD)return iy;WD=1;var e=qu(),t=e(Object,"create");return iy=t,iy}var oy,qD;function yZ(){if(qD)return oy;qD=1;var e=wp();function t(){this.__data__=e?e(null):{},this.size=0}return oy=t,oy}var ay,HD;function vZ(){if(HD)return ay;HD=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ay=e,ay}var sy,GD;function bZ(){if(GD)return sy;GD=1;var e=wp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var u=a[o];return u===t?void 0:u}return r.call(a,o)?a[o]:void 0}return sy=i,sy}var uy,YD;function $Z(){if(YD)return uy;YD=1;var e=wp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return uy=r,uy}var ly,ZD;function xZ(){if(ZD)return ly;ZD=1;var e=wp(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return ly=n,ly}var cy,JD;function wZ(){if(JD)return cy;JD=1;var e=yZ(),t=vZ(),n=bZ(),r=$Z(),i=xZ();function o(a){var u=-1,l=a==null?0:a.length;for(this.clear();++u<l;){var d=a[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,cy=o,cy}var dy,XD;function DZ(){if(XD)return dy;XD=1;var e=wZ(),t=xp(),n=I1();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return dy=r,dy}var fy,QD;function CZ(){if(QD)return fy;QD=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return fy=e,fy}var hy,eC;function Dp(){if(eC)return hy;eC=1;var e=CZ();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return hy=t,hy}var py,tC;function EZ(){if(tC)return py;tC=1;var e=Dp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return py=t,py}var my,nC;function SZ(){if(nC)return my;nC=1;var e=Dp();function t(n){return e(this,n).get(n)}return my=t,my}var gy,rC;function TZ(){if(rC)return gy;rC=1;var e=Dp();function t(n){return e(this,n).has(n)}return gy=t,gy}var yy,iC;function AZ(){if(iC)return yy;iC=1;var e=Dp();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return yy=t,yy}var vy,oC;function b7(){if(oC)return vy;oC=1;var e=DZ(),t=EZ(),n=SZ(),r=TZ(),i=AZ();function o(a){var u=-1,l=a==null?0:a.length;for(this.clear();++u<l;){var d=a[u];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,vy=o,vy}var by,aC;function PZ(){if(aC)return by;aC=1;var e=xp(),t=I1(),n=b7(),r=200;function i(o,a){var u=this.__data__;if(u instanceof e){var l=u.__data__;if(!t||l.length<r-1)return l.push([o,a]),this.size=++u.size,this;u=this.__data__=new n(l)}return u.set(o,a),this.size=u.size,this}return by=i,by}var $y,sC;function _Z(){if(sC)return $y;sC=1;var e=xp(),t=sZ(),n=uZ(),r=lZ(),i=cZ(),o=PZ();function a(u){var l=this.__data__=new e(u);this.size=l.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,$y=a,$y}var xy,uC;function RZ(){if(uC)return xy;uC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return xy=t,xy}var wy,lC;function OZ(){if(lC)return wy;lC=1;function e(t){return this.__data__.has(t)}return wy=e,wy}var Dy,cC;function MZ(){if(cC)return Dy;cC=1;var e=b7(),t=RZ(),n=OZ();function r(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Dy=r,Dy}var Cy,dC;function FZ(){if(dC)return Cy;dC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Cy=e,Cy}var Ey,fC;function kZ(){if(fC)return Ey;fC=1;function e(t,n){return t.has(n)}return Ey=e,Ey}var Sy,hC;function $7(){if(hC)return Sy;hC=1;var e=MZ(),t=FZ(),n=kZ(),r=1,i=2;function o(a,u,l,d,f,h){var m=l&r,g=a.length,y=u.length;if(g!=y&&!(m&&y>g))return!1;var $=h.get(a),C=h.get(u);if($&&C)return $==u&&C==a;var b=-1,v=!0,D=l&i?new e:void 0;for(h.set(a,u),h.set(u,a);++b<g;){var T=a[b],E=u[b];if(d)var A=m?d(E,T,b,u,a,h):d(T,E,b,a,u,h);if(A!==void 0){if(A)continue;v=!1;break}if(D){if(!t(u,function(R,S){if(!n(D,S)&&(T===R||f(T,R,l,d,h)))return D.push(S)})){v=!1;break}}else if(!(T===E||f(T,E,l,d,h))){v=!1;break}}return h.delete(a),h.delete(u),v}return Sy=o,Sy}var Ty,pC;function BZ(){if(pC)return Ty;pC=1;var e=Mo(),t=e.Uint8Array;return Ty=t,Ty}var Ay,mC;function IZ(){if(mC)return Ay;mC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return Ay=e,Ay}var Py,gC;function LZ(){if(gC)return Py;gC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Py=e,Py}var _y,yC;function VZ(){if(yC)return _y;yC=1;var e=B1(),t=BZ(),n=p7(),r=$7(),i=IZ(),o=LZ(),a=1,u=2,l="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Map]",m="[object Number]",g="[object RegExp]",y="[object Set]",$="[object String]",C="[object Symbol]",b="[object ArrayBuffer]",v="[object DataView]",D=e?e.prototype:void 0,T=D?D.valueOf:void 0;function E(A,R,S,U,j,M,X){switch(S){case v:if(A.byteLength!=R.byteLength||A.byteOffset!=R.byteOffset)return!1;A=A.buffer,R=R.buffer;case b:return!(A.byteLength!=R.byteLength||!M(new t(A),new t(R)));case l:case d:case m:return n(+A,+R);case f:return A.name==R.name&&A.message==R.message;case g:case $:return A==R+"";case h:var O=i;case y:var I=U&a;if(O||(O=o),A.size!=R.size&&!I)return!1;var W=X.get(A);if(W)return W==R;U|=u,X.set(A,R);var k=r(O(A),O(R),U,j,M,X);return X.delete(A),k;case C:if(T)return T.call(A)==T.call(R)}return!1}return _y=E,_y}var Ry,vC;function NZ(){if(vC)return Ry;vC=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return Ry=e,Ry}var Oy,bC;function L1(){if(bC)return Oy;bC=1;var e=Array.isArray;return Oy=e,Oy}var My,$C;function jZ(){if($C)return My;$C=1;var e=NZ(),t=L1();function n(r,i,o){var a=i(r);return t(r)?a:e(a,o(r))}return My=n,My}var Fy,xC;function KZ(){if(xC)return Fy;xC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var u=t[r];n(u,r,t)&&(a[o++]=u)}return a}return Fy=e,Fy}var ky,wC;function UZ(){if(wC)return ky;wC=1;function e(){return[]}return ky=e,ky}var By,DC;function zZ(){if(DC)return By;DC=1;var e=KZ(),t=UZ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(u){return r.call(a,u)}))}:t;return By=o,By}var Iy,CC;function WZ(){if(CC)return Iy;CC=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Iy=e,Iy}var Ly,EC;function Qc(){if(EC)return Ly;EC=1;function e(t){return t!=null&&typeof t=="object"}return Ly=e,Ly}var Vy,SC;function qZ(){if(SC)return Vy;SC=1;var e=Xc(),t=Qc(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Vy=r,Vy}var Ny,TC;function HZ(){if(TC)return Ny;TC=1;var e=qZ(),t=Qc(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return Ny=o,Ny}var Hl={exports:{}},jy,AC;function GZ(){if(AC)return jy;AC=1;function e(){return!1}return jy=e,jy}Hl.exports;var PC;function x7(){return PC||(PC=1,function(e,t){var n=Mo(),r=GZ(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,u=a?n.Buffer:void 0,l=u?u.isBuffer:void 0,d=l||r;e.exports=d}(Hl,Hl.exports)),Hl.exports}var Ky,_C;function YZ(){if(_C)return Ky;_C=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Ky=n,Ky}var Uy,RC;function w7(){if(RC)return Uy;RC=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Uy=t,Uy}var zy,OC;function ZZ(){if(OC)return zy;OC=1;var e=Xc(),t=w7(),n=Qc(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",u="[object Error]",l="[object Function]",d="[object Map]",f="[object Number]",h="[object Object]",m="[object RegExp]",g="[object Set]",y="[object String]",$="[object WeakMap]",C="[object ArrayBuffer]",b="[object DataView]",v="[object Float32Array]",D="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",R="[object Uint8Array]",S="[object Uint8ClampedArray]",U="[object Uint16Array]",j="[object Uint32Array]",M={};M[v]=M[D]=M[T]=M[E]=M[A]=M[R]=M[S]=M[U]=M[j]=!0,M[r]=M[i]=M[C]=M[o]=M[b]=M[a]=M[u]=M[l]=M[d]=M[f]=M[h]=M[m]=M[g]=M[y]=M[$]=!1;function X(O){return n(O)&&t(O.length)&&!!M[e(O)]}return zy=X,zy}var Wy,MC;function JZ(){if(MC)return Wy;MC=1;function e(t){return function(n){return t(n)}}return Wy=e,Wy}var Gl={exports:{}};Gl.exports;var FC;function XZ(){return FC||(FC=1,function(e,t){var n=m7(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=u}(Gl,Gl.exports)),Gl.exports}var qy,kC;function D7(){if(kC)return qy;kC=1;var e=ZZ(),t=JZ(),n=XZ(),r=n&&n.isTypedArray,i=r?t(r):e;return qy=i,qy}var Hy,BC;function QZ(){if(BC)return Hy;BC=1;var e=WZ(),t=HZ(),n=L1(),r=x7(),i=YZ(),o=D7(),a=Object.prototype,u=a.hasOwnProperty;function l(d,f){var h=n(d),m=!h&&t(d),g=!h&&!m&&r(d),y=!h&&!m&&!g&&o(d),$=h||m||g||y,C=$?e(d.length,String):[],b=C.length;for(var v in d)(f||u.call(d,v))&&!($&&(v=="length"||g&&(v=="offset"||v=="parent")||y&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||i(v,b)))&&C.push(v);return C}return Hy=l,Hy}var Gy,IC;function eJ(){if(IC)return Gy;IC=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Gy=t,Gy}var Yy,LC;function tJ(){if(LC)return Yy;LC=1;function e(t,n){return function(r){return t(n(r))}}return Yy=e,Yy}var Zy,VC;function nJ(){if(VC)return Zy;VC=1;var e=tJ(),t=e(Object.keys,Object);return Zy=t,Zy}var Jy,NC;function rJ(){if(NC)return Jy;NC=1;var e=eJ(),t=nJ(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var u in Object(o))r.call(o,u)&&u!="constructor"&&a.push(u);return a}return Jy=i,Jy}var Xy,jC;function iJ(){if(jC)return Xy;jC=1;var e=y7(),t=w7();function n(r){return r!=null&&t(r.length)&&!e(r)}return Xy=n,Xy}var Qy,KC;function oJ(){if(KC)return Qy;KC=1;var e=QZ(),t=rJ(),n=iJ();function r(i){return n(i)?e(i):t(i)}return Qy=r,Qy}var ev,UC;function aJ(){if(UC)return ev;UC=1;var e=jZ(),t=zZ(),n=oJ();function r(i){return e(i,n,t)}return ev=r,ev}var tv,zC;function sJ(){if(zC)return tv;zC=1;var e=aJ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,u,l,d,f){var h=u&t,m=e(o),g=m.length,y=e(a),$=y.length;if(g!=$&&!h)return!1;for(var C=g;C--;){var b=m[C];if(!(h?b in a:r.call(a,b)))return!1}var v=f.get(o),D=f.get(a);if(v&&D)return v==a&&D==o;var T=!0;f.set(o,a),f.set(a,o);for(var E=h;++C<g;){b=m[C];var A=o[b],R=a[b];if(l)var S=h?l(R,A,b,a,o,f):l(A,R,b,o,a,f);if(!(S===void 0?A===R||d(A,R,u,l,f):S)){T=!1;break}E||(E=b=="constructor")}if(T&&!E){var U=o.constructor,j=a.constructor;U!=j&&"constructor"in o&&"constructor"in a&&!(typeof U=="function"&&U instanceof U&&typeof j=="function"&&j instanceof j)&&(T=!1)}return f.delete(o),f.delete(a),T}return tv=i,tv}var nv,WC;function uJ(){if(WC)return nv;WC=1;var e=qu(),t=Mo(),n=e(t,"DataView");return nv=n,nv}var rv,qC;function lJ(){if(qC)return rv;qC=1;var e=qu(),t=Mo(),n=e(t,"Promise");return rv=n,rv}var iv,HC;function cJ(){if(HC)return iv;HC=1;var e=qu(),t=Mo(),n=e(t,"Set");return iv=n,iv}var ov,GC;function dJ(){if(GC)return ov;GC=1;var e=qu(),t=Mo(),n=e(t,"WeakMap");return ov=n,ov}var av,YC;function fJ(){if(YC)return av;YC=1;var e=uJ(),t=I1(),n=lJ(),r=cJ(),i=dJ(),o=Xc(),a=v7(),u="[object Map]",l="[object Object]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",m="[object DataView]",g=a(e),y=a(t),$=a(n),C=a(r),b=a(i),v=o;return(e&&v(new e(new ArrayBuffer(1)))!=m||t&&v(new t)!=u||n&&v(n.resolve())!=d||r&&v(new r)!=f||i&&v(new i)!=h)&&(v=function(D){var T=o(D),E=T==l?D.constructor:void 0,A=E?a(E):"";if(A)switch(A){case g:return m;case y:return u;case $:return d;case C:return f;case b:return h}return T}),av=v,av}var sv,ZC;function hJ(){if(ZC)return sv;ZC=1;var e=_Z(),t=$7(),n=VZ(),r=sJ(),i=fJ(),o=L1(),a=x7(),u=D7(),l=1,d="[object Arguments]",f="[object Array]",h="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function y($,C,b,v,D,T){var E=o($),A=o(C),R=E?f:i($),S=A?f:i(C);R=R==d?h:R,S=S==d?h:S;var U=R==h,j=S==h,M=R==S;if(M&&a($)){if(!a(C))return!1;E=!0,U=!1}if(M&&!U)return T||(T=new e),E||u($)?t($,C,b,v,D,T):n($,C,R,b,v,D,T);if(!(b&l)){var X=U&&g.call($,"__wrapped__"),O=j&&g.call(C,"__wrapped__");if(X||O){var I=X?$.value():$,W=O?C.value():C;return T||(T=new e),D(I,W,b,v,T)}}return M?(T||(T=new e),r($,C,b,v,D,T)):!1}return sv=y,sv}var uv,JC;function pJ(){if(JC)return uv;JC=1;var e=hJ(),t=Qc();function n(r,i,o,a,u){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,a,n,u)}return uv=n,uv}var lv,XC;function mJ(){if(XC)return lv;XC=1;var e=pJ();function t(n,r){return e(n,r)}return lv=t,lv}var gJ=mJ();const yJ=Qi(gJ);var cv={exports:{}},QC;function vJ(){return QC||(QC=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
147
+ * Prism: Lightweight, robust, elegant syntax highlighting
148
+ *
149
+ * @license MIT <https://opensource.org/licenses/MIT>
150
+ * @author Lea Verou <https://lea.verou.me>
151
+ * @namespace
152
+ * @public
153
+ */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(D){return D instanceof l?new l(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,T){T=T||{};var E,A;switch(u.util.type(D)){case"Object":if(A=u.util.objId(D),T[A])return T[A];E={},T[A]=E;for(var R in D)D.hasOwnProperty(R)&&(E[R]=v(D[R],T));return E;case"Array":return A=u.util.objId(D),T[A]?T[A]:(E=[],T[A]=E,D.forEach(function(S,U){E[U]=v(S,T)}),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 T in D)if(D[T].src==v)return D[T]}return null}},isActive:function(v,D,T){for(var E="no-"+D;v;){var A=v.classList;if(A.contains(D))return!0;if(A.contains(E))return!1;v=v.parentElement}return!!T}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,D){var T=u.util.clone(u.languages[v]);for(var E in D)T[E]=D[E];return T},insertBefore:function(v,D,T,E){E=E||u.languages;var A=E[v],R={};for(var S in A)if(A.hasOwnProperty(S)){if(S==D)for(var U in T)T.hasOwnProperty(U)&&(R[U]=T[U]);T.hasOwnProperty(S)||(R[S]=A[S])}var j=E[v];return E[v]=R,u.languages.DFS(u.languages,function(M,X){X===j&&M!=v&&(this[M]=R)}),R},DFS:function v(D,T,E,A){A=A||{};var R=u.util.objId;for(var S in D)if(D.hasOwnProperty(S)){T.call(D,S,D[S],E||S);var U=D[S],j=u.util.type(U);j==="Object"&&!A[R(U)]?(A[R(U)]=!0,v(U,T,null,A)):j==="Array"&&!A[R(U)]&&(A[R(U)]=!0,v(U,T,S,A))}}},plugins:{},highlightAll:function(v,D){u.highlightAllUnder(document,v,D)},highlightAllUnder:function(v,D,T){var E={callback:T,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),u.hooks.run("before-all-elements-highlight",E);for(var A=0,R;R=E.elements[A++];)u.highlightElement(R,D===!0,E.callback)},highlightElement:function(v,D,T){var E=u.util.getLanguage(v),A=u.languages[E];u.util.setLanguage(v,E);var R=v.parentElement;R&&R.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(R,E);var S=v.textContent,U={element:v,language:E,grammar:A,code:S};function j(X){U.highlightedCode=X,u.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,u.hooks.run("after-highlight",U),u.hooks.run("complete",U),T&&T.call(U.element)}if(u.hooks.run("before-sanity-check",U),R=U.element.parentElement,R&&R.nodeName.toLowerCase()==="pre"&&!R.hasAttribute("tabindex")&&R.setAttribute("tabindex","0"),!U.code){u.hooks.run("complete",U),T&&T.call(U.element);return}if(u.hooks.run("before-highlight",U),!U.grammar){j(u.util.encode(U.code));return}if(D&&r.Worker){var M=new Worker(u.filename);M.onmessage=function(X){j(X.data)},M.postMessage(JSON.stringify({language:U.language,code:U.code,immediateClose:!0}))}else j(u.highlight(U.code,U.grammar,U.language))},highlight:function(v,D,T){var E={code:v,grammar:D,language:T};if(u.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=u.tokenize(E.code,E.grammar),u.hooks.run("after-tokenize",E),l.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(v,D){var T=D.rest;if(T){for(var E in T)D[E]=T[E];delete D.rest}var A=new h;return m(A,A.head,v),f(v,A,D,A.head,0),y(A)},hooks:{all:{},add:function(v,D){var T=u.hooks.all;T[v]=T[v]||[],T[v].push(D)},run:function(v,D){var T=u.hooks.all[v];if(!(!T||!T.length))for(var E=0,A;A=T[E++];)A(D)}},Token:l};r.Prism=u;function l(v,D,T,E){this.type=v,this.content=D,this.alias=T,this.length=(E||"").length|0}l.stringify=function v(D,T){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(j){E+=v(j,T)}),E}var A={type:D.type,content:v(D.content,T),tag:"span",classes:["token",D.type],attributes:{},language:T},R=D.alias;R&&(Array.isArray(R)?Array.prototype.push.apply(A.classes,R):A.classes.push(R)),u.hooks.run("wrap",A);var S="";for(var U in A.attributes)S+=" "+U+'="'+(A.attributes[U]||"").replace(/"/g,"&quot;")+'"';return"<"+A.tag+' class="'+A.classes.join(" ")+'"'+S+">"+A.content+"</"+A.tag+">"};function d(v,D,T,E){v.lastIndex=D;var A=v.exec(T);if(A&&E&&A[1]){var R=A[1].length;A.index+=R,A[0]=A[0].slice(R)}return A}function f(v,D,T,E,A,R){for(var S in T)if(!(!T.hasOwnProperty(S)||!T[S])){var U=T[S];U=Array.isArray(U)?U:[U];for(var j=0;j<U.length;++j){if(R&&R.cause==S+","+j)return;var M=U[j],X=M.inside,O=!!M.lookbehind,I=!!M.greedy,W=M.alias;if(I&&!M.pattern.global){var k=M.pattern.toString().match(/[imsuy]*$/)[0];M.pattern=RegExp(M.pattern.source,k+"g")}for(var V=M.pattern||M,_=E.next,H=A;_!==D.tail&&!(R&&H>=R.reach);H+=_.value.length,_=_.next){var z=_.value;if(D.length>v.length)return;if(!(z instanceof l)){var N=1,ne;if(I){if(ne=d(V,H,v,O),!ne||ne.index>=v.length)break;var De=ne.index,ie=ne.index+ne[0].length,le=H;for(le+=_.value.length;De>=le;)_=_.next,le+=_.value.length;if(le-=_.value.length,H=le,_.value instanceof l)continue;for(var $e=_;$e!==D.tail&&(le<ie||typeof $e.value=="string");$e=$e.next)N++,le+=$e.value.length;N--,z=v.slice(H,le),ne.index-=H}else if(ne=d(V,0,z,O),!ne)continue;var De=ne.index,Ce=ne[0],Y=z.slice(0,De),he=z.slice(De+Ce.length),ye=H+z.length;R&&ye>R.reach&&(R.reach=ye);var fe=_.prev;Y&&(fe=m(D,fe,Y),H+=Y.length),g(D,fe,N);var ae=new l(S,X?u.tokenize(Ce,X):Ce,W,Ce);if(_=m(D,fe,ae),he&&m(D,_,he),N>1){var Fe={cause:S+","+j,reach:ye};f(v,D,T,_.prev,H,Fe),R&&Fe.reach>R.reach&&(R.reach=Fe.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 m(v,D,T){var E=D.next,A={value:T,prev:D,next:E};return D.next=A,E.prev=A,v.length++,A}function g(v,D,T){for(var E=D.next,A=0;A<T&&E!==v.tail;A++)E=E.next;D.next=E,E.prev=D,v.length-=A}function y(v){for(var D=[],T=v.head.next;T!==v.tail;)D.push(T.value),T=T.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(v){var D=JSON.parse(v.data),T=D.language,E=D.code,A=D.immediateClose;r.postMessage(u.highlight(E,u.languages[T],T)),A&&r.close()},!1)),u;var $=u.util.currentScript();$&&(u.filename=$.src,$.hasAttribute("data-manual")&&(u.manual=!0));function C(){u.manual||u.highlightAll()}if(!u.manual){var b=document.readyState;b==="loading"||b==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return u}(t);e.exports&&(e.exports=n),typeof Vi<"u"&&(Vi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function($,C){return"✖ Error "+$+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",d="loaded",f="failed",h="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+l+'"])';function m($,C,b){var v=new XMLHttpRequest;v.open("GET",$,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?C(v.responseText):v.status>=400?b(i(v.status,v.statusText)):b(o))},v.send(null)}function g($){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(C){var b=Number(C[1]),v=C[2],D=C[3];return v?D?[b,Number(D)]:[b,void 0]:[b,b]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+h}),n.hooks.add("before-sanity-check",function($){var C=$.element;if(C.matches(h)){$.code="",C.setAttribute(u,l);var b=C.appendChild(document.createElement("CODE"));b.textContent=r;var v=C.getAttribute("data-src"),D=$.language;if(D==="none"){var T=(/\.(\w+)$/.exec(v)||[,"none"])[1];D=a[T]||T}n.util.setLanguage(b,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),m(v,function(A){C.setAttribute(u,d);var R=g(C.getAttribute("data-range"));if(R){var S=A.split(/\r\n?|\n/g),U=R[0],j=R[1]==null?S.length:R[1];U<0&&(U+=S.length),U=Math.max(0,Math.min(U-1,S.length)),j<0&&(j+=S.length),j=Math.max(0,Math.min(j,S.length)),A=S.slice(U,j).join(`
154
+ `),C.hasAttribute("data-start")||C.setAttribute("data-start",String(U+1))}b.textContent=A,n.highlightElement(b)},function(A){C.setAttribute(u,f),b.textContent=A})}}),n.plugins.fileHighlight={highlight:function(C){for(var b=(C||document).querySelectorAll(h),v=0,D;D=b[v++];)n.highlightElement(D)}};var y=!1;n.fileHighlight=function(){y||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),y=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(cv)),cv.exports}var bJ=vJ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(m,g){return Array.prototype.slice.call((g||document).querySelectorAll(m))}function i(m,g){return m.classList.contains(g)}function o(m){m()}var a=function(){var m;return function(){if(typeof m>"u"){var g=document.createElement("div");g.style.fontSize="13px",g.style.lineHeight="1.5",g.style.padding="0",g.style.border="0",g.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(g),m=g.offsetHeight===38,document.body.removeChild(g)}return m}}();function u(m,g){var y=getComputedStyle(m),$=getComputedStyle(g);function C(b){return+b.substr(0,b.length-2)}return g.offsetTop+C($.borderTopWidth)+C($.paddingTop)-C(y.paddingTop)}function l(m){return!m||!/pre/i.test(m.nodeName)?!1:!!(m.hasAttribute("data-line")||m.id&&Prism.util.isActive(m,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(g,y,$){y=typeof y=="string"?y:g.getAttribute("data-line")||"";var C=y.replace(/\s+/g,"").split(",").filter(Boolean),b=+g.getAttribute("data-line-offset")||0,v=a()?parseInt:parseFloat,D=v(getComputedStyle(g).lineHeight),T=Prism.util.isActive(g,e),E=g.querySelector("code"),A=T?g:E||g,R=[],S=E.textContent.match(n),U=S?S.length+1:1,j=!E||A==E?0:u(g,E);C.forEach(function(O){var I=O.split("-"),W=+I[0],k=+I[1]||W;if(k=Math.min(U+b,k),!(k<W)){var V=g.querySelector('.line-highlight[data-range="'+O+'"]')||document.createElement("div");if(R.push(function(){V.setAttribute("aria-hidden","true"),V.setAttribute("data-range",O),V.className=($||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var _=Prism.plugins.lineNumbers.getLine(g,W),H=Prism.plugins.lineNumbers.getLine(g,k);if(_){var z=_.offsetTop+j+"px";R.push(function(){V.style.top=z})}if(H){var N=H.offsetTop-_.offsetTop+H.offsetHeight+"px";R.push(function(){V.style.height=N})}}else R.push(function(){V.setAttribute("data-start",String(W)),k>W&&V.setAttribute("data-end",String(k)),V.style.top=(W-b-1)*D+j+"px",V.textContent=new Array(k-W+2).join(`
155
+ `)});R.push(function(){V.style.width=g.scrollWidth+"px"}),R.push(function(){A.appendChild(V)})}});var M=g.id;if(T&&Prism.util.isActive(g,t)&&M){i(g,t)||R.push(function(){g.classList.add(t)});var X=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(O,I){var W=I+X;O.onclick=function(){var k=M+"."+W;d=!1,location.hash=k,setTimeout(function(){d=!0},1)}})}return function(){R.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(b){b.parentNode.removeChild(b)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var y=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(y);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(l(g)){var y=0;r(".line-highlight",g).forEach(function($){y+=$.textContent.length,$.parentNode.removeChild($)}),y&&/^(?: \n)+$/.test(m.code.slice(-y))&&(m.code=m.code.slice(0,-y))}}),Prism.hooks.add("complete",function m(g){var y=g.element.parentElement;if(l(y)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(y,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var b=Prism.plugins.lineHighlight.highlightLines(y);b(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(l).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const C7=x.createContext({});function ed(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const V1=x.createContext(null),N1=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function $J(e=!0){const t=x.useContext(V1);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=x.useId();x.useEffect(()=>{e&&i(o)},[e]);const a=x.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const j1=typeof window<"u",E7=j1?x.useLayoutEffect:x.useEffect,Er=e=>e;let Hu=Er,Xi=Er;process.env.NODE_ENV!=="production"&&(Hu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Xi=(e,t)=>{if(!e)throw new Error(t)});function K1(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ru=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Gi=e=>e*1e3,Co=e=>e/1e3,xJ={skipAnimations:!1,useManualTiming:!1};function wJ(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(l.schedule(d),e()),d(a)}const l={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,l.process(d))}};return l}const $f=["read","resolveKeyframes","update","preRender","render","postRender"],DJ=40;function S7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=$f.reduce((b,v)=>(b[v]=wJ(o),b),{}),{read:u,resolveKeyframes:l,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,DJ),1),i.timestamp=b,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:$f.reduce((b,v)=>{const D=a[v];return b[v]=(T,E=!1,A=!1)=>(n||y(),D.schedule(T,E,A)),b},{}),cancel:b=>{for(let v=0;v<$f.length;v++)a[$f[v]].cancel(b)},state:i,steps:a}}const{schedule:Kt,cancel:Ao,state:Bn,steps:dv}=S7(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),T7=x.createContext({strict:!1}),eE={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"]},Ou={};for(const e in eE)Ou[e]={isEnabled:t=>eE[e].some(n=>!!t[n])};function CJ(e){for(const t in e)Ou[t]={...Ou[t],...e[t]}}const EJ=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 Ch(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||EJ.has(e)}let A7=e=>!Ch(e);function SJ(e){e&&(A7=t=>t.startsWith("on")?!Ch(t):e(t))}try{SJ(require("@emotion/is-prop-valid").default)}catch{}function TJ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(A7(i)||n===!0&&Ch(i)||!t&&!Ch(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const tE=new Set;function Cp(e,t,n){e||tE.has(t)||(console.warn(t),tE.add(t))}function AJ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Cp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Ep=x.createContext({});function Ec(e){return typeof e=="string"||Array.isArray(e)}function Sp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const U1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],z1=["initial",...U1];function Tp(e){return Sp(e.animate)||z1.some(t=>Ec(e[t]))}function P7(e){return!!(Tp(e)||e.variants)}function PJ(e,t){if(Tp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ec(n)?n:void 0,animate:Ec(r)?r:void 0}}return e.inherit!==!1?t:{}}function _J(e){const{initial:t,animate:n}=PJ(e,x.useContext(Ep));return x.useMemo(()=>({initial:t,animate:n}),[nE(t),nE(n)])}function nE(e){return Array.isArray(e)?e.join(" "):e}const RJ=Symbol.for("motionComponentSymbol");function iu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function OJ(e,t,n){return x.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):iu(n)&&(n.current=r))},[t])}const W1=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),MJ="framerAppearId",_7="data-"+W1(MJ),{schedule:q1,cancel:Pue}=S7(queueMicrotask,!1),R7=x.createContext({});function FJ(e,t,n,r,i){var o,a;const{visualElement:u}=x.useContext(Ep),l=x.useContext(T7),d=x.useContext(V1),f=x.useContext(N1).reducedMotion,h=x.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=x.useContext(R7);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&kJ(h.current,n,i,g);const y=x.useRef(!1);x.useInsertionEffect(()=>{m&&y.current&&m.update(n,d)});const $=n[_7],C=x.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return E7(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),q1.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),x.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,$)}),C.current=!1))}),m}function kJ(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:O7(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&iu(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function O7(e){if(e)return e.options.allowProjection!==!1?e.projection:O7(e.parent)}function BJ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&CJ(e);function u(d,f){let h;const m={...x.useContext(N1),...d,layoutId:IJ(d)},{isStatic:g}=m,y=_J(d),$=r(d,g);if(!g&&j1){LJ(m,e);const C=VJ(m);h=C.MeasureLayout,y.visualElement=FJ(i,$,m,t,C.ProjectionNode)}return So.jsxs(Ep.Provider,{value:y,children:[h&&y.visualElement?So.jsx(h,{visualElement:y.visualElement,...m}):null,n(i,d,OJ($,y.visualElement,f),$,g,y.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const l=x.forwardRef(u);return l[RJ]=i,l}function IJ({layoutId:e}){const t=x.useContext(C7).id;return t&&e!==void 0?t+"-"+e:e}function LJ(e,t){const n=x.useContext(T7).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?Hu(!1,r):Xi(!1,r)}}function VJ(e){const{drag:t,layout:n}=Ou;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 NJ=["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 H1(e){return typeof e!="string"||e.includes("-")?!1:!!(NJ.indexOf(e)>-1||/[A-Z]/u.test(e))}function rE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function G1(e,t,n,r){if(typeof t=="function"){const[i,o]=rE(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]=rE(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const zb=e=>Array.isArray(e),jJ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KJ=e=>zb(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function Uf(e){const t=In(e)?e.get():e;return jJ(t)?t.toValue():t}function UJ({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:zJ(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const M7=e=>(t,n)=>{const r=x.useContext(Ep),i=x.useContext(V1),o=()=>UJ(e,t,r,i);return n?o():ed(o)};function zJ(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=Uf(o[m]);let{initial:a,animate:u}=e;const l=Tp(e),d=P7(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!Sp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const y=G1(e,m[g]);if(y){const{transitionEnd:$,transition:C,...b}=y;for(const v in b){let D=b[v];if(Array.isArray(D)){const T=f?D.length-1:0;D=D[T]}D!==null&&(i[v]=D)}for(const v in $)i[v]=$[v]}}}return i}const Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(Gu),F7=e=>t=>typeof t=="string"&&t.startsWith(e),k7=F7("--"),WJ=F7("var(--"),Y1=e=>WJ(e)?qJ.test(e.split("/*")[0].trim()):!1,qJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,B7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Po=(e,t,n)=>n>t?t:n<e?e:n,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sc={...Yu,transform:e=>Po(0,1,e)},xf={...Yu,default:1},td=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xo=td("deg"),Yi=td("%"),He=td("px"),HJ=td("vh"),GJ=td("vw"),iE={...Yi,parse:e=>Yi.parse(e)/100,transform:e=>Yi.transform(e*100)},YJ={borderWidth:He,borderTopWidth:He,borderRightWidth:He,borderBottomWidth:He,borderLeftWidth:He,borderRadius:He,radius:He,borderTopLeftRadius:He,borderTopRightRadius:He,borderBottomRightRadius:He,borderBottomLeftRadius:He,width:He,maxWidth:He,height:He,maxHeight:He,top:He,right:He,bottom:He,left:He,padding:He,paddingTop:He,paddingRight:He,paddingBottom:He,paddingLeft:He,margin:He,marginTop:He,marginRight:He,marginBottom:He,marginLeft:He,backgroundPositionX:He,backgroundPositionY:He},ZJ={rotate:Xo,rotateX:Xo,rotateY:Xo,rotateZ:Xo,scale:xf,scaleX:xf,scaleY:xf,scaleZ:xf,skew:Xo,skewX:Xo,skewY:Xo,distance:He,translateX:He,translateY:He,translateZ:He,x:He,y:He,z:He,perspective:He,transformPerspective:He,opacity:Sc,originX:iE,originY:iE,originZ:He},oE={...Yu,transform:Math.round},Z1={...YJ,...ZJ,zIndex:oE,size:He,fillOpacity:Sc,strokeOpacity:Sc,numOctaves:oE},JJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},XJ=Gu.length;function QJ(e,t,n){let r="",i=!0;for(let o=0;o<XJ;o++){const a=Gu[o],u=e[a];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(a.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=B7(u,Z1[a]);if(!l){i=!1;const f=JJ[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function J1(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const l in t){const d=t[l];if(vs.has(l)){a=!0;continue}else if(k7(l)){i[l]=d;continue}else{const f=B7(d,Z1[l]);l.startsWith("origin")?(u=!0,o[l]=f):r[l]=f}}if(t.transform||(a||n?r.transform=QJ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${l} ${d} ${f}`}}const eX={offset:"stroke-dashoffset",array:"stroke-dasharray"},tX={offset:"strokeDashoffset",array:"strokeDasharray"};function nX(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?eX:tX;e[o.offset]=He.transform(-r);const a=He.transform(t),u=He.transform(n);e[o.array]=`${a} ${u}`}function aE(e,t,n){return typeof e=="string"?e:He.transform(t+n*e)}function rX(e,t,n){const r=aE(t,e.x,e.width),i=aE(n,e.y,e.height);return`${r} ${i}`}function X1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:l=0,...d},f,h){if(J1(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:y}=e;m.transform&&(y&&(g.transform=m.transform),delete m.transform),y&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=rX(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&nX(m,a,u,l,!1)}const Q1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),I7=()=>({...Q1(),attrs:{}}),e4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function L7(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 V7=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 N7(e,t,n,r){L7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(V7.has(i)?i:W1(i),t.attrs[i])}const Eh={};function iX(e){Object.assign(Eh,e)}function j7(e,{layout:t,layoutId:n}){return vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Eh[e]||e==="opacity")}function t4(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||j7(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function K7(e,t,n){const r=t4(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Gu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function oX(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const sE=["x","y","width","height","cx","cy","r"],aX={useVisualState:M7({scrapeMotionValuesFromProps:K7,createRenderState:I7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(vs.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<sE.length;u++){const l=sE[u];e[l]!==t[l]&&(a=!0)}a&&Kt.read(()=>{oX(n,r),Kt.render(()=>{X1(r,i,e4(n.tagName),e.transformTemplate),N7(n,r)})})}})},sX={useVisualState:M7({scrapeMotionValuesFromProps:t4,createRenderState:Q1})};function U7(e,t,n){for(const r in t)!In(t[r])&&!j7(r,n)&&(e[r]=t[r])}function uX({transformTemplate:e},t){return x.useMemo(()=>{const n=Q1();return J1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lX(e,t){const n=e.style||{},r={};return U7(r,n,e),Object.assign(r,uX(e,t)),r}function cX(e,t){const n={},r=lX(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function dX(e,t,n,r){const i=x.useMemo(()=>{const o=I7();return X1(o,t,e4(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};U7(o,e.style,e),i.style={...o,...i.style}}return i}function fX(e=!1){return(n,r,i,{latestValues:o},a)=>{const l=(H1(n)?dX:cX)(r,o,a,n),d=TJ(r,typeof n=="string",e),f=n!==x.Fragment?{...d,...l,ref:i}:{},{children:h}=r,m=x.useMemo(()=>In(h)?h.get():h,[h]);return x.createElement(n,{...f,children:m})}}function hX(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...H1(r)?aX:sX,preloadedFeatures:e,useRender:fX(i),createVisualElement:t,Component:r};return BJ(a)}}function z7(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 Ap(e,t,n){const r=e.getProps();return G1(r,t,n!==void 0?n:r.custom,e)}const pX=K1(()=>window.ScrollTimeline!==void 0);class mX{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(pX()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let gX=class extends mX{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function n4(e,t){return e?e[t]||e.default||e:void 0}const Wb=2e4;function W7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Wb;)t+=n,r=e.next(t);return t>=Wb?1/0:t}function r4(e){return typeof e=="function"}function uE(e,t){e.timeline=t,e.onfinish=null}const i4=e=>Array.isArray(e)&&typeof e[0]=="number",yX={linearEasing:void 0};function vX(e,t){const n=K1(e);return()=>{var r;return(r=yX[t])!==null&&r!==void 0?r:n()}}const Sh=vX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),q7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ru(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function H7(e){return!!(typeof e=="function"&&Sh()||!e||typeof e=="string"&&(e in qb||Sh())||i4(e)||Array.isArray(e)&&e.every(H7))}const Yl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,qb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yl([0,.65,.55,1]),circOut:Yl([.55,0,1,.45]),backIn:Yl([.31,.01,.66,-.59]),backOut:Yl([.33,1.53,.69,.99])};function G7(e,t){if(e)return typeof e=="function"&&Sh()?q7(e,t):i4(e)?Yl(e):Array.isArray(e)?e.map(n=>G7(n,t)||qb.easeOut):qb[e]}const pi={x:!1,y:!1};function Y7(){return pi.x||pi.y}function bX(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 Z7(e,t){const n=bX(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function lE(e){return t=>{t.pointerType==="touch"||Y7()||e(t)}}function $X(e,t,n={}){const[r,i,o]=Z7(e,n),a=lE(u=>{const{target:l}=u,d=t(u);if(typeof d!="function"||!l)return;const f=lE(h=>{d(h),l.removeEventListener("pointerleave",f)});l.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const J7=(e,t)=>t?e===t?!0:J7(e,t.parentElement):!1,o4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,xX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function wX(e){return xX.has(e.tagName)||e.tabIndex!==-1}const Zl=new WeakSet;function cE(e){return t=>{t.key==="Enter"&&e(t)}}function fv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const DX=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=cE(()=>{if(Zl.has(n))return;fv(n,"down");const i=cE(()=>{fv(n,"up")}),o=()=>fv(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function dE(e){return o4(e)&&!Y7()}function CX(e,t,n={}){const[r,i,o]=Z7(e,n),a=u=>{const l=u.currentTarget;if(!dE(u)||Zl.has(l))return;Zl.add(l);const d=t(u),f=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!dE(g)||!Zl.has(l))&&(Zl.delete(l),typeof d=="function"&&d(g,{success:y}))},h=g=>{f(g,n.useGlobalTarget||J7(l,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!wX(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>DX(d,i),i)}),o}function EX(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const X7=new Set(["width","height","top","left","right","bottom",...Gu]);let zf;function SX(){zf=void 0}const Zi={now:()=>(zf===void 0&&Zi.set(Bn.isProcessing||xJ.useManualTiming?Bn.timestamp:performance.now()),zf),set:e=>{zf=e,queueMicrotask(SX)}};function a4(e,t){e.indexOf(t)===-1&&e.push(t)}function s4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function TX([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let u4=class{constructor(){this.subscriptions=[]}add(t){return a4(this.subscriptions,t),()=>s4(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function Q7(e,t){return t?e*(1e3/t):0}const fE=30,AX=e=>!isNaN(parseFloat(e)),ac={current:void 0};let PX=class{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Zi.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=Zi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=AX(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Cp(!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 u4);const r=this.events[t].add(n);return t==="change"?()=>{r(),Kt.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 ac.current&&ac.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Zi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fE)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fE);return Q7(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 Mu(e,t){return new PX(e,t)}function _X(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mu(n))}function RX(e,t){const n=Ap(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=KJ(o[a]);_X(e,a,u)}}function OX(e){return!!(In(e)&&e.add)}function Hb(e,t){const n=e.getValue("willChange");if(OX(n))return n.add(t)}function eO(e){return e.props[_7]}const tO=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,MX=1e-7,FX=12;function kX(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=tO(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>MX&&++u<FX);return a}function nd(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>kX(o,0,1,e,n);return o=>o===0||o===1?o:tO(i(o),t,r)}const nO=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rO=e=>t=>1-e(1-t),iO=nd(.33,1.53,.69,.99),l4=rO(iO),oO=nO(l4),aO=e=>(e*=2)<1?.5*l4(e):.5*(2-Math.pow(2,-10*(e-1))),c4=e=>1-Math.sin(Math.acos(e)),sO=rO(c4),uO=nO(c4),lO=e=>/^0[^.\s]+$/u.test(e);function BX(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lO(e):!0}const sc=e=>Math.round(e*1e5)/1e5,d4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function IX(e){return e==null}const LX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f4=(e,t)=>n=>!!(typeof n=="string"&&LX.test(n)&&n.startsWith(e)||t&&!IX(n)&&Object.prototype.hasOwnProperty.call(n,t)),cO=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(d4);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},VX=e=>Po(0,255,e),hv={...Yu,transform:e=>Math.round(VX(e))},Ga={test:f4("rgb","red"),parse:cO("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+hv.transform(e)+", "+hv.transform(t)+", "+hv.transform(n)+", "+sc(Sc.transform(r))+")"};function NX(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 Gb={test:f4("#"),parse:NX,transform:Ga.transform},ou={test:f4("hsl","hue"),parse:cO("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Yi.transform(sc(t))+", "+Yi.transform(sc(n))+", "+sc(Sc.transform(r))+")"},Gn={test:e=>Ga.test(e)||Gb.test(e)||ou.test(e),parse:e=>Ga.test(e)?Ga.parse(e):ou.test(e)?ou.parse(e):Gb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):ou.transform(e)},jX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KX(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(d4))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jX))===null||n===void 0?void 0:n.length)||0)>0}const dO="number",fO="color",UX="var",zX="var(",hE="${}",WX=/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 Tc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(WX,l=>(Gn.test(l)?(r.color.push(o),i.push(fO),n.push(Gn.parse(l))):l.startsWith(zX)?(r.var.push(o),i.push(UX),n.push(l)):(r.number.push(o),i.push(dO),n.push(parseFloat(l))),++o,hE)).split(hE);return{values:n,split:u,indexes:r,types:i}}function hO(e){return Tc(e).values}function pO(e){const{split:t,types:n}=Tc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===dO?o+=sc(i[a]):u===fO?o+=Gn.transform(i[a]):o+=i[a]}return o}}const qX=e=>typeof e=="number"?0:e;function HX(e){const t=hO(e);return pO(e)(t.map(qX))}const pa={test:KX,parse:hO,createTransformer:pO,getAnimatableNone:HX},GX=new Set(["brightness","contrast","saturate","opacity"]);function YX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(d4)||[];if(!r)return e;const i=n.replace(r,"");let o=GX.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const ZX=/\b([a-z-]*)\(.*?\)/gu,Yb={...pa,getAnimatableNone:e=>{const t=e.match(ZX);return t?t.map(YX).join(" "):e}},JX={...Z1,color:Gn,backgroundColor:Gn,outlineColor:Gn,fill:Gn,stroke:Gn,borderColor:Gn,borderTopColor:Gn,borderRightColor:Gn,borderBottomColor:Gn,borderLeftColor:Gn,filter:Yb,WebkitFilter:Yb},h4=e=>JX[e];function mO(e,t){let n=h4(e);return n!==Yb&&(n=pa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const XX=new Set(["auto","none","0"]);function QX(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!XX.has(o)&&Tc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=mO(n,i)}const pE=e=>e===Yu||e===He,mE=(e,t)=>parseFloat(e.split(", ")[t]),gE=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return mE(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?mE(o[1],e):0}},eQ=new Set(["x","y","z"]),tQ=Gu.filter(e=>!eQ.has(e));function nQ(e){const t=[];return tQ.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:gE(4,13),y:gE(5,14)};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const es=new Set;let Zb=!1,Jb=!1;function gO(){if(Jb){const e=Array.from(es).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=nQ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Jb=!1,Zb=!1,es.forEach(e=>e.complete()),es.clear()}function yO(){es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jb=!0)})}function rQ(){yO(),gO()}let p4=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(es.add(this),Zb||(Zb=!0,Kt.read(yO),Kt.resolveKeyframes(gO))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const vO=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),iQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oQ(e){const t=iQ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const aQ=4;function bO(e,t,n=1){Xi(n<=aQ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=oQ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return vO(a)?parseFloat(a):a}return Y1(i)?bO(i,t,n+1):i}const $O=e=>t=>t.test(e),sQ={test:e=>e==="auto",parse:e=>e},xO=[Yu,He,Yi,Xo,GJ,HJ,sQ],yE=e=>xO.find($O(e));let wO=class extends p4{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 l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),Y1(d))){const f=bO(d,n.current);f!==void 0&&(t[l]=f),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!X7.has(r)||t.length!==2)return;const[i,o]=t,a=yE(i),u=yE(o);if(a!==u)if(pE(a)&&pE(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)BX(t[i])&&r.push(i);r.length&&QX(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Fu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}};const vE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pa.test(e)||e==="0")&&!e.startsWith("url("));function uQ(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 lQ(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=vE(i,t),u=vE(o,t);return Hu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:uQ(e)||(n==="spring"||r4(n))&&r}const cQ=e=>e!==null;function Pp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(cQ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const dQ=40;let DO=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Zi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>dQ?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&rQ(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Zi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!lQ(t,r,i,o))if(a)this.options.duration=0;else{l&&l(Pp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Gt=(e,t,n)=>e+(t-e)*n;function pv(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 fQ({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=pv(l,u,e+1/3),o=pv(l,u,e),a=pv(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Th(e,t){return n=>n>0?t:e}const mv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},hQ=[Gb,Ga,ou],pQ=e=>hQ.find(t=>t.test(e));function bE(e){const t=pQ(e);if(Hu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ou&&(n=fQ(n)),n}const $E=(e,t)=>{const n=bE(e),r=bE(t);if(!n||!r)return Th(e,t);const i={...n};return o=>(i.red=mv(n.red,r.red,o),i.green=mv(n.green,r.green,o),i.blue=mv(n.blue,r.blue,o),i.alpha=Gt(n.alpha,r.alpha,o),Ga.transform(i))},mQ=(e,t)=>n=>t(e(n)),rd=(...e)=>e.reduce(mQ),Xb=new Set(["none","hidden"]);function gQ(e,t){return Xb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yQ(e,t){return n=>Gt(e,t,n)}function m4(e){return typeof e=="number"?yQ:typeof e=="string"?Y1(e)?Th:Gn.test(e)?$E:$Q:Array.isArray(e)?CO:typeof e=="object"?Gn.test(e)?$E:vQ:Th}function CO(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>m4(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function vQ(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=m4(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function bQ(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=l,i[a]++}return r}const $Q=(e,t)=>{const n=pa.createTransformer(t),r=Tc(e),i=Tc(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?Xb.has(e)&&!i.values.length||Xb.has(t)&&!r.values.length?gQ(e,t):rd(CO(bQ(r,i),i.values),n):(Hu(!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.`),Th(e,t))};function EO(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Gt(e,t,n):m4(e)(e,t)}const xQ=5;function SO(e,t,n){const r=Math.max(t-xQ,0);return Q7(n-e(r),t-r)}const Jt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},xE=.001;function wQ({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Hu(e<=Gi(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Po(Jt.minDamping,Jt.maxDamping,a),e=Po(Jt.minDuration,Jt.maxDuration,Co(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=Qb(d,a),y=Math.exp(-h);return xE-m/g*y},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,y=Math.exp(-h),$=Qb(Math.pow(d,2),a);return(-i(d)+xE>0?-1:1)*((m-g)*y)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,l=CQ(i,o,u);if(e=Gi(e),isNaN(l))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const DQ=12;function CQ(e,t,n){let r=n;for(let i=1;i<DQ;i++)r=r-e(r)/t(r);return r}function Qb(e,t){return e*Math.sqrt(1-t*t)}const EQ=["duration","bounce"],SQ=["stiffness","damping","mass"];function wE(e,t){return t.some(n=>e[n]!==void 0)}function TQ(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!wE(e,SQ)&&wE(e,EQ))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Po(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=wQ(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function TO(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:l,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=TQ({...n,velocity:-Co(n.velocity||0)}),y=m||0,$=d/(2*Math.sqrt(l*f)),C=a-o,b=Co(Math.sqrt(l/f)),v=Math.abs(C)<5;r||(r=v?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=v?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=Qb(b,$);D=A=>{const R=Math.exp(-$*b*A);return a-R*((y+$*b*C)/E*Math.sin(E*A)+C*Math.cos(E*A))}}else if($===1)D=E=>a-Math.exp(-b*E)*(C+(y+b*C)*E);else{const E=b*Math.sqrt($*$-1);D=A=>{const R=Math.exp(-$*b*A),S=Math.min(E*A,300);return a-R*((y+$*b*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=D(E);if(g)u.done=E>=h;else{let R=0;$<1&&(R=E===0?Gi(y):SO(D,E,A));const S=Math.abs(R)<=r,U=Math.abs(a-A)<=i;u.done=S&&U}return u.value=u.done?a:A,u},toString:()=>{const E=Math.min(W7(T),Wb),A=q7(R=>T.next(E*R).value,E,30);return E+"ms "+A}};return T}function DE({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:l,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,y=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let $=n*t;const C=h+$,b=a===void 0?C:a(C);b!==C&&($=b-h);const v=S=>-$*Math.exp(-S/r),D=S=>b+v(S),T=S=>{const U=v(S),j=D(S);m.done=Math.abs(U)<=d,m.value=m.done?b:j};let E,A;const R=S=>{g(m.value)&&(E=S,A=TO({keyframes:[m.value,y(m.value)],velocity:SO(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return R(0),{calculatedDuration:null,next:S=>{let U=!1;return!A&&E===void 0&&(U=!0,T(S),R(S)),E!==void 0&&S>=E?A.next(S-E):(!U&&T(S),m)}}}const AQ=nd(.42,0,1,1),PQ=nd(0,0,.58,1),AO=nd(.42,0,.58,1),_Q=e=>Array.isArray(e)&&typeof e[0]!="number",CE={linear:Er,easeIn:AQ,easeInOut:AO,easeOut:PQ,circIn:c4,circInOut:uO,circOut:sO,backIn:l4,backInOut:oO,backOut:iO,anticipate:aO},EE=e=>{if(i4(e)){Xi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return nd(t,n,r,i)}else if(typeof e=="string")return Xi(CE[e]!==void 0,`Invalid easing type '${e}'`),CE[e];return e};function RQ(e,t,n){const r=[],i=n||EO,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||Er:t;u=rd(l,u)}r.push(u)}return r}function PO(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Xi(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=RQ(t,r,i),l=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ru(e[h],e[h+1],f);return u[h](m)};return n?f=>d(Po(e[0],e[o-1],f)):d}function OQ(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ru(0,t,r);e.push(Gt(n,1,i))}}function MQ(e){const t=[0];return OQ(t,e.length-1),t}function FQ(e,t){return e.map(n=>n*t)}function kQ(e,t){return e.map(()=>t||AO).splice(0,e.length-1)}function Ah({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_Q(r)?r.map(EE):EE(r),o={done:!1,value:t[0]},a=FQ(n&&n.length===t.length?n:MQ(t),e),u=PO(a,t,{ease:Array.isArray(i)?i:kQ(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}const BQ=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Kt.update(t,!0),stop:()=>Ao(t),now:()=>Bn.isProcessing?Bn.timestamp:Zi.now()}},IQ={decay:DE,inertia:DE,tween:Ah,keyframes:Ah,spring:TO},LQ=e=>e/100;let g4=class extends DO{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||p4,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=r4(n)?n:IQ[n]||Ah;let l,d;u!==Ah&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Xi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=rd(LQ,EO(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=W7(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:y,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-m*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>f;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,T=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(y==="reverse"?(j=1-j,$&&(j-=$/h)):y==="mirror"&&(T=a)),D=Po(0,1,j)*h}const E=v?{done:!1,value:l[0]}:T.next(D);u&&(E.value=u(E.value));let{done:A}=E;!v&&d!==null&&(A=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return R&&i!==void 0&&(E.value=Pp(l,this.options,i)),C&&C(E.value),R&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Co(t.calculatedDuration):0}get time(){return Co(this.currentTime)}set time(t){t=Gi(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=Co(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=BQ,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 VQ=new Set(["opacity","clipPath","filter","transform"]);function NQ(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const f=G7(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const jQ=K1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ph=10,KQ=2e4;function UQ(e){return r4(e.type)||e.type==="spring"||!H7(e.ease)}function zQ(e,t){const n=new g4({...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<KQ;)r=n.sample(o),i.push(r.value),o+=Ph;return{times:void 0,keyframes:i,duration:o-Ph,ease:"linear"}}const _O={anticipate:aO,backInOut:oO,circInOut:uO};function WQ(e){return e in _O}let SE=class extends DO{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new wO(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:u,name:l,startTime:d}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof o=="string"&&Sh()&&WQ(o)&&(o=_O[o]),UQ(this.options)){const{onComplete:h,onUpdate:m,motionValue:g,element:y,...$}=this.options,C=zQ(t,$);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,i=C.times,o=C.ease,a="keyframes"}const f=NQ(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return f.startTime=d??this.calcStartTime(),this.pendingTimeline?(uE(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;u.set(Pp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:i,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Co(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Co(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Gi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Er;const{animation:r}=n;uE(r,t)}return Er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,y=new g4({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Gi(this.time);d.setWithVelocity(y.sample($-Ph).value,y.sample($).value,Ph)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=n.owner.getProps();return jQ()&&r&&VQ.has(r)&&!l&&!d&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const qQ={type:"spring",stiffness:500,damping:25,restSpeed:10},HQ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),GQ={type:"keyframes",duration:.8},YQ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ZQ=(e,{keyframes:t})=>t.length>2?GQ:vs.has(e)?e.startsWith("scale")?HQ(t[1]):qQ:YQ;function JQ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:l,elapsed:d,...f}){return!!Object.keys(f).length}const y4=(e,t,n,r={},i,o)=>a=>{const u=n4(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Gi(l);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};JQ(u)||(f={...f,...ZQ(e,f)}),f.duration&&(f.duration=Gi(f.duration)),f.repeatDelay&&(f.repeatDelay=Gi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Pp(f.keyframes,u);if(m!==void 0)return Kt.update(()=>{f.onUpdate(m),f.onComplete()}),new gX([])}return!o&&SE.supports(f)?new SE(f):new g4(f)};function XQ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function RO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=l[h];if(g===void 0||f&&XQ(f,h))continue;const y={delay:n,...n4(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const b=eO(e);if(b){const v=window.MotionHandoffAnimation(b,h,Kt);v!==null&&(y.startTime=v,$=!0)}}Hb(e,h),m.start(y4(h,m,g,e.shouldReduceMotion&&X7.has(h)?{type:!1}:y,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Kt.update(()=>{u&&RX(e,u)})}),d}function e0(e,t,n={}){var r;const i=Ap(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(RO(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return QQ(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[d,f]=l==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function QQ(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(eee).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(e0(d,t,{...o,delay:n+l(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function eee(e,t){return e.sortNodePosition(t)}function tee(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>e0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=e0(e,t,n);else{const i=typeof t=="function"?Ap(e,t,n.custom):t;r=Promise.all(RO(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const nee=z1.length;function OO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?OO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<nee;n++){const r=z1[n],i=e.props[r];(Ec(i)||i===!1)&&(t[r]=i)}return t}const ree=[...U1].reverse(),iee=U1.length;function oee(e){return t=>Promise.all(t.map(({animation:n,options:r})=>tee(e,n,r)))}function aee(e){let t=oee(e),n=TE(),r=!0;const i=l=>(d,f)=>{var h;const m=Ap(e,f,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:y,...$}=m;d={...d,...$,...y}}return d};function o(l){t=l(e)}function a(l){const{props:d}=e,f=OO(e.parent)||{},h=[],m=new Set;let g={},y=1/0;for(let C=0;C<iee;C++){const b=ree[C],v=n[b],D=d[b]!==void 0?d[b]:f[b],T=Ec(D),E=b===l?v.isActive:null;E===!1&&(y=C);let A=D===f[b]&&D!==d[b]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!D&&!v.prevProp||Sp(D)||typeof D=="boolean")continue;const R=see(v.prevProp,D);let S=R||b===l&&v.isActive&&!A&&T||C>y&&T,U=!1;const j=Array.isArray(D)?D:[D];let M=j.reduce(i(b),{});E===!1&&(M={});const{prevResolvedValues:X={}}=v,O={...X,...M},I=V=>{S=!0,m.has(V)&&(U=!0,m.delete(V)),v.needsAnimating[V]=!0;const _=e.getValue(V);_&&(_.liveStyle=!1)};for(const V in O){const _=M[V],H=X[V];if(g.hasOwnProperty(V))continue;let z=!1;zb(_)&&zb(H)?z=!z7(_,H):z=_!==H,z?_!=null?I(V):m.add(V):_!==void 0&&m.has(V)?I(V):v.protectedKeys[V]=!0}v.prevProp=D,v.prevResolvedValues=M,v.isActive&&(g={...g,...M}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&R)||U)&&h.push(...j.map(V=>({animation:V,options:{type:b}})))}if(m.size){const C={};m.forEach(b=>{const v=e.getBaseTarget(b),D=e.getValue(b);D&&(D.liveStyle=!0),C[b]=v??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(l,d){var f;if(n[l].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(l,d)}),n[l].isActive=d;const h=a(l);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=TE(),r=!0}}}function see(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!z7(t,e):!1}function Ba(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TE(){return{animate:Ba(!0),whileInView:Ba(),whileHover:Ba(),whileTap:Ba(),whileDrag:Ba(),whileFocus:Ba(),exit:Ba()}}let ba=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},uee=class extends ba{constructor(t){super(t),t.animationState||(t.animationState=aee(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Sp(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)}},lee=0,cee=class extends ba{constructor(){super(...arguments),this.id=lee++}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 dee={animation:{Feature:uee},exit:{Feature:cee}};function Ac(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function id(e){return{point:{x:e.pageX,y:e.pageY}}}const fee=e=>t=>o4(t)&&e(t,id(t));function uc(e,t,n,r){return Ac(e,t,fee(n),r)}const AE=(e,t)=>Math.abs(e-t);function hee(e,t){const n=AE(e.x,t.x),r=AE(e.y,t.y);return Math.sqrt(n**2+r**2)}class MO{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=yv(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=hee(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:y}=h,{timestamp:$}=Bn;this.history.push({...y,timestamp:$});const{onStart:C,onMove:b}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=gv(m,this.transformPagePoint),Kt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=yv(h.type==="pointercancel"?this.lastMoveEventInfo:gv(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),y&&y(h,C)},!o4(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=id(t),u=gv(a,this.transformPagePoint),{point:l}=u,{timestamp:d}=Bn;this.history=[{...l,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,yv(u,this.history)),this.removeListeners=rd(uc(this.contextWindow,"pointermove",this.handlePointerMove),uc(this.contextWindow,"pointerup",this.handlePointerUp),uc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ao(this.updatePoint)}}function gv(e,t){return t?{point:t(e.point)}:e}function PE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yv({point:e},t){return{point:e,delta:PE(e,FO(t)),offset:PE(e,pee(t)),velocity:mee(t,.1)}}function pee(e){return e[0]}function FO(e){return e[e.length-1]}function mee(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=FO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Gi(t)));)n--;if(!r)return{x:0,y:0};const o=Co(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const kO=1e-4,gee=1-kO,yee=1+kO,BO=.01,vee=0-BO,bee=0+BO;function kr(e){return e.max-e.min}function $ee(e,t,n){return Math.abs(e-t)<=n}function _E(e,t,n,r=.5){e.origin=r,e.originPoint=Gt(t.min,t.max,e.origin),e.scale=kr(n)/kr(t),e.translate=Gt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gee&&e.scale<=yee||isNaN(e.scale))&&(e.scale=1),(e.translate>=vee&&e.translate<=bee||isNaN(e.translate))&&(e.translate=0)}function lc(e,t,n,r){_E(e.x,t.x,n.x,r?r.originX:void 0),_E(e.y,t.y,n.y,r?r.originY:void 0)}function RE(e,t,n){e.min=n.min+t.min,e.max=e.min+kr(t)}function xee(e,t,n){RE(e.x,t.x,n.x),RE(e.y,t.y,n.y)}function OE(e,t,n){e.min=t.min-n.min,e.max=e.min+kr(t)}function cc(e,t,n){OE(e.x,t.x,n.x),OE(e.y,t.y,n.y)}function wee(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Gt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Gt(n,e,r.max):Math.min(e,n)),e}function ME(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Dee(e,{top:t,left:n,bottom:r,right:i}){return{x:ME(e.x,n,i),y:ME(e.y,t,r)}}function FE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Cee(e,t){return{x:FE(e.x,t.x),y:FE(e.y,t.y)}}function Eee(e,t){let n=.5;const r=kr(e),i=kr(t);return i>r?n=Ru(t.min,t.max-r,e.min):r>i&&(n=Ru(e.min,e.max-i,t.min)),Po(0,1,n)}function See(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const t0=.35;function Tee(e=t0){return e===!1?e=0:e===!0&&(e=t0),{x:kE(e,"left","right"),y:kE(e,"top","bottom")}}function kE(e,t,n){return{min:BE(e,t),max:BE(e,n)}}function BE(e,t){return typeof e=="number"?e:e[t]||0}const IE=()=>({translate:0,scale:1,origin:0,originPoint:0}),au=()=>({x:IE(),y:IE()}),LE=()=>({min:0,max:0}),cn=()=>({x:LE(),y:LE()});function Qr(e){return[e("x"),e("y")]}function IO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Aee({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Pee(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 vv(e){return e===void 0||e===1}function n0({scale:e,scaleX:t,scaleY:n}){return!vv(e)||!vv(t)||!vv(n)}function La(e){return n0(e)||LO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function LO(e){return VE(e.x)||VE(e.y)}function VE(e){return e&&e!=="0%"}function _h(e,t,n){const r=e-n,i=t*r;return n+i}function NE(e,t,n,r,i){return i!==void 0&&(e=_h(e,i,r)),_h(e,n,r)+t}function r0(e,t=0,n=1,r,i){e.min=NE(e.min,t,n,r,i),e.max=NE(e.max,t,n,r,i)}function VO(e,{x:t,y:n}){r0(e.x,t.translate,t.scale,t.originPoint),r0(e.y,n.translate,n.scale,n.originPoint)}const jE=.999999999999,KE=1.0000000000001;function _ee(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uu(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,VO(e,a)),r&&La(o.latestValues)&&uu(e,o.latestValues))}t.x<KE&&t.x>jE&&(t.x=1),t.y<KE&&t.y>jE&&(t.y=1)}function su(e,t){e.min=e.min+t,e.max=e.max+t}function UE(e,t,n,r,i=.5){const o=Gt(e.min,e.max,i);r0(e,t,n,o,r)}function uu(e,t){UE(e.x,t.x,t.scaleX,t.scale,t.originX),UE(e.y,t.y,t.scaleY,t.scale,t.originY)}function NO(e,t){return IO(Pee(e.getBoundingClientRect(),t))}function Ree(e,t,n){const r=NO(e,n),{scroll:i}=t;return i&&(su(r.x,i.offset.x),su(r.y,i.offset.y)),r}const jO=({current:e})=>e?e.ownerDocument.defaultView:null,Oee=new WeakMap;class Mee{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(id(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:y}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=EX(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(C=>{let b=this.getAxisMotionValue(C).get()||0;if(Yi.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const D=v.layout.layoutBox[C];D&&(b=kr(D)*(parseFloat(b)/100))}}this.originPoint[C]=b}),y&&Kt.postRender(()=>y(f,h)),Hb(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:y,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=Fee(C),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),l=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new MO(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:jO(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Kt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!wf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=wee(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&iu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Dee(i.layoutBox,n):this.constraints=!1,this.elastic=Tee(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=See(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!iu(t))return!1;const r=t.current;Xi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Ree(r,i.root,this.visualElement.getTransformPagePoint());let a=Cee(i.layout.layoutBox,o);if(n){const u=n(Aee(a));this.hasMutatedConstraints=!!u,u&&(a=IO(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},d=Qr(f=>{if(!wf(f,n,this.currentDirection))return;let h=l[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,y)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Hb(this.visualElement,t),r.start(y4(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qr(n=>{const{drag:r}=this.getProps();if(!wf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-Gt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!iu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const l=u.get();i[a]=Eee({min:l,max:l},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!wf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:l,max:d}=this.constraints[a];u.set(Gt(l,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;Oee.set(this.visualElement,this);const t=this.visualElement.current,n=uc(t,"pointerdown",l=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();iu(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Kt.read(r);const a=Ac(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=l[f].translate,h.set(h.get()+l[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=t0,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function wf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Fee(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kee extends ba{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new Mee(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const zE=e=>(t,n)=>{e&&Kt.postRender(()=>e(t,n))};class Bee extends ba{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new MO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:zE(t),onStart:zE(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Kt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=uc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Wf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function WE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(He.test(e))e=parseFloat(e);else return e;const n=WE(e,t.target.x),r=WE(e,t.target.y);return`${n}% ${r}%`}},Iee={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=pa.parse(e);if(i.length>5)return r;const o=pa.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=l;const d=Gt(u,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class Lee extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;iX(Vee),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Wf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Kt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),q1.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function KO(e){const[t,n]=$J(),r=x.useContext(C7);return So.jsx(Lee,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(R7),isPresent:t,safeToRemove:n})}const Vee={borderRadius:{...kl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kl,borderTopRightRadius:kl,borderBottomLeftRadius:kl,borderBottomRightRadius:kl,boxShadow:Iee};function Nee(e,t,n){const r=In(e)?e:Mu(e);return r.start(y4("",r,t,n)),r.animation}function jee(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Kee=(e,t)=>e.depth-t.depth;class Uee{constructor(){this.children=[],this.isDirty=!1}add(t){a4(this.children,t),this.isDirty=!0}remove(t){s4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Kee),this.isDirty=!1,this.children.forEach(t)}}function zee(e,t){const n=Zi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ao(r),e(o-t))};return Kt.read(r,!0),()=>Ao(r)}const UO=["TopLeft","TopRight","BottomLeft","BottomRight"],Wee=UO.length,qE=e=>typeof e=="string"?parseFloat(e):e,HE=e=>typeof e=="number"||He.test(e);function qee(e,t,n,r,i,o){i?(e.opacity=Gt(0,n.opacity!==void 0?n.opacity:1,Hee(r)),e.opacityExit=Gt(t.opacity!==void 0?t.opacity:1,0,Gee(r))):o&&(e.opacity=Gt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<Wee;a++){const u=`border${UO[a]}Radius`;let l=GE(t,u),d=GE(n,u);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||HE(l)===HE(d)?(e[u]=Math.max(Gt(qE(l),qE(d),r),0),(Yi.test(d)||Yi.test(l))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=Gt(t.rotate||0,n.rotate||0,r))}function GE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Hee=zO(0,.5,sO),Gee=zO(.5,.95,Er);function zO(e,t,n){return r=>r<e?0:r>t?1:n(Ru(e,t,r))}function YE(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){YE(e.x,t.x),YE(e.y,t.y)}function ZE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function JE(e,t,n,r,i){return e-=t,e=_h(e,1/n,r),i!==void 0&&(e=_h(e,1/i,r)),e}function Yee(e,t=0,n=1,r=.5,i,o=e,a=e){if(Yi.test(t)&&(t=parseFloat(t),t=Gt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=Gt(o.min,o.max,r);e===o&&(u-=t),e.min=JE(e.min,t,n,u,i),e.max=JE(e.max,t,n,u,i)}function XE(e,t,[n,r,i],o,a){Yee(e,t[n],t[r],t[i],t.scale,o,a)}const Zee=["x","scaleX","originX"],Jee=["y","scaleY","originY"];function QE(e,t,n,r){XE(e.x,t,Zee,n?n.x:void 0,r?r.x:void 0),XE(e.y,t,Jee,n?n.y:void 0,r?r.y:void 0)}function eS(e){return e.translate===0&&e.scale===1}function WO(e){return eS(e.x)&&eS(e.y)}function tS(e,t){return e.min===t.min&&e.max===t.max}function Xee(e,t){return tS(e.x,t.x)&&tS(e.y,t.y)}function nS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qO(e,t){return nS(e.x,t.x)&&nS(e.y,t.y)}function rS(e){return kr(e.x)/kr(e.y)}function iS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Qee{constructor(){this.members=[]}add(t){a4(this.members,t),t.scheduleRender()}remove(t){if(s4(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ete(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:y}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const Va={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Jl=typeof window<"u"&&window.MotionDebug!==void 0,bv=["","X","Y","Z"],tte={visibility:"hidden"},oS=1e3;let nte=0;function $v(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function HO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Kt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&HO(r)}function GO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=nte++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Jl&&(Va.totalNodes=Va.resolvedTargetDeltas=Va.recalculatedProjection=0),this.nodes.forEach(ote),this.nodes.forEach(cte),this.nodes.forEach(dte),this.nodes.forEach(ate),Jl&&window.MotionDebug.record(Va)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Uee)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new u4),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const l=this.eventHandlers.get(a);l&&l.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=jee(a),this.instance=a;const{layoutId:l,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||l)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=zee(m,250),Wf.hasAnimatedSinceResize&&(Wf.hasAnimatedSinceResize=!1,this.nodes.forEach(sS))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||gte,{onLayoutAnimationStart:C,onLayoutAnimationComplete:b}=f.getProps(),v=!this.targetLayout||!qO(this.targetLayout,y)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const T={...n4($,"layout"),onPlay:C,onComplete:b};(f.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else m||sS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ao(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fte),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&HO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(aS);return}this.isUpdating||this.nodes.forEach(ute),this.isUpdating=!1,this.nodes.forEach(lte),this.nodes.forEach(rte),this.nodes.forEach(ite),this.clearAllSnapshots();const u=Zi.now();Bn.delta=Po(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,dv.update.process(Bn),dv.preRender.process(Bn),dv.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,q1.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ste),this.sharedNodes.forEach(hte)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!WO(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||La(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return a&&(l=this.removeTransform(l)),yte(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const l=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(vte))){const{scroll:f}=this.root;f&&(su(l.x,f.offset.x),su(l.y,f.offset.y))}return l}removeElementScroll(a){var u;const l=cn();if(Jr(l,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(l,a),su(l.x,h.offset.x),su(l.y,h.offset.y))}return l}applyTransform(a,u=!1){const l=cn();Jr(l,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&uu(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),La(f.latestValues)&&uu(l,f.latestValues)}return La(this.latestValues)&&uu(l,this.latestValues),l}removeTransform(a){const u=cn();Jr(u,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!La(d.latestValues))continue;n0(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),QE(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return La(this.latestValues)&&QE(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==l;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),cc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xee(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),VO(this.target,this.targetDelta)):Jr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),cc(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Jl&&Va.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||n0(this.parent.latestValues)||LO(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;_ee(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:y}=u;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ZE(this.prevProjectionDelta.x,this.projectionDelta.x),ZE(this.prevProjectionDelta.y,this.projectionDelta.y)),lc(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!iS(this.projectionDelta.x,this.prevProjectionDelta.x)||!iS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Jl&&Va.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=au(),this.projectionDelta=au(),this.projectionDeltaWithTransform=au()}setAnimationOrigin(a,u=!1){const l=this.snapshot,d=l?l.latestValues:{},f={...this.latestValues},h=au();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=l?l.source:void 0,y=this.layout?this.layout.source:void 0,$=g!==y,C=this.getStack(),b=!C||C.members.length<=1,v=!!($&&!b&&this.options.crossfade===!0&&!this.path.some(mte));this.animationProgress=0;let D;this.mixTargetDelta=T=>{const E=T/1e3;uS(h.x,a.x,E),uS(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pte(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&Xee(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,qee(f,d,this.latestValues,E,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ao(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Kt.update(()=>{Wf.hasAnimatedSinceResize=!0,this.currentAnimation=Nee(0,oS,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:l,layout:d,latestValues:f}=a;if(!(!u||!l||!d)){if(this!==a&&this.layout&&d&&YO(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||cn();const h=kr(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+h;const m=kr(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+m}Jr(u,l),uu(u,f),lc(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Qee),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const d={};l.z&&$v("z",a,d,this.animationValues);for(let f=0;f<bv.length;f++)$v(`rotate${bv[f]}`,a,d,this.animationValues),$v(`skew${bv[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tte;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Uf(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=Uf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!La(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=ete(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,h.animationValues?d.opacity=h===this?(l=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in Eh){if(m[$]===void 0)continue;const{correct:C,applyTo:b}=Eh[$],v=d.transform==="none"?m[$]:C(m[$],h);if(b){const D=b.length;for(let T=0;T<D;T++)d[b[T]]=v}else d[$]=v}return this.options.layoutId&&(d.pointerEvents=h===this?Uf(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(aS),this.root.sharedNodes.clear()}}}function rte(e){e.updateLayout()}function ite(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(m);m.min=r[h].min,m.max=m.min+g}):YO(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=au();lc(u,r,n.layoutBox);const l=au();a?lc(l,e.applyTransform(i,!0),n.measuredBox):lc(l,r,n.layoutBox);const d=!WO(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const y=cn();cc(y,n.layoutBox,m.layoutBox);const $=cn();cc($,r,g.layoutBox),qO(y,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function ote(e){Jl&&Va.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ate(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ste(e){e.clearSnapshot()}function aS(e){e.clearMeasurements()}function ute(e){e.isLayoutDirty=!1}function lte(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cte(e){e.resolveTargetDelta()}function dte(e){e.calcProjection()}function fte(e){e.resetSkewAndRotation()}function hte(e){e.removeLeadSnapshot()}function uS(e,t,n){e.translate=Gt(t.translate,0,n),e.scale=Gt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lS(e,t,n,r){e.min=Gt(t.min,n.min,r),e.max=Gt(t.max,n.max,r)}function pte(e,t,n,r){lS(e.x,t.x,n.x,r),lS(e.y,t.y,n.y,r)}function mte(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gte={duration:.45,ease:[.4,0,.1,1]},cS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dS=cS("applewebkit/")&&!cS("chrome/")?Math.round:Er;function fS(e){e.min=dS(e.min),e.max=dS(e.max)}function yte(e){fS(e.x),fS(e.y)}function YO(e,t,n){return e==="position"||e==="preserve-aspect"&&!$ee(rS(t),rS(n),.2)}function vte(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const bte=GO({attachResizeListener:(e,t)=>Ac(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xv={current:void 0},ZO=GO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xv.current){const e=new bte({});e.mount(window),e.setOptions({layoutScroll:!0}),xv.current=e}return xv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$te={pan:{Feature:Bee},drag:{Feature:kee,ProjectionNode:ZO,MeasureLayout:KO}};function hS(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&&Kt.postRender(()=>o(t,id(t)))}let xte=class extends ba{mount(){const{current:t}=this.node;t&&(this.unmount=$X(t,n=>(hS(this.node,n,"Start"),r=>hS(this.node,r,"End"))))}unmount(){}},wte=class extends ba{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=rd(Ac(this.node.current,"focus",()=>this.onFocus()),Ac(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function pS(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&&Kt.postRender(()=>o(t,id(t)))}let Dte=class extends ba{mount(){const{current:t}=this.node;t&&(this.unmount=CX(t,n=>(pS(this.node,n,"Start"),(r,{success:i})=>pS(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const i0=new WeakMap,wv=new WeakMap,Cte=e=>{const t=i0.get(e.target);t&&t(e)},Ete=e=>{e.forEach(Cte)};function Ste({root:e,...t}){const n=e||document;wv.has(n)||wv.set(n,{});const r=wv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ete,{root:e,...t})),r[i]}function Tte(e,t,n){const r=Ste(t);return i0.set(e,n),r.observe(e),()=>{i0.delete(e),r.unobserve(e)}}const Ate={some:0,all:1};let Pte=class extends ba{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Ate[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(l)};return Tte(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(_te(t,n))&&this.startObserver()}unmount(){}};function _te({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Rte={inView:{Feature:Pte},tap:{Feature:Dte},focus:{Feature:wte},hover:{Feature:xte}},Ote={layout:{ProjectionNode:ZO,MeasureLayout:KO}},o0={current:null},JO={current:!1};function Mte(){if(JO.current=!0,!!j1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>o0.current=e.matches;e.addListener(t),t()}else o0.current=!1}const Fte=[...xO,Gn,pa],kte=e=>Fte.find($O(e)),mS=new WeakMap;function Bte(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Cp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(In(o))e.addValue(r,Mu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Mu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ite=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=p4,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=Zi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Kt.render(this.render,!1,!0))};const{latestValues:l,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Tp(n),this.isVariantNode=P7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const y=m[g];l[g]!==void 0&&In(y)&&y.set(l[g],!1)}}mount(t){this.current=t,mS.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)),JO.current||Mte(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:o0.current,process.env.NODE_ENV!=="production"&&Cp(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(){mS.delete(this.current),this.projection&&this.projection.unmount(),Ao(this.notifyUpdate),Ao(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=vs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Kt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ou){const n=Ou[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<gS.length;r++){const i=gS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Bte(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mu(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"&&(vO(i)||lO(i))?i=parseFloat(i):!kte(i)&&pa.test(n)&&(i=mO(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=G1(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new u4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},XO=class extends Ite{constructor(){super(...arguments),this.KeyframeResolver=wO}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Lte(e){return window.getComputedStyle(e)}let Vte=class extends XO{constructor(){super(...arguments),this.type="html",this.renderInstance=L7}readValueFromInstance(t,n){if(vs.has(n)){const r=h4(n);return r&&r.default||0}else{const r=Lte(t),i=(k7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return NO(t,n)}build(t,n,r){J1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return t4(t,n,r)}},Nte=class extends XO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vs.has(n)){const r=h4(n);return r&&r.default||0}return n=V7.has(n)?n:W1(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return K7(t,n,r)}build(t,n,r){X1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){N7(t,n,r,i)}mount(t){this.isSVGTag=e4(t.tagName),super.mount(t)}};const jte=(e,t)=>H1(e)?new Nte(t):new Vte(t,{allowProjection:e!==x.Fragment}),Kte=hX({...dee,...Rte,...$te,...Ote},jte),QO=AJ(Kte);function eM(e){const t=ed(()=>Mu(e)),{isStatic:n}=x.useContext(N1);if(n){const[,r]=x.useState(e);x.useEffect(()=>t.on("change",r),[])}return t}function tM(e,t){const n=eM(t()),r=()=>n.set(t());return r(),E7(()=>{const i=()=>Kt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Ao(r)}}),n}const Ute=e=>e&&typeof e=="object"&&e.mix,zte=e=>Ute(e)?e.mix:void 0;function Wte(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=PO(i,o,{mixer:zte(o[0]),...a});return t?u(r):u}function qte(e){ac.current=[],e();const t=tM(ac.current,e);return ac.current=void 0,t}function Hte(e,t,n,r){if(typeof e=="function")return qte(e);const i=typeof t=="function"?t:Wte(t,n,r);return Array.isArray(e)?yS(e,i):yS([e],([o])=>i(o))}function yS(e,t){const n=ed(()=>[]);return tM(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const nM=x.createContext(null);function Gte(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],l=a.layout,d=Gt(l.min,l.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?TX(e,i,i+o):e}function Yte({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=ed(()=>QO[t]),l=[],d=x.useRef(!1);Xi(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=l.findIndex(y=>h===y.value);g!==-1?l[g].layout=m[n]:l.push({value:h,layout:m[n]}),l.sort(Xte)},updateOrder:(h,m,g)=>{if(d.current)return;const y=Gte(l,h,m,g);l!==y&&(d.current=!0,r(y.map(Jte).filter($=>i.indexOf($)!==-1)))}};return x.useEffect(()=>{d.current=!1}),So.jsx(u,{...o,ref:a,ignoreStrict:!0,children:So.jsx(nM.Provider,{value:f,children:e})})}const Zte=x.forwardRef(Yte);function Jte(e){return e.value}function Xte(e,t){return e.layout.min-t.layout.min}function vS(e,t=0){return In(e)?e:eM(t)}function Qte({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const l=ed(()=>QO[r]),d=x.useContext(nM),f={x:vS(t.x),y:vS(t.y)},h=Hte([f.x,f.y],([$,C])=>$||C?1:"unset");Xi(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:y}=d;return So.jsx(l,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:b}=C;b[m]&&y(n,f[m].get(),b[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const ene=x.forwardRef(Qte),bS=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},rM=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?bS(r.ref,n,e):r.refs&&r.refs.forEach(i=>bS(i,n,e))}},tne=(e,t)=>{t.shouldUseNativeValidation&&rM(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(nne(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},nne=(e,t)=>e.some(n=>n.startsWith(t+"."));function rne(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&rM({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return l&&l.then?l.then(void 0,u):l}(0,function(a){if(!a.inner)throw a;return{values:{},errors:tne((u=a,l=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),l){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=j2(f.path,l,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,l}))}catch(a){return Promise.reject(a)}}}var Dv,$S;function ine(){if($S)return Dv;$S=1;var e=Xc(),t=Qc(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Dv=r,Dv}var one=ine();const ane=Qi(one),xS=new Set;function _p(e,t,n){e||xS.has(t)||(console.warn(t),xS.add(t))}function sne(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&_p(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}function Rp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const a0=e=>Array.isArray(e);function iM(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 Pc(e){return typeof e=="string"||Array.isArray(e)}function wS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function v4(e,t,n,r){if(typeof t=="function"){const[i,o]=wS(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]=wS(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Op(e,t,n){const r=e.getProps();return v4(r,t,n!==void 0?n:r.custom,e)}const b4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$4=["initial",...b4],od=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bs=new Set(od),Eo=e=>e*1e3,ca=e=>e/1e3,une={type:"spring",stiffness:500,damping:25,restSpeed:10},lne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cne={type:"keyframes",duration:.8},dne={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},fne=(e,{keyframes:t})=>t.length>2?cne:bs.has(e)?e.startsWith("scale")?lne(t[1]):une:dne;function oM(e,t){return e?e[t]||e.default||e:void 0}const hne={skipAnimations:!1,useManualTiming:!1},pne=e=>e!==null;function Mp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(pne),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const ma=e=>e;let Zu=ma,fs=ma;process.env.NODE_ENV!=="production"&&(Zu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},fs=(e,t)=>{if(!e)throw new Error(t)});function mne(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(l.schedule(d),e()),d(a)}const l={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,l.process(d))}};return l}const Df=["read","resolveKeyframes","update","preRender","render","postRender"],gne=40;function aM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Df.reduce((b,v)=>(b[v]=mne(o),b),{}),{read:u,resolveKeyframes:l,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const b=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(b-i.timestamp,gne),1),i.timestamp=b,i.isProcessing=!0,u.process(i),l.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Df.reduce((b,v)=>{const D=a[v];return b[v]=(T,E=!1,A=!1)=>(n||y(),D.schedule(T,E,A)),b},{}),cancel:b=>{for(let v=0;v<Df.length;v++)a[Df[v]].cancel(b)},state:i,steps:a}}const{schedule:Br,cancel:s0,state:Rh,steps:Zue}=aM(typeof requestAnimationFrame<"u"?requestAnimationFrame:ma,!0),sM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yne=1e-7,vne=12;function bne(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=sM(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>yne&&++u<vne);return a}function ad(e,t,n,r){if(e===t&&n===r)return ma;const i=o=>bne(o,0,1,e,n);return o=>o===0||o===1?o:sM(i(o),t,r)}const uM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lM=e=>t=>1-e(1-t),cM=ad(.33,1.53,.69,.99),x4=lM(cM),dM=uM(x4),fM=e=>(e*=2)<1?.5*x4(e):.5*(2-Math.pow(2,-10*(e-1))),w4=e=>1-Math.sin(Math.acos(e)),$ne=lM(w4),hM=uM(w4),pM=e=>/^0[^.\s]+$/u.test(e);function xne(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||pM(e):!0}const mM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),gM=e=>t=>typeof t=="string"&&t.startsWith(e),yM=gM("--"),wne=gM("var(--"),D4=e=>wne(e)?Dne.test(e.split("/*")[0].trim()):!1,Dne=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Cne=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ene(e){const t=Cne.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Sne=4;function vM(e,t,n=1){fs(n<=Sne,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Ene(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return mM(a)?parseFloat(a):a}return D4(i)?vM(i,t,n+1):i}const hs=(e,t,n)=>n>t?t:n<e?e:n,Ju={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_c={...Ju,transform:e=>hs(0,1,e)},Cf={...Ju,default:1},sd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qo=sd("deg"),yu=sd("%"),Ze=sd("px"),Tne=sd("vh"),Ane=sd("vw"),DS={...yu,parse:e=>yu.parse(e)/100,transform:e=>yu.transform(e*100)},Pne=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),CS=e=>e===Ju||e===Ze,ES=(e,t)=>parseFloat(e.split(", ")[t]),SS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return ES(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?ES(o[1],e):0}},_ne=new Set(["x","y","z"]),Rne=od.filter(e=>!_ne.has(e));function One(e){const t=[];return Rne.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ku={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:SS(4,13),y:SS(5,14)};ku.translateX=ku.x;ku.translateY=ku.y;const bM=e=>t=>t.test(e),Mne={test:e=>e==="auto",parse:e=>e},$M=[Ju,Ze,yu,Qo,Ane,Tne,Mne],TS=e=>$M.find(bM(e)),ts=new Set;let u0=!1,l0=!1;function xM(){if(l0){const e=Array.from(ts).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=One(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}l0=!1,u0=!1,ts.forEach(e=>e.complete()),ts.clear()}function wM(){ts.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(l0=!0)})}function Fne(){wM(),xM()}class C4{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ts.add(this),u0||(u0=!0,Br.read(wM),Br.resolveKeyframes(xM))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ts.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ts.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const dc=e=>Math.round(e*1e5)/1e5,E4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kne(e){return e==null}const Bne=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,S4=(e,t)=>n=>!!(typeof n=="string"&&Bne.test(n)&&n.startsWith(e)||t&&!kne(n)&&Object.prototype.hasOwnProperty.call(n,t)),DM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(E4);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},Ine=e=>hs(0,255,e),Cv={...Ju,transform:e=>Math.round(Ine(e))},Ya={test:S4("rgb","red"),parse:DM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cv.transform(e)+", "+Cv.transform(t)+", "+Cv.transform(n)+", "+dc(_c.transform(r))+")"};function Lne(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 c0={test:S4("#"),parse:Lne,transform:Ya.transform},lu={test:S4("hsl","hue"),parse:DM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yu.transform(dc(t))+", "+yu.transform(dc(n))+", "+dc(_c.transform(r))+")"},Yn={test:e=>Ya.test(e)||c0.test(e)||lu.test(e),parse:e=>Ya.test(e)?Ya.parse(e):lu.test(e)?lu.parse(e):c0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ya.transform(e):lu.transform(e)},Vne=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Nne(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(E4))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Vne))===null||n===void 0?void 0:n.length)||0)>0}const CM="number",EM="color",jne="var",Kne="var(",AS="${}",Une=/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 Rc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(Une,l=>(Yn.test(l)?(r.color.push(o),i.push(EM),n.push(Yn.parse(l))):l.startsWith(Kne)?(r.var.push(o),i.push(jne),n.push(l)):(r.number.push(o),i.push(CM),n.push(parseFloat(l))),++o,AS)).split(AS);return{values:n,split:u,indexes:r,types:i}}function SM(e){return Rc(e).values}function TM(e){const{split:t,types:n}=Rc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===CM?o+=dc(i[a]):u===EM?o+=Yn.transform(i[a]):o+=i[a]}return o}}const zne=e=>typeof e=="number"?0:e;function Wne(e){const t=SM(e);return TM(e)(t.map(zne))}const Xu={test:Nne,parse:SM,createTransformer:TM,getAnimatableNone:Wne},qne=new Set(["brightness","contrast","saturate","opacity"]);function Hne(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(E4)||[];if(!r)return e;const i=n.replace(r,"");let o=qne.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Gne=/\b([a-z-]*)\(.*?\)/gu,d0={...Xu,getAnimatableNone:e=>{const t=e.match(Gne);return t?t.map(Hne).join(" "):e}},Yne={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},Zne={rotate:Qo,rotateX:Qo,rotateY:Qo,rotateZ:Qo,scale:Cf,scaleX:Cf,scaleY:Cf,scaleZ:Cf,skew:Qo,skewX:Qo,skewY:Qo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:_c,originX:DS,originY:DS,originZ:Ze},PS={...Ju,transform:Math.round},T4={...Yne,...Zne,zIndex:PS,size:Ze,fillOpacity:_c,strokeOpacity:_c,numOctaves:PS},Jne={...T4,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:d0,WebkitFilter:d0},A4=e=>Jne[e];function AM(e,t){let n=A4(e);return n!==d0&&(n=Xu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xne=new Set(["auto","none","0"]);function Qne(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!Xne.has(o)&&Rc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=AM(n,i)}class PM extends C4{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 l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),D4(d))){const f=vM(d,n.current);f!==void 0&&(t[l]=f),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Pne.has(r)||t.length!==2)return;const[i,o]=t,a=TS(i),u=TS(o);if(a!==u)if(CS(a)&&CS(u))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)xne(t[i])&&r.push(i);r.length&&Qne(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=ku[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=ku[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,d])=>{n.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function P4(e){return typeof e=="function"}let qf;function ere(){qf=void 0}const da={now:()=>(qf===void 0&&da.set(Rh.isProcessing||hne.useManualTiming?Rh.timestamp:performance.now()),qf),set:e=>{qf=e,queueMicrotask(ere)}},_S=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xu.test(e)||e==="0")&&!e.startsWith("url("));function tre(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 nre(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=_S(i,t),u=_S(o,t);return Zu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:tre(e)||(n==="spring"||P4(n))&&r}const rre=40;class _M{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=da.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>rre?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Fne(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=da.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:l,isGenerator:d}=this.options;if(!d&&!nre(t,r,i,o))if(a)this.options.duration=0;else{l==null||l(Mp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const _4=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},RM=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(_4(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function OM(e,t){return t?e*(1e3/t):0}const ire=5;function MM(e,t,n){const r=Math.max(t-ire,0);return OM(n-e(r),t-r)}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},RS=.001;function ore({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;Zu(e<=Eo(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=hs(Xt.minDamping,Xt.maxDamping,a),e=hs(Xt.minDuration,Xt.maxDuration,ca(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=f0(d,a),y=Math.exp(-h);return RS-m/g*y},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,y=Math.exp(-h),$=f0(Math.pow(d,2),a);return(-i(d)+RS>0?-1:1)*((m-g)*y)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,l=sre(i,o,u);if(e=Eo(e),isNaN(l))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(l,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const are=12;function sre(e,t,n){let r=n;for(let i=1;i<are;i++)r=r-e(r)/t(r);return r}function f0(e,t){return e*Math.sqrt(1-t*t)}const h0=2e4;function FM(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<h0;)t+=n,r=e.next(t);return t>=h0?1/0:t}const ure=["duration","bounce"],lre=["stiffness","damping","mass"];function OS(e,t){return t.some(n=>e[n]!==void 0)}function cre(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!OS(e,lre)&&OS(e,ure))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*hs(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=ore(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function kM(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:l,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=cre({...n,velocity:-ca(n.velocity||0)}),y=m||0,$=d/(2*Math.sqrt(l*f)),C=a-o,b=ca(Math.sqrt(l/f)),v=Math.abs(C)<5;r||(r=v?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=v?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=f0(b,$);D=A=>{const R=Math.exp(-$*b*A);return a-R*((y+$*b*C)/E*Math.sin(E*A)+C*Math.cos(E*A))}}else if($===1)D=E=>a-Math.exp(-b*E)*(C+(y+b*C)*E);else{const E=b*Math.sqrt($*$-1);D=A=>{const R=Math.exp(-$*b*A),S=Math.min(E*A,300);return a-R*((y+$*b*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=D(E);if(g)u.done=E>=h;else{let R=0;$<1&&(R=E===0?Eo(y):MM(D,E,A));const S=Math.abs(R)<=r,U=Math.abs(a-A)<=i;u.done=S&&U}return u.value=u.done?a:A,u},toString:()=>{const E=Math.min(FM(T),h0),A=RM(R=>T.next(E*R).value,E,30);return E+"ms "+A}};return T}function MS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:l,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,y=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let $=n*t;const C=h+$,b=a===void 0?C:a(C);b!==C&&($=b-h);const v=S=>-$*Math.exp(-S/r),D=S=>b+v(S),T=S=>{const U=v(S),j=D(S);m.done=Math.abs(U)<=d,m.value=m.done?b:j};let E,A;const R=S=>{g(m.value)&&(E=S,A=kM({keyframes:[m.value,y(m.value)],velocity:MM(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return R(0),{calculatedDuration:null,next:S=>{let U=!1;return!A&&E===void 0&&(U=!0,T(S),R(S)),E!==void 0&&S>=E?A.next(S-E):(!U&&T(S),m)}}}const dre=ad(.42,0,1,1),fre=ad(0,0,.58,1),BM=ad(.42,0,.58,1),hre=e=>Array.isArray(e)&&typeof e[0]!="number",R4=e=>Array.isArray(e)&&typeof e[0]=="number",FS={linear:ma,easeIn:dre,easeInOut:BM,easeOut:fre,circIn:w4,circInOut:hM,circOut:$ne,backIn:x4,backInOut:dM,backOut:cM,anticipate:fM},kS=e=>{if(R4(e)){fs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ad(t,n,r,i)}else if(typeof e=="string")return fs(FS[e]!==void 0,`Invalid easing type '${e}'`),FS[e];return e},pre=(e,t)=>n=>t(e(n)),Fp=(...e)=>e.reduce(pre),kp=(e,t,n)=>e+(t-e)*n;function Ev(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 mre({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=Ev(l,u,e+1/3),o=Ev(l,u,e),a=Ev(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Oh(e,t){return n=>n>0?t:e}const Sv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},gre=[c0,Ya,lu],yre=e=>gre.find(t=>t.test(e));function BS(e){const t=yre(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===lu&&(n=mre(n)),n}const IS=(e,t)=>{const n=BS(e),r=BS(t);if(!n||!r)return Oh(e,t);const i={...n};return o=>(i.red=Sv(n.red,r.red,o),i.green=Sv(n.green,r.green,o),i.blue=Sv(n.blue,r.blue,o),i.alpha=kp(n.alpha,r.alpha,o),Ya.transform(i))},p0=new Set(["none","hidden"]);function vre(e,t){return p0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function bre(e,t){return n=>kp(e,t,n)}function O4(e){return typeof e=="number"?bre:typeof e=="string"?D4(e)?Oh:Yn.test(e)?IS:wre:Array.isArray(e)?IM:typeof e=="object"?Yn.test(e)?IS:$re:Oh}function IM(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>O4(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function $re(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=O4(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function xre(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=l,i[a]++}return r}const wre=(e,t)=>{const n=Xu.createTransformer(t),r=Rc(e),i=Rc(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?p0.has(e)&&!i.values.length||p0.has(t)&&!r.values.length?vre(e,t):Fp(IM(xre(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.`),Oh(e,t))};function LM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?kp(e,t,n):O4(e)(e,t)}function Dre(e,t,n){const r=[],i=n||LM,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ma:t;u=Fp(l,u)}r.push(u)}return r}function Cre(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(fs(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Dre(t,r,i),u=a.length,l=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=_4(e[f],e[f+1],d);return a[f](h)};return n?d=>l(hs(e[0],e[o-1],d)):l}function Ere(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=_4(0,t,r);e.push(kp(n,1,i))}}function Sre(e){const t=[0];return Ere(t,e.length-1),t}function Tre(e,t){return e.map(n=>n*t)}function Are(e,t){return e.map(()=>t||BM).splice(0,e.length-1)}function Mh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=hre(r)?r.map(kS):kS(r),o={done:!1,value:t[0]},a=Tre(n&&n.length===t.length?n:Sre(t),e),u=Cre(a,t,{ease:Array.isArray(i)?i:Are(t,i)});return{calculatedDuration:e,next:l=>(o.value=u(l),o.done=l>=e,o)}}const Pre=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Br.update(t,!0),stop:()=>s0(t),now:()=>Rh.isProcessing?Rh.timestamp:da.now()}},_re={decay:MS,inertia:MS,tween:Mh,keyframes:Mh,spring:kM},Rre=e=>e/100;class M4 extends _M{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||C4,u=(l,d)=>this.onKeyframesResolved(l,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=P4(n)?n:_re[n]||Mh;let l,d;u!==Mh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&fs(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=Fp(Rre,LM(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=FM(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:y,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-m*(this.speed>=0?1:-1),v=this.speed>=0?b<0:b>f;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,T=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(y==="reverse"?(j=1-j,$&&(j-=$/h)):y==="mirror"&&(T=a)),D=hs(0,1,j)*h}const E=v?{done:!1,value:l[0]}:T.next(D);u&&(E.value=u(E.value));let{done:A}=E;!v&&d!==null&&(A=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return R&&i!==void 0&&(E.value=Mp(l,this.options,i)),C&&C(E.value),R&&this.finish(),E}get duration(){const{resolved:t}=this;return t?ca(t.calculatedDuration):0}get time(){return ca(this.currentTime)}set time(t){t=Eo(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=ca(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Pre,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 Ore=new Set(["opacity","clipPath","filter","transform"]);function F4(e){let t;return()=>(t===void 0&&(t=e()),t)}const Mre={linearEasing:void 0};function Fre(e,t){const n=F4(e);return()=>{var r;return(r=Mre[t])!==null&&r!==void 0?r:n()}}const Fh=Fre(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function VM(e){return!!(typeof e=="function"&&Fh()||!e||typeof e=="string"&&(e in m0||Fh())||R4(e)||Array.isArray(e)&&e.every(VM))}const Xl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,m0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xl([0,.65,.55,1]),circOut:Xl([.55,0,1,.45]),backIn:Xl([.31,.01,.66,-.59]),backOut:Xl([.33,1.53,.69,.99])};function NM(e,t){if(e)return typeof e=="function"&&Fh()?RM(e,t):R4(e)?Xl(e):Array.isArray(e)?e.map(n=>NM(n,t)||m0.easeOut):m0[e]}function kre(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:l}={}){const d={[t]:n};l&&(d.offset=l);const f=NM(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function LS(e,t){e.timeline=t,e.onfinish=null}const Bre=F4(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kh=10,Ire=2e4;function Lre(e){return P4(e.type)||e.type==="spring"||!VM(e.ease)}function Vre(e,t){const n=new M4({...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<Ire;)r=n.sample(o),i.push(r.value),o+=kh;return{times:void 0,keyframes:i,duration:o-kh,ease:"linear"}}const jM={anticipate:fM,backInOut:dM,circInOut:hM};function Nre(e){return e in jM}class VS extends _M{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new PM(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:l,name:d,startTime:f}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Fh()&&Nre(a)&&(a=jM[a]),Lre(this.options)){const{onComplete:m,onUpdate:g,motionValue:y,element:$,...C}=this.options,b=Vre(t,C);t=b.keyframes,t.length===1&&(t[1]=t[0]),i=b.duration,o=b.times,a=b.ease,u="keyframes"}const h=kre(l.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(LS(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;l.set(Mp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ca(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ca(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Eo(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 ma;const{animation:r}=n;LS(r,t)}return ma}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,y=new M4({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Eo(this.time);d.setWithVelocity(y.sample($-kh).value,y.sample($).value,kh)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return Bre()&&r&&Ore.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const jre=F4(()=>window.ScrollTimeline!==void 0);class Kre{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=>jre()&&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 Ure({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:l,elapsed:d,...f}){return!!Object.keys(f).length}const zre=(e,t,n,r={},i,o)=>a=>{const u=oM(r,e)||{},l=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Eo(l);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};Ure(u)||(f={...f,...fne(e,f)}),f.duration&&(f.duration=Eo(f.duration)),f.repeatDelay&&(f.repeatDelay=Eo(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Mp(f.keyframes,u);if(m!==void 0)return Br.update(()=>{f.onUpdate(m),f.onComplete()}),new Kre([])}return!o&&VS.supports(f)?new VS(f):new M4(f)},Wre=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),qre=e=>a0(e)?e[e.length-1]||0:e;function Hre(e,t){e.indexOf(t)===-1&&e.push(t)}function Gre(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class KM{constructor(){this.subscriptions=[]}add(t){return Hre(this.subscriptions,t),()=>Gre(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const NS=30,Yre=e=>!isNaN(parseFloat(e));class Zre{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=da.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=da.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Yre(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&_p(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new KM);const r=this.events[t].add(n);return t==="change"?()=>{r(),Br.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=da.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>NS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,NS);return OM(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 Bh(e,t){return new Zre(e,t)}function Jre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bh(n))}function Xre(e,t){const n=Op(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=qre(o[a]);Jre(e,a,u)}}const k4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Qre="framerAppearId",UM="data-"+k4(Qre);function eie(e){return e.props[UM]}const ur=e=>!!(e&&e.getVelocity);function tie(e){return!!(ur(e)&&e.add)}function nie(e,t){const n=e.getValue("willChange");if(tie(n))return n.add(t)}function rie({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function zM(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=l[h];if(g===void 0||f&&rie(f,h))continue;const y={delay:n,...oM(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const b=eie(e);if(b){const v=window.MotionHandoffAnimation(b,h,Br);v!==null&&(y.startTime=v,$=!0)}}nie(e,h),m.start(zre(h,m,g,e.shouldReduceMotion&&bs.has(h)?{type:!1}:y,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Br.update(()=>{u&&Xre(e,u)})}),d}function g0(e,t,n={}){var r;const i=Op(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(zM(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return iie(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[d,f]=l==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function iie(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,l=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(oie).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(g0(d,t,{...o,delay:n+l(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function oie(e,t){return e.sortNodePosition(t)}function aie(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>g0(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=g0(e,t,n);else{const i=typeof t=="function"?Op(e,t,n.custom):t;r=Promise.all(zM(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const sie=$4.length;function WM(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?WM(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<sie;n++){const r=$4[n],i=e.props[r];(Pc(i)||i===!1)&&(t[r]=i)}return t}const uie=[...b4].reverse(),lie=b4.length;function cie(e){return t=>Promise.all(t.map(({animation:n,options:r})=>aie(e,n,r)))}function die(e){let t=cie(e),n=jS(),r=!0;const i=l=>(d,f)=>{var h;const m=Op(e,f,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:y,...$}=m;d={...d,...$,...y}}return d};function o(l){t=l(e)}function a(l){const{props:d}=e,f=WM(e.parent)||{},h=[],m=new Set;let g={},y=1/0;for(let C=0;C<lie;C++){const b=uie[C],v=n[b],D=d[b]!==void 0?d[b]:f[b],T=Pc(D),E=b===l?v.isActive:null;E===!1&&(y=C);let A=D===f[b]&&D!==d[b]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!D&&!v.prevProp||Rp(D)||typeof D=="boolean")continue;const R=fie(v.prevProp,D);let S=R||b===l&&v.isActive&&!A&&T||C>y&&T,U=!1;const j=Array.isArray(D)?D:[D];let M=j.reduce(i(b),{});E===!1&&(M={});const{prevResolvedValues:X={}}=v,O={...X,...M},I=V=>{S=!0,m.has(V)&&(U=!0,m.delete(V)),v.needsAnimating[V]=!0;const _=e.getValue(V);_&&(_.liveStyle=!1)};for(const V in O){const _=M[V],H=X[V];if(g.hasOwnProperty(V))continue;let z=!1;a0(_)&&a0(H)?z=!iM(_,H):z=_!==H,z?_!=null?I(V):m.add(V):_!==void 0&&m.has(V)?I(V):v.protectedKeys[V]=!0}v.prevProp=D,v.prevResolvedValues=M,v.isActive&&(g={...g,...M}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&R)||U)&&h.push(...j.map(V=>({animation:V,options:{type:b}})))}if(m.size){const C={};m.forEach(b=>{const v=e.getBaseTarget(b),D=e.getValue(b);D&&(D.liveStyle=!0),C[b]=v??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(l,d){var f;if(n[l].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(l,d)}),n[l].isActive=d;const h=a(l);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=jS(),r=!0}}}function fie(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!iM(t,e):!1}function Ia(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jS(){return{animate:Ia(!0),whileInView:Ia(),whileHover:Ia(),whileTap:Ia(),whileDrag:Ia(),whileFocus:Ia(),exit:Ia()}}class Qu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class hie extends Qu{constructor(t){super(t),t.animationState||(t.animationState=die(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rp(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 pie=0;class mie extends Qu{constructor(){super(...arguments),this.id=pie++}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 gie={animation:{Feature:hie},exit:{Feature:mie}},yie={x:!1,y:!1};function vie(){return yie.y}const bie=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function qM(e){return{point:{x:e.pageX,y:e.pageY}}}function KS(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function HM(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const US=()=>({min:0,max:0}),GM=()=>({x:US(),y:US()});function $ie({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xie(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 wie(e,t){return $ie(xie(e.getBoundingClientRect(),t))}const YM=x.createContext(null),Die=x.createContext({}),Cie=x.createContext({}),Eie={},{schedule:Sie,cancel:Jue}=aM(queueMicrotask,!1);function Tie(e){const t=ur(e)?e.get():e;return Wre(t)?t.toValue():t}function Aie(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 ZM(e,t){const n=Aie(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function zS(e){return t=>{t.pointerType==="touch"||vie()||e(t)}}function Pie(e,t,n={}){const[r,i,o]=ZM(e,n),a=zS(u=>{const{target:l}=u,d=t(u);if(!d||!l)return;const f=zS(h=>{d(h),l.removeEventListener("pointerleave",f)});l.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function WS(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Br.postRender(()=>o(t,qM(t)))}class _ie extends Qu{mount(){const{current:t}=this.node;t&&(this.unmount=Pie(t,n=>(WS(this.node,n,"Start"),r=>WS(this.node,r,"End"))))}unmount(){}}class Rie extends Qu{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=Fp(KS(this.node.current,"focus",()=>this.onFocus()),KS(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Ql=new WeakSet;function qS(e){return t=>{t.key==="Enter"&&e(t)}}function Tv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Oie=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=qS(()=>{if(Ql.has(n))return;Tv(n,"down");const i=qS(()=>{Tv(n,"up")}),o=()=>Tv(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)},Mie=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Fie(e){return Mie.has(e.tagName)||e.tabIndex!==-1}const JM=(e,t)=>t?e===t?!0:JM(e,t.parentElement):!1;function HS(e){return bie(e)&&!0}function kie(e,t,n={}){const[r,i,o]=ZM(e,n),a=u=>{const l=u.currentTarget;if(!HS(u)||Ql.has(l))return;Ql.add(l);const d=t(u),f=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!HS(g)||!Ql.has(l))&&(Ql.delete(l),d&&d(g,{success:y}))},h=g=>{f(g,n.useGlobalTarget||JM(l,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{Fie(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>Oie(d,i),i)}),o}function GS(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Br.postRender(()=>o(t,qM(t)))}class Bie extends Qu{mount(){const{current:t}=this.node;t&&(this.unmount=kie(t,n=>(GS(this.node,n,"Start"),(r,{success:i})=>GS(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const y0=new WeakMap,Av=new WeakMap,Iie=e=>{const t=y0.get(e.target);t&&t(e)},Lie=e=>{e.forEach(Iie)};function Vie({root:e,...t}){const n=e||document;Av.has(n)||Av.set(n,{});const r=Av.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Lie,{root:e,...t})),r[i]}function Nie(e,t,n){const r=Vie(t);return y0.set(e,n),r.observe(e),()=>{y0.delete(e),r.unobserve(e)}}const jie={some:0,all:1};class Kie extends Qu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:jie[i]},u=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(l)};return Nie(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Uie(t,n))&&this.startObserver()}unmount(){}}function Uie({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const zie={inView:{Feature:Kie},tap:{Feature:Bie},focus:{Feature:Rie},hover:{Feature:_ie}},XM=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Bp=x.createContext({}),B4=typeof window<"u",Wie=B4?x.useLayoutEffect:x.useEffect,I4=x.createContext({strict:!1});function qie(e,t,n,r,i){var o,a;const{visualElement:u}=x.useContext(Bp),l=x.useContext(I4),d=x.useContext(YM),f=x.useContext(XM).reducedMotion,h=x.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=x.useContext(Cie);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&Hie(h.current,n,i,g);const y=x.useRef(!1);x.useInsertionEffect(()=>{m&&y.current&&m.update(n,d)});const $=n[UM],C=x.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return Wie(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Sie.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),x.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,$)}),C.current=!1))}),m}function Hie(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:l,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:QM(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&HM(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:d})}function QM(e){if(e)return e.options.allowProjection!==!1?e.projection:QM(e.parent)}function Gie(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):HM(n)&&(n.current=r))},[t])}function Ip(e){return Rp(e.animate)||$4.some(t=>Pc(e[t]))}function eF(e){return!!(Ip(e)||e.variants)}function Yie(e,t){if(Ip(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pc(n)?n:void 0,animate:Pc(r)?r:void 0}}return e.inherit!==!1?t:{}}function Zie(e){const{initial:t,animate:n}=Yie(e,x.useContext(Bp));return x.useMemo(()=>({initial:t,animate:n}),[YS(t),YS(n)])}function YS(e){return Array.isArray(e)?e.join(" "):e}const ZS={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"]},Bu={};for(const e in ZS)Bu[e]={isEnabled:t=>ZS[e].some(n=>!!t[n])};function v0(e){for(const t in e)Bu[t]={...Bu[t],...e[t]}}const Jie=Symbol.for("motionComponentSymbol");function Xie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&v0(e);function o(u,l){let d;const f={...x.useContext(XM),...u,layoutId:Qie(u)},{isStatic:h}=f,m=Zie(u),g=r(u,h);if(!h&&B4){eoe(f,e);const y=toe(f);d=y.MeasureLayout,m.visualElement=qie(i,g,f,t,y.ProjectionNode)}return So.jsxs(Bp.Provider,{value:m,children:[d&&m.visualElement?So.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,Gie(g,m.visualElement,l),g,h,m.visualElement)]})}const a=x.forwardRef(o);return a[Jie]=i,a}function Qie({layoutId:e}){const t=x.useContext(Die).id;return t&&e!==void 0?t+"-"+e:e}function eoe(e,t){const n=x.useContext(I4).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):fs(!1,r)}}function toe(e){const{drag:t,layout:n}=Bu;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 noe=["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 L4(e){return typeof e!="string"||e.includes("-")?!1:!!(noe.indexOf(e)>-1||/[A-Z]/u.test(e))}function tF(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 nF=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 rF(e,t,n,r){tF(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(nF.has(i)?i:k4(i),t.attrs[i])}function iF(e,{layout:t,layoutId:n}){return bs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Eie[e]||e==="opacity")}function V4(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||iF(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function oF(e,t,n){const r=V4(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=od.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function roe(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}function ioe({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:ooe(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const aF=e=>(t,n)=>{const r=x.useContext(Bp),i=x.useContext(YM),o=()=>ioe(e,t,r,i);return n?o():roe(o)};function ooe(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=Tie(o[m]);let{initial:a,animate:u}=e;const l=Ip(e),d=eF(e);t&&d&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!Rp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const y=v4(e,m[g]);if(y){const{transitionEnd:$,transition:C,...b}=y;for(const v in b){let D=b[v];if(Array.isArray(D)){const T=f?D.length-1:0;D=D[T]}D!==null&&(i[v]=D)}for(const v in $)i[v]=$[v]}}}return i}const N4=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),sF=()=>({...N4(),attrs:{}}),uF=(e,t)=>t&&typeof e=="number"?t.transform(e):e,aoe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},soe=od.length;function uoe(e,t,n){let r="",i=!0;for(let o=0;o<soe;o++){const a=od[o],u=e[a];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(a.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const d=uF(u,T4[a]);if(!l){i=!1;const f=aoe[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function j4(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const l in t){const d=t[l];if(bs.has(l)){a=!0;continue}else if(yM(l)){i[l]=d;continue}else{const f=uF(d,T4[l]);l.startsWith("origin")?(u=!0,o[l]=f):r[l]=f}}if(t.transform||(a||n?r.transform=uoe(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${l} ${d} ${f}`}}function JS(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function loe(e,t,n){const r=JS(t,e.x,e.width),i=JS(n,e.y,e.height);return`${r} ${i}`}const coe={offset:"stroke-dashoffset",array:"stroke-dasharray"},doe={offset:"strokeDashoffset",array:"strokeDasharray"};function foe(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?coe:doe;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function K4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:l=0,...d},f,h){if(j4(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:y}=e;m.transform&&(y&&(g.transform=m.transform),delete m.transform),y&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=loe(y,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&foe(m,a,u,l,!1)}const U4=e=>typeof e=="string"&&e.toLowerCase()==="svg",hoe={useVisualState:aF({scrapeMotionValuesFromProps:oF,createRenderState:sF,onMount:(e,t,{renderState:n,latestValues:r})=>{Br.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Br.render(()=>{K4(n,r,U4(t.tagName),e.transformTemplate),rF(t,n)})}})},poe={useVisualState:aF({scrapeMotionValuesFromProps:V4,createRenderState:N4})};function lF(e,t,n){for(const r in t)!ur(t[r])&&!iF(r,n)&&(e[r]=t[r])}function moe({transformTemplate:e},t){return x.useMemo(()=>{const n=N4();return j4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function goe(e,t){const n=e.style||{},r={};return lF(r,n,e),Object.assign(r,moe(e,t)),r}function yoe(e,t){const n={},r=goe(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 voe=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 Ih(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||voe.has(e)}let cF=e=>!Ih(e);function boe(e){e&&(cF=t=>t.startsWith("on")?!Ih(t):e(t))}try{boe(require("@emotion/is-prop-valid").default)}catch{}function $oe(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(cF(i)||n===!0&&Ih(i)||!t&&!Ih(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function xoe(e,t,n,r){const i=x.useMemo(()=>{const o=sF();return K4(o,t,U4(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};lF(o,e.style,e),i.style={...o,...i.style}}return i}function woe(e=!1){return(n,r,i,{latestValues:o},a)=>{const l=(L4(n)?xoe:yoe)(r,o,a,n),d=$oe(r,typeof n=="string",e),f=n!==x.Fragment?{...d,...l,ref:i}:{},{children:h}=r,m=x.useMemo(()=>ur(h)?h.get():h,[h]);return x.createElement(n,{...f,children:m})}}function Doe(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...L4(r)?hoe:poe,preloadedFeatures:e,useRender:woe(i),createVisualElement:t,Component:r};return Xie(a)}}const b0={current:null},dF={current:!1};function Coe(){if(dF.current=!0,!!B4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>b0.current=e.matches;e.addListener(t),t()}else b0.current=!1}function Eoe(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&_p(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,Bh(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Bh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const XS=new WeakMap,Soe=[...$M,Yn,Xu],Toe=e=>Soe.find(bM(e)),QS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Aoe{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=C4,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=da.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Br.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Ip(n),this.isVariantNode=eF(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];l[m]!==void 0&&ur(g)&&g.set(l[m],!1)}}mount(t){this.current=t,XS.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)),dF.current||Coe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:b0.current,process.env.NODE_ENV!=="production"&&_p(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){XS.delete(this.current),this.projection&&this.projection.unmount(),s0(this.notifyUpdate),s0(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=bs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Br.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Bu){const n=Bu[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):GM()}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<QS.length;r++){const i=QS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Eoe(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=Bh(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"&&(mM(i)||pM(i))?i=parseFloat(i):!Toe(i)&&Xu.test(n)&&(i=AM(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=v4(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new KM),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class fF extends Aoe{constructor(){super(...arguments),this.KeyframeResolver=PM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Poe(e){return window.getComputedStyle(e)}class _oe extends fF{constructor(){super(...arguments),this.type="html",this.renderInstance=tF}readValueFromInstance(t,n){if(bs.has(n)){const r=A4(n);return r&&r.default||0}else{const r=Poe(t),i=(yM(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wie(t,n)}build(t,n,r){j4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return V4(t,n,r)}}class Roe extends fF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=GM}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(bs.has(n)){const r=A4(n);return r&&r.default||0}return n=nF.has(n)?n:k4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return oF(t,n,r)}build(t,n,r){K4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){rF(t,n,r,i)}mount(t){this.isSVGTag=U4(t.tagName),super.mount(t)}}const Ooe=(e,t)=>L4(e)?new Roe(t):new _oe(t,{allowProjection:e!==x.Fragment}),Moe=Doe(),Foe=sne(Moe);function koe({children:e,features:t,strict:n=!1}){const[,r]=x.useState(!Pv(t)),i=x.useRef(void 0);if(!Pv(t)){const{renderer:o,...a}=t;i.current=o,v0(a)}return x.useEffect(()=>{Pv(t)&&t().then(({renderer:o,...a})=>{v0(a),i.current=o,r(!0)})},[]),So.jsx(I4.Provider,{value:{renderer:i.current,strict:n},children:e})}function Pv(e){return typeof e=="function"}const Boe={renderer:Ooe,...gie,...zie};function hF(e){return t=>typeof t===e}var Ioe=hF("function"),Loe=e=>e===null,e5=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",t5=e=>!Voe(e)&&!Loe(e)&&(Ioe(e)||typeof e=="object"),Voe=hF("undefined");function Noe(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function joe(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 Koe(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!lr(n[1],t.get(n[0])))return!1;return!0}function Uoe(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function lr(e,t){if(e===t)return!0;if(e&&t5(e)&&t&&t5(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Noe(e,t);if(e instanceof Map&&t instanceof Map)return Koe(e,t);if(e instanceof Set&&t instanceof Set)return Uoe(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return joe(e,t);if(e5(e)&&e5(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var zoe=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Woe=["bigint","boolean","null","number","string","symbol","undefined"];function Lp(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(qoe(t))return t}function Si(e){return t=>Lp(t)===e}function qoe(e){return zoe.includes(e)}function el(e){return t=>typeof t===e}function Hoe(e){return Woe.includes(e)}var Goe=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Lp(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Lp(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=el("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&&Goe.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=el("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>el("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Lp(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||Hoe(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=el("string");Oe.symbol=el("symbol");Oe.undefined=el("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function Yoe(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function Zoe(e,t,n){return pF(e,t)?[e,t].every(ke.array)?!e.some(a5(n))&&t.some(a5(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(o5(n))&&Object.entries(t).some(o5(n)):t===n:!1}function n5(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=zi(e,i),l=zi(t,i);let d=[u,l].every(ke.number)&&(a==="increased"?u<l:u>l);return ke.undefined(r)||(d=d&&l===r),ke.undefined(o)||(d=d&&u===o),d}function r5(e,t,n){const{key:r,type:i,value:o}=n,a=zi(e,r),u=zi(t,r),l=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(l)){if(ke.array(l)||ke.plainObject(l))return Zoe(l,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(z4(l)):[a,u].every(ke.plainObject)?Joe(Object.keys(l),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function i5(e,t,{key:n}={}){let r=zi(e,n),i=zi(t,n);if(!pF(r,i))throw new TypeError("Inputs have different types");if(!Yoe(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function o5(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&z4(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function Joe(e,t){return t.some(n=>!e.includes(n))}function a5(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&z4(t)(n)):lr(e,t)}function Bl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function z4(e){return t=>e.some(n=>lr(n,t))}function pF(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function zi(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Lh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return r5(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=zi(e,f),y=zi(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const b=C?Bl(m,g):!Bl(h,g),v=Bl(h,y);return b&&v}return[g,y].every(ke.array)||[g,y].every(ke.plainObject)?!lr(g,y):g!==y}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=zi(e,f),y=zi(t,f),$=ke.defined(m);return Bl(h,g)&&($?Bl(m,y):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return n5(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=i5(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=i5(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return n5(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return r5(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var _v,s5;function Xoe(){if(s5)return _v;s5=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;_v={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),y=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,b=!1;return y===f?m(e,d[u]):requestAnimationFrame(D),v;function v(){b=!0}function D(T){if(b)return m(t,d[u]);var E=r(),A=n(1,(E-g)/C),R=$(A);d[u]=R*(f-y)+y,A<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return _v}var Qoe=Xoe();const eae=Qi(Qoe);var Hf={exports:{}},tae=Hf.exports,u5;function nae(){return u5||(u5=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(tae,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})}(Hf)),Hf.exports}var rae=nae();const mF=Qi(rae);var Rv,l5;function iae(){if(l5)return Rv;l5=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,Rv=n,Rv}var oae=iae();const c5=Qi(oae);var Ov,d5;function aae(){if(d5)return Ov;d5=1;var e=function(v){return t(v)&&!n(v)};function t(b){return!!b&&typeof b=="object"}function n(b){var v=Object.prototype.toString.call(b);return v==="[object RegExp]"||v==="[object Date]"||o(b)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(b){return b.$$typeof===i}function a(b){return Array.isArray(b)?[]:{}}function u(b,v){return v.clone!==!1&&v.isMergeableObject(b)?$(a(b),b,v):b}function l(b,v,D){return b.concat(v).map(function(T){return u(T,D)})}function d(b,v){if(!v.customMerge)return $;var D=v.customMerge(b);return typeof D=="function"?D:$}function f(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(v){return Object.propertyIsEnumerable.call(b,v)}):[]}function h(b){return Object.keys(b).concat(f(b))}function m(b,v){try{return v in b}catch{return!1}}function g(b,v){return m(b,v)&&!(Object.hasOwnProperty.call(b,v)&&Object.propertyIsEnumerable.call(b,v))}function y(b,v,D){var T={};return D.isMergeableObject(b)&&h(b).forEach(function(E){T[E]=u(b[E],D)}),h(v).forEach(function(E){g(b,E)||(m(b,E)&&D.isMergeableObject(v[E])?T[E]=d(E,D)(b[E],v[E],D):T[E]=u(v[E],D))}),T}function $(b,v,D){D=D||{},D.arrayMerge=D.arrayMerge||l,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var T=Array.isArray(v),E=Array.isArray(b),A=T===E;return A?T?D.arrayMerge(b,v,D):y(b,v,D):u(v,D)}$.all=function(v,D){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(T,E){return $(T,E,D)},{})};var C=$;return Ov=C,Ov}var sae=aae();const bi=Qi(sae);var Ef={exports:{}},Sf={exports:{}},Ct={};/** @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 f5;function uae(){if(f5)return Ct;f5=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function D(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case t:switch(E=E.type,E){case l:case d:case r:case o:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case f:case y:case g:case a:return E;default:return A}}case n:return A}}}function T(E){return D(E)===d}return Ct.AsyncMode=l,Ct.ConcurrentMode=d,Ct.ContextConsumer=u,Ct.ContextProvider=a,Ct.Element=t,Ct.ForwardRef=f,Ct.Fragment=r,Ct.Lazy=y,Ct.Memo=g,Ct.Portal=n,Ct.Profiler=o,Ct.StrictMode=i,Ct.Suspense=h,Ct.isAsyncMode=function(E){return T(E)||D(E)===l},Ct.isConcurrentMode=T,Ct.isContextConsumer=function(E){return D(E)===u},Ct.isContextProvider=function(E){return D(E)===a},Ct.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ct.isForwardRef=function(E){return D(E)===f},Ct.isFragment=function(E){return D(E)===r},Ct.isLazy=function(E){return D(E)===y},Ct.isMemo=function(E){return D(E)===g},Ct.isPortal=function(E){return D(E)===n},Ct.isProfiler=function(E){return D(E)===o},Ct.isStrictMode=function(E){return D(E)===i},Ct.isSuspense=function(E){return D(E)===h},Ct.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===i||E===h||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===g||E.$$typeof===a||E.$$typeof===u||E.$$typeof===f||E.$$typeof===C||E.$$typeof===b||E.$$typeof===v||E.$$typeof===$)},Ct.typeOf=D,Ct}var Et={};/** @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 h5;function lae(){return h5||(h5=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,b=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===m||typeof ae=="object"&&ae!==null&&(ae.$$typeof===y||ae.$$typeof===g||ae.$$typeof===a||ae.$$typeof===u||ae.$$typeof===f||ae.$$typeof===C||ae.$$typeof===b||ae.$$typeof===v||ae.$$typeof===$)}function T(ae){if(typeof ae=="object"&&ae!==null){var Fe=ae.$$typeof;switch(Fe){case t:var et=ae.type;switch(et){case l:case d:case r:case o:case i:case h:return et;default:var dt=et&&et.$$typeof;switch(dt){case u:case f:case y:case g:case a:return dt;default:return Fe}}case n:return Fe}}}var E=l,A=d,R=u,S=a,U=t,j=f,M=r,X=y,O=g,I=n,W=o,k=i,V=h,_=!1;function H(ae){return _||(_=!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.")),z(ae)||T(ae)===l}function z(ae){return T(ae)===d}function N(ae){return T(ae)===u}function ne(ae){return T(ae)===a}function ie(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===t}function le(ae){return T(ae)===f}function $e(ae){return T(ae)===r}function De(ae){return T(ae)===y}function Ce(ae){return T(ae)===g}function Y(ae){return T(ae)===n}function he(ae){return T(ae)===o}function ye(ae){return T(ae)===i}function fe(ae){return T(ae)===h}Et.AsyncMode=E,Et.ConcurrentMode=A,Et.ContextConsumer=R,Et.ContextProvider=S,Et.Element=U,Et.ForwardRef=j,Et.Fragment=M,Et.Lazy=X,Et.Memo=O,Et.Portal=I,Et.Profiler=W,Et.StrictMode=k,Et.Suspense=V,Et.isAsyncMode=H,Et.isConcurrentMode=z,Et.isContextConsumer=N,Et.isContextProvider=ne,Et.isElement=ie,Et.isForwardRef=le,Et.isFragment=$e,Et.isLazy=De,Et.isMemo=Ce,Et.isPortal=Y,Et.isProfiler=he,Et.isStrictMode=ye,Et.isSuspense=fe,Et.isValidElementType=D,Et.typeOf=T}()),Et}var p5;function gF(){return p5||(p5=1,process.env.NODE_ENV==="production"?Sf.exports=uae():Sf.exports=lae()),Sf.exports}/*
170
+ object-assign
171
+ (c) Sindre Sorhus
172
+ @license MIT
173
+ */var Mv,m5;function cae(){if(m5)return Mv;m5=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Mv=i()?Object.assign:function(o,a){for(var u,l=r(o),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var h in u)t.call(u,h)&&(l[h]=u[h]);if(e){d=e(u);for(var m=0;m<d.length;m++)n.call(u,d[m])&&(l[d[m]]=u[d[m]])}}return l},Mv}var Fv,g5;function W4(){if(g5)return Fv;g5=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fv=e,Fv}var kv,y5;function yF(){return y5||(y5=1,kv=Function.call.bind(Object.prototype.hasOwnProperty)),kv}var Bv,v5;function dae(){if(v5)return Bv;v5=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=W4(),n={},r=yF();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,l,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var h;try{if(typeof o[f]!="function"){var m=Error((l||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=o[f](a,f,l,u,null,t)}catch(y){h=y}if(h&&!(h instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Bv=i,Bv}var Iv,b5;function fae(){if(b5)return Iv;b5=1;var e=gF(),t=cae(),n=W4(),r=yF(),i=dae(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Iv=function(u,l){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(z){var N=z&&(d&&z[d]||z[f]);if(typeof N=="function")return N}var m="<<anonymous>>",g={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:D,element:T(),elementType:E(),instanceOf:A,node:j(),objectOf:S,oneOf:R,oneOfType:U,shape:X,exact:O};function y(z,N){return z===N?z!==0||1/z===1/N:z!==z&&N!==N}function $(z,N){this.message=z,this.data=N&&typeof N=="object"?N:{},this.stack=""}$.prototype=Error.prototype;function C(z){if(process.env.NODE_ENV!=="production")var N={},ne=0;function ie($e,De,Ce,Y,he,ye,fe){if(Y=Y||m,ye=ye||Ce,fe!==n){if(l){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 Fe=Y+":"+Ce;!N[Fe]&&ne<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+Y+"`. 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."),N[Fe]=!0,ne++)}}return De[Ce]==null?$e?De[Ce]===null?new $("The "+he+" `"+ye+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new $("The "+he+" `"+ye+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:z(De,Ce,Y,he,ye)}var le=ie.bind(null,!1);return le.isRequired=ie.bind(null,!0),le}function b(z){function N(ne,ie,le,$e,De,Ce){var Y=ne[ie],he=k(Y);if(he!==z){var ye=V(Y);return new $("Invalid "+$e+" `"+De+"` of type "+("`"+ye+"` supplied to `"+le+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return C(N)}function v(){return C(a)}function D(z){function N(ne,ie,le,$e,De){if(typeof z!="function")return new $("Property `"+De+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var Ce=ne[ie];if(!Array.isArray(Ce)){var Y=k(Ce);return new $("Invalid "+$e+" `"+De+"` of type "+("`"+Y+"` supplied to `"+le+"`, expected an array."))}for(var he=0;he<Ce.length;he++){var ye=z(Ce,he,le,$e,De+"["+he+"]",n);if(ye instanceof Error)return ye}return null}return C(N)}function T(){function z(N,ne,ie,le,$e){var De=N[ne];if(!u(De)){var Ce=k(De);return new $("Invalid "+le+" `"+$e+"` of type "+("`"+Ce+"` supplied to `"+ie+"`, expected a single ReactElement."))}return null}return C(z)}function E(){function z(N,ne,ie,le,$e){var De=N[ne];if(!e.isValidElementType(De)){var Ce=k(De);return new $("Invalid "+le+" `"+$e+"` of type "+("`"+Ce+"` supplied to `"+ie+"`, expected a single ReactElement type."))}return null}return C(z)}function A(z){function N(ne,ie,le,$e,De){if(!(ne[ie]instanceof z)){var Ce=z.name||m,Y=H(ne[ie]);return new $("Invalid "+$e+" `"+De+"` of type "+("`"+Y+"` supplied to `"+le+"`, expected ")+("instance of `"+Ce+"`."))}return null}return C(N)}function R(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function N(ne,ie,le,$e,De){for(var Ce=ne[ie],Y=0;Y<z.length;Y++)if(y(Ce,z[Y]))return null;var he=JSON.stringify(z,function(fe,ae){var Fe=V(ae);return Fe==="symbol"?String(ae):ae});return new $("Invalid "+$e+" `"+De+"` of value `"+String(Ce)+"` "+("supplied to `"+le+"`, expected one of "+he+"."))}return C(N)}function S(z){function N(ne,ie,le,$e,De){if(typeof z!="function")return new $("Property `"+De+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var Ce=ne[ie],Y=k(Ce);if(Y!=="object")return new $("Invalid "+$e+" `"+De+"` of type "+("`"+Y+"` supplied to `"+le+"`, expected an object."));for(var he in Ce)if(r(Ce,he)){var ye=z(Ce,he,le,$e,De+"."+he,n);if(ye instanceof Error)return ye}return null}return C(N)}function U(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var N=0;N<z.length;N++){var ne=z[N];if(typeof ne!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(ne)+" at index "+N+"."),a}function ie(le,$e,De,Ce,Y){for(var he=[],ye=0;ye<z.length;ye++){var fe=z[ye],ae=fe(le,$e,De,Ce,Y,n);if(ae==null)return null;ae.data&&r(ae.data,"expectedType")&&he.push(ae.data.expectedType)}var Fe=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new $("Invalid "+Ce+" `"+Y+"` supplied to "+("`"+De+"`"+Fe+"."))}return C(ie)}function j(){function z(N,ne,ie,le,$e){return I(N[ne])?null:new $("Invalid "+le+" `"+$e+"` supplied to "+("`"+ie+"`, expected a ReactNode."))}return C(z)}function M(z,N,ne,ie,le){return new $((z||"React class")+": "+N+" type `"+ne+"."+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function X(z){function N(ne,ie,le,$e,De){var Ce=ne[ie],Y=k(Ce);if(Y!=="object")return new $("Invalid "+$e+" `"+De+"` of type `"+Y+"` "+("supplied to `"+le+"`, expected `object`."));for(var he in z){var ye=z[he];if(typeof ye!="function")return M(le,$e,De,he,V(ye));var fe=ye(Ce,he,le,$e,De+"."+he,n);if(fe)return fe}return null}return C(N)}function O(z){function N(ne,ie,le,$e,De){var Ce=ne[ie],Y=k(Ce);if(Y!=="object")return new $("Invalid "+$e+" `"+De+"` of type `"+Y+"` "+("supplied to `"+le+"`, expected `object`."));var he=t({},ne[ie],z);for(var ye in he){var fe=z[ye];if(r(z,ye)&&typeof fe!="function")return M(le,$e,De,ye,V(fe));if(!fe)return new $("Invalid "+$e+" `"+De+"` key `"+ye+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(ne[ie],null," ")+`
174
+ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var ae=fe(Ce,ye,le,$e,De+"."+ye,n);if(ae)return ae}return null}return C(N)}function I(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(I);if(z===null||u(z))return!0;var N=h(z);if(N){var ne=N.call(z),ie;if(N!==z.entries){for(;!(ie=ne.next()).done;)if(!I(ie.value))return!1}else for(;!(ie=ne.next()).done;){var le=ie.value;if(le&&!I(le[1]))return!1}}else return!1;return!0;default:return!1}}function W(z,N){return z==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function k(z){var N=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":W(N,z)?"symbol":N}function V(z){if(typeof z>"u"||z===null)return""+z;var N=k(z);if(N==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return N}function _(z){var N=V(z);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function H(z){return!z.constructor||!z.constructor.name?m:z.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},Iv}var Lv,$5;function hae(){if($5)return Lv;$5=1;var e=W4();function t(){}function n(){}return n.resetWarningCache=t,Lv=function(){function r(a,u,l,d,f,h){if(h!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Lv}var x5;function pae(){if(x5)return Ef.exports;if(x5=1,process.env.NODE_ENV!=="production"){var e=gF(),t=!0;Ef.exports=fae()(e.isElement,t)}else Ef.exports=hae()();return Ef.exports}var mae=pae();const Se=Qi(mae);/**!
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 ud=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",gae=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(ud&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function yae(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function vae(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},gae))}}var bae=ud&&window.Promise,$ae=bae?yae:vae;function vF(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function $s(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function q4(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function ld(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=$s(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:ld(q4(e))}function bF(e){return e&&e.referenceNode?e.referenceNode:e}var w5=ud&&!!(window.MSInputMethodContext&&document.documentMode),D5=ud&&/MSIE 10/.test(navigator.userAgent);function tl(e){return e===11?w5:e===10?D5:w5||D5}function Iu(e){if(!e)return document.documentElement;for(var t=tl(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&&$s(n,"position")==="static"?Iu(n):n}function xae(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Iu(e.firstElementChild)===e}function $0(e){return e.parentNode!==null?$0(e.parentNode):e}function Vh(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return xae(a)?a:Iu(a);var u=$0(e);return u.host?Vh(u.host,t):Vh(e,$0(t).host)}function Lu(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 wae(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=Lu(t,"top"),i=Lu(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 C5(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 E5(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],tl(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function $F(e){var t=e.body,n=e.documentElement,r=tl(10)&&getComputedStyle(n);return{height:E5("Height",t,n,r),width:E5("Width",t,n,r)}}var Dae=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Cae=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}}(),Vu=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function ga(e){return oi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function x0(e){var t={};try{if(tl(10)){t=e.getBoundingClientRect();var n=Lu(e,"top"),r=Lu(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"?$F(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,d=e.offsetHeight-u;if(l||d){var f=$s(e);l-=C5(f,"x"),d-=C5(f,"y"),i.width-=l,i.height-=d}return ga(i)}function H4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=tl(10),i=t.nodeName==="HTML",o=x0(e),a=x0(t),u=ld(e),l=$s(t),d=parseFloat(l.borderTopWidth),f=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=ga({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(l.marginTop),g=parseFloat(l.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=wae(h,t)),h}function Eae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=H4(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Lu(n),u=t?0:Lu(n,"left"),l={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return ga(l)}function xF(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if($s(e,"position")==="fixed")return!0;var n=q4(e);return n?xF(n):!1}function wF(e){if(!e||!e.parentElement||tl())return document.documentElement;for(var t=e.parentElement;t&&$s(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function G4(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?wF(e):Vh(e,bF(t));if(r==="viewport")o=Eae(a,i);else{var u=void 0;r==="scrollParent"?(u=ld(q4(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var l=H4(u,a,i);if(u.nodeName==="HTML"&&!xF(a)){var d=$F(e.ownerDocument),f=d.height,h=d.width;o.top+=l.top-l.marginTop,o.bottom=f+l.top,o.left+=l.left-l.marginLeft,o.right=h+l.left}else o=l}n=n||0;var m=typeof n=="number";return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function Sae(e){var t=e.width,n=e.height;return t*n}function DF(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=G4(n,r,o,i),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(u).map(function(m){return oi({key:m},u[m],{area:Sae(u[m])})}).sort(function(m,g){return g.area-m.area}),d=l.filter(function(m){var g=m.width,y=m.height;return g>=n.clientWidth&&y>=n.clientHeight}),f=d.length>0?d[0].key:l[0].key,h=e.split("-")[1];return f+(h?"-"+h:"")}function CF(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?wF(t):Vh(t,bF(n));return H4(n,i,r)}function EF(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 Nh(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 SF(e,t,n){n=n.split("-")[0];var r=EF(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",u=o?"left":"top",l=o?"height":"width",d=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[Nh(u)],i}function cd(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Tae(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=cd(e,function(i){return i[t]===n});return e.indexOf(r)}function TF(e,t,n){var r=n===void 0?e:e.slice(0,Tae(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&&vF(o)&&(t.offsets.popper=ga(t.offsets.popper),t.offsets.reference=ga(t.offsets.reference),t=o(t,i))}),t}function Aae(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=CF(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=DF(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=SF(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=TF(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function AF(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function Y4(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 Pae(){return this.state.isDestroyed=!0,AF(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[Y4("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function PF(e){var t=e.ownerDocument;return t?t.defaultView:window}function _F(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||_F(ld(o.parentNode),t,n,r),r.push(o)}function _ae(e,t,n,r){n.updateBound=r,PF(e).addEventListener("resize",n.updateBound,{passive:!0});var i=ld(e);return _F(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Rae(){this.state.eventsEnabled||(this.state=_ae(this.reference,this.options,this.state,this.scheduleUpdate))}function Oae(e,t){return PF(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 Mae(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Oae(this.reference,this.state))}function Z4(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function w0(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&Z4(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Fae(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function kae(e){return w0(e.instance.popper,e.styles),Fae(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&w0(e.arrowElement,e.arrowStyles),e}function Bae(e,t,n,r,i){var o=CF(i,t,e,n.positionFixed),a=DF(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),w0(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Iae(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,u=function(b){return b},l=o(i.width),d=o(r.width),f=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,m=l%2===d%2,g=l%2===1&&d%2===1,y=t?f||h||m?o:a:u,$=t?o:u;return{left:y(g&&!h&&t?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:y(r.right)}}var Lae=ud&&/Firefox/i.test(navigator.userAgent);function Vae(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=cd(e.instance.modifiers,function(D){return D.name==="applyStyle"}).gpuAcceleration;o!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=o!==void 0?o:t.gpuAcceleration,u=Iu(e.instance.popper),l=x0(u),d={position:i.position},f=Iae(e,window.devicePixelRatio<2||!Lae),h=n==="bottom"?"top":"bottom",m=r==="right"?"left":"right",g=Y4("transform"),y=void 0,$=void 0;if(h==="bottom"?u.nodeName==="HTML"?$=-u.clientHeight+f.bottom:$=-l.height+f.bottom:$=f.top,m==="right"?u.nodeName==="HTML"?y=-u.clientWidth+f.right:y=-l.width+f.right:y=f.left,a&&g)d[g]="translate3d("+y+"px, "+$+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,b=m==="right"?-1:1;d[h]=$*C,d[m]=y*b,d.willChange=h+", "+m}var v={"x-placement":e.placement};return e.attributes=oi({},v,e.attributes),e.styles=oi({},d,e.styles),e.arrowStyles=oi({},e.offsets.arrow,e.arrowStyles),e}function RF(e,t,n){var r=cd(e,function(u){var l=u.name;return l===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function Nae(e,t){var n;if(!RF(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,l=["left","right"].indexOf(i)!==-1,d=l?"height":"width",f=l?"Top":"Left",h=f.toLowerCase(),m=l?"left":"top",g=l?"bottom":"right",y=EF(r)[d];u[g]-y<a[h]&&(e.offsets.popper[h]-=a[h]-(u[g]-y)),u[h]+y>a[g]&&(e.offsets.popper[h]+=u[h]+y-a[g]),e.offsets.popper=ga(e.offsets.popper);var $=u[h]+u[d]/2-y/2,C=$s(e.instance.popper),b=parseFloat(C["margin"+f]),v=parseFloat(C["border"+f+"Width"]),D=$-e.offsets.popper[h]-b-v;return D=Math.max(Math.min(a[d]-y,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Vu(n,h,Math.round(D)),Vu(n,m,""),n),e}function jae(e){return e==="end"?"start":e==="start"?"end":e}var OF=["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"],Vv=OF.slice(3);function S5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Vv.indexOf(e),r=Vv.slice(n+1).concat(Vv.slice(0,n));return t?r.reverse():r}var Nv={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Kae(e,t){if(AF(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=G4(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=Nh(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Nv.FLIP:a=[r,i];break;case Nv.CLOCKWISE:a=S5(r);break;case Nv.COUNTERCLOCKWISE:a=S5(r,!0);break;default:a=t.behavior}return a.forEach(function(u,l){if(r!==u||a.length===l+1)return e;r=e.placement.split("-")[0],i=Nh(r);var d=e.offsets.popper,f=e.offsets.reference,h=Math.floor,m=r==="left"&&h(d.right)>h(f.left)||r==="right"&&h(d.left)<h(f.right)||r==="top"&&h(d.bottom)>h(f.top)||r==="bottom"&&h(d.top)<h(f.bottom),g=h(d.left)<h(n.left),y=h(d.right)>h(n.right),$=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),b=r==="left"&&g||r==="right"&&y||r==="top"&&$||r==="bottom"&&C,v=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(v&&o==="start"&&g||v&&o==="end"&&y||!v&&o==="start"&&$||!v&&o==="end"&&C),T=!!t.flipVariationsByContent&&(v&&o==="start"&&y||v&&o==="end"&&g||!v&&o==="start"&&C||!v&&o==="end"&&$),E=D||T;(m||b||E)&&(e.flipped=!0,(m||b)&&(r=a[l+1]),E&&(o=jae(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=oi({},e.offsets.popper,SF(e.instance.popper,e.offsets.reference,e.placement)),e=TF(e.instance.modifiers,e,"flip"))}),e}function Uae(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,u=a?"right":"bottom",l=a?"left":"top",d=a?"width":"height";return n[u]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[d]),n[l]>o(r[u])&&(e.offsets.popper[l]=o(r[u])),e}function zae(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}var l=ga(u);return l[t]/100*o}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function Wae(e,t,n,r){var i=[0,0],o=["right","left"].indexOf(r)!==-1,a=e.split(/(\+|\-)/).map(function(f){return f.trim()}),u=a.indexOf(cd(a,function(f){return f.search(/,|\s/)!==-1}));a[u]&&a[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,d=u!==-1?[a.slice(0,u).concat([a[u].split(l)[0]]),[a[u].split(l)[1]].concat(a.slice(u+1))]:[a];return d=d.map(function(f,h){var m=(h===1?!o:o)?"height":"width",g=!1;return f.reduce(function(y,$){return y[y.length-1]===""&&["+","-"].indexOf($)!==-1?(y[y.length-1]=$,g=!0,y):g?(y[y.length-1]+=$,g=!1,y):y.concat($)},[]).map(function(y){return zae(y,m,t,n)})}),d.forEach(function(f,h){f.forEach(function(m,g){Z4(m)&&(i[h]+=m*(f[g-1]==="-"?-1:1))})}),i}function qae(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],l=void 0;return Z4(+n)?l=[+n,0]:l=Wae(n,o,a,u),u==="left"?(o.top+=l[0],o.left-=l[1]):u==="right"?(o.top+=l[0],o.left+=l[1]):u==="top"?(o.left+=l[0],o.top-=l[1]):u==="bottom"&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e}function Hae(e,t){var n=t.boundariesElement||Iu(e.instance.popper);e.instance.reference===n&&(n=Iu(n));var r=Y4("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var l=G4(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=l;var d=t.priority,f=e.offsets.popper,h={primary:function(g){var y=f[g];return f[g]<l[g]&&!t.escapeWithReference&&(y=Math.max(f[g],l[g])),Vu({},g,y)},secondary:function(g){var y=g==="right"?"left":"top",$=f[y];return f[g]>l[g]&&!t.escapeWithReference&&($=Math.min(f[y],l[g]-(g==="right"?f.width:f.height))),Vu({},y,$)}};return d.forEach(function(m){var g=["left","top"].indexOf(m)!==-1?"primary":"secondary";f=oi({},f,h[g](m))}),e.offsets.popper=f,e}function Gae(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,u=["bottom","top"].indexOf(n)!==-1,l=u?"left":"top",d=u?"width":"height",f={start:Vu({},l,o[l]),end:Vu({},l,o[l]+o[d]-a[d])};e.offsets.popper=oi({},a,f[r])}return e}function Yae(e){if(!RF(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=cd(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 Zae(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=["left","right"].indexOf(n)!==-1,u=["top","left"].indexOf(n)===-1;return i[a?"left":"top"]=o[n]-(u?i[a?"width":"height"]:0),e.placement=Nh(t),e.offsets.popper=ga(i),e}var Jae={shift:{order:100,enabled:!0,fn:Gae},offset:{order:200,enabled:!0,fn:qae,offset:0},preventOverflow:{order:300,enabled:!0,fn:Hae,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Uae},arrow:{order:500,enabled:!0,fn:Nae,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Kae,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Zae},hide:{order:800,enabled:!0,fn:Yae},computeStyle:{order:850,enabled:!0,fn:Vae,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:kae,onLoad:Bae,gpuAcceleration:void 0}},Xae={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Jae},Oc=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Dae(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=$ae(this.update.bind(this)),this.options=oi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(oi({},e.Defaults.modifiers,i.modifiers)).forEach(function(a){r.options.modifiers[a]=oi({},e.Defaults.modifiers[a]||{},i.modifiers?i.modifiers[a]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(a){return oi({name:a},r.options.modifiers[a])}).sort(function(a,u){return a.order-u.order}),this.modifiers.forEach(function(a){a.enabled&&vF(a.onLoad)&&a.onLoad(r.reference,r.popper,r.options,a,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Cae(e,[{key:"update",value:function(){return Aae.call(this)}},{key:"destroy",value:function(){return Pae.call(this)}},{key:"enableEventListeners",value:function(){return Rae.call(this)}},{key:"disableEventListeners",value:function(){return Mae.call(this)}}]),e}();Oc.Utils=(typeof window<"u"?window:global).PopperUtils;Oc.placements=OF;Oc.Defaults=Xae;var Qae=["innerHTML","ownerDocument","style","attributes","nodeValue"],ese=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],tse=["bigint","boolean","null","number","string","symbol","undefined"];function Vp(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(nse(t))return t}function Ti(e){return function(t){return Vp(t)===e}}function nse(e){return ese.includes(e)}function nl(e){return function(t){return typeof t===e}}function rse(e){return tse.includes(e)}function ce(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(ce.array(e))return"Array";if(ce.plainFunction(e))return"Function";var t=Vp(e);return t||"Object"}ce.array=Array.isArray;ce.arrayOf=function(e,t){return!ce.array(e)&&!ce.function(t)?!1:e.every(function(n){return t(n)})};ce.asyncGeneratorFunction=function(e){return Vp(e)==="AsyncGeneratorFunction"};ce.asyncFunction=Ti("AsyncFunction");ce.bigint=nl("bigint");ce.boolean=function(e){return e===!0||e===!1};ce.date=Ti("Date");ce.defined=function(e){return!ce.undefined(e)};ce.domElement=function(e){return ce.object(e)&&!ce.plainObject(e)&&e.nodeType===1&&ce.string(e.nodeName)&&Qae.every(function(t){return t in e})};ce.empty=function(e){return ce.string(e)&&e.length===0||ce.array(e)&&e.length===0||ce.object(e)&&!ce.map(e)&&!ce.set(e)&&Object.keys(e).length===0||ce.set(e)&&e.size===0||ce.map(e)&&e.size===0};ce.error=Ti("Error");ce.function=nl("function");ce.generator=function(e){return ce.iterable(e)&&ce.function(e.next)&&ce.function(e.throw)};ce.generatorFunction=Ti("GeneratorFunction");ce.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};ce.iterable=function(e){return!ce.nullOrUndefined(e)&&ce.function(e[Symbol.iterator])};ce.map=Ti("Map");ce.nan=function(e){return Number.isNaN(e)};ce.null=function(e){return e===null};ce.nullOrUndefined=function(e){return ce.null(e)||ce.undefined(e)};ce.number=function(e){return nl("number")(e)&&!ce.nan(e)};ce.numericString=function(e){return ce.string(e)&&e.length>0&&!Number.isNaN(Number(e))};ce.object=function(e){return!ce.nullOrUndefined(e)&&(ce.function(e)||typeof e=="object")};ce.oneOf=function(e,t){return ce.array(e)?e.indexOf(t)>-1:!1};ce.plainFunction=Ti("Function");ce.plainObject=function(e){if(Vp(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ce.primitive=function(e){return ce.null(e)||rse(typeof e)};ce.promise=Ti("Promise");ce.propertyOf=function(e,t,n){if(!ce.object(e)||!t)return!1;var r=e[t];return ce.function(n)?n(r):ce.defined(r)};ce.regexp=Ti("RegExp");ce.set=Ti("Set");ce.string=nl("string");ce.symbol=nl("symbol");ce.undefined=nl("undefined");ce.weakMap=Ti("WeakMap");ce.weakSet=Ti("WeakSet");function MF(e){return function(t){return typeof t===e}}var ise=MF("function"),ose=function(e){return e===null},T5=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},A5=function(e){return!ase(e)&&!ose(e)&&(ise(e)||typeof e=="object")},ase=MF("undefined"),D0=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 sse(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!Dr(e[r],t[r]))return!1;return!0}function use(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 lse(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=D0(e.entries()),u=a.next();!u.done;u=a.next()){var l=u.value;if(!t.has(l[0]))return!1}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=D0(e.entries()),f=d.next();!f.done;f=d.next()){var l=f.value;if(!Dr(l[1],t.get(l[0])))return!1}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function cse(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=D0(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Dr(e,t){if(e===t)return!0;if(e&&A5(e)&&t&&A5(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return sse(e,t);if(e instanceof Map&&t instanceof Map)return lse(e,t);if(e instanceof Set&&t instanceof Set)return cse(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return use(e,t);if(T5(e)&&T5(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Dr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function dse(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return ce.string(n)||ce.array(n)||ce.plainObject(n)})}function fse(e,t,n){return FF(e,t)?[e,t].every(ce.array)?!e.some(M5(n))&&t.some(M5(n)):[e,t].every(ce.plainObject)?!Object.entries(e).some(O5(n))&&Object.entries(t).some(O5(n)):t===n:!1}function P5(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,u=Wi(e,i),l=Wi(t,i),d=[u,l].every(ce.number)&&(a==="increased"?u<l:u>l);return ce.undefined(r)||(d=d&&l===r),ce.undefined(o)||(d=d&&u===o),d}function _5(e,t,n){var r=n.key,i=n.type,o=n.value,a=Wi(e,r),u=Wi(t,r),l=i==="added"?a:u,d=i==="added"?u:a;if(!ce.nullOrUndefined(o)){if(ce.defined(l)){if(ce.array(l)||ce.plainObject(l))return fse(l,d,o)}else return Dr(d,o);return!1}return[a,u].every(ce.array)?!d.every(J4(l)):[a,u].every(ce.plainObject)?hse(Object.keys(l),Object.keys(d)):![a,u].every(function(f){return ce.primitive(f)&&ce.defined(f)})&&(i==="added"?!ce.defined(a)&&ce.defined(u):ce.defined(a)&&!ce.defined(u))}function R5(e,t,n){var r=n===void 0?{}:n,i=r.key,o=Wi(e,i),a=Wi(t,i);if(!FF(o,a))throw new TypeError("Inputs have different types");if(!dse(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(ce.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function O5(e){return function(t){var n=t[0],r=t[1];return ce.array(e)?Dr(e,r)||e.some(function(i){return Dr(i,r)||ce.array(r)&&J4(r)(i)}):ce.plainObject(e)&&e[n]?!!e[n]&&Dr(e[n],r):Dr(e,r)}}function hse(e,t){return t.some(function(n){return!e.includes(n)})}function M5(e){return function(t){return ce.array(e)?e.some(function(n){return Dr(n,t)||ce.array(t)&&J4(t)(n)}):Dr(e,t)}}function Il(e,t){return ce.array(e)?e.some(function(n){return Dr(n,t)}):Dr(e,t)}function J4(e){return function(t){return e.some(function(n){return Dr(n,t)})}}function FF(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(ce.array)||e.every(ce.number)||e.every(ce.plainObject)||e.every(ce.string)}function Wi(e,t){if(ce.plainObject(e)||ce.array(e)){if(ce.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return ce.number(t)?e[t]:e}return e}function pse(e,t){if([e,t].some(ce.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ce.plainObject(h)||ce.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,m){try{return _5(e,t,{key:h,type:"added",value:m})}catch{return!1}},r=function(h,m,g){try{var y=Wi(e,h),$=Wi(t,h),C=ce.defined(m),b=ce.defined(g);if(C||b){var v=b?Il(g,y):!Il(m,y),D=Il(m,$);return v&&D}return[y,$].every(ce.array)||[y,$].every(ce.plainObject)?!Dr(y,$):y!==$}catch{return!1}},i=function(h,m,g){if(!ce.defined(h))return!1;try{var y=Wi(e,h),$=Wi(t,h),C=ce.defined(g);return Il(m,y)&&(C?Il(g,$):!C)}catch{return!1}},o=function(h,m){return ce.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,m)):!1},a=function(h,m,g){if(!ce.defined(h))return!1;try{return P5(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var m=R5(e,t,{key:h}),g=m[0],y=m[1];return!!g.length&&!y.length}catch{return!1}},l=function(h){try{var m=R5(e,t,{key:h}),g=m[0],y=m[1];return!g.length&&!!y.length}catch{return!1}},d=function(h,m,g){if(!ce.defined(h))return!1;try{return P5(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},f=function(h,m){try{return _5(e,t,{key:h,type:"removed",value:m})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:u,filled:l,increased:d,removed:f}}function F5(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 Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F5(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mse(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,BF(r.key),r)}}function fd(e,t,n){return t&&mse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t,n){return t=BF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hd(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&&C0(e,t)}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}function C0(e,t){return C0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},C0(e,t)}function gse(){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 yse(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 kF(e,t){if(e==null)return{};var n=yse(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 yo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vse(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 yo(e)}function pd(e){var t=gse();return function(){var r=jh(e),i;if(t){var o=jh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return vse(this,i)}}function bse(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 BF(e){var t=bse(e,"string");return typeof t=="symbol"?t:String(t)}var $se={flip:{padding:20},preventOverflow:{padding:10}},xse="The typeValidator argument must be a function with the signature function(props, propName, componentName).",wse="The error message is optional, but must be a string if provided.";function Dse(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function Cse(e,t){return Object.hasOwnProperty.call(e,t)}function Ese(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Sse(e,t){if(typeof e!="function")throw new TypeError(xse);if(t)throw new TypeError(wse)}function k5(e,t,n){return Sse(e,n),function(r,i,o){for(var a=arguments.length,u=new Array(a>3?a-3:0),l=3;l<a;l++)u[l-3]=arguments[l];return Dse(t,r,i,o)?Cse(r,i)?e.apply(void 0,[r,i,o].concat(u)):Ese(r,i,o):e.apply(void 0,[r,i,o].concat(u))}}var pt={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Ll=ua.createPortal!==void 0;function Bi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function jv(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Tf(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,u=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(l){ce.plainObject(l)&&l.key?u.apply(console,[l.key,l.value]):u.apply(console,[l])}):u.apply(console,[n]),console.groupEnd())}function Tse(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Ase(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Pse(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Ase(e,t,i)},Tse(e,t,i,r)}function B5(){}var IF=function(e){hd(n,e);var t=pd(n);function n(){return dd(this,n),t.apply(this,arguments)}return fd(n,[{key:"componentDidMount",value:function(){Bi()&&(this.node||this.appendNode(),Ll||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Bi()&&(Ll||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Bi()||!this.node||(Ll||ua.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var i=this.props,o=i.id,a=i.zIndex;this.node||(this.node=document.createElement("div"),o&&(this.node.id=o),a&&(this.node.style.zIndex=a),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Bi())return null;var i=this.props,o=i.children,a=i.setRef;if(this.node||this.appendNode(),Ll)return ua.createPortal(o,this.node);var u=ua.unstable_renderSubtreeIntoContainer(this,o.length>1?x.createElement("div",null,o):o[0],this.node);return a(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,u=i.target;return o?this.renderPortal():u||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Ll?this.renderReact16():null}}]),n}(x.Component);Zn(IF,"propTypes",{children:Se.oneOfType([Se.element,Se.array]),hasChildren:Se.bool,id:Se.oneOfType([Se.string,Se.number]),placement:Se.string,setRef:Se.func.isRequired,target:Se.oneOfType([Se.object,Se.string]),zIndex:Se.number});var LF=function(e){hd(n,e);var t=pd(n);function n(){return dd(this,n),t.apply(this,arguments)}return fd(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,u=a.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=u):o.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=u):o.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):o.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,u=i.styles,l=u.arrow,d=l.color,f=l.display,h=l.length,m=l.margin,g=l.position,y=l.spread,$={display:f,position:g},C,b=y,v=h;return o.startsWith("top")?(C="0,0 ".concat(b/2,",").concat(v," ").concat(b,",0"),$.bottom=0,$.marginLeft=m,$.marginRight=m):o.startsWith("bottom")?(C="".concat(b,",").concat(v," ").concat(b/2,",0 0,").concat(v),$.top=0,$.marginLeft=m,$.marginRight=m):o.startsWith("left")?(v=y,b=h,C="0,0 ".concat(b,",").concat(v/2," 0,").concat(v),$.right=0,$.marginTop=m,$.marginBottom=m):o.startsWith("right")&&(v=y,b=h,C="".concat(b,",").concat(v," ").concat(b,",0 0,").concat(v/2),$.left=0,$.marginTop=m,$.marginBottom=m),x.createElement("div",{className:"__floater__arrow",style:this.parentStyle},x.createElement("span",{ref:a,style:$},x.createElement("svg",{width:b,height:v,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("polygon",{points:C,fill:d}))))}}]),n}(x.Component);Zn(LF,"propTypes",{placement:Se.string.isRequired,setArrowRef:Se.func.isRequired,styles:Se.object.isRequired});var _se=["color","height","width"];function VF(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=kF(n,_se);return x.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},x.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"},x.createElement("g",null,x.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}))))}VF.propTypes={handleClick:Se.func.isRequired,styles:Se.object.isRequired};function NF(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,u=e.title,l=e.styles,d={content:x.isValidElement(t)?t:x.createElement("div",{className:"__floater__content",style:l.content},t)};return u&&(d.title=x.isValidElement(u)?u:x.createElement("div",{className:"__floater__title",style:l.title},u)),n&&(d.footer=x.isValidElement(n)?n:x.createElement("div",{className:"__floater__footer",style:l.footer},n)),(a||o)&&!ce.boolean(i)&&(d.close=x.createElement(VF,{styles:l.close,handleClick:r})),x.createElement("div",{className:"__floater__container",style:l.container},d.close,d.title,d.content,d.footer)}NF.propTypes={content:Se.node.isRequired,footer:Se.node,handleClick:Se.func.isRequired,open:Se.bool,positionWrapper:Se.bool.isRequired,showCloseButton:Se.bool.isRequired,styles:Se.object.isRequired,title:Se.node};var jF=function(e){hd(n,e);var t=pd(n);function n(){return dd(this,n),t.apply(this,arguments)}return fd(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,u=i.placement,l=i.hideArrow,d=i.status,f=i.styles,h=f.arrow.length,m=f.floater,g=f.floaterCentered,y=f.floaterClosing,$=f.floaterOpening,C=f.floaterWithAnimation,b=f.floaterWithComponent,v={};return l||(u.startsWith("top")?v.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?v.padding="".concat(h,"px 0 0"):u.startsWith("left")?v.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(v.padding="0 0 0 ".concat(h,"px"))),[pt.OPENING,pt.OPEN].indexOf(d)!==-1&&(v=Ht(Ht({},v),$)),d===pt.CLOSING&&(v=Ht(Ht({},v),y)),d===pt.OPEN&&!o&&(v=Ht(Ht({},v),C)),u==="center"&&(v=Ht(Ht({},v),g)),a&&(v=Ht(Ht({},v),b)),Ht(Ht({},m),v)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,u=i.hideArrow,l=i.setFloaterRef,d=i.status,f={},h=["__floater"];return o?x.isValidElement(o)?f.content=x.cloneElement(o,{closeFn:a}):f.content=o({closeFn:a}):f.content=x.createElement(NF,this.props),d===pt.OPEN&&h.push("__floater__open"),u||(f.arrow=x.createElement(LF,this.props)),x.createElement("div",{ref:l,className:h.join(" "),style:this.style},x.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n}(x.Component);Zn(jF,"propTypes",{component:Se.oneOfType([Se.func,Se.element]),content:Se.node,disableAnimation:Se.bool.isRequired,footer:Se.node,handleClick:Se.func.isRequired,hideArrow:Se.bool.isRequired,open:Se.bool,placement:Se.string.isRequired,positionWrapper:Se.bool.isRequired,setArrowRef:Se.func.isRequired,setFloaterRef:Se.func.isRequired,showCloseButton:Se.bool,status:Se.string.isRequired,styles:Se.object.isRequired,title:Se.node});var KF=function(e){hd(n,e);var t=pd(n);function n(){return dd(this,n),t.apply(this,arguments)}return fd(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,u=i.handleMouseEnter,l=i.handleMouseLeave,d=i.setChildRef,f=i.setWrapperRef,h=i.style,m=i.styles,g;if(o)if(x.Children.count(o)===1)if(!x.isValidElement(o))g=x.createElement("span",null,o);else{var y=ce.function(o.type)?"innerRef":"ref";g=x.cloneElement(x.Children.only(o),Zn({},y,d))}else g=o;return g?x.createElement("span",{ref:f,style:Ht(Ht({},m),h),onClick:a,onMouseEnter:u,onMouseLeave:l},g):null}}]),n}(x.Component);Zn(KF,"propTypes",{children:Se.node,handleClick:Se.func.isRequired,handleMouseEnter:Se.func.isRequired,handleMouseLeave:Se.func.isRequired,setChildRef:Se.func.isRequired,setWrapperRef:Se.func.isRequired,style:Se.object,styles:Se.object.isRequired});var Rse={zIndex:100};function Ose(e){var t=bi(Rse,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 Mse=["arrow","flip","offset"],Fse=["position","top","right","bottom","left"],X4=function(e){hd(n,e);var t=pd(n);function n(r){var i;return dd(this,n),i=t.call(this,r),Zn(yo(i),"setArrowRef",function(o){i.arrowRef=o}),Zn(yo(i),"setChildRef",function(o){i.childRef=o}),Zn(yo(i),"setFloaterRef",function(o){i.floaterRef=o}),Zn(yo(i),"setWrapperRef",function(o){i.wrapperRef=o}),Zn(yo(i),"handleTransitionEnd",function(){var o=i.state.status,a=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:o===pt.OPENING?pt.OPEN:pt.IDLE},function(){var u=i.state.status;a(u===pt.OPEN?"open":"close",i.props)})}),Zn(yo(i),"handleClick",function(){var o=i.props,a=o.event,u=o.open;if(!ce.boolean(u)){var l=i.state,d=l.positionWrapper,f=l.status;(i.event==="click"||i.event==="hover"&&d)&&(Tf({title:"click",data:[{event:a,status:f===pt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Zn(yo(i),"handleMouseEnter",function(){var o=i.props,a=o.event,u=o.open;if(!(ce.boolean(u)||jv())){var l=i.state.status;i.event==="hover"&&l===pt.IDLE&&(Tf({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Zn(yo(i),"handleMouseLeave",function(){var o=i.props,a=o.event,u=o.eventDelay,l=o.open;if(!(ce.boolean(l)||jv())){var d=i.state,f=d.status,h=d.positionWrapper;i.event==="hover"&&(Tf({title:"mouseLeave",data:[{key:"originalEvent",value:a}],debug:i.debug}),u?[pt.OPENING,pt.OPEN].indexOf(f)!==-1&&!h&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},u*1e3)):i.toggle(pt.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:pt.INIT,statusWrapper:pt.INIT},i._isMounted=!1,i.hasMounted=!1,Bi()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return fd(n,[{key:"componentDidMount",value:function(){if(Bi()){var i=this.state.positionWrapper,o=this.props,a=o.children,u=o.open,l=o.target;this._isMounted=!0,Tf({title:"init",data:{hasChildren:!!a,hasTarget:!!l,isControlled:ce.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&l&&ce.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(Bi()){var a=this.props,u=a.autoOpen,l=a.open,d=a.target,f=a.wrapperOptions,h=pse(o,this.state),m=h.changedFrom,g=h.changed;if(i.open!==l){var y;ce.boolean(l)&&(y=l?pt.OPENING:pt.CLOSING),this.toggle(y)}(i.wrapperOptions.position!==f.position||i.target!==d)&&this.changeWrapperPosition(this.props),g("status",pt.IDLE)&&l?this.toggle(pt.OPEN):m("status",pt.INIT,pt.IDLE)&&u&&this.toggle(pt.OPEN),this.popper&&g("status",pt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",pt.OPENING)||g("status",pt.CLOSING))&&Pse(this.floaterRef,"transitionend",this.handleTransitionEnd),g("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Bi()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,a=this.state.positionWrapper,u=this.props,l=u.disableFlip,d=u.getPopper,f=u.hideArrow,h=u.offset,m=u.placement,g=u.wrapperOptions,y=m==="top"||m==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(m==="center")this.setState({status:pt.IDLE});else if(o&&this.floaterRef){var $=this.options,C=$.arrow,b=$.flip,v=$.offset,D=kF($,Mse);new Oc(o,this.floaterRef,{placement:m,modifiers:Ht({arrow:Ht({enabled:!f,element:this.arrowRef},C),flip:Ht({enabled:!l,behavior:y},b),offset:Ht({offset:"0, ".concat(h,"px")},v)},D),onCreate:function(A){var R;if(i.popper=A,!((R=i.floaterRef)!==null&&R!==void 0&&R.isConnected)){i.setState({needsUpdate:!0});return}d(A,"floater"),i._isMounted&&i.setState({currentPlacement:A.placement,status:pt.IDLE}),m!==A.placement&&setTimeout(function(){A.instance.update()},1)},onUpdate:function(A){i.popper=A;var R=i.state.currentPlacement;i._isMounted&&A.placement!==R&&i.setState({currentPlacement:A.placement})}})}if(a){var T=ce.undefined(g.offset)?0:g.offset;new Oc(this.target,this.wrapperRef,{placement:g.placement||m,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(T,"px")},flip:{enabled:!1}},onCreate:function(A){i.wrapperPopper=A,i._isMounted&&i.setState({statusWrapper:pt.IDLE}),d(A,"wrapper"),m!==A.placement&&setTimeout(function(){A.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===pt.OPEN?pt.CLOSING:pt.OPENING;ce.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||Bi()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&jv()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return bi($se,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,u=o.positionWrapper,l=o.statusWrapper,d=this.props.styles,f=bi(Ose(d),d);if(u){var h;[pt.IDLE].indexOf(a)===-1||[pt.IDLE].indexOf(l)===-1?h=f.wrapperPosition:h=this.wrapperPopper.styles,f.wrapper=Ht(Ht({},f.wrapper),h)}if(this.target){var m=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=Ht(Ht({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(m.position)===-1&&(this.wrapperStyles={},u||(Fse.forEach(function(g){i.wrapperStyles[g]=m[g]}),f.wrapper=Ht(Ht({},f.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return f}},{key:"target",get:function(){if(!Bi())return null;var i=this.props.target;return i?ce.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,o=i.currentPlacement,a=i.positionWrapper,u=i.status,l=this.props,d=l.children,f=l.component,h=l.content,m=l.disableAnimation,g=l.footer,y=l.hideArrow,$=l.id,C=l.open,b=l.showCloseButton,v=l.style,D=l.target,T=l.title,E=x.createElement(KF,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:v,styles:this.styles.wrapper},d),A={};return a?A.wrapperInPortal=E:A.wrapperAsChildren=E,x.createElement("span",null,x.createElement(IF,{hasChildren:!!d,id:$,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},x.createElement(jF,{component:f,content:h,disableAnimation:m,footer:g,handleClick:this.handleClick,hideArrow:y||o==="center",open:C,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:b,status:u,styles:this.styles,title:T}),A.wrapperInPortal),A.wrapperAsChildren)}}]),n}(x.Component);Zn(X4,"propTypes",{autoOpen:Se.bool,callback:Se.func,children:Se.node,component:k5(Se.oneOfType([Se.func,Se.element]),function(e){return!e.content}),content:k5(Se.node,function(e){return!e.component}),debug:Se.bool,disableAnimation:Se.bool,disableFlip:Se.bool,disableHoverToClick:Se.bool,event:Se.oneOf(["hover","click"]),eventDelay:Se.number,footer:Se.node,getPopper:Se.func,hideArrow:Se.bool,id:Se.oneOfType([Se.string,Se.number]),offset:Se.number,open:Se.bool,options:Se.object,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Se.bool,style:Se.object,styles:Se.object,target:Se.oneOfType([Se.object,Se.string]),title:Se.node,wrapperOptions:Se.shape({offset:Se.number,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Se.bool})});Zn(X4,"defaultProps",{autoOpen:!1,callback:B5,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:B5,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var kse=Object.defineProperty,Bse=(e,t,n)=>t in e?kse(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>Bse(e,typeof t!="symbol"?t+"":t,n),$t={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},ri={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},Qe={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},ct={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function ra(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function UF(e){return e?e.getBoundingClientRect():null}function Ise(e=!1){const{body:t,documentElement:n}=document;if(!t||!n)return 0;if(e){const r=[t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort((o,a)=>o-a),i=Math.floor(r.length/2);return r.length%2===0?(r[i-1]+r[i])/2:r[i]}return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function wo(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 Lse(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Mc(e,t,n){if(!e)return Za();const r=mF(e);if(r){if(r.isSameNode(Za()))return n?document:Za();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Za()}return r}function md(e,t){if(!e)return!1;const n=Mc(e,t);return n?!n.isSameNode(Za()):!1}function Vse(e){return e.offsetParent!==document.body}function Nu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=Lse(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Nu(e.parentNode,t):!1}function Nse(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 jse(e,t,n){var r,i,o;const a=UF(e),u=Mc(e,n),l=md(e,n),d=Nu(e);let f=0,h=(r=a==null?void 0:a.top)!=null?r:0;if(l&&d){const m=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(o=u==null?void 0:u.scrollTop)!=null?o:0;h=m-g}else u instanceof HTMLElement&&(f=u.scrollTop,!l&&!Nu(e)&&(h+=f),u.isSameNode(Za())||(h+=Za().scrollTop));return Math.floor(h-t)}function Kse(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=mF(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(md(e,n)||Vse(e))&&(a-=i);const u=Math.floor(a-t);return u<0?0:u}function Za(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function Use(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,u=e>a?e-a:a-e;eae.top(r,e,{duration:u<100?50:n},l=>l&&l.message!=="Element already at target scroll position"?o(l):i())})}var Vl=ua.createPortal!==void 0;function zF(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 Gf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Ii(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let o=c5(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(x.isValidElement(e)&&!Object.values(e.props).length&&Gf(e.type)==="function"){const a=e.type({});o=Ii(a,t)}else o=c5(n);return o}function zse(e,t){return!ke.plainObject(e)||!ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function Wse(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,u)=>o+o+a+a+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function I5(e){return e.disableBeacon||e.placement==="center"}function L5(){return!["chrome","safari","firefox","opera"].includes(zF())}function ya({data:e,debug:t=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach(o=>{ke.plainObject(o)&&o.key?i.apply(console,[o.key,o.value]):i.apply(console,[o])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function qse(e){return Object.keys(e)}function WF(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}function Hse(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function E0(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Gf(e)==="string")return r(e);if(!x.isValidElement(e))return e;const{children:i}=e.props;if(Gf(i)==="string"&&i.includes("{step}"))return x.cloneElement(e,{children:r(i)});if(Array.isArray(i))return x.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):E0(o,t,n))});if(Gf(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return E0(o,t,n)}return e}function Gse(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:a}=e;return!o.disableScrolling&&(!t||i||n===Qe.TOOLTIP)&&o.placement!=="center"&&(!o.isFixed||!Nu(a))&&r!==n&&[Qe.BEACON,Qe.TOOLTIP].includes(n)}var Yse={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},qF={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Zse={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:qF,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},Jse={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:[]},Xse={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},Nl={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},V5={borderRadius:4,position:"absolute"};function Qse(e,t){var n,r,i,o,a;const{floaterProps:u,styles:l}=e,d=bi((n=t.floaterProps)!=null?n:{},u??{}),f=bi(l??{},(r=t.styles)!=null?r:{}),h=bi(Xse,f.options||{}),m=t.placement==="center"||t.disableBeacon;let{width:g}=h;window.innerWidth>480&&(g=380),"width"in h&&(g=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const y={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},$={beacon:{...Nl,display:m?"none":"inline-block",height:h.beaconSize,position:"relative",width:h.beaconSize,zIndex:h.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:h.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Wse(h.primaryColor).join(",")}, 0.2)`,border:`2px solid ${h.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:h.backgroundColor,borderRadius:5,boxSizing:"border-box",color:h.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:g},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Nl,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Nl,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Nl,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Nl,color:h.textColor,fontSize:14},overlay:{...y,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...y},overlayLegacyCenter:{...y,backgroundColor:h.overlayColor},spotlight:{...V5,backgroundColor:"gray"},spotlightLegacy:{...V5,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return bi($,f)}function eue(e){return Hse(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Ys(e,t){var n,r,i,o,a,u;const l=t??{},d=bi.all([Zse,eue(e),l],{isMergeableObject:ke.plainObject}),f=Qse(e,d),h=md(wo(d.target),d.disableScrollParentFix),m=bi.all([Yse,(n=e.floaterProps)!=null?n:{},(r=d.floaterProps)!=null?r:{}]);return m.offset=d.offset,m.styles=bi((i=m.styles)!=null?i:{},f.floaterStyles),m.offset+=(a=(o=e.spotlightPadding)!=null?o:d.spotlightPadding)!=null?a:0,d.placementBeacon&&m.wrapperOptions&&(m.wrapperOptions.placement=d.placementBeacon),h&&m.options.preventOverflow&&(m.options.preventOverflow.boundariesElement="window"),{...d,locale:bi.all([qF,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:m,styles:WF(f,"floaterStyles")}}function HF(e,t=!1){return ke.plainObject(e)?e.target?!0:(ya({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ya({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function N5(e,t=!1){return ke.array(e)?e.every(n=>HF(n,t)):(ya({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var GF={action:"init",controlled:!1,index:0,lifecycle:Qe.INIT,origin:null,size:0,status:ct.IDLE},j5=qse(WF(GF,"controlled","size")),tue=class{constructor(e){Be(this,"beaconPopper"),Be(this,"tooltipPopper"),Be(this,"data",new Map),Be(this,"listener"),Be(this,"store",new Map),Be(this,"addListener",i=>{this.listener=i}),Be(this,"setSteps",i=>{const{size:o,status:a}=this.getState(),u={size:i.length,status:a};this.data.set("steps",i),a===ct.WAITING&&!o&&i.length&&(u.status=ct.RUNNING),this.setState(u)}),Be(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),Be(this,"setPopper",(i,o)=>{i==="beacon"?this.beaconPopper=o:this.tooltipPopper=o}),Be(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),Be(this,"close",(i=null)=>{const{index:o,status:a}=this.getState();a===ct.RUNNING&&this.setState({...this.getNextState({action:$t.CLOSE,index:o+1,origin:i})})}),Be(this,"go",i=>{const{controlled:o,status:a}=this.getState();if(o||a!==ct.RUNNING)return;const u=this.getSteps()[i];this.setState({...this.getNextState({action:$t.GO,index:i}),status:u?a:ct.FINISHED})}),Be(this,"info",()=>this.getState()),Be(this,"next",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState(this.getNextState({action:$t.NEXT,index:i+1}))}),Be(this,"open",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({...this.getNextState({action:$t.UPDATE,lifecycle:Qe.TOOLTIP})})}),Be(this,"prev",()=>{const{index:i,status:o}=this.getState();o===ct.RUNNING&&this.setState({...this.getNextState({action:$t.PREV,index:i-1})})}),Be(this,"reset",(i=!1)=>{const{controlled:o}=this.getState();o||this.setState({...this.getNextState({action:$t.RESET,index:0}),status:i?ct.RUNNING:ct.READY})}),Be(this,"skip",()=>{const{status:i}=this.getState();i===ct.RUNNING&&this.setState({action:$t.SKIP,lifecycle:Qe.INIT,status:ct.SKIPPED})}),Be(this,"start",i=>{const{index:o,size:a}=this.getState();this.setState({...this.getNextState({action:$t.START,index:ke.number(i)?i:o},!0),status:a?ct.RUNNING:ct.WAITING})}),Be(this,"stop",(i=!1)=>{const{index:o,status:a}=this.getState();[ct.FINISHED,ct.SKIPPED].includes(a)||this.setState({...this.getNextState({action:$t.STOP,index:o+(i?1:0)}),status:ct.PAUSED})}),Be(this,"update",i=>{var o,a;if(!zse(i,j5))throw new Error(`State is not valid. Valid keys: ${j5.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:$t.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:$t.INIT,controlled:ke.number(n),continuous:t,index:ke.number(n)?n:0,lifecycle:Qe.INIT,origin:null,status:r.length?ct.READY:ct.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...GF}}getNextState(e,t=!1){var n,r,i,o,a;const{action:u,controlled:l,index:d,size:f,status:h}=this.getState(),m=ke.number(e.index)?e.index:d,g=l&&!t?d:Math.min(Math.max(m,0),f);return{action:(n=e.action)!=null?n:u,controlled:l,index:g,lifecycle:(r=e.lifecycle)!=null?r:Qe.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:f,status:g===f?ct.FINISHED:(a=e.status)!=null?a:h}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:a=null,size:u,status:l}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",u),this.store.set("status",l),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 nue(e){return new tue(e)}function rue({styles:e}){return Ge.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var iue=rue,oue=class extends Ge.Component{constructor(){super(...arguments),Be(this,"isActive",!1),Be(this,"resizeTimeout"),Be(this,"scrollTimeout"),Be(this,"scrollParent"),Be(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Be(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Qe.INIT,Qe.BEACON,Qe.COMPLETE,Qe.ERROR];return t||(e?r.includes(n):n!==Qe.TOOLTIP)}),Be(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,l=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,h=l>=r&&l<=r+a&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Be(this,"handleScroll",()=>{const{target:e}=this.props,t=wo(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 Nu(t,"sticky")&&this.updateState({})}),Be(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=wo(r);this.scrollParent=Mc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&md(i,!0)&&ya({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:e}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:a}=Lh(e,this.props);if(a("target")||a("disableScrollParentFix")){const u=wo(o);this.scrollParent=Mc(u??document.body,n,!0)}a("lifecycle",Qe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Qe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Qe.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return L5()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:Ise(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:u,target:l}=this.props,d=wo(l),f=UF(d),h=Nu(d),m=jse(d,a,i);return{...L5()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=f==null?void 0:f.height)!=null?e:0)+a*2),left:Math.round(((t=f==null?void 0:f.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:m,transition:"opacity 0.2s",width:Math.round(((n=f==null?void 0:f.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a=n!=="center"&&e&&Ge.createElement(iue,{styles:o});if(zF()==="safari"){const{mixBlendMode:u,zIndex:l,...d}=i;a=Ge.createElement("div",{style:{...d}},a),delete i.backgroundColor}return Ge.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},aue=class extends Ge.Component{constructor(){super(...arguments),Be(this,"node",null)}componentDidMount(){const{id:e}=this.props;ra()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Vl||this.renderReact15())}componentDidUpdate(){ra()&&(Vl||this.renderReact15())}componentWillUnmount(){!ra()||!this.node||(Vl||Af.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ra())return;const{children:e}=this.props;this.node&&Af.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ra()||!Vl)return null;const{children:e}=this.props;return this.node?Af.createPortal(e,this.node):null}render(){return Vl?this.renderReact16():null}},sue=class{constructor(e,t){if(Be(this,"element"),Be(this,"options"),Be(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),Be(this,"canHaveFocus",n=>{const r=/input|select|textarea|button|object/,i=n.nodeName.toLowerCase();return(r.test(i)&&!n.getAttribute("disabled")||i==="a"&&!!n.getAttribute("href"))&&this.isVisible(n)}),Be(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),Be(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),Be(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let o=document.activeElement?r.indexOf(document.activeElement):0;o===-1||!i&&o+1===r.length?o=0:i&&o===0?o=r.length-1:o+=i?-1:1,r[o].focus()}),Be(this,"isHidden",n=>{const r=n.offsetWidth<=0&&n.offsetHeight<=0,i=window.getComputedStyle(n);return r&&!n.innerHTML?!0:r&&i.getPropertyValue("overflow")!=="visible"||i.getPropertyValue("display")==="none"}),Be(this,"isVisible",n=>{let r=n;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),Be(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),Be(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),Be(this,"setFocus",()=>{const{selector:n}=this.options;if(!n)return;const r=this.element.querySelector(n);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},uue=class extends Ge.Component{constructor(e){if(super(e),Be(this,"beacon",null),Be(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
198
+ @keyframes joyride-beacon-inner {
199
+ 20% {
200
+ opacity: 0.9;
201
+ }
202
+
203
+ 90% {
204
+ opacity: 0.7;
205
+ }
206
+ }
207
+
208
+ @keyframes joyride-beacon-outer {
209
+ 0% {
210
+ transform: scale(1);
211
+ }
212
+
213
+ 45% {
214
+ opacity: 0.7;
215
+ transform: scale(0.75);
216
+ }
217
+
218
+ 100% {
219
+ opacity: 0.9;
220
+ transform: scale(1);
221
+ }
222
+ }
223
+ `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:l}=this.props,d=Ii(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=Ge.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=Ge.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...f},Ge.createElement("span",{style:l.beaconInner}),Ge.createElement("span",{style:l.beaconOuter}));return h}};function lue({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return x.createElement("button",{style:o,type:"button",...t},x.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"},x.createElement("g",null,x.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 cue=lue;function due(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:l}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:y,title:$}=u,C={};return C.primary=Ge.createElement("button",{"data-test-id":"button-primary",style:y.buttonNext,type:"button",...o}),g&&!i&&(C.skip=Ge.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:y.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=Ge.createElement("button",{"data-test-id":"button-back",style:y.buttonBack,type:"button",...t})),C.close=!h&&Ge.createElement(cue,{"data-test-id":"button-close",styles:y.buttonClose,...n}),Ge.createElement("div",{key:"JoyrideTooltip","aria-label":Ii($??d),className:"react-joyride__tooltip",style:y.tooltip,...l},Ge.createElement("div",{style:y.tooltipContainer},$&&Ge.createElement("h1",{"aria-label":Ii($),style:y.tooltipTitle},$),Ge.createElement("div",{style:y.tooltipContent},d)),!m&&Ge.createElement("div",{style:y.tooltipFooter},Ge.createElement("div",{style:y.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var fue=due,hue=class extends Ge.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:l,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Ii(a),g=Ii(u),y=Ii(l),$=Ii(d),C=Ii(h);let b=u,v=g;if(e){if(b=d,v=$,o.showProgress&&!n){const D=Ii(f,{step:t+1,steps:i});b=E0(f,t+1,i),v=D}n&&(b=l,v=y)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":v,children:b,"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:a,tooltipComponent:u,...l}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:l,setTooltipRef:r},h=u;d=Ge.createElement(h,{...f})}else d=Ge.createElement(fue,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},pue=class extends Ge.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return Ge.createElement(hue,{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;ya({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:l,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:y,changedFrom:$}=Lh(e,this.props),C=u.info(),b=i&&n!==$t.CLOSE&&(l>0||n===$t.PREV),v=y("action")||y("index")||y("lifecycle")||y("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),T=y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&l===e.index;if(T&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&y("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),v){const A=wo(m.target),R=!!A;R&&Nse(A)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(R?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:l+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:I5(m)||b?Qe.TOOLTIP:Qe.BEACON}),y("index")&&ya({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),y("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),y("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new sue(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return I5(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=wo(a.target);return!HF(a)||!ke.domElement(u)?null:Ge.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Ge.createElement(X4,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},Ge.createElement(uue,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},YF=class extends Ge.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:l}=this.state,{steps:d}=this.props,f=d[u];l===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;Ys(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=nue({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ya({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(!ra())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;N5(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ra())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:l,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:y,stop:$,update:C}=this.store,{changed:b}=Lh(e,this.props),{changed:v,changedFrom:D}=Lh(t,this.state),T=Ys(this.props,d[i]),E=!lr(h,d),A=ke.number(l)&&b("stepIndex"),R=wo(T.target);if(E&&(N5(d,a)?g(d):console.warn("Steps are not valid",d)),b("run")&&(u?y(l):$()),A){let j=ke.number(f)&&f<l?$t.NEXT:$t.PREV;n===$t.STOP&&(j=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:j,index:l,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!R&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:T}));const S={...this.state,index:i,step:T};if(v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&v("status",ct.PAUSED)){const j=Ys(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:j,type:ri.STEP_AFTER})}if(v("status",[ct.FINISHED,ct.SKIPPED])){const j=Ys(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:j,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:j,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(v("status")||v("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:l=!1,steps:d}=this.props,f=Ys(this.props,d[t]),h=wo(f.target),m=Gse({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:l,step:f,target:h});if(r===ct.RUNNING&&m){const g=md(h,o),y=Mc(h,o);let $=Math.floor(Kse(h,u,o))||0;ya({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),b=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:v,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(v.popper.top-u))}else if(n===Qe.TOOLTIP&&b){const{flipped:v,offsets:D,placement:T}=b;["top","right","left"].includes(T)&&!v&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&Use($,{element:y,duration:a}).then(()=>{setTimeout(()=>{var v;(v=this.store.getPopper("tooltip"))==null||v.instance.update()},10)})}}render(){if(!ra())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,l=n===ct.RUNNING,d={};if(l&&u[e]){const f=Ys(this.props,u[e]);d.step=Ge.createElement(pue,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=Ge.createElement(aue,{id:"react-joyride-portal"},Ge.createElement(oue,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return Ge.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(YF,"defaultProps",Jse);var mue=YF;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=A_;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=wT;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Uc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=EU;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=wn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=NW;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=S_;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=Uz;exports.$293f70390ea03370$export$497855f14858aa34=FW;exports.$32489daedd52963e$export$1315d136e6f7581=qW;exports.$337b884510726a0d$export$c6fdb837b070b4ff=vW;exports.$36a0ac60f04457c5$export$136073280381448e=Mz;exports.$3c0fc76039f1c516$export$60e84778edff6d26=pR;exports.$40df3f8667284809$export$d55e7ee900f34e93=ZW;exports.$46a4342aab3d8076$export$87e0539f600c24e5=_z;exports.$47b897dc8cdb026b$export$8d15029008292ae=Hz;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=Wz;exports.$6057a3d2a53a12fd$export$42df105a73306d51=KW;exports.$64244302c3013299$export$dd0bbc9b26defe37=cz;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=Cz;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=YW;exports.$93c38a5e28be6249$export$e50a61c1de9f574=gq;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=Pz;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=JW;exports.$a916eb452884faea$export$b7a616150fdb9f44=Dz;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=rq;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=lq;exports.$bb77f239b46e8c72$export$3274cf84b703fff=XT;exports.$bcca50147b47f54d$export$56b2c08e277f365=qz;exports.$c132121280ec012d$export$50eacbbf140a3141=SW;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=AW;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=LW;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=Rz;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=yq;exports.$f2f8a6077418541e$export$542a6fd13ac93354=mW;exports.$fae977aafc393c5c$export$588937bcd60ade55=VU;exports.$fae977aafc393c5c$export$6b862160d295c8e=LU;exports.ACTIONS=$t;exports.AdvancedImage=aY;exports.Cloudinary=tZ;exports.Controller=Bj;exports.EVENTS=ri;exports.FormProvider=Mj;exports.LazyMotion=koe;exports.M=_j;exports.M$1=gi;exports.R=ms;exports.ReorderGroup=Zte;exports.ReorderItem=ene;exports.STATUS=ct;exports._=vj;exports.autoUpdate=E2;exports.components_default=mue;exports.dayjs=xq;exports.domAnimation=Boe;exports.dt=h2;exports.ee=yR;exports.flip=mj;exports.isEqual=yJ;exports.isNumber=ane;exports.lazyload=AG;exports.lodashExports=P2;exports.lt=R0;exports.m=Foe;exports.mt=FN;exports.nt=RN;exports.o=rne;exports.offset=pj;exports.ot=ON;exports.placeholder=OG;exports.prismExports=bJ;exports.q=m1;exports.useFloating=hj;exports.useForm=Gj;exports.useFormContext=Xh;exports.useWatch=N2;