@fluidattacks/design 3.7.5-pr-03 → 3.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.d.ts +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-options/types.d.ts +5 -16
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/columns-selector/index.d.ts +3 -0
- package/dist/components/columns-selector/index.js +1 -0
- package/dist/components/{modal/columns-modal → columns-selector}/styles.d.ts +2 -2
- package/dist/components/columns-selector/types.d.ts +16 -0
- package/dist/components/columns-selector/utils.d.ts +3 -0
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.d.ts +2 -2
- package/dist/components/form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.d.ts +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/types.d.ts +4 -0
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/sortable-list/index.js +1 -1
- package/dist/components/sortable-list/types.d.ts +2 -2
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-0sLDDJ5v.mjs → components-BNZX-y-p.mjs} +1357 -1255
- package/dist/{components-Deoel4ui.js → components-Bl-QJT-m.js} +273 -273
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-columns-modal.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/vendor-CURwPSaG.js +223 -0
- package/dist/{vendor-C5t6BoBf.mjs → vendor-gpQhTG0Q.mjs} +4379 -4371
- package/package.json +1 -1
- package/dist/vendor-BELJFpy_.js +0 -223
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');const b=require("react"),aa=require("react-dom"),Eo=require("react/jsx-runtime");function AE(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const qe=AE(b),wf=AE(aa);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 ts(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 rB(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iB=/^((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)-.*))$/,oB=rB(function(e){return iB.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 Ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ut="-ms-",Jl="-moz-",St="-webkit-",PE="comm",Ih="rule",zv="decl",aB="@import",_E="@keyframes",sB="@layer",RE=Math.abs,Wv=String.fromCharCode,ay=Object.assign;function uB(e,t){return An(e,0)^45?(((t<<2^An(e,0))<<2^An(e,1))<<2^An(e,2))<<2^An(e,3):0}function OE(e){return e.trim()}function go(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function Df(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 ME(e){return e.length}function Nl(e,t){return t.push(e),e}function lB(e,t){return e.map(t).join("")}function y3(e,t){return e.filter(function(n){return!go(n,t)})}var Lh=1,bu=1,FE=0,si=0,gn=0,ju="";function Vh(e,t,n,r,i,o,a,u){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Lh,column:bu,length:a,return:"",siblings:u}}function qo(e,t){return ay(Vh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Us(e){for(;e.root;)e=qo(e.root,{children:[e]});Nl(e,e.siblings)}function cB(){return gn}function dB(){return gn=si>0?An(ju,--si):0,bu--,gn===10&&(bu=1,Lh--),gn}function $i(){return gn=si<FE?An(ju,si++):0,bu++,gn===10&&(bu=1,Lh++),gn}function Za(){return An(ju,si)}function Ef(){return si}function Nh(e,t){return vu(ju,e,t)}function sy(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function fB(e){return Lh=bu=1,FE=ki(ju=e),si=0,[]}function hB(e){return ju="",e}function Vm(e){return OE(Nh(si-1,uy(e===91?e+2:e===40?e+1:e)))}function pB(e){for(;(gn=Za())&&gn<33;)$i();return sy(e)>2||sy(gn)>3?"":" "}function mB(e,t){for(;--t&&$i()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Nh(e,Ef()+(t<6&&Za()==32&&$i()==32))}function uy(e){for(;$i();)switch(gn){case e:return si;case 34:case 39:e!==34&&e!==39&&uy(gn);break;case 40:e===41&&uy(e);break;case 92:$i();break}return si}function gB(e,t){for(;$i()&&e+gn!==57;)if(e+gn===84&&Za()===47)break;return"/*"+Nh(t,si-1)+"*"+Wv(e===47?e:$i())}function yB(e){for(;!sy(Za());)$i();return Nh(e,si)}function vB(e){return hB(Cf("",null,null,null,[""],e=fB(e),0,[0],e))}function Cf(e,t,n,r,i,o,a,u,c){for(var d=0,f=0,h=a,m=0,g=0,v=0,$=1,C=1,x=1,y=0,D="",P=i,E=o,T=r,k=D;C;)switch(v=y,y=$i()){case 40:if(v!=108&&An(k,h-1)==58){Df(k+=at(Vm(y),"&","&\f"),"&\f",RE(d?u[d-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:k+=Vm(y);break;case 9:case 10:case 13:case 32:k+=pB(v);break;case 92:k+=mB(Ef()-1,7);continue;case 47:switch(Za()){case 42:case 47:Nl(bB(gB($i(),Ef()),t,n,c),c);break;default:k+="/"}break;case 123*$:u[d++]=ki(k)*x;case 125*$:case 59:case 0:switch(y){case 0:case 125:C=0;case 59+f:x==-1&&(k=at(k,/\f/g,"")),g>0&&ki(k)-h&&Nl(g>32?b3(k+";",r,n,h-1,c):b3(at(k," ","")+";",r,n,h-2,c),c);break;case 59:k+=";";default:if(Nl(T=v3(k,t,n,d,f,i,u,D,P=[],E=[],h,o),o),y===123)if(f===0)Cf(k,t,T,T,P,o,h,u,E);else switch(m===99&&An(k,3)===110?100:m){case 100:case 108:case 109:case 115:Cf(e,T,T,r&&Nl(v3(e,T,T,0,0,i,u,D,i,P=[],h,E),E),i,E,h,u,r?P:E);break;default:Cf(k,T,T,T,[""],E,0,u,E)}}d=f=g=0,$=x=1,D=k="",h=a;break;case 58:h=1+ki(k),g=v;default:if($<1){if(y==123)--$;else if(y==125&&$++==0&&dB()==125)continue}switch(k+=Wv(y),y*$){case 38:x=f>0?1:(k+="\f",-1);break;case 44:u[d++]=(ki(k)-1)*x,x=1;break;case 64:Za()===45&&(k+=Vm($i())),m=Za(),f=h=ki(D=k+=yB(Ef())),y++;break;case 45:v===45&&ki(k)==2&&($=0)}}return o}function v3(e,t,n,r,i,o,a,u,c,d,f,h){for(var m=i-1,g=i===0?o:[""],v=ME(g),$=0,C=0,x=0;$<r;++$)for(var y=0,D=vu(e,m+1,m=RE(C=a[$])),P=e;y<v;++y)(P=OE(C>0?g[y]+" "+D:at(D,/&\f/g,g[y])))&&(c[x++]=P);return Vh(e,t,n,i===0?Ih:u,c,d,f,h)}function bB(e,t,n,r){return Vh(e,t,n,PE,Wv(cB()),vu(e,2,-2),0,r)}function b3(e,t,n,r,i){return Vh(e,t,n,zv,vu(e,0,r),vu(e,r+1,-1),r,i)}function kE(e,t,n){switch(uB(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 Jl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Jl+e+Ut+e+e;case 5936:switch(An(e,t+11)){case 114:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+Ut+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return St+e+Ut+e+e;case 6165:return St+e+Ut+"flex-"+e+e;case 5187:return St+e+at(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+Ut+"flex-$1$2")+e;case 5443:return St+e+Ut+"flex-item-"+at(e,/flex-|-self/g,"")+(go(e,/flex-|baseline/)?"":Ut+"grid-row-"+at(e,/flex-|-self/g,""))+e;case 4675:return St+e+Ut+"flex-line-pack"+at(e,/align-content|flex-|-self/g,"")+e;case 5548:return St+e+Ut+at(e,"shrink","negative")+e;case 5292:return St+e+Ut+at(e,"basis","preferred-size")+e;case 6060:return St+"box-"+at(e,"-grow","")+St+e+Ut+at(e,"grow","positive")+e;case 4554:return St+at(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+Ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4200:if(!go(e,/flex-|baseline/))return Ut+"grid-column-align"+vu(e,t)+e;break;case 2592:case 3360:return Ut+at(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,go(r.props,/grid-\w+-end/)})?~Df(e+(n=n[t].value),"span",0)?e:Ut+at(e,"-start","")+e+Ut+"grid-row-span:"+(~Df(n,"span",0)?go(n,/\d+/):+go(n,/\d+/)-+go(e,/\d+/))+";":Ut+at(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return go(r.props,/grid-\w+-start/)})?e:Ut+at(at(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,St+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(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"+Jl+(An(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Df(e,"stretch",0)?kE(at(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return at(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,u,c,d){return Ut+i+":"+o+d+(a?Ut+i+"-span:"+(u?c:+c-+o)+d:"")+e});case 4949:if(An(e,t+6)===121)return at(e,":",":"+St)+e;break;case 6444:switch(An(e,An(e,14)===45?18:11)){case 120:return at(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+St+(An(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Ut+"$2box$3")+e;case 100:return at(e,":",":"+Ut)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return at(e,"scroll-","scroll-snap-")+e}return e}function Uf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $B(e,t,n,r){switch(e.type){case sB:if(e.children.length)break;case aB:case zv:return e.return=e.return||e.value;case PE:return"";case _E:return e.return=e.value+"{"+Uf(e.children,r)+"}";case Ih:if(!ki(e.value=e.props.join(",")))return""}return ki(n=Uf(e.children,r))?e.return=e.value+"{"+n+"}":""}function xB(e){var t=ME(e);return function(n,r,i,o){for(var a="",u=0;u<t;u++)a+=e[u](n,r,i,o)||"";return a}}function wB(e){return function(t){t.root||(t=t.return)&&e(t)}}function DB(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zv:e.return=kE(e.value,e.length,n);return;case _E:return Uf([qo(e,{value:at(e.value,"@","@"+St)})],r);case Ih:if(e.length)return lB(n=e.props,function(i){switch(go(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Us(qo(e,{props:[at(i,/:(read-\w+)/,":"+Jl+"$1")]})),Us(qo(e,{props:[i]})),ay(e,{props:y3(n,r)});break;case"::placeholder":Us(qo(e,{props:[at(i,/:(plac\w+)/,":"+St+"input-$1")]})),Us(qo(e,{props:[at(i,/:(plac\w+)/,":"+Jl+"$1")]})),Us(qo(e,{props:[at(i,/:(plac\w+)/,Ut+"input-$1")]})),Us(qo(e,{props:[i]})),ay(e,{props:y3(n,r)});break}return""})}}var EB={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},ns=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",BE="active",IE="data-styled-version",jh="6.1.14",Hv=`/*!sc*/
|
|
2
|
+
`,zf=typeof window<"u"&&"HTMLElement"in window,CB=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),$3=/invalid hook call/i,Jd=new Set,SB=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
|
+
`)+`You may see this warning because you've called styled inside another component.
|
|
4
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`,i=console.error;try{var o=!0;console.error=function(a){for(var u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];$3.test(a)?(o=!1,Jd.delete(r)):i.apply(void 0,ts([a],u,!1))},b.useRef(),o&&!Jd.has(r)&&(console.warn(r),Jd.add(r))}catch(a){$3.test(a.message)&&Jd.delete(r)}finally{console.error=i}}},Kh=Object.freeze([]),$u=Object.freeze({});function TB(e,t,n){return n===void 0&&(n=$u),e.theme!==n.theme&&e.theme||t||n.theme}var ly=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),AB=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,PB=/(^-|-$)/g;function x3(e){return e.replace(AB,"-").replace(PB,"")}var _B=/(a)(d)/gi,Xd=52,w3=function(e){return String.fromCharCode(e+(e>25?39:97))};function cy(e){var t,n="";for(t=Math.abs(e);t>Xd;t=t/Xd|0)n=w3(t%Xd)+n;return(w3(t%Xd)+n).replace(_B,"$1-$2")}var Nm,LE=5381,Va=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},VE=function(e){return Va(LE,e)};function NE(e){return cy(VE(e)>>>0)}function jE(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function jm(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var KE=typeof Symbol=="function"&&Symbol.for,UE=KE?Symbol.for("react.memo"):60115,RB=KE?Symbol.for("react.forward_ref"):60112,OB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},MB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zE={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},FB=((Nm={})[RB]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nm[UE]=zE,Nm);function D3(e){return("type"in(t=e)&&t.type.$$typeof)===UE?zE:"$$typeof"in e?FB[e.$$typeof]:OB;var t}var kB=Object.defineProperty,BB=Object.getOwnPropertyNames,E3=Object.getOwnPropertySymbols,IB=Object.getOwnPropertyDescriptor,LB=Object.getPrototypeOf,C3=Object.prototype;function WE(e,t,n){if(typeof t!="string"){if(C3){var r=LB(t);r&&r!==C3&&WE(e,r,n)}var i=BB(t);E3&&(i=i.concat(E3(t)));for(var o=D3(e),a=D3(t),u=0;u<i.length;++u){var c=i[u];if(!(c in MB||n&&n[c]||a&&c in a||o&&c in o)){var d=IB(t,c);try{kB(e,c,d)}catch{}}}}return e}function rs(e){return typeof e=="function"}function Gv(e){return typeof e=="object"&&"styledComponentId"in e}function Ka(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function dy(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function xu(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fy(e,t,n){if(n===void 0&&(n=!1),!n&&!xu(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=fy(e[r],t[r]);else if(xu(t))for(var r in t)e[r]=fy(e[r],t[r]);return e}function qv(e,t){Object.defineProperty(e,"toString",{value:t})}var VB=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 NB(){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 Wi(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(NB.apply(void 0,ts([VB[e]],t,!1)).trim())}var jB=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 Wi(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var a=i;a<o;a++)this.groupSizes[a]=0}for(var u=this.indexOfGroup(t+1),c=(a=0,n.length);a<c;a++)this.tag.insertRule(u,n[a])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,a=i;a<o;a++)n+="".concat(this.tag.getRule(a)).concat(Hv);return n},e}(),KB=1<<30,Sf=new Map,Wf=new Map,Tf=1,Qd=function(e){if(Sf.has(e))return Sf.get(e);for(;Wf.has(Tf);)Tf++;var t=Tf++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>KB))throw Wi(16,"".concat(t));return Sf.set(e,t),Wf.set(t,e),t},UB=function(e,t){Tf=t+1,Sf.set(e,t),Wf.set(t,e)},zB="style[".concat(ns,"][").concat(IE,'="').concat(jh,'"]'),WB=new RegExp("^".concat(ns,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),HB=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)},GB=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Hv),i=[],o=0,a=r.length;o<a;o++){var u=r[o].trim();if(u){var c=u.match(WB);if(c){var d=0|parseInt(c[1],10),f=c[2];d!==0&&(UB(f,d),HB(e,f,c[3]),e.getTag().insertRules(d,i)),i.length=0}else i.push(u)}}},S3=function(e){for(var t=document.querySelectorAll(zB),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(ns)!==BE&&(GB(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function qB(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var HE=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(u){var c=Array.from(u.querySelectorAll("style[".concat(ns,"]")));return c[c.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(ns,BE),r.setAttribute(IE,jh);var a=qB();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},YB=function(){function e(t){this.element=HE(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,o=r.length;i<o;i++){var a=r[i];if(a.ownerNode===n)return a}throw Wi(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}(),ZB=function(){function e(t){this.element=HE(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),JB=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),T3=zf,XB={isServer:!zf,useCSSOMInjection:!CB},GE=function(){function e(t,n,r){t===void 0&&(t=$u),n===void 0&&(n={});var i=this;this.options=Xn(Xn({},XB),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&zf&&T3&&(T3=!1,S3(this)),qv(this,function(){return function(o){for(var a=o.getTag(),u=a.length,c="",d=function(h){var m=function(x){return Wf.get(x)}(h);if(m===void 0)return"continue";var g=o.names.get(m),v=a.getGroup(h);if(g===void 0||!g.size||v.length===0)return"continue";var $="".concat(ns,".g").concat(h,'[id="').concat(m,'"]'),C="";g!==void 0&&g.forEach(function(x){x.length>0&&(C+="".concat(x,","))}),c+="".concat(v).concat($,'{content:"').concat(C,'"}').concat(Hv)},f=0;f<u;f++)d(f);return c}(i)})}return e.registerId=function(t){return Qd(t)},e.prototype.rehydrate=function(){!this.server&&zf&&S3(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Xn(Xn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new JB(i):r?new YB(i):new ZB(i)}(this.options),new jB(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(Qd(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(Qd(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Qd(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),QB=/&/g,eI=/^\s*\/\/.*$/gm;function qE(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=qE(n.children,t)),n})}function tI(e){var t,n,r,i=$u,o=i.options,a=o===void 0?$u:o,u=i.plugins,c=u===void 0?Kh:u,d=function(m,g,v){return v.startsWith(n)&&v.endsWith(n)&&v.replaceAll(n,"").length>0?".".concat(t):m},f=c.slice();f.push(function(m){m.type===Ih&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(QB,n).replace(r,d))}),a.prefix&&f.push(DB),f.push($B);var h=function(m,g,v,$){g===void 0&&(g=""),v===void 0&&(v=""),$===void 0&&($="&"),t=$,n=g,r=new RegExp("\\".concat(n,"\\b"),"g");var C=m.replace(eI,""),x=vB(v||g?"".concat(v," ").concat(g," { ").concat(C," }"):C);a.namespace&&(x=qE(x,a.namespace));var y=[];return Uf(x,xB(f.concat(wB(function(D){return y.push(D)})))),y};return h.hash=c.length?c.reduce(function(m,g){return g.name||Wi(15),Va(m,g.name)},LE).toString():"",h}var nI=new GE,hy=tI(),YE=b.createContext({shouldForwardProp:void 0,styleSheet:nI,stylis:hy});YE.Consumer;b.createContext(void 0);function A3(){return b.useContext(YE)}var py=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=hy);var a=r.name+o.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,o(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,qv(this,function(){throw Wi(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=hy),this.name+t.hash},e}(),rI=function(e){return e>="A"&&e<="Z"};function P3(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;rI(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var ZE=function(e){return e==null||e===!1||e===""},JE=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!ZE(o)&&(Array.isArray(o)&&o.isCss||rs(o)?r.push("".concat(P3(i),":"),o,";"):xu(o)?r.push.apply(r,ts(ts(["".concat(i," {")],JE(o),!1),["}"],!1)):r.push("".concat(P3(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in EB||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ja(e,t,n,r){if(ZE(e))return[];if(Gv(e))return[".".concat(e.styledComponentId)];if(rs(e)){if(!rs(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof py||xu(i)||i===null||console.error("".concat(jE(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ja(i,t,n,r)}var o;return e instanceof py?n?(e.inject(n,r),[e.getName(r)]):[e]:xu(e)?JE(e):Array.isArray(e)?Array.prototype.concat.apply(Kh,e.map(function(a){return Ja(a,t,n,r)})):[e.toString()]}function iI(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(rs(n)&&!Gv(n))return!1}return!0}var oI=VE(jh),aI=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&iI(t),this.componentId=n,this.baseHash=Va(oI,n),this.baseStyle=r,GE.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Ka(i,this.staticRulesId);else{var o=dy(Ja(this.rules,t,n,r)),a=cy(Va(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=Ka(i,a),this.staticRulesId=a}else{for(var c=Va(this.baseHash,r.hash),d="",f=0;f<this.rules.length;f++){var h=this.rules[f];if(typeof h=="string")d+=h,process.env.NODE_ENV!=="production"&&(c=Va(c,h));else if(h){var m=dy(Ja(h,t,n,r));c=Va(c,m+f),d+=m}}if(d){var g=cy(c>>>0);n.hasNameForId(this.componentId,g)||n.insertRules(this.componentId,g,r(d,".".concat(g),void 0,this.componentId)),i=Ka(i,g)}}return i},e}(),lc=b.createContext(void 0);lc.Consumer;function sI(){var e=b.useContext(lc);if(!e)throw Wi(18);return e}function uI(e){var t=b.useContext(lc),n=b.useMemo(function(){return function(r,i){if(!r)throw Wi(14);if(rs(r)){var o=r(i);if(process.env.NODE_ENV!=="production"&&(o===null||Array.isArray(o)||typeof o!="object"))throw Wi(7);return o}if(Array.isArray(r)||typeof r!="object")throw Wi(8);return i?Xn(Xn({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?b.createElement(lc.Provider,{value:n},e.children):null}var Km={},_3=new Set;function lI(e,t,n){var r=Gv(e),i=e,o=!jm(e),a=t.attrs,u=a===void 0?Kh:a,c=t.componentId,d=c===void 0?function(P,E){var T=typeof P!="string"?"sc":x3(P);Km[T]=(Km[T]||0)+1;var k="".concat(T,"-").concat(NE(jh+T+Km[T]));return E?"".concat(E,"-").concat(k):k}(t.displayName,t.parentComponentId):c,f=t.displayName,h=f===void 0?function(P){return jm(P)?"styled.".concat(P):"Styled(".concat(jE(P),")")}(e):f,m=t.displayName&&t.componentId?"".concat(x3(t.displayName),"-").concat(t.componentId):t.componentId||d,g=r&&i.attrs?i.attrs.concat(u).filter(Boolean):u,v=t.shouldForwardProp;if(r&&i.shouldForwardProp){var $=i.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;v=function(P,E){return $(P,E)&&C(P,E)}}else v=$}var x=new aI(n,m,r?i.componentStyle:void 0);function y(P,E){return function(T,k,S){var U=T.attrs,O=T.componentStyle,F=T.defaultProps,G=T.foldedComponentIds,K=T.styledComponentId,W=T.target,j=b.useContext(lc),L=A3(),_=T.shouldForwardProp||L.shouldForwardProp;process.env.NODE_ENV!=="production"&&b.useDebugValue(K);var M=TB(k,j,F)||$u,Y=function(ie,Ee,$e){for(var ne,ye=Xn(Xn({},Ee),{className:void 0,theme:$e}),xe=0;xe<ie.length;xe+=1){var he=rs(ne=ie[xe])?ne(ye):ne;for(var le in he)ye[le]=le==="className"?Ka(ye[le],he[le]):le==="style"?Xn(Xn({},ye[le]),he[le]):he[le]}return Ee.className&&(ye.className=Ka(ye.className,Ee.className)),ye}(U,k,M),V=Y.as||W,z={};for(var re in Y)Y[re]===void 0||re[0]==="$"||re==="as"||re==="theme"&&Y.theme===M||(re==="forwardedAs"?z.as=Y.forwardedAs:_&&!_(re,V)||(z[re]=Y[re],_||process.env.NODE_ENV!=="development"||oB(re)||_3.has(re)||!ly.has(V)||(_3.add(re),console.warn('styled-components: it looks like an unknown prop "'.concat(re,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var oe=function(ie,Ee){var $e=A3(),ne=ie.generateAndInjectStyles(Ee,$e.styleSheet,$e.stylis);return process.env.NODE_ENV!=="production"&&b.useDebugValue(ne),ne}(O,Y);process.env.NODE_ENV!=="production"&&T.warnTooManyClasses&&T.warnTooManyClasses(oe);var fe=Ka(G,K);return oe&&(fe+=" "+oe),Y.className&&(fe+=" "+Y.className),z[jm(V)&&!ly.has(V)?"class":"className"]=fe,S&&(z.ref=S),b.createElement(V,z)}(D,P,E)}y.displayName=h;var D=b.forwardRef(y);return D.attrs=g,D.componentStyle=x,D.displayName=h,D.shouldForwardProp=v,D.foldedComponentIds=r?Ka(i.foldedComponentIds,i.styledComponentId):"",D.styledComponentId=m,D.target=r?i.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(P){this._foldedDefaultProps=r?function(E){for(var T=[],k=1;k<arguments.length;k++)T[k-1]=arguments[k];for(var S=0,U=T;S<U.length;S++)fy(E,U[S],!0);return E}({},i.defaultProps,P):P}}),process.env.NODE_ENV!=="production"&&(SB(h,m),D.warnTooManyClasses=function(P,E){var T={},k=!1;return function(S){if(!k&&(T[S]=!0,Object.keys(T).length>=200)){var U=E?' with the id of "'.concat(E,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(P).concat(U,`.
|
|
46
|
+
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
47
|
+
Example:
|
|
48
|
+
const Component = styled.div.attrs(props => ({
|
|
49
|
+
style: {
|
|
50
|
+
background: props.background,
|
|
51
|
+
},
|
|
52
|
+
}))\`width: 100%;\`
|
|
53
|
+
|
|
54
|
+
<Component />`),k=!0,T={}}}}(h,m)),qv(D,function(){return".".concat(D.styledComponentId)}),o&&WE(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function R3(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var O3=function(e){return Object.assign(e,{isCss:!0})};function Yv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(rs(e)||xu(e))return O3(Ja(R3(Kh,ts([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Ja(r):O3(Ja(R3(r,t)))}function my(e,t,n){if(n===void 0&&(n=$u),!t)throw Wi(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Yv.apply(void 0,ts([i],o,!1)))};return r.attrs=function(i){return my(e,t,Xn(Xn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return my(e,t,Xn(Xn({},n),i))},r}var XE=function(e){return my(lI,e)},QE=XE;ly.forEach(function(e){QE[e]=XE(e)});function cI(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=dy(Yv.apply(void 0,ts([e],t,!1))),i=NE(r);return new py(i,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
55
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
56
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ef="__sc-".concat(ns,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ef]||(window[ef]=0),window[ef]===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[ef]+=1);const wu=Math.min,Xa=Math.max,Hf=Math.round,tf=Math.floor,Hi=e=>({x:e,y:e}),dI={left:"right",right:"left",bottom:"top",top:"bottom"},fI={start:"end",end:"start"};function gy(e,t,n){return Xa(e,wu(t,n))}function _c(e,t){return typeof e=="function"?e(t):e}function is(e){return e.split("-")[0]}function Rc(e){return e.split("-")[1]}function eC(e){return e==="x"?"y":"x"}function Zv(e){return e==="y"?"height":"width"}function Du(e){return["top","bottom"].includes(is(e))?"y":"x"}function Jv(e){return eC(Du(e))}function hI(e,t,n){n===void 0&&(n=!1);const r=Rc(e),i=Jv(e),o=Zv(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Gf(a)),[a,Gf(a)]}function pI(e){const t=Gf(e);return[yy(e),t,yy(t)]}function yy(e){return e.replace(/start|end/g,t=>fI[t])}function mI(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 gI(e,t,n,r){const i=Rc(e);let o=mI(is(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(yy)))),o}function Gf(e){return e.replace(/left|right|bottom|top/g,t=>dI[t])}function yI(e){return{top:0,right:0,bottom:0,left:0,...e}}function tC(e){return typeof e!="number"?yI(e):{top:e,right:e,bottom:e,left:e}}function qf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function M3(e,t,n){let{reference:r,floating:i}=e;const o=Du(t),a=Jv(t),u=Zv(a),c=is(t),d=o==="y",f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[u]/2-i[u]/2;let g;switch(c){case"top":g={x:f,y:r.y-i.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(Rc(t)){case"start":g[a]-=m*(n&&d?-1:1);break;case"end":g[a]+=m*(n&&d?-1:1);break}return g}const vI=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,u=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:h}=M3(d,r,c),m=r,g={},v=0;for(let $=0;$<u.length;$++){const{name:C,fn:x}=u[$],{x:y,y:D,data:P,reset:E}=await x({x:f,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:d,platform:a,elements:{reference:e,floating:t}});f=y??f,h=D??h,g={...g,[C]:{...g[C],...P}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:f,y:h}=M3(d,m,c)),$=-1)}return{x:f,y:h,placement:m,strategy:i,middlewareData:g}};async function nC(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:u,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=_c(t,e),v=tC(g),C=u[m?h==="floating"?"reference":"floating":h],x=qf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:d,rootBoundary:f,strategy:c})),y=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),P=await(o.isElement==null?void 0:o.isElement(D))?await(o.getScale==null?void 0:o.getScale(D))||{x:1,y:1}:{x:1,y:1},E=qf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:D,strategy:c}):y);return{top:(x.top-E.top+v.top)/P.y,bottom:(E.bottom-x.bottom+v.bottom)/P.y,left:(x.left-E.left+v.left)/P.x,right:(E.right-x.right+v.right)/P.x}}const bI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=_c(e,t)||{};if(d==null)return{};const h=tC(f),m={x:n,y:r},g=Jv(i),v=Zv(g),$=await a.getDimensions(d),C=g==="y",x=C?"top":"left",y=C?"bottom":"right",D=C?"clientHeight":"clientWidth",P=o.reference[v]+o.reference[g]-m[g]-o.floating[v],E=m[g]-o.reference[g],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let k=T?T[D]:0;(!k||!await(a.isElement==null?void 0:a.isElement(T)))&&(k=u.floating[D]||o.floating[v]);const S=P/2-E/2,U=k/2-$[v]/2-1,O=wu(h[x],U),F=wu(h[y],U),G=O,K=k-$[v]-F,W=k/2-$[v]/2+S,j=gy(G,W,K),L=!c.arrow&&Rc(i)!=null&&W!==j&&o.reference[v]/2-(W<G?O:F)-$[v]/2<0,_=L?W<G?W-G:W-K:0;return{[g]:m[g]+_,data:{[g]:j,centerOffset:W-j-_,...L&&{alignmentOffset:_}},reset:L}}}),$I=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:$=!0,...C}=_c(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=is(i),y=Du(u),D=is(u)===u,P=await(c.isRTL==null?void 0:c.isRTL(d.floating)),E=m||(D||!$?[Gf(u)]:pI(u)),T=v!=="none";!m&&T&&E.push(...gI(u,$,v,P));const k=[u,...E],S=await nC(t,C),U=[];let O=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&U.push(S[x]),h){const W=hI(i,a,P);U.push(S[W[0]],S[W[1]])}if(O=[...O,{placement:i,overflows:U}],!U.every(W=>W<=0)){var F,G;const W=(((F=o.flip)==null?void 0:F.index)||0)+1,j=k[W];if(j)return{data:{index:W,overflows:O},reset:{placement:j}};let L=(G=O.filter(_=>_.overflows[0]<=0).sort((_,M)=>_.overflows[1]-M.overflows[1])[0])==null?void 0:G.placement;if(!L)switch(g){case"bestFit":{var K;const _=(K=O.filter(M=>{if(T){const Y=Du(M.placement);return Y===y||Y==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(Y=>Y>0).reduce((Y,V)=>Y+V,0)]).sort((M,Y)=>M[1]-Y[1])[0])==null?void 0:K[0];_&&(L=_);break}case"initialPlacement":L=u;break}if(i!==L)return{reset:{placement:L}}}return{}}}};async function xI(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=is(n),u=Rc(n),c=Du(n)==="y",d=["left","top"].includes(a)?-1:1,f=o&&c?-1:1,h=_c(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof v=="number"&&(g=u==="end"?v*-1:v),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}const wI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:u}=t,c=await xI(t,e);return a===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},DI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:u={fn:C=>{let{x,y}=C;return{x,y}}},...c}=_c(e,t),d={x:n,y:r},f=await nC(t,c),h=Du(is(i)),m=eC(h);let g=d[m],v=d[h];if(o){const C=m==="y"?"top":"left",x=m==="y"?"bottom":"right",y=g+f[C],D=g-f[x];g=gy(y,g,D)}if(a){const C=h==="y"?"top":"left",x=h==="y"?"bottom":"right",y=v+f[C],D=v-f[x];v=gy(y,v,D)}const $=u.fn({...t,[m]:g,[h]:v});return{...$,data:{x:$.x-n,y:$.y-r,enabled:{[m]:o,[h]:a}}}}}};function Uh(){return typeof window<"u"}function Ku(e){return rC(e)?(e.nodeName||"").toLowerCase():"#document"}function Or(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xi(e){var t;return(t=(rC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rC(e){return Uh()?e instanceof Node||e instanceof Or(e).Node:!1}function xi(e){return Uh()?e instanceof Element||e instanceof Or(e).Element:!1}function Zi(e){return Uh()?e instanceof HTMLElement||e instanceof Or(e).HTMLElement:!1}function F3(e){return!Uh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Or(e).ShadowRoot}function Oc(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 EI(e){return["table","td","th"].includes(Ku(e))}function zh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Xv(e){const t=Qv(),n=xi(e)?wi(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function CI(e){let t=da(e);for(;Zi(t)&&!Eu(t);){if(Xv(t))return t;if(zh(t))return null;t=da(t)}return null}function Qv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Eu(e){return["html","body","#document"].includes(Ku(e))}function wi(e){return Or(e).getComputedStyle(e)}function Wh(e){return xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function da(e){if(Ku(e)==="html")return e;const t=e.assignedSlot||e.parentNode||F3(e)&&e.host||Xi(e);return F3(t)?t.host:t}function iC(e){const t=da(e);return Eu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Zi(t)&&Oc(t)?t:iC(t)}function cc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=iC(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Or(i);if(o){const u=vy(a);return t.concat(a,a.visualViewport||[],Oc(i)?i:[],u&&n?cc(u):[])}return t.concat(i,cc(i,[],n))}function vy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oC(e){const t=wi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Zi(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=Hf(n)!==o||Hf(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function eb(e){return xi(e)?e:e.contextElement}function cu(e){const t=eb(e);if(!Zi(t))return Hi(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=oC(t);let a=(o?Hf(n.width):n.width)/r,u=(o?Hf(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!u||!Number.isFinite(u))&&(u=1),{x:a,y:u}}const SI=Hi(0);function aC(e){const t=Or(e);return!Qv()||!t.visualViewport?SI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Or(e)?!1:t}function os(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=eb(e);let a=Hi(1);t&&(r?xi(r)&&(a=cu(r)):a=cu(e));const u=TI(o,n,r)?aC(o):Hi(0);let c=(i.left+u.x)/a.x,d=(i.top+u.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(o){const m=Or(o),g=r&&xi(r)?Or(r):r;let v=m,$=vy(v);for(;$&&r&&g!==v;){const C=cu($),x=$.getBoundingClientRect(),y=wi($),D=x.left+($.clientLeft+parseFloat(y.paddingLeft))*C.x,P=x.top+($.clientTop+parseFloat(y.paddingTop))*C.y;c*=C.x,d*=C.y,f*=C.x,h*=C.y,c+=D,d+=P,v=Or($),$=vy(v)}}return qf({width:f,height:h,x:c,y:d})}function tb(e,t){const n=Wh(e).scrollLeft;return t?t.left+n:os(Xi(e)).left+n}function sC(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:tb(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function AI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Xi(r),u=t?zh(t.floating):!1;if(r===a||u&&o)return n;let c={scrollLeft:0,scrollTop:0},d=Hi(1);const f=Hi(0),h=Zi(r);if((h||!h&&!o)&&((Ku(r)!=="body"||Oc(a))&&(c=Wh(r)),Zi(r))){const g=os(r);d=cu(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const m=a&&!h&&!o?sC(a,c,!0):Hi(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+m.x,y:n.y*d.y-c.scrollTop*d.y+f.y+m.y}}function PI(e){return Array.from(e.getClientRects())}function _I(e){const t=Xi(e),n=Wh(e),r=e.ownerDocument.body,i=Xa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Xa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tb(e);const u=-n.scrollTop;return wi(r).direction==="rtl"&&(a+=Xa(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:u}}function RI(e,t){const n=Or(e),r=Xi(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,u=0,c=0;if(i){o=i.width,a=i.height;const d=Qv();(!d||d&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:u,y:c}}function OI(e,t){const n=os(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Zi(e)?cu(e):Hi(1),a=e.clientWidth*o.x,u=e.clientHeight*o.y,c=i*o.x,d=r*o.y;return{width:a,height:u,x:c,y:d}}function k3(e,t,n){let r;if(t==="viewport")r=RI(e,n);else if(t==="document")r=_I(Xi(e));else if(xi(t))r=OI(t,n);else{const i=aC(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return qf(r)}function uC(e,t){const n=da(e);return n===t||!xi(n)||Eu(n)?!1:wi(n).position==="fixed"||uC(n,t)}function MI(e,t){const n=t.get(e);if(n)return n;let r=cc(e,[],!1).filter(u=>xi(u)&&Ku(u)!=="body"),i=null;const o=wi(e).position==="fixed";let a=o?da(e):e;for(;xi(a)&&!Eu(a);){const u=wi(a),c=Xv(a);!c&&u.position==="fixed"&&(i=null),(o?!c&&!i:!c&&u.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Oc(a)&&!c&&uC(e,a))?r=r.filter(f=>f!==a):i=u,a=da(a)}return t.set(e,r),r}function FI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?zh(t)?[]:MI(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((d,f)=>{const h=k3(t,f,i);return d.top=Xa(h.top,d.top),d.right=wu(h.right,d.right),d.bottom=wu(h.bottom,d.bottom),d.left=Xa(h.left,d.left),d},k3(t,u,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kI(e){const{width:t,height:n}=oC(e);return{width:t,height:n}}function BI(e,t,n){const r=Zi(t),i=Xi(t),o=n==="fixed",a=os(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const c=Hi(0);if(r||!r&&!o)if((Ku(t)!=="body"||Oc(i))&&(u=Wh(t)),r){const m=os(t,!0,o,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else i&&(c.x=tb(i));const d=i&&!r&&!o?sC(i,u):Hi(0),f=a.left+u.scrollLeft-c.x-d.x,h=a.top+u.scrollTop-c.y-d.y;return{x:f,y:h,width:a.width,height:a.height}}function Um(e){return wi(e).position==="static"}function B3(e,t){if(!Zi(e)||wi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xi(e)===n&&(n=n.ownerDocument.body),n}function lC(e,t){const n=Or(e);if(zh(e))return n;if(!Zi(e)){let i=da(e);for(;i&&!Eu(i);){if(xi(i)&&!Um(i))return i;i=da(i)}return n}let r=B3(e,t);for(;r&&EI(r)&&Um(r);)r=B3(r,t);return r&&Eu(r)&&Um(r)&&!Xv(r)?n:r||CI(e)||n}const II=async function(e){const t=this.getOffsetParent||lC,n=this.getDimensions,r=await n(e.floating);return{reference:BI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function LI(e){return wi(e).direction==="rtl"}const VI={convertOffsetParentRelativeRectToViewportRelativeRect:AI,getDocumentElement:Xi,getClippingRect:FI,getOffsetParent:lC,getElementRects:II,getClientRects:PI,getDimensions:kI,getScale:cu,isElement:xi,isRTL:LI};function cC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function NI(e,t){let n=null,r;const i=Xi(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function a(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:f,top:h,width:m,height:g}=d;if(u||t(),!m||!g)return;const v=tf(h),$=tf(i.clientWidth-(f+m)),C=tf(i.clientHeight-(h+g)),x=tf(f),D={rootMargin:-v+"px "+-$+"px "+-C+"px "+-x+"px",threshold:Xa(0,wu(1,c))||1};let P=!0;function E(T){const k=T[0].intersectionRatio;if(k!==c){if(!P)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!cC(d,e.getBoundingClientRect())&&a(),P=!1}try{n=new IntersectionObserver(E,{...D,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,D)}n.observe(e)}return a(!0),o}function dC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=eb(e),f=i||o?[...d?cc(d):[],...cc(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const h=d&&u?NI(d,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(x=>{let[y]=x;y&&y.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var D;(D=g)==null||D.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let v,$=c?os(e):null;c&&C();function C(){const x=os(e);$&&!cC($,x)&&n(),$=x,v=requestAnimationFrame(C)}return n(),()=>{var x;f.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),h==null||h(),(x=g)==null||x.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const fC=wI,jI=DI,hC=$I,KI=bI,by=(e,t,n)=>{const r=new Map,i={platform:VI,...n},o={...i.platform,_c:r};return vI(e,t,{...i,platform:o})};var Af=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Yf(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(!Yf(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)&&!Yf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function pC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function I3(e,t){const n=pC(e);return Math.round(t*n)/n}function zm(e){const t=qe.useRef(e);return Af(()=>{t.current=e}),t}function UI(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,h]=qe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=qe.useState(r);Yf(m,r)||g(r);const[v,$]=qe.useState(null),[C,x]=qe.useState(null),y=qe.useCallback(M=>{M!==T.current&&(T.current=M,$(M))},[]),D=qe.useCallback(M=>{M!==k.current&&(k.current=M,x(M))},[]),P=o||v,E=a||C,T=qe.useRef(null),k=qe.useRef(null),S=qe.useRef(f),U=c!=null,O=zm(c),F=zm(i),G=zm(d),K=qe.useCallback(()=>{if(!T.current||!k.current)return;const M={placement:t,strategy:n,middleware:m};F.current&&(M.platform=F.current),by(T.current,k.current,M).then(Y=>{const V={...Y,isPositioned:G.current!==!1};W.current&&!Yf(S.current,V)&&(S.current=V,wf.flushSync(()=>{h(V)}))})},[m,t,n,F,G]);Af(()=>{d===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,h(M=>({...M,isPositioned:!1})))},[d]);const W=qe.useRef(!1);Af(()=>(W.current=!0,()=>{W.current=!1}),[]),Af(()=>{if(P&&(T.current=P),E&&(k.current=E),P&&E){if(O.current)return O.current(P,E,K);K()}},[P,E,K,O,U]);const j=qe.useMemo(()=>({reference:T,floating:k,setReference:y,setFloating:D}),[y,D]),L=qe.useMemo(()=>({reference:P,floating:E}),[P,E]),_=qe.useMemo(()=>{const M={position:n,left:0,top:0};if(!L.floating)return M;const Y=I3(L.floating,f.x),V=I3(L.floating,f.y);return u?{...M,transform:"translate("+Y+"px, "+V+"px)",...pC(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:V}},[n,u,L.floating,f.x,f.y]);return qe.useMemo(()=>({...f,update:K,refs:j,elements:L,floatingStyles:_}),[f,K,j,L,_])}const zI=(e,t)=>({...fC(e),options:[e,t]}),WI=(e,t)=>({...hC(e),options:[e,t]});var jl={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 HI=jl.exports,L3;function GI(){return L3||(L3=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,m=2,g=4,v=1,$=2,C=1,x=2,y=4,D=8,P=16,E=32,T=64,k=128,S=256,U=512,O=30,F="...",G=800,K=16,W=1,j=2,L=3,_=1/0,M=9007199254740991,Y=17976931348623157e292,V=NaN,z=4294967295,re=z-1,oe=z>>>1,fe=[["ary",k],["bind",C],["bindKey",x],["curry",D],["curryRight",P],["flip",U],["partial",E],["partialRight",T],["rearg",S]],ie="[object Arguments]",Ee="[object Array]",$e="[object AsyncFunction]",ne="[object Boolean]",ye="[object Date]",xe="[object DOMException]",he="[object Error]",le="[object Function]",Fe="[object GeneratorFunction]",et="[object Map]",dt="[object Number]",Dn="[object Null]",yt="[object Object]",q="[object Promise]",Z="[object Proxy]",te="[object RegExp]",pe="[object Set]",Ce="[object String]",De="[object Symbol]",_e="[object Undefined]",Ve="[object WeakMap]",mt="[object WeakSet]",ut="[object ArrayBuffer]",Rt="[object DataView]",Pn="[object Float32Array]",_n="[object Float64Array]",Yt="[object Int8Array]",Ln="[object Int16Array]",tn="[object Int32Array]",vt="[object Uint8Array]",Vn="[object Uint8ClampedArray]",Cr="[object Uint16Array]",Rn="[object Uint32Array]",er=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nn=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,Ir=RegExp(Nn.source),Vt=RegExp(En.source),Cn=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,nn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fr=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Ye=RegExp(je.source),Ft=/^\s+/,rn=/\s/,jn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Kt=/\{\n\/\* \[wrapped with (.+)\] \*/,an=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wt=/[()=,{}\[\]\/\s]/,li=/\\(\\)?/g,ba=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hr=/\w*$/,Oo=/^[-+]0x[0-9a-f]+$/i,Mo=/^0b[01]+$/i,Fo=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,nr=/^(?:0|[1-9]\d*)$/,pr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,ko=/['\n\r\u2028\u2029\\]/g,Lr="\\ud800-\\udfff",nl="\\u0300-\\u036f",$s="\\ufe20-\\ufe2f",rl="\\u20d0-\\u20ff",Bo=nl+$s+rl,Ai="\\u2700-\\u27bf",$a="a-z\\xdf-\\xf6\\xf8-\\xff",xa="\\xac\\xb1\\xd7\\xf7",xs="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ws="\\u2000-\\u206f",il=" \\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",Ds="A-Z\\xc0-\\xd6\\xd8-\\xde",wa="\\ufe0e\\ufe0f",Es=xa+xs+ws+il,eo="['’]",ol="["+Lr+"]",Cs="["+Es+"]",Io="["+Bo+"]",Ss="\\d+",B="["+Ai+"]",X="["+$a+"]",ue="[^"+Lr+Es+Ss+Ai+$a+Ds+"]",be="\\ud83c[\\udffb-\\udfff]",Re="(?:"+Io+"|"+be+")",it="[^"+Lr+"]",Ke="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+Ds+"]",Wt="\\u200d",Mn="(?:"+X+"|"+ue+")",Fn="(?:"+Ot+"|"+ue+")",Vr="(?:"+eo+"(?:d|ll|m|re|s|t|ve))?",rr="(?:"+eo+"(?:D|LL|M|RE|S|T|VE))?",Ts=Re+"?",Da="["+wa+"]?",Ea="(?:"+Wt+"(?:"+[it,Ke,ze].join("|")+")"+Da+Ts+")*",to="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",al=Da+Ts+Ea,Op="(?:"+[B,Ke,ze].join("|")+")"+al,sl="(?:"+[it+Io+"?",Io,Ke,ze,ol].join("|")+")",cd=RegExp(eo,"g"),Mp=RegExp(Io,"g"),ul=RegExp(be+"(?="+be+")|"+sl+al,"g"),dd=RegExp([Ot+"?"+X+"+"+Vr+"(?="+[Cs,Ot,"$"].join("|")+")",Fn+"+"+rr+"(?="+[Cs,Ot+Mn,"$"].join("|")+")",Ot+"?"+Mn+"+"+Vr,Ot+"+"+rr,Rp,to,Ss,Op].join("|"),"g"),Fp=RegExp("["+Wt+Lr+Bo+wa+"]"),As=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kp=["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"],ll=-1,Bt={};Bt[Pn]=Bt[_n]=Bt[Yt]=Bt[Ln]=Bt[tn]=Bt[vt]=Bt[Vn]=Bt[Cr]=Bt[Rn]=!0,Bt[ie]=Bt[Ee]=Bt[ut]=Bt[ne]=Bt[Rt]=Bt[ye]=Bt[he]=Bt[le]=Bt[et]=Bt[dt]=Bt[yt]=Bt[te]=Bt[pe]=Bt[Ce]=Bt[Ve]=!1;var Mt={};Mt[ie]=Mt[Ee]=Mt[ut]=Mt[Rt]=Mt[ne]=Mt[ye]=Mt[Pn]=Mt[_n]=Mt[Yt]=Mt[Ln]=Mt[tn]=Mt[et]=Mt[dt]=Mt[yt]=Mt[te]=Mt[pe]=Mt[Ce]=Mt[De]=Mt[vt]=Mt[Vn]=Mt[Cr]=Mt[Rn]=!0,Mt[he]=Mt[le]=Mt[Ve]=!1;var N={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ae={"&":"&","<":"<",">":">",'"':""","'":"'"},ve={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ie={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yn=parseFloat,Un=parseInt,Nr=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi,zn=typeof self=="object"&&self&&self.Object===Object&&self,pn=Nr||zn||Function("return this")(),Pi=t&&!t.nodeType&&t,_i=Pi&&!0&&e&&!e.nodeType&&e,cl=_i&&_i.exports===Pi,Ps=cl&&Nr.process,Wn=function(){try{var Q=_i&&_i.require&&_i.require("util").types;return Q||Ps&&Ps.binding&&Ps.binding("util")}catch{}}(),Ca=Wn&&Wn.isArrayBuffer,h1=Wn&&Wn.isDate,p1=Wn&&Wn.isMap,m1=Wn&&Wn.isRegExp,g1=Wn&&Wn.isSet,y1=Wn&&Wn.isTypedArray;function Sr(Q,de,se){switch(se.length){case 0:return Q.call(de);case 1:return Q.call(de,se[0]);case 2:return Q.call(de,se[0],se[1]);case 3:return Q.call(de,se[0],se[1],se[2])}return Q.apply(de,se)}function SR(Q,de,se,Me){for(var Je=-1,bt=Q==null?0:Q.length;++Je<bt;){var vn=Q[Je];de(Me,vn,se(vn),Q)}return Me}function jr(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me&&de(Q[se],se,Q)!==!1;);return Q}function TR(Q,de){for(var se=Q==null?0:Q.length;se--&&de(Q[se],se,Q)!==!1;);return Q}function v1(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me;)if(!de(Q[se],se,Q))return!1;return!0}function Lo(Q,de){for(var se=-1,Me=Q==null?0:Q.length,Je=0,bt=[];++se<Me;){var vn=Q[se];de(vn,se,Q)&&(bt[Je++]=vn)}return bt}function fd(Q,de){var se=Q==null?0:Q.length;return!!se&&_s(Q,de,0)>-1}function Bp(Q,de,se){for(var Me=-1,Je=Q==null?0:Q.length;++Me<Je;)if(se(de,Q[Me]))return!0;return!1}function Ht(Q,de){for(var se=-1,Me=Q==null?0:Q.length,Je=Array(Me);++se<Me;)Je[se]=de(Q[se],se,Q);return Je}function Vo(Q,de){for(var se=-1,Me=de.length,Je=Q.length;++se<Me;)Q[Je+se]=de[se];return Q}function Ip(Q,de,se,Me){var Je=-1,bt=Q==null?0:Q.length;for(Me&&bt&&(se=Q[++Je]);++Je<bt;)se=de(se,Q[Je],Je,Q);return se}function AR(Q,de,se,Me){var Je=Q==null?0:Q.length;for(Me&&Je&&(se=Q[--Je]);Je--;)se=de(se,Q[Je],Je,Q);return se}function Lp(Q,de){for(var se=-1,Me=Q==null?0:Q.length;++se<Me;)if(de(Q[se],se,Q))return!0;return!1}var PR=Vp("length");function _R(Q){return Q.split("")}function RR(Q){return Q.match(kt)||[]}function b1(Q,de,se){var Me;return se(Q,function(Je,bt,vn){if(de(Je,bt,vn))return Me=bt,!1}),Me}function hd(Q,de,se,Me){for(var Je=Q.length,bt=se+(Me?1:-1);Me?bt--:++bt<Je;)if(de(Q[bt],bt,Q))return bt;return-1}function _s(Q,de,se){return de===de?UR(Q,de,se):hd(Q,$1,se)}function OR(Q,de,se,Me){for(var Je=se-1,bt=Q.length;++Je<bt;)if(Me(Q[Je],de))return Je;return-1}function $1(Q){return Q!==Q}function x1(Q,de){var se=Q==null?0:Q.length;return se?jp(Q,de)/se:V}function Vp(Q){return function(de){return de==null?n:de[Q]}}function Np(Q){return function(de){return Q==null?n:Q[de]}}function w1(Q,de,se,Me,Je){return Je(Q,function(bt,vn,It){se=Me?(Me=!1,bt):de(se,bt,vn,It)}),se}function MR(Q,de){var se=Q.length;for(Q.sort(de);se--;)Q[se]=Q[se].value;return Q}function jp(Q,de){for(var se,Me=-1,Je=Q.length;++Me<Je;){var bt=de(Q[Me]);bt!==n&&(se=se===n?bt:se+bt)}return se}function Kp(Q,de){for(var se=-1,Me=Array(Q);++se<Q;)Me[se]=de(se);return Me}function FR(Q,de){return Ht(de,function(se){return[se,Q[se]]})}function D1(Q){return Q&&Q.slice(0,T1(Q)+1).replace(Ft,"")}function Tr(Q){return function(de){return Q(de)}}function Up(Q,de){return Ht(de,function(se){return Q[se]})}function dl(Q,de){return Q.has(de)}function E1(Q,de){for(var se=-1,Me=Q.length;++se<Me&&_s(de,Q[se],0)>-1;);return se}function C1(Q,de){for(var se=Q.length;se--&&_s(de,Q[se],0)>-1;);return se}function kR(Q,de){for(var se=Q.length,Me=0;se--;)Q[se]===de&&++Me;return Me}var BR=Np(N),IR=Np(ae);function LR(Q){return"\\"+Ie[Q]}function VR(Q,de){return Q==null?n:Q[de]}function Rs(Q){return Fp.test(Q)}function NR(Q){return As.test(Q)}function jR(Q){for(var de,se=[];!(de=Q.next()).done;)se.push(de.value);return se}function zp(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me,Je){se[++de]=[Je,Me]}),se}function S1(Q,de){return function(se){return Q(de(se))}}function No(Q,de){for(var se=-1,Me=Q.length,Je=0,bt=[];++se<Me;){var vn=Q[se];(vn===de||vn===f)&&(Q[se]=f,bt[Je++]=se)}return bt}function pd(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me){se[++de]=Me}),se}function KR(Q){var de=-1,se=Array(Q.size);return Q.forEach(function(Me){se[++de]=[Me,Me]}),se}function UR(Q,de,se){for(var Me=se-1,Je=Q.length;++Me<Je;)if(Q[Me]===de)return Me;return-1}function zR(Q,de,se){for(var Me=se+1;Me--;)if(Q[Me]===de)return Me;return Me}function Os(Q){return Rs(Q)?HR(Q):PR(Q)}function ci(Q){return Rs(Q)?GR(Q):_R(Q)}function T1(Q){for(var de=Q.length;de--&&rn.test(Q.charAt(de)););return de}var WR=Np(ve);function HR(Q){for(var de=ul.lastIndex=0;ul.test(Q);)++de;return de}function GR(Q){return Q.match(ul)||[]}function qR(Q){return Q.match(dd)||[]}var YR=function Q(de){de=de==null?pn:Ms.defaults(pn.Object(),de,Ms.pick(pn,kp));var se=de.Array,Me=de.Date,Je=de.Error,bt=de.Function,vn=de.Math,It=de.Object,Wp=de.RegExp,ZR=de.String,Kr=de.TypeError,md=se.prototype,JR=bt.prototype,Fs=It.prototype,gd=de["__core-js_shared__"],yd=JR.toString,At=Fs.hasOwnProperty,XR=0,A1=function(){var s=/[^.]+$/.exec(gd&&gd.keys&&gd.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),vd=Fs.toString,QR=yd.call(It),eO=pn._,tO=Wp("^"+yd.call(At).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bd=cl?de.Buffer:n,jo=de.Symbol,$d=de.Uint8Array,P1=bd?bd.allocUnsafe:n,xd=S1(It.getPrototypeOf,It),_1=It.create,R1=Fs.propertyIsEnumerable,wd=md.splice,O1=jo?jo.isConcatSpreadable:n,fl=jo?jo.iterator:n,Sa=jo?jo.toStringTag:n,Dd=function(){try{var s=Ra(It,"defineProperty");return s({},"",{}),s}catch{}}(),nO=de.clearTimeout!==pn.clearTimeout&&de.clearTimeout,rO=Me&&Me.now!==pn.Date.now&&Me.now,iO=de.setTimeout!==pn.setTimeout&&de.setTimeout,Ed=vn.ceil,Cd=vn.floor,Hp=It.getOwnPropertySymbols,oO=bd?bd.isBuffer:n,M1=de.isFinite,aO=md.join,sO=S1(It.keys,It),bn=vn.max,Hn=vn.min,uO=Me.now,lO=de.parseInt,F1=vn.random,cO=md.reverse,Gp=Ra(de,"DataView"),hl=Ra(de,"Map"),qp=Ra(de,"Promise"),ks=Ra(de,"Set"),pl=Ra(de,"WeakMap"),ml=Ra(It,"create"),Sd=pl&&new pl,Bs={},dO=Oa(Gp),fO=Oa(hl),hO=Oa(qp),pO=Oa(ks),mO=Oa(pl),Td=jo?jo.prototype:n,gl=Td?Td.valueOf:n,k1=Td?Td.toString:n;function R(s){if(on(s)&&!Xe(s)&&!(s instanceof ft)){if(s instanceof Ur)return s;if(At.call(s,"__wrapped__"))return B4(s)}return new Ur(s)}var Is=function(){function s(){}return function(l){if(!Zt(l))return{};if(_1)return _1(l);s.prototype=l;var p=new s;return s.prototype=n,p}}();function Ad(){}function Ur(s,l){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}R.templateSettings={escape:Cn,evaluate:Ne,interpolate:tt,variable:"",imports:{_:R}},R.prototype=Ad.prototype,R.prototype.constructor=R,Ur.prototype=Is(Ad.prototype),Ur.prototype.constructor=Ur;function ft(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function gO(){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 yO(){if(this.__filtered__){var s=new ft(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function vO(){var s=this.__wrapped__.value(),l=this.__dir__,p=Xe(s),w=l<0,A=p?s.length:0,I=_M(0,A,this.__views__),H=I.start,J=I.end,ee=J-H,me=w?J:H-1,ge=this.__iteratees__,we=ge.length,Pe=0,Le=Hn(ee,this.__takeCount__);if(!p||!w&&A==ee&&Le==ee)return o4(s,this.__actions__);var We=[];e:for(;ee--&&Pe<Le;){me+=l;for(var ot=-1,He=s[me];++ot<we;){var lt=ge[ot],ht=lt.iteratee,_r=lt.type,ar=ht(He);if(_r==j)He=ar;else if(!ar){if(_r==W)continue e;break e}}We[Pe++]=He}return We}ft.prototype=Is(Ad.prototype),ft.prototype.constructor=ft;function Ta(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function bO(){this.__data__=ml?ml(null):{},this.size=0}function $O(s){var l=this.has(s)&&delete this.__data__[s];return this.size-=l?1:0,l}function xO(s){var l=this.__data__;if(ml){var p=l[s];return p===c?n:p}return At.call(l,s)?l[s]:n}function wO(s){var l=this.__data__;return ml?l[s]!==n:At.call(l,s)}function DO(s,l){var p=this.__data__;return this.size+=this.has(s)?0:1,p[s]=ml&&l===n?c:l,this}Ta.prototype.clear=bO,Ta.prototype.delete=$O,Ta.prototype.get=xO,Ta.prototype.has=wO,Ta.prototype.set=DO;function no(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function EO(){this.__data__=[],this.size=0}function CO(s){var l=this.__data__,p=Pd(l,s);if(p<0)return!1;var w=l.length-1;return p==w?l.pop():wd.call(l,p,1),--this.size,!0}function SO(s){var l=this.__data__,p=Pd(l,s);return p<0?n:l[p][1]}function TO(s){return Pd(this.__data__,s)>-1}function AO(s,l){var p=this.__data__,w=Pd(p,s);return w<0?(++this.size,p.push([s,l])):p[w][1]=l,this}no.prototype.clear=EO,no.prototype.delete=CO,no.prototype.get=SO,no.prototype.has=TO,no.prototype.set=AO;function ro(s){var l=-1,p=s==null?0:s.length;for(this.clear();++l<p;){var w=s[l];this.set(w[0],w[1])}}function PO(){this.size=0,this.__data__={hash:new Ta,map:new(hl||no),string:new Ta}}function _O(s){var l=jd(this,s).delete(s);return this.size-=l?1:0,l}function RO(s){return jd(this,s).get(s)}function OO(s){return jd(this,s).has(s)}function MO(s,l){var p=jd(this,s),w=p.size;return p.set(s,l),this.size+=p.size==w?0:1,this}ro.prototype.clear=PO,ro.prototype.delete=_O,ro.prototype.get=RO,ro.prototype.has=OO,ro.prototype.set=MO;function Aa(s){var l=-1,p=s==null?0:s.length;for(this.__data__=new ro;++l<p;)this.add(s[l])}function FO(s){return this.__data__.set(s,c),this}function kO(s){return this.__data__.has(s)}Aa.prototype.add=Aa.prototype.push=FO,Aa.prototype.has=kO;function di(s){var l=this.__data__=new no(s);this.size=l.size}function BO(){this.__data__=new no,this.size=0}function IO(s){var l=this.__data__,p=l.delete(s);return this.size=l.size,p}function LO(s){return this.__data__.get(s)}function VO(s){return this.__data__.has(s)}function NO(s,l){var p=this.__data__;if(p instanceof no){var w=p.__data__;if(!hl||w.length<i-1)return w.push([s,l]),this.size=++p.size,this;p=this.__data__=new ro(w)}return p.set(s,l),this.size=p.size,this}di.prototype.clear=BO,di.prototype.delete=IO,di.prototype.get=LO,di.prototype.has=VO,di.prototype.set=NO;function B1(s,l){var p=Xe(s),w=!p&&Ma(s),A=!p&&!w&&Ho(s),I=!p&&!w&&!A&&js(s),H=p||w||A||I,J=H?Kp(s.length,ZR):[],ee=J.length;for(var me in s)(l||At.call(s,me))&&!(H&&(me=="length"||A&&(me=="offset"||me=="parent")||I&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||so(me,ee)))&&J.push(me);return J}function I1(s){var l=s.length;return l?s[om(0,l-1)]:n}function jO(s,l){return Kd(mr(s),Pa(l,0,s.length))}function KO(s){return Kd(mr(s))}function Yp(s,l,p){(p!==n&&!fi(s[l],p)||p===n&&!(l in s))&&io(s,l,p)}function yl(s,l,p){var w=s[l];(!(At.call(s,l)&&fi(w,p))||p===n&&!(l in s))&&io(s,l,p)}function Pd(s,l){for(var p=s.length;p--;)if(fi(s[p][0],l))return p;return-1}function UO(s,l,p,w){return Ko(s,function(A,I,H){l(w,A,p(A),H)}),w}function L1(s,l){return s&&Oi(l,Sn(l),s)}function zO(s,l){return s&&Oi(l,yr(l),s)}function io(s,l,p){l=="__proto__"&&Dd?Dd(s,l,{configurable:!0,enumerable:!0,value:p,writable:!0}):s[l]=p}function Zp(s,l){for(var p=-1,w=l.length,A=se(w),I=s==null;++p<w;)A[p]=I?n:_m(s,l[p]);return A}function Pa(s,l,p){return s===s&&(p!==n&&(s=s<=p?s:p),l!==n&&(s=s>=l?s:l)),s}function zr(s,l,p,w,A,I){var H,J=l&h,ee=l&m,me=l&g;if(p&&(H=A?p(s,w,A,I):p(s)),H!==n)return H;if(!Zt(s))return s;var ge=Xe(s);if(ge){if(H=OM(s),!J)return mr(s,H)}else{var we=Gn(s),Pe=we==le||we==Fe;if(Ho(s))return u4(s,J);if(we==yt||we==ie||Pe&&!A){if(H=ee||Pe?{}:T4(s),!J)return ee?xM(s,zO(H,s)):$M(s,L1(H,s))}else{if(!Mt[we])return A?s:{};H=MM(s,we,J)}}I||(I=new di);var Le=I.get(s);if(Le)return Le;I.set(s,H),n3(s)?s.forEach(function(He){H.add(zr(He,l,p,He,s,I))}):e3(s)&&s.forEach(function(He,lt){H.set(lt,zr(He,l,p,lt,s,I))});var We=me?ee?gm:mm:ee?yr:Sn,ot=ge?n:We(s);return jr(ot||s,function(He,lt){ot&&(lt=He,He=s[lt]),yl(H,lt,zr(He,l,p,lt,s,I))}),H}function WO(s){var l=Sn(s);return function(p){return V1(p,s,l)}}function V1(s,l,p){var w=p.length;if(s==null)return!w;for(s=It(s);w--;){var A=p[w],I=l[A],H=s[A];if(H===n&&!(A in s)||!I(H))return!1}return!0}function N1(s,l,p){if(typeof s!="function")throw new Kr(a);return El(function(){s.apply(n,p)},l)}function vl(s,l,p,w){var A=-1,I=fd,H=!0,J=s.length,ee=[],me=l.length;if(!J)return ee;p&&(l=Ht(l,Tr(p))),w?(I=Bp,H=!1):l.length>=i&&(I=dl,H=!1,l=new Aa(l));e:for(;++A<J;){var ge=s[A],we=p==null?ge:p(ge);if(ge=w||ge!==0?ge:0,H&&we===we){for(var Pe=me;Pe--;)if(l[Pe]===we)continue e;ee.push(ge)}else I(l,we,w)||ee.push(ge)}return ee}var Ko=h4(Ri),j1=h4(Xp,!0);function HO(s,l){var p=!0;return Ko(s,function(w,A,I){return p=!!l(w,A,I),p}),p}function _d(s,l,p){for(var w=-1,A=s.length;++w<A;){var I=s[w],H=l(I);if(H!=null&&(J===n?H===H&&!Pr(H):p(H,J)))var J=H,ee=I}return ee}function GO(s,l,p,w){var A=s.length;for(p=nt(p),p<0&&(p=-p>A?0:A+p),w=w===n||w>A?A:nt(w),w<0&&(w+=A),w=p>w?0:i3(w);p<w;)s[p++]=l;return s}function K1(s,l){var p=[];return Ko(s,function(w,A,I){l(w,A,I)&&p.push(w)}),p}function kn(s,l,p,w,A){var I=-1,H=s.length;for(p||(p=kM),A||(A=[]);++I<H;){var J=s[I];l>0&&p(J)?l>1?kn(J,l-1,p,w,A):Vo(A,J):w||(A[A.length]=J)}return A}var Jp=p4(),U1=p4(!0);function Ri(s,l){return s&&Jp(s,l,Sn)}function Xp(s,l){return s&&U1(s,l,Sn)}function Rd(s,l){return Lo(l,function(p){return uo(s[p])})}function _a(s,l){l=zo(l,s);for(var p=0,w=l.length;s!=null&&p<w;)s=s[Mi(l[p++])];return p&&p==w?s:n}function z1(s,l,p){var w=l(s);return Xe(s)?w:Vo(w,p(s))}function ir(s){return s==null?s===n?_e:Dn:Sa&&Sa in It(s)?PM(s):KM(s)}function Qp(s,l){return s>l}function qO(s,l){return s!=null&&At.call(s,l)}function YO(s,l){return s!=null&&l in It(s)}function ZO(s,l,p){return s>=Hn(l,p)&&s<bn(l,p)}function em(s,l,p){for(var w=p?Bp:fd,A=s[0].length,I=s.length,H=I,J=se(I),ee=1/0,me=[];H--;){var ge=s[H];H&&l&&(ge=Ht(ge,Tr(l))),ee=Hn(ge.length,ee),J[H]=!p&&(l||A>=120&&ge.length>=120)?new Aa(H&&ge):n}ge=s[0];var we=-1,Pe=J[0];e:for(;++we<A&&me.length<ee;){var Le=ge[we],We=l?l(Le):Le;if(Le=p||Le!==0?Le:0,!(Pe?dl(Pe,We):w(me,We,p))){for(H=I;--H;){var ot=J[H];if(!(ot?dl(ot,We):w(s[H],We,p)))continue e}Pe&&Pe.push(We),me.push(Le)}}return me}function JO(s,l,p,w){return Ri(s,function(A,I,H){l(w,p(A),I,H)}),w}function bl(s,l,p){l=zo(l,s),s=R4(s,l);var w=s==null?s:s[Mi(Hr(l))];return w==null?n:Sr(w,s,p)}function W1(s){return on(s)&&ir(s)==ie}function XO(s){return on(s)&&ir(s)==ut}function QO(s){return on(s)&&ir(s)==ye}function $l(s,l,p,w,A){return s===l?!0:s==null||l==null||!on(s)&&!on(l)?s!==s&&l!==l:eM(s,l,p,w,$l,A)}function eM(s,l,p,w,A,I){var H=Xe(s),J=Xe(l),ee=H?Ee:Gn(s),me=J?Ee:Gn(l);ee=ee==ie?yt:ee,me=me==ie?yt:me;var ge=ee==yt,we=me==yt,Pe=ee==me;if(Pe&&Ho(s)){if(!Ho(l))return!1;H=!0,ge=!1}if(Pe&&!ge)return I||(I=new di),H||js(s)?E4(s,l,p,w,A,I):TM(s,l,ee,p,w,A,I);if(!(p&v)){var Le=ge&&At.call(s,"__wrapped__"),We=we&&At.call(l,"__wrapped__");if(Le||We){var ot=Le?s.value():s,He=We?l.value():l;return I||(I=new di),A(ot,He,p,w,I)}}return Pe?(I||(I=new di),AM(s,l,p,w,A,I)):!1}function tM(s){return on(s)&&Gn(s)==et}function tm(s,l,p,w){var A=p.length,I=A,H=!w;if(s==null)return!I;for(s=It(s);A--;){var J=p[A];if(H&&J[2]?J[1]!==s[J[0]]:!(J[0]in s))return!1}for(;++A<I;){J=p[A];var ee=J[0],me=s[ee],ge=J[1];if(H&&J[2]){if(me===n&&!(ee in s))return!1}else{var we=new di;if(w)var Pe=w(me,ge,ee,s,l,we);if(!(Pe===n?$l(ge,me,v|$,w,we):Pe))return!1}}return!0}function H1(s){if(!Zt(s)||IM(s))return!1;var l=uo(s)?tO:Fo;return l.test(Oa(s))}function nM(s){return on(s)&&ir(s)==te}function rM(s){return on(s)&&Gn(s)==pe}function iM(s){return on(s)&&qd(s.length)&&!!Bt[ir(s)]}function G1(s){return typeof s=="function"?s:s==null?vr:typeof s=="object"?Xe(s)?Z1(s[0],s[1]):Y1(s):m3(s)}function nm(s){if(!Dl(s))return sO(s);var l=[];for(var p in It(s))At.call(s,p)&&p!="constructor"&&l.push(p);return l}function oM(s){if(!Zt(s))return jM(s);var l=Dl(s),p=[];for(var w in s)w=="constructor"&&(l||!At.call(s,w))||p.push(w);return p}function rm(s,l){return s<l}function q1(s,l){var p=-1,w=gr(s)?se(s.length):[];return Ko(s,function(A,I,H){w[++p]=l(A,I,H)}),w}function Y1(s){var l=vm(s);return l.length==1&&l[0][2]?P4(l[0][0],l[0][1]):function(p){return p===s||tm(p,s,l)}}function Z1(s,l){return $m(s)&&A4(l)?P4(Mi(s),l):function(p){var w=_m(p,s);return w===n&&w===l?Rm(p,s):$l(l,w,v|$)}}function Od(s,l,p,w,A){s!==l&&Jp(l,function(I,H){if(A||(A=new di),Zt(I))aM(s,l,H,p,Od,w,A);else{var J=w?w(wm(s,H),I,H+"",s,l,A):n;J===n&&(J=I),Yp(s,H,J)}},yr)}function aM(s,l,p,w,A,I,H){var J=wm(s,p),ee=wm(l,p),me=H.get(ee);if(me){Yp(s,p,me);return}var ge=I?I(J,ee,p+"",s,l,H):n,we=ge===n;if(we){var Pe=Xe(ee),Le=!Pe&&Ho(ee),We=!Pe&&!Le&&js(ee);ge=ee,Pe||Le||We?Xe(J)?ge=J:sn(J)?ge=mr(J):Le?(we=!1,ge=u4(ee,!0)):We?(we=!1,ge=l4(ee,!0)):ge=[]:Cl(ee)||Ma(ee)?(ge=J,Ma(J)?ge=o3(J):(!Zt(J)||uo(J))&&(ge=T4(ee))):we=!1}we&&(H.set(ee,ge),A(ge,ee,w,I,H),H.delete(ee)),Yp(s,p,ge)}function J1(s,l){var p=s.length;if(p)return l+=l<0?p:0,so(l,p)?s[l]:n}function X1(s,l,p){l.length?l=Ht(l,function(I){return Xe(I)?function(H){return _a(H,I.length===1?I[0]:I)}:I}):l=[vr];var w=-1;l=Ht(l,Tr(Ue()));var A=q1(s,function(I,H,J){var ee=Ht(l,function(me){return me(I)});return{criteria:ee,index:++w,value:I}});return MR(A,function(I,H){return bM(I,H,p)})}function sM(s,l){return Q1(s,l,function(p,w){return Rm(s,w)})}function Q1(s,l,p){for(var w=-1,A=l.length,I={};++w<A;){var H=l[w],J=_a(s,H);p(J,H)&&xl(I,zo(H,s),J)}return I}function uM(s){return function(l){return _a(l,s)}}function im(s,l,p,w){var A=w?OR:_s,I=-1,H=l.length,J=s;for(s===l&&(l=mr(l)),p&&(J=Ht(s,Tr(p)));++I<H;)for(var ee=0,me=l[I],ge=p?p(me):me;(ee=A(J,ge,ee,w))>-1;)J!==s&&wd.call(J,ee,1),wd.call(s,ee,1);return s}function e4(s,l){for(var p=s?l.length:0,w=p-1;p--;){var A=l[p];if(p==w||A!==I){var I=A;so(A)?wd.call(s,A,1):um(s,A)}}return s}function om(s,l){return s+Cd(F1()*(l-s+1))}function lM(s,l,p,w){for(var A=-1,I=bn(Ed((l-s)/(p||1)),0),H=se(I);I--;)H[w?I:++A]=s,s+=p;return H}function am(s,l){var p="";if(!s||l<1||l>M)return p;do l%2&&(p+=s),l=Cd(l/2),l&&(s+=s);while(l);return p}function st(s,l){return Dm(_4(s,l,vr),s+"")}function cM(s){return I1(Ks(s))}function dM(s,l){var p=Ks(s);return Kd(p,Pa(l,0,p.length))}function xl(s,l,p,w){if(!Zt(s))return s;l=zo(l,s);for(var A=-1,I=l.length,H=I-1,J=s;J!=null&&++A<I;){var ee=Mi(l[A]),me=p;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return s;if(A!=H){var ge=J[ee];me=w?w(ge,ee,J):n,me===n&&(me=Zt(ge)?ge:so(l[A+1])?[]:{})}yl(J,ee,me),J=J[ee]}return s}var t4=Sd?function(s,l){return Sd.set(s,l),s}:vr,fM=Dd?function(s,l){return Dd(s,"toString",{configurable:!0,enumerable:!1,value:Mm(l),writable:!0})}:vr;function hM(s){return Kd(Ks(s))}function Wr(s,l,p){var w=-1,A=s.length;l<0&&(l=-l>A?0:A+l),p=p>A?A:p,p<0&&(p+=A),A=l>p?0:p-l>>>0,l>>>=0;for(var I=se(A);++w<A;)I[w]=s[w+l];return I}function pM(s,l){var p;return Ko(s,function(w,A,I){return p=l(w,A,I),!p}),!!p}function Md(s,l,p){var w=0,A=s==null?w:s.length;if(typeof l=="number"&&l===l&&A<=oe){for(;w<A;){var I=w+A>>>1,H=s[I];H!==null&&!Pr(H)&&(p?H<=l:H<l)?w=I+1:A=I}return A}return sm(s,l,vr,p)}function sm(s,l,p,w){var A=0,I=s==null?0:s.length;if(I===0)return 0;l=p(l);for(var H=l!==l,J=l===null,ee=Pr(l),me=l===n;A<I;){var ge=Cd((A+I)/2),we=p(s[ge]),Pe=we!==n,Le=we===null,We=we===we,ot=Pr(we);if(H)var He=w||We;else me?He=We&&(w||Pe):J?He=We&&Pe&&(w||!Le):ee?He=We&&Pe&&!Le&&(w||!ot):Le||ot?He=!1:He=w?we<=l:we<l;He?A=ge+1:I=ge}return Hn(I,re)}function n4(s,l){for(var p=-1,w=s.length,A=0,I=[];++p<w;){var H=s[p],J=l?l(H):H;if(!p||!fi(J,ee)){var ee=J;I[A++]=H===0?0:H}}return I}function r4(s){return typeof s=="number"?s:Pr(s)?V:+s}function Ar(s){if(typeof s=="string")return s;if(Xe(s))return Ht(s,Ar)+"";if(Pr(s))return k1?k1.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Uo(s,l,p){var w=-1,A=fd,I=s.length,H=!0,J=[],ee=J;if(p)H=!1,A=Bp;else if(I>=i){var me=l?null:CM(s);if(me)return pd(me);H=!1,A=dl,ee=new Aa}else ee=l?[]:J;e:for(;++w<I;){var ge=s[w],we=l?l(ge):ge;if(ge=p||ge!==0?ge:0,H&&we===we){for(var Pe=ee.length;Pe--;)if(ee[Pe]===we)continue e;l&&ee.push(we),J.push(ge)}else A(ee,we,p)||(ee!==J&&ee.push(we),J.push(ge))}return J}function um(s,l){return l=zo(l,s),s=R4(s,l),s==null||delete s[Mi(Hr(l))]}function i4(s,l,p,w){return xl(s,l,p(_a(s,l)),w)}function Fd(s,l,p,w){for(var A=s.length,I=w?A:-1;(w?I--:++I<A)&&l(s[I],I,s););return p?Wr(s,w?0:I,w?I+1:A):Wr(s,w?I+1:0,w?A:I)}function o4(s,l){var p=s;return p instanceof ft&&(p=p.value()),Ip(l,function(w,A){return A.func.apply(A.thisArg,Vo([w],A.args))},p)}function lm(s,l,p){var w=s.length;if(w<2)return w?Uo(s[0]):[];for(var A=-1,I=se(w);++A<w;)for(var H=s[A],J=-1;++J<w;)J!=A&&(I[A]=vl(I[A]||H,s[J],l,p));return Uo(kn(I,1),l,p)}function a4(s,l,p){for(var w=-1,A=s.length,I=l.length,H={};++w<A;){var J=w<I?l[w]:n;p(H,s[w],J)}return H}function cm(s){return sn(s)?s:[]}function dm(s){return typeof s=="function"?s:vr}function zo(s,l){return Xe(s)?s:$m(s,l)?[s]:k4(Dt(s))}var mM=st;function Wo(s,l,p){var w=s.length;return p=p===n?w:p,!l&&p>=w?s:Wr(s,l,p)}var s4=nO||function(s){return pn.clearTimeout(s)};function u4(s,l){if(l)return s.slice();var p=s.length,w=P1?P1(p):new s.constructor(p);return s.copy(w),w}function fm(s){var l=new s.constructor(s.byteLength);return new $d(l).set(new $d(s)),l}function gM(s,l){var p=l?fm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function yM(s){var l=new s.constructor(s.source,hr.exec(s));return l.lastIndex=s.lastIndex,l}function vM(s){return gl?It(gl.call(s)):{}}function l4(s,l){var p=l?fm(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function c4(s,l){if(s!==l){var p=s!==n,w=s===null,A=s===s,I=Pr(s),H=l!==n,J=l===null,ee=l===l,me=Pr(l);if(!J&&!me&&!I&&s>l||I&&H&&ee&&!J&&!me||w&&H&&ee||!p&&ee||!A)return 1;if(!w&&!I&&!me&&s<l||me&&p&&A&&!w&&!I||J&&p&&A||!H&&A||!ee)return-1}return 0}function bM(s,l,p){for(var w=-1,A=s.criteria,I=l.criteria,H=A.length,J=p.length;++w<H;){var ee=c4(A[w],I[w]);if(ee){if(w>=J)return ee;var me=p[w];return ee*(me=="desc"?-1:1)}}return s.index-l.index}function d4(s,l,p,w){for(var A=-1,I=s.length,H=p.length,J=-1,ee=l.length,me=bn(I-H,0),ge=se(ee+me),we=!w;++J<ee;)ge[J]=l[J];for(;++A<H;)(we||A<I)&&(ge[p[A]]=s[A]);for(;me--;)ge[J++]=s[A++];return ge}function f4(s,l,p,w){for(var A=-1,I=s.length,H=-1,J=p.length,ee=-1,me=l.length,ge=bn(I-J,0),we=se(ge+me),Pe=!w;++A<ge;)we[A]=s[A];for(var Le=A;++ee<me;)we[Le+ee]=l[ee];for(;++H<J;)(Pe||A<I)&&(we[Le+p[H]]=s[A++]);return we}function mr(s,l){var p=-1,w=s.length;for(l||(l=se(w));++p<w;)l[p]=s[p];return l}function Oi(s,l,p,w){var A=!p;p||(p={});for(var I=-1,H=l.length;++I<H;){var J=l[I],ee=w?w(p[J],s[J],J,p,s):n;ee===n&&(ee=s[J]),A?io(p,J,ee):yl(p,J,ee)}return p}function $M(s,l){return Oi(s,bm(s),l)}function xM(s,l){return Oi(s,C4(s),l)}function kd(s,l){return function(p,w){var A=Xe(p)?SR:UO,I=l?l():{};return A(p,s,Ue(w,2),I)}}function Ls(s){return st(function(l,p){var w=-1,A=p.length,I=A>1?p[A-1]:n,H=A>2?p[2]:n;for(I=s.length>3&&typeof I=="function"?(A--,I):n,H&&or(p[0],p[1],H)&&(I=A<3?n:I,A=1),l=It(l);++w<A;){var J=p[w];J&&s(l,J,w,I)}return l})}function h4(s,l){return function(p,w){if(p==null)return p;if(!gr(p))return s(p,w);for(var A=p.length,I=l?A:-1,H=It(p);(l?I--:++I<A)&&w(H[I],I,H)!==!1;);return p}}function p4(s){return function(l,p,w){for(var A=-1,I=It(l),H=w(l),J=H.length;J--;){var ee=H[s?J:++A];if(p(I[ee],ee,I)===!1)break}return l}}function wM(s,l,p){var w=l&C,A=wl(s);function I(){var H=this&&this!==pn&&this instanceof I?A:s;return H.apply(w?p:this,arguments)}return I}function m4(s){return function(l){l=Dt(l);var p=Rs(l)?ci(l):n,w=p?p[0]:l.charAt(0),A=p?Wo(p,1).join(""):l.slice(1);return w[s]()+A}}function Vs(s){return function(l){return Ip(h3(f3(l).replace(cd,"")),s,"")}}function wl(s){return function(){var l=arguments;switch(l.length){case 0:return new s;case 1:return new s(l[0]);case 2:return new s(l[0],l[1]);case 3:return new s(l[0],l[1],l[2]);case 4:return new s(l[0],l[1],l[2],l[3]);case 5:return new s(l[0],l[1],l[2],l[3],l[4]);case 6:return new s(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new s(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var p=Is(s.prototype),w=s.apply(p,l);return Zt(w)?w:p}}function DM(s,l,p){var w=wl(s);function A(){for(var I=arguments.length,H=se(I),J=I,ee=Ns(A);J--;)H[J]=arguments[J];var me=I<3&&H[0]!==ee&&H[I-1]!==ee?[]:No(H,ee);if(I-=me.length,I<p)return $4(s,l,Bd,A.placeholder,n,H,me,n,n,p-I);var ge=this&&this!==pn&&this instanceof A?w:s;return Sr(ge,this,H)}return A}function g4(s){return function(l,p,w){var A=It(l);if(!gr(l)){var I=Ue(p,3);l=Sn(l),p=function(J){return I(A[J],J,A)}}var H=s(l,p,w);return H>-1?A[I?l[H]:H]:n}}function y4(s){return ao(function(l){var p=l.length,w=p,A=Ur.prototype.thru;for(s&&l.reverse();w--;){var I=l[w];if(typeof I!="function")throw new Kr(a);if(A&&!H&&Nd(I)=="wrapper")var H=new Ur([],!0)}for(w=H?w:p;++w<p;){I=l[w];var J=Nd(I),ee=J=="wrapper"?ym(I):n;ee&&xm(ee[0])&&ee[1]==(k|D|E|S)&&!ee[4].length&&ee[9]==1?H=H[Nd(ee[0])].apply(H,ee[3]):H=I.length==1&&xm(I)?H[J]():H.thru(I)}return function(){var me=arguments,ge=me[0];if(H&&me.length==1&&Xe(ge))return H.plant(ge).value();for(var we=0,Pe=p?l[we].apply(this,me):ge;++we<p;)Pe=l[we].call(this,Pe);return Pe}})}function Bd(s,l,p,w,A,I,H,J,ee,me){var ge=l&k,we=l&C,Pe=l&x,Le=l&(D|P),We=l&U,ot=Pe?n:wl(s);function He(){for(var lt=arguments.length,ht=se(lt),_r=lt;_r--;)ht[_r]=arguments[_r];if(Le)var ar=Ns(He),Rr=kR(ht,ar);if(w&&(ht=d4(ht,w,A,Le)),I&&(ht=f4(ht,I,H,Le)),lt-=Rr,Le&<<me){var un=No(ht,ar);return $4(s,l,Bd,He.placeholder,p,ht,un,J,ee,me-lt)}var hi=we?p:this,co=Pe?hi[s]:s;return lt=ht.length,J?ht=UM(ht,J):We&<>1&&ht.reverse(),ge&&ee<lt&&(ht.length=ee),this&&this!==pn&&this instanceof He&&(co=ot||wl(co)),co.apply(hi,ht)}return He}function v4(s,l){return function(p,w){return JO(p,s,l(w),{})}}function Id(s,l){return function(p,w){var A;if(p===n&&w===n)return l;if(p!==n&&(A=p),w!==n){if(A===n)return w;typeof p=="string"||typeof w=="string"?(p=Ar(p),w=Ar(w)):(p=r4(p),w=r4(w)),A=s(p,w)}return A}}function hm(s){return ao(function(l){return l=Ht(l,Tr(Ue())),st(function(p){var w=this;return s(l,function(A){return Sr(A,w,p)})})})}function Ld(s,l){l=l===n?" ":Ar(l);var p=l.length;if(p<2)return p?am(l,s):l;var w=am(l,Ed(s/Os(l)));return Rs(l)?Wo(ci(w),0,s).join(""):w.slice(0,s)}function EM(s,l,p,w){var A=l&C,I=wl(s);function H(){for(var J=-1,ee=arguments.length,me=-1,ge=w.length,we=se(ge+ee),Pe=this&&this!==pn&&this instanceof H?I:s;++me<ge;)we[me]=w[me];for(;ee--;)we[me++]=arguments[++J];return Sr(Pe,A?p:this,we)}return H}function b4(s){return function(l,p,w){return w&&typeof w!="number"&&or(l,p,w)&&(p=w=n),l=lo(l),p===n?(p=l,l=0):p=lo(p),w=w===n?l<p?1:-1:lo(w),lM(l,p,w,s)}}function Vd(s){return function(l,p){return typeof l=="string"&&typeof p=="string"||(l=Gr(l),p=Gr(p)),s(l,p)}}function $4(s,l,p,w,A,I,H,J,ee,me){var ge=l&D,we=ge?H:n,Pe=ge?n:H,Le=ge?I:n,We=ge?n:I;l|=ge?E:T,l&=~(ge?T:E),l&y||(l&=-4);var ot=[s,l,A,Le,we,We,Pe,J,ee,me],He=p.apply(n,ot);return xm(s)&&O4(He,ot),He.placeholder=w,M4(He,s,l)}function pm(s){var l=vn[s];return function(p,w){if(p=Gr(p),w=w==null?0:Hn(nt(w),292),w&&M1(p)){var A=(Dt(p)+"e").split("e"),I=l(A[0]+"e"+(+A[1]+w));return A=(Dt(I)+"e").split("e"),+(A[0]+"e"+(+A[1]-w))}return l(p)}}var CM=ks&&1/pd(new ks([,-0]))[1]==_?function(s){return new ks(s)}:Bm;function x4(s){return function(l){var p=Gn(l);return p==et?zp(l):p==pe?KR(l):FR(l,s(l))}}function oo(s,l,p,w,A,I,H,J){var ee=l&x;if(!ee&&typeof s!="function")throw new Kr(a);var me=w?w.length:0;if(me||(l&=-97,w=A=n),H=H===n?H:bn(nt(H),0),J=J===n?J:nt(J),me-=A?A.length:0,l&T){var ge=w,we=A;w=A=n}var Pe=ee?n:ym(s),Le=[s,l,p,w,A,ge,we,I,H,J];if(Pe&&NM(Le,Pe),s=Le[0],l=Le[1],p=Le[2],w=Le[3],A=Le[4],J=Le[9]=Le[9]===n?ee?0:s.length:bn(Le[9]-me,0),!J&&l&(D|P)&&(l&=-25),!l||l==C)var We=wM(s,l,p);else l==D||l==P?We=DM(s,l,J):(l==E||l==(C|E))&&!A.length?We=EM(s,l,p,w):We=Bd.apply(n,Le);var ot=Pe?t4:O4;return M4(ot(We,Le),s,l)}function w4(s,l,p,w){return s===n||fi(s,Fs[p])&&!At.call(w,p)?l:s}function D4(s,l,p,w,A,I){return Zt(s)&&Zt(l)&&(I.set(l,s),Od(s,l,n,D4,I),I.delete(l)),s}function SM(s){return Cl(s)?n:s}function E4(s,l,p,w,A,I){var H=p&v,J=s.length,ee=l.length;if(J!=ee&&!(H&&ee>J))return!1;var me=I.get(s),ge=I.get(l);if(me&&ge)return me==l&&ge==s;var we=-1,Pe=!0,Le=p&$?new Aa:n;for(I.set(s,l),I.set(l,s);++we<J;){var We=s[we],ot=l[we];if(w)var He=H?w(ot,We,we,l,s,I):w(We,ot,we,s,l,I);if(He!==n){if(He)continue;Pe=!1;break}if(Le){if(!Lp(l,function(lt,ht){if(!dl(Le,ht)&&(We===lt||A(We,lt,p,w,I)))return Le.push(ht)})){Pe=!1;break}}else if(!(We===ot||A(We,ot,p,w,I))){Pe=!1;break}}return I.delete(s),I.delete(l),Pe}function TM(s,l,p,w,A,I,H){switch(p){case Rt:if(s.byteLength!=l.byteLength||s.byteOffset!=l.byteOffset)return!1;s=s.buffer,l=l.buffer;case ut:return!(s.byteLength!=l.byteLength||!I(new $d(s),new $d(l)));case ne:case ye:case dt:return fi(+s,+l);case he:return s.name==l.name&&s.message==l.message;case te:case Ce:return s==l+"";case et:var J=zp;case pe:var ee=w&v;if(J||(J=pd),s.size!=l.size&&!ee)return!1;var me=H.get(s);if(me)return me==l;w|=$,H.set(s,l);var ge=E4(J(s),J(l),w,A,I,H);return H.delete(s),ge;case De:if(gl)return gl.call(s)==gl.call(l)}return!1}function AM(s,l,p,w,A,I){var H=p&v,J=mm(s),ee=J.length,me=mm(l),ge=me.length;if(ee!=ge&&!H)return!1;for(var we=ee;we--;){var Pe=J[we];if(!(H?Pe in l:At.call(l,Pe)))return!1}var Le=I.get(s),We=I.get(l);if(Le&&We)return Le==l&&We==s;var ot=!0;I.set(s,l),I.set(l,s);for(var He=H;++we<ee;){Pe=J[we];var lt=s[Pe],ht=l[Pe];if(w)var _r=H?w(ht,lt,Pe,l,s,I):w(lt,ht,Pe,s,l,I);if(!(_r===n?lt===ht||A(lt,ht,p,w,I):_r)){ot=!1;break}He||(He=Pe=="constructor")}if(ot&&!He){var ar=s.constructor,Rr=l.constructor;ar!=Rr&&"constructor"in s&&"constructor"in l&&!(typeof ar=="function"&&ar instanceof ar&&typeof Rr=="function"&&Rr instanceof Rr)&&(ot=!1)}return I.delete(s),I.delete(l),ot}function ao(s){return Dm(_4(s,n,V4),s+"")}function mm(s){return z1(s,Sn,bm)}function gm(s){return z1(s,yr,C4)}var ym=Sd?function(s){return Sd.get(s)}:Bm;function Nd(s){for(var l=s.name+"",p=Bs[l],w=At.call(Bs,l)?p.length:0;w--;){var A=p[w],I=A.func;if(I==null||I==s)return A.name}return l}function Ns(s){var l=At.call(R,"placeholder")?R:s;return l.placeholder}function Ue(){var s=R.iteratee||Fm;return s=s===Fm?G1:s,arguments.length?s(arguments[0],arguments[1]):s}function jd(s,l){var p=s.__data__;return BM(l)?p[typeof l=="string"?"string":"hash"]:p.map}function vm(s){for(var l=Sn(s),p=l.length;p--;){var w=l[p],A=s[w];l[p]=[w,A,A4(A)]}return l}function Ra(s,l){var p=VR(s,l);return H1(p)?p:n}function PM(s){var l=At.call(s,Sa),p=s[Sa];try{s[Sa]=n;var w=!0}catch{}var A=vd.call(s);return w&&(l?s[Sa]=p:delete s[Sa]),A}var bm=Hp?function(s){return s==null?[]:(s=It(s),Lo(Hp(s),function(l){return R1.call(s,l)}))}:Im,C4=Hp?function(s){for(var l=[];s;)Vo(l,bm(s)),s=xd(s);return l}:Im,Gn=ir;(Gp&&Gn(new Gp(new ArrayBuffer(1)))!=Rt||hl&&Gn(new hl)!=et||qp&&Gn(qp.resolve())!=q||ks&&Gn(new ks)!=pe||pl&&Gn(new pl)!=Ve)&&(Gn=function(s){var l=ir(s),p=l==yt?s.constructor:n,w=p?Oa(p):"";if(w)switch(w){case dO:return Rt;case fO:return et;case hO:return q;case pO:return pe;case mO:return Ve}return l});function _M(s,l,p){for(var w=-1,A=p.length;++w<A;){var I=p[w],H=I.size;switch(I.type){case"drop":s+=H;break;case"dropRight":l-=H;break;case"take":l=Hn(l,s+H);break;case"takeRight":s=bn(s,l-H);break}}return{start:s,end:l}}function RM(s){var l=s.match(Kt);return l?l[1].split(an):[]}function S4(s,l,p){l=zo(l,s);for(var w=-1,A=l.length,I=!1;++w<A;){var H=Mi(l[w]);if(!(I=s!=null&&p(s,H)))break;s=s[H]}return I||++w!=A?I:(A=s==null?0:s.length,!!A&&qd(A)&&so(H,A)&&(Xe(s)||Ma(s)))}function OM(s){var l=s.length,p=new s.constructor(l);return l&&typeof s[0]=="string"&&At.call(s,"index")&&(p.index=s.index,p.input=s.input),p}function T4(s){return typeof s.constructor=="function"&&!Dl(s)?Is(xd(s)):{}}function MM(s,l,p){var w=s.constructor;switch(l){case ut:return fm(s);case ne:case ye:return new w(+s);case Rt:return gM(s,p);case Pn:case _n:case Yt:case Ln:case tn:case vt:case Vn:case Cr:case Rn:return l4(s,p);case et:return new w;case dt:case Ce:return new w(s);case te:return yM(s);case pe:return new w;case De:return vM(s)}}function FM(s,l){var p=l.length;if(!p)return s;var w=p-1;return l[w]=(p>1?"& ":"")+l[w],l=l.join(p>2?", ":" "),s.replace(jn,`{
|
|
66
|
+
/* [wrapped with `+l+`] */
|
|
67
|
+
`)}function kM(s){return Xe(s)||Ma(s)||!!(O1&&s&&s[O1])}function so(s,l){var p=typeof s;return l=l??M,!!l&&(p=="number"||p!="symbol"&&nr.test(s))&&s>-1&&s%1==0&&s<l}function or(s,l,p){if(!Zt(p))return!1;var w=typeof l;return(w=="number"?gr(p)&&so(l,p.length):w=="string"&&l in p)?fi(p[l],s):!1}function $m(s,l){if(Xe(s))return!1;var p=typeof s;return p=="number"||p=="symbol"||p=="boolean"||s==null||Pr(s)?!0:fr.test(s)||!nn.test(s)||l!=null&&s in It(l)}function BM(s){var l=typeof s;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?s!=="__proto__":s===null}function xm(s){var l=Nd(s),p=R[l];if(typeof p!="function"||!(l in ft.prototype))return!1;if(s===p)return!0;var w=ym(p);return!!w&&s===w[0]}function IM(s){return!!A1&&A1 in s}var LM=gd?uo:Lm;function Dl(s){var l=s&&s.constructor,p=typeof l=="function"&&l.prototype||Fs;return s===p}function A4(s){return s===s&&!Zt(s)}function P4(s,l){return function(p){return p==null?!1:p[s]===l&&(l!==n||s in It(p))}}function VM(s){var l=Hd(s,function(w){return p.size===d&&p.clear(),w}),p=l.cache;return l}function NM(s,l){var p=s[1],w=l[1],A=p|w,I=A<(C|x|k),H=w==k&&p==D||w==k&&p==S&&s[7].length<=l[8]||w==(k|S)&&l[7].length<=l[8]&&p==D;if(!(I||H))return s;w&C&&(s[2]=l[2],A|=p&C?0:y);var J=l[3];if(J){var ee=s[3];s[3]=ee?d4(ee,J,l[4]):J,s[4]=ee?No(s[3],f):l[4]}return J=l[5],J&&(ee=s[5],s[5]=ee?f4(ee,J,l[6]):J,s[6]=ee?No(s[5],f):l[6]),J=l[7],J&&(s[7]=J),w&k&&(s[8]=s[8]==null?l[8]:Hn(s[8],l[8])),s[9]==null&&(s[9]=l[9]),s[0]=l[0],s[1]=A,s}function jM(s){var l=[];if(s!=null)for(var p in It(s))l.push(p);return l}function KM(s){return vd.call(s)}function _4(s,l,p){return l=bn(l===n?s.length-1:l,0),function(){for(var w=arguments,A=-1,I=bn(w.length-l,0),H=se(I);++A<I;)H[A]=w[l+A];A=-1;for(var J=se(l+1);++A<l;)J[A]=w[A];return J[l]=p(H),Sr(s,this,J)}}function R4(s,l){return l.length<2?s:_a(s,Wr(l,0,-1))}function UM(s,l){for(var p=s.length,w=Hn(l.length,p),A=mr(s);w--;){var I=l[w];s[w]=so(I,p)?A[I]:n}return s}function wm(s,l){if(!(l==="constructor"&&typeof s[l]=="function")&&l!="__proto__")return s[l]}var O4=F4(t4),El=iO||function(s,l){return pn.setTimeout(s,l)},Dm=F4(fM);function M4(s,l,p){var w=l+"";return Dm(s,FM(w,zM(RM(w),p)))}function F4(s){var l=0,p=0;return function(){var w=uO(),A=K-(w-p);if(p=w,A>0){if(++l>=G)return arguments[0]}else l=0;return s.apply(n,arguments)}}function Kd(s,l){var p=-1,w=s.length,A=w-1;for(l=l===n?w:l;++p<l;){var I=om(p,A),H=s[I];s[I]=s[p],s[p]=H}return s.length=l,s}var k4=VM(function(s){var l=[];return s.charCodeAt(0)===46&&l.push(""),s.replace(Te,function(p,w,A,I){l.push(A?I.replace(li,"$1"):w||p)}),l});function Mi(s){if(typeof s=="string"||Pr(s))return s;var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}function Oa(s){if(s!=null){try{return yd.call(s)}catch{}try{return s+""}catch{}}return""}function zM(s,l){return jr(fe,function(p){var w="_."+p[0];l&p[1]&&!fd(s,w)&&s.push(w)}),s.sort()}function B4(s){if(s instanceof ft)return s.clone();var l=new Ur(s.__wrapped__,s.__chain__);return l.__actions__=mr(s.__actions__),l.__index__=s.__index__,l.__values__=s.__values__,l}function WM(s,l,p){(p?or(s,l,p):l===n)?l=1:l=bn(nt(l),0);var w=s==null?0:s.length;if(!w||l<1)return[];for(var A=0,I=0,H=se(Ed(w/l));A<w;)H[I++]=Wr(s,A,A+=l);return H}function HM(s){for(var l=-1,p=s==null?0:s.length,w=0,A=[];++l<p;){var I=s[l];I&&(A[w++]=I)}return A}function GM(){var s=arguments.length;if(!s)return[];for(var l=se(s-1),p=arguments[0],w=s;w--;)l[w-1]=arguments[w];return Vo(Xe(p)?mr(p):[p],kn(l,1))}var qM=st(function(s,l){return sn(s)?vl(s,kn(l,1,sn,!0)):[]}),YM=st(function(s,l){var p=Hr(l);return sn(p)&&(p=n),sn(s)?vl(s,kn(l,1,sn,!0),Ue(p,2)):[]}),ZM=st(function(s,l){var p=Hr(l);return sn(p)&&(p=n),sn(s)?vl(s,kn(l,1,sn,!0),n,p):[]});function JM(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),Wr(s,l<0?0:l,w)):[]}function XM(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),l=w-l,Wr(s,0,l<0?0:l)):[]}function QM(s,l){return s&&s.length?Fd(s,Ue(l,3),!0,!0):[]}function e9(s,l){return s&&s.length?Fd(s,Ue(l,3),!0):[]}function t9(s,l,p,w){var A=s==null?0:s.length;return A?(p&&typeof p!="number"&&or(s,l,p)&&(p=0,w=A),GO(s,l,p,w)):[]}function I4(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=p==null?0:nt(p);return A<0&&(A=bn(w+A,0)),hd(s,Ue(l,3),A)}function L4(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=w-1;return p!==n&&(A=nt(p),A=p<0?bn(w+A,0):Hn(A,w-1)),hd(s,Ue(l,3),A,!0)}function V4(s){var l=s==null?0:s.length;return l?kn(s,1):[]}function n9(s){var l=s==null?0:s.length;return l?kn(s,_):[]}function r9(s,l){var p=s==null?0:s.length;return p?(l=l===n?1:nt(l),kn(s,l)):[]}function i9(s){for(var l=-1,p=s==null?0:s.length,w={};++l<p;){var A=s[l];w[A[0]]=A[1]}return w}function N4(s){return s&&s.length?s[0]:n}function o9(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=p==null?0:nt(p);return A<0&&(A=bn(w+A,0)),_s(s,l,A)}function a9(s){var l=s==null?0:s.length;return l?Wr(s,0,-1):[]}var s9=st(function(s){var l=Ht(s,cm);return l.length&&l[0]===s[0]?em(l):[]}),u9=st(function(s){var l=Hr(s),p=Ht(s,cm);return l===Hr(p)?l=n:p.pop(),p.length&&p[0]===s[0]?em(p,Ue(l,2)):[]}),l9=st(function(s){var l=Hr(s),p=Ht(s,cm);return l=typeof l=="function"?l:n,l&&p.pop(),p.length&&p[0]===s[0]?em(p,n,l):[]});function c9(s,l){return s==null?"":aO.call(s,l)}function Hr(s){var l=s==null?0:s.length;return l?s[l-1]:n}function d9(s,l,p){var w=s==null?0:s.length;if(!w)return-1;var A=w;return p!==n&&(A=nt(p),A=A<0?bn(w+A,0):Hn(A,w-1)),l===l?zR(s,l,A):hd(s,$1,A,!0)}function f9(s,l){return s&&s.length?J1(s,nt(l)):n}var h9=st(j4);function j4(s,l){return s&&s.length&&l&&l.length?im(s,l):s}function p9(s,l,p){return s&&s.length&&l&&l.length?im(s,l,Ue(p,2)):s}function m9(s,l,p){return s&&s.length&&l&&l.length?im(s,l,n,p):s}var g9=ao(function(s,l){var p=s==null?0:s.length,w=Zp(s,l);return e4(s,Ht(l,function(A){return so(A,p)?+A:A}).sort(c4)),w});function y9(s,l){var p=[];if(!(s&&s.length))return p;var w=-1,A=[],I=s.length;for(l=Ue(l,3);++w<I;){var H=s[w];l(H,w,s)&&(p.push(H),A.push(w))}return e4(s,A),p}function Em(s){return s==null?s:cO.call(s)}function v9(s,l,p){var w=s==null?0:s.length;return w?(p&&typeof p!="number"&&or(s,l,p)?(l=0,p=w):(l=l==null?0:nt(l),p=p===n?w:nt(p)),Wr(s,l,p)):[]}function b9(s,l){return Md(s,l)}function $9(s,l,p){return sm(s,l,Ue(p,2))}function x9(s,l){var p=s==null?0:s.length;if(p){var w=Md(s,l);if(w<p&&fi(s[w],l))return w}return-1}function w9(s,l){return Md(s,l,!0)}function D9(s,l,p){return sm(s,l,Ue(p,2),!0)}function E9(s,l){var p=s==null?0:s.length;if(p){var w=Md(s,l,!0)-1;if(fi(s[w],l))return w}return-1}function C9(s){return s&&s.length?n4(s):[]}function S9(s,l){return s&&s.length?n4(s,Ue(l,2)):[]}function T9(s){var l=s==null?0:s.length;return l?Wr(s,1,l):[]}function A9(s,l,p){return s&&s.length?(l=p||l===n?1:nt(l),Wr(s,0,l<0?0:l)):[]}function P9(s,l,p){var w=s==null?0:s.length;return w?(l=p||l===n?1:nt(l),l=w-l,Wr(s,l<0?0:l,w)):[]}function _9(s,l){return s&&s.length?Fd(s,Ue(l,3),!1,!0):[]}function R9(s,l){return s&&s.length?Fd(s,Ue(l,3)):[]}var O9=st(function(s){return Uo(kn(s,1,sn,!0))}),M9=st(function(s){var l=Hr(s);return sn(l)&&(l=n),Uo(kn(s,1,sn,!0),Ue(l,2))}),F9=st(function(s){var l=Hr(s);return l=typeof l=="function"?l:n,Uo(kn(s,1,sn,!0),n,l)});function k9(s){return s&&s.length?Uo(s):[]}function B9(s,l){return s&&s.length?Uo(s,Ue(l,2)):[]}function I9(s,l){return l=typeof l=="function"?l:n,s&&s.length?Uo(s,n,l):[]}function Cm(s){if(!(s&&s.length))return[];var l=0;return s=Lo(s,function(p){if(sn(p))return l=bn(p.length,l),!0}),Kp(l,function(p){return Ht(s,Vp(p))})}function K4(s,l){if(!(s&&s.length))return[];var p=Cm(s);return l==null?p:Ht(p,function(w){return Sr(l,n,w)})}var L9=st(function(s,l){return sn(s)?vl(s,l):[]}),V9=st(function(s){return lm(Lo(s,sn))}),N9=st(function(s){var l=Hr(s);return sn(l)&&(l=n),lm(Lo(s,sn),Ue(l,2))}),j9=st(function(s){var l=Hr(s);return l=typeof l=="function"?l:n,lm(Lo(s,sn),n,l)}),K9=st(Cm);function U9(s,l){return a4(s||[],l||[],yl)}function z9(s,l){return a4(s||[],l||[],xl)}var W9=st(function(s){var l=s.length,p=l>1?s[l-1]:n;return p=typeof p=="function"?(s.pop(),p):n,K4(s,p)});function U4(s){var l=R(s);return l.__chain__=!0,l}function H9(s,l){return l(s),s}function Ud(s,l){return l(s)}var G9=ao(function(s){var l=s.length,p=l?s[0]:0,w=this.__wrapped__,A=function(I){return Zp(I,s)};return l>1||this.__actions__.length||!(w instanceof ft)||!so(p)?this.thru(A):(w=w.slice(p,+p+(l?1:0)),w.__actions__.push({func:Ud,args:[A],thisArg:n}),new Ur(w,this.__chain__).thru(function(I){return l&&!I.length&&I.push(n),I}))});function q9(){return U4(this)}function Y9(){return new Ur(this.value(),this.__chain__)}function Z9(){this.__values__===n&&(this.__values__=r3(this.value()));var s=this.__index__>=this.__values__.length,l=s?n:this.__values__[this.__index__++];return{done:s,value:l}}function J9(){return this}function X9(s){for(var l,p=this;p instanceof Ad;){var w=B4(p);w.__index__=0,w.__values__=n,l?A.__wrapped__=w:l=w;var A=w;p=p.__wrapped__}return A.__wrapped__=s,l}function Q9(){var s=this.__wrapped__;if(s instanceof ft){var l=s;return this.__actions__.length&&(l=new ft(this)),l=l.reverse(),l.__actions__.push({func:Ud,args:[Em],thisArg:n}),new Ur(l,this.__chain__)}return this.thru(Em)}function eF(){return o4(this.__wrapped__,this.__actions__)}var tF=kd(function(s,l,p){At.call(s,p)?++s[p]:io(s,p,1)});function nF(s,l,p){var w=Xe(s)?v1:HO;return p&&or(s,l,p)&&(l=n),w(s,Ue(l,3))}function rF(s,l){var p=Xe(s)?Lo:K1;return p(s,Ue(l,3))}var iF=g4(I4),oF=g4(L4);function aF(s,l){return kn(zd(s,l),1)}function sF(s,l){return kn(zd(s,l),_)}function uF(s,l,p){return p=p===n?1:nt(p),kn(zd(s,l),p)}function z4(s,l){var p=Xe(s)?jr:Ko;return p(s,Ue(l,3))}function W4(s,l){var p=Xe(s)?TR:j1;return p(s,Ue(l,3))}var lF=kd(function(s,l,p){At.call(s,p)?s[p].push(l):io(s,p,[l])});function cF(s,l,p,w){s=gr(s)?s:Ks(s),p=p&&!w?nt(p):0;var A=s.length;return p<0&&(p=bn(A+p,0)),Yd(s)?p<=A&&s.indexOf(l,p)>-1:!!A&&_s(s,l,p)>-1}var dF=st(function(s,l,p){var w=-1,A=typeof l=="function",I=gr(s)?se(s.length):[];return Ko(s,function(H){I[++w]=A?Sr(l,H,p):bl(H,l,p)}),I}),fF=kd(function(s,l,p){io(s,p,l)});function zd(s,l){var p=Xe(s)?Ht:q1;return p(s,Ue(l,3))}function hF(s,l,p,w){return s==null?[]:(Xe(l)||(l=l==null?[]:[l]),p=w?n:p,Xe(p)||(p=p==null?[]:[p]),X1(s,l,p))}var pF=kd(function(s,l,p){s[p?0:1].push(l)},function(){return[[],[]]});function mF(s,l,p){var w=Xe(s)?Ip:w1,A=arguments.length<3;return w(s,Ue(l,4),p,A,Ko)}function gF(s,l,p){var w=Xe(s)?AR:w1,A=arguments.length<3;return w(s,Ue(l,4),p,A,j1)}function yF(s,l){var p=Xe(s)?Lo:K1;return p(s,Gd(Ue(l,3)))}function vF(s){var l=Xe(s)?I1:cM;return l(s)}function bF(s,l,p){(p?or(s,l,p):l===n)?l=1:l=nt(l);var w=Xe(s)?jO:dM;return w(s,l)}function $F(s){var l=Xe(s)?KO:hM;return l(s)}function xF(s){if(s==null)return 0;if(gr(s))return Yd(s)?Os(s):s.length;var l=Gn(s);return l==et||l==pe?s.size:nm(s).length}function wF(s,l,p){var w=Xe(s)?Lp:pM;return p&&or(s,l,p)&&(l=n),w(s,Ue(l,3))}var DF=st(function(s,l){if(s==null)return[];var p=l.length;return p>1&&or(s,l[0],l[1])?l=[]:p>2&&or(l[0],l[1],l[2])&&(l=[l[0]]),X1(s,kn(l,1),[])}),Wd=rO||function(){return pn.Date.now()};function EF(s,l){if(typeof l!="function")throw new Kr(a);return s=nt(s),function(){if(--s<1)return l.apply(this,arguments)}}function H4(s,l,p){return l=p?n:l,l=s&&l==null?s.length:l,oo(s,k,n,n,n,n,l)}function G4(s,l){var p;if(typeof l!="function")throw new Kr(a);return s=nt(s),function(){return--s>0&&(p=l.apply(this,arguments)),s<=1&&(l=n),p}}var Sm=st(function(s,l,p){var w=C;if(p.length){var A=No(p,Ns(Sm));w|=E}return oo(s,w,l,p,A)}),q4=st(function(s,l,p){var w=C|x;if(p.length){var A=No(p,Ns(q4));w|=E}return oo(l,w,s,p,A)});function Y4(s,l,p){l=p?n:l;var w=oo(s,D,n,n,n,n,n,l);return w.placeholder=Y4.placeholder,w}function Z4(s,l,p){l=p?n:l;var w=oo(s,P,n,n,n,n,n,l);return w.placeholder=Z4.placeholder,w}function J4(s,l,p){var w,A,I,H,J,ee,me=0,ge=!1,we=!1,Pe=!0;if(typeof s!="function")throw new Kr(a);l=Gr(l)||0,Zt(p)&&(ge=!!p.leading,we="maxWait"in p,I=we?bn(Gr(p.maxWait)||0,l):I,Pe="trailing"in p?!!p.trailing:Pe);function Le(un){var hi=w,co=A;return w=A=n,me=un,H=s.apply(co,hi),H}function We(un){return me=un,J=El(lt,l),ge?Le(un):H}function ot(un){var hi=un-ee,co=un-me,g3=l-hi;return we?Hn(g3,I-co):g3}function He(un){var hi=un-ee,co=un-me;return ee===n||hi>=l||hi<0||we&&co>=I}function lt(){var un=Wd();if(He(un))return ht(un);J=El(lt,ot(un))}function ht(un){return J=n,Pe&&w?Le(un):(w=A=n,H)}function _r(){J!==n&&s4(J),me=0,w=ee=A=J=n}function ar(){return J===n?H:ht(Wd())}function Rr(){var un=Wd(),hi=He(un);if(w=arguments,A=this,ee=un,hi){if(J===n)return We(ee);if(we)return s4(J),J=El(lt,l),Le(ee)}return J===n&&(J=El(lt,l)),H}return Rr.cancel=_r,Rr.flush=ar,Rr}var CF=st(function(s,l){return N1(s,1,l)}),SF=st(function(s,l,p){return N1(s,Gr(l)||0,p)});function TF(s){return oo(s,U)}function Hd(s,l){if(typeof s!="function"||l!=null&&typeof l!="function")throw new Kr(a);var p=function(){var w=arguments,A=l?l.apply(this,w):w[0],I=p.cache;if(I.has(A))return I.get(A);var H=s.apply(this,w);return p.cache=I.set(A,H)||I,H};return p.cache=new(Hd.Cache||ro),p}Hd.Cache=ro;function Gd(s){if(typeof s!="function")throw new Kr(a);return function(){var l=arguments;switch(l.length){case 0:return!s.call(this);case 1:return!s.call(this,l[0]);case 2:return!s.call(this,l[0],l[1]);case 3:return!s.call(this,l[0],l[1],l[2])}return!s.apply(this,l)}}function AF(s){return G4(2,s)}var PF=mM(function(s,l){l=l.length==1&&Xe(l[0])?Ht(l[0],Tr(Ue())):Ht(kn(l,1),Tr(Ue()));var p=l.length;return st(function(w){for(var A=-1,I=Hn(w.length,p);++A<I;)w[A]=l[A].call(this,w[A]);return Sr(s,this,w)})}),Tm=st(function(s,l){var p=No(l,Ns(Tm));return oo(s,E,n,l,p)}),X4=st(function(s,l){var p=No(l,Ns(X4));return oo(s,T,n,l,p)}),_F=ao(function(s,l){return oo(s,S,n,n,n,l)});function RF(s,l){if(typeof s!="function")throw new Kr(a);return l=l===n?l:nt(l),st(s,l)}function OF(s,l){if(typeof s!="function")throw new Kr(a);return l=l==null?0:bn(nt(l),0),st(function(p){var w=p[l],A=Wo(p,0,l);return w&&Vo(A,w),Sr(s,this,A)})}function MF(s,l,p){var w=!0,A=!0;if(typeof s!="function")throw new Kr(a);return Zt(p)&&(w="leading"in p?!!p.leading:w,A="trailing"in p?!!p.trailing:A),J4(s,l,{leading:w,maxWait:l,trailing:A})}function FF(s){return H4(s,1)}function kF(s,l){return Tm(dm(l),s)}function BF(){if(!arguments.length)return[];var s=arguments[0];return Xe(s)?s:[s]}function IF(s){return zr(s,g)}function LF(s,l){return l=typeof l=="function"?l:n,zr(s,g,l)}function VF(s){return zr(s,h|g)}function NF(s,l){return l=typeof l=="function"?l:n,zr(s,h|g,l)}function jF(s,l){return l==null||V1(s,l,Sn(l))}function fi(s,l){return s===l||s!==s&&l!==l}var KF=Vd(Qp),UF=Vd(function(s,l){return s>=l}),Ma=W1(function(){return arguments}())?W1:function(s){return on(s)&&At.call(s,"callee")&&!R1.call(s,"callee")},Xe=se.isArray,zF=Ca?Tr(Ca):XO;function gr(s){return s!=null&&qd(s.length)&&!uo(s)}function sn(s){return on(s)&&gr(s)}function WF(s){return s===!0||s===!1||on(s)&&ir(s)==ne}var Ho=oO||Lm,HF=h1?Tr(h1):QO;function GF(s){return on(s)&&s.nodeType===1&&!Cl(s)}function qF(s){if(s==null)return!0;if(gr(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||Ho(s)||js(s)||Ma(s)))return!s.length;var l=Gn(s);if(l==et||l==pe)return!s.size;if(Dl(s))return!nm(s).length;for(var p in s)if(At.call(s,p))return!1;return!0}function YF(s,l){return $l(s,l)}function ZF(s,l,p){p=typeof p=="function"?p:n;var w=p?p(s,l):n;return w===n?$l(s,l,n,p):!!w}function Am(s){if(!on(s))return!1;var l=ir(s);return l==he||l==xe||typeof s.message=="string"&&typeof s.name=="string"&&!Cl(s)}function JF(s){return typeof s=="number"&&M1(s)}function uo(s){if(!Zt(s))return!1;var l=ir(s);return l==le||l==Fe||l==$e||l==Z}function Q4(s){return typeof s=="number"&&s==nt(s)}function qd(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=M}function Zt(s){var l=typeof s;return s!=null&&(l=="object"||l=="function")}function on(s){return s!=null&&typeof s=="object"}var e3=p1?Tr(p1):tM;function XF(s,l){return s===l||tm(s,l,vm(l))}function QF(s,l,p){return p=typeof p=="function"?p:n,tm(s,l,vm(l),p)}function e8(s){return t3(s)&&s!=+s}function t8(s){if(LM(s))throw new Je(o);return H1(s)}function n8(s){return s===null}function r8(s){return s==null}function t3(s){return typeof s=="number"||on(s)&&ir(s)==dt}function Cl(s){if(!on(s)||ir(s)!=yt)return!1;var l=xd(s);if(l===null)return!0;var p=At.call(l,"constructor")&&l.constructor;return typeof p=="function"&&p instanceof p&&yd.call(p)==QR}var Pm=m1?Tr(m1):nM;function i8(s){return Q4(s)&&s>=-9007199254740991&&s<=M}var n3=g1?Tr(g1):rM;function Yd(s){return typeof s=="string"||!Xe(s)&&on(s)&&ir(s)==Ce}function Pr(s){return typeof s=="symbol"||on(s)&&ir(s)==De}var js=y1?Tr(y1):iM;function o8(s){return s===n}function a8(s){return on(s)&&Gn(s)==Ve}function s8(s){return on(s)&&ir(s)==mt}var u8=Vd(rm),l8=Vd(function(s,l){return s<=l});function r3(s){if(!s)return[];if(gr(s))return Yd(s)?ci(s):mr(s);if(fl&&s[fl])return jR(s[fl]());var l=Gn(s),p=l==et?zp:l==pe?pd:Ks;return p(s)}function lo(s){if(!s)return s===0?s:0;if(s=Gr(s),s===_||s===-1/0){var l=s<0?-1:1;return l*Y}return s===s?s:0}function nt(s){var l=lo(s),p=l%1;return l===l?p?l-p:l:0}function i3(s){return s?Pa(nt(s),0,z):0}function Gr(s){if(typeof s=="number")return s;if(Pr(s))return V;if(Zt(s)){var l=typeof s.valueOf=="function"?s.valueOf():s;s=Zt(l)?l+"":l}if(typeof s!="string")return s===0?s:+s;s=D1(s);var p=Mo.test(s);return p||gt.test(s)?Un(s.slice(2),p?2:8):Oo.test(s)?V:+s}function o3(s){return Oi(s,yr(s))}function c8(s){return s?Pa(nt(s),-9007199254740991,M):s===0?s:0}function Dt(s){return s==null?"":Ar(s)}var d8=Ls(function(s,l){if(Dl(l)||gr(l)){Oi(l,Sn(l),s);return}for(var p in l)At.call(l,p)&&yl(s,p,l[p])}),a3=Ls(function(s,l){Oi(l,yr(l),s)}),Zd=Ls(function(s,l,p,w){Oi(l,yr(l),s,w)}),f8=Ls(function(s,l,p,w){Oi(l,Sn(l),s,w)}),h8=ao(Zp);function p8(s,l){var p=Is(s);return l==null?p:L1(p,l)}var m8=st(function(s,l){s=It(s);var p=-1,w=l.length,A=w>2?l[2]:n;for(A&&or(l[0],l[1],A)&&(w=1);++p<w;)for(var I=l[p],H=yr(I),J=-1,ee=H.length;++J<ee;){var me=H[J],ge=s[me];(ge===n||fi(ge,Fs[me])&&!At.call(s,me))&&(s[me]=I[me])}return s}),g8=st(function(s){return s.push(n,D4),Sr(s3,n,s)});function y8(s,l){return b1(s,Ue(l,3),Ri)}function v8(s,l){return b1(s,Ue(l,3),Xp)}function b8(s,l){return s==null?s:Jp(s,Ue(l,3),yr)}function $8(s,l){return s==null?s:U1(s,Ue(l,3),yr)}function x8(s,l){return s&&Ri(s,Ue(l,3))}function w8(s,l){return s&&Xp(s,Ue(l,3))}function D8(s){return s==null?[]:Rd(s,Sn(s))}function E8(s){return s==null?[]:Rd(s,yr(s))}function _m(s,l,p){var w=s==null?n:_a(s,l);return w===n?p:w}function C8(s,l){return s!=null&&S4(s,l,qO)}function Rm(s,l){return s!=null&&S4(s,l,YO)}var S8=v4(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=vd.call(l)),s[l]=p},Mm(vr)),T8=v4(function(s,l,p){l!=null&&typeof l.toString!="function"&&(l=vd.call(l)),At.call(s,l)?s[l].push(p):s[l]=[p]},Ue),A8=st(bl);function Sn(s){return gr(s)?B1(s):nm(s)}function yr(s){return gr(s)?B1(s,!0):oM(s)}function P8(s,l){var p={};return l=Ue(l,3),Ri(s,function(w,A,I){io(p,l(w,A,I),w)}),p}function _8(s,l){var p={};return l=Ue(l,3),Ri(s,function(w,A,I){io(p,A,l(w,A,I))}),p}var R8=Ls(function(s,l,p){Od(s,l,p)}),s3=Ls(function(s,l,p,w){Od(s,l,p,w)}),O8=ao(function(s,l){var p={};if(s==null)return p;var w=!1;l=Ht(l,function(I){return I=zo(I,s),w||(w=I.length>1),I}),Oi(s,gm(s),p),w&&(p=zr(p,h|m|g,SM));for(var A=l.length;A--;)um(p,l[A]);return p});function M8(s,l){return u3(s,Gd(Ue(l)))}var F8=ao(function(s,l){return s==null?{}:sM(s,l)});function u3(s,l){if(s==null)return{};var p=Ht(gm(s),function(w){return[w]});return l=Ue(l),Q1(s,p,function(w,A){return l(w,A[0])})}function k8(s,l,p){l=zo(l,s);var w=-1,A=l.length;for(A||(A=1,s=n);++w<A;){var I=s==null?n:s[Mi(l[w])];I===n&&(w=A,I=p),s=uo(I)?I.call(s):I}return s}function B8(s,l,p){return s==null?s:xl(s,l,p)}function I8(s,l,p,w){return w=typeof w=="function"?w:n,s==null?s:xl(s,l,p,w)}var l3=x4(Sn),c3=x4(yr);function L8(s,l,p){var w=Xe(s),A=w||Ho(s)||js(s);if(l=Ue(l,4),p==null){var I=s&&s.constructor;A?p=w?new I:[]:Zt(s)?p=uo(I)?Is(xd(s)):{}:p={}}return(A?jr:Ri)(s,function(H,J,ee){return l(p,H,J,ee)}),p}function V8(s,l){return s==null?!0:um(s,l)}function N8(s,l,p){return s==null?s:i4(s,l,dm(p))}function j8(s,l,p,w){return w=typeof w=="function"?w:n,s==null?s:i4(s,l,dm(p),w)}function Ks(s){return s==null?[]:Up(s,Sn(s))}function K8(s){return s==null?[]:Up(s,yr(s))}function U8(s,l,p){return p===n&&(p=l,l=n),p!==n&&(p=Gr(p),p=p===p?p:0),l!==n&&(l=Gr(l),l=l===l?l:0),Pa(Gr(s),l,p)}function z8(s,l,p){return l=lo(l),p===n?(p=l,l=0):p=lo(p),s=Gr(s),ZO(s,l,p)}function W8(s,l,p){if(p&&typeof p!="boolean"&&or(s,l,p)&&(l=p=n),p===n&&(typeof l=="boolean"?(p=l,l=n):typeof s=="boolean"&&(p=s,s=n)),s===n&&l===n?(s=0,l=1):(s=lo(s),l===n?(l=s,s=0):l=lo(l)),s>l){var w=s;s=l,l=w}if(p||s%1||l%1){var A=F1();return Hn(s+A*(l-s+yn("1e-"+((A+"").length-1))),l)}return om(s,l)}var H8=Vs(function(s,l,p){return l=l.toLowerCase(),s+(p?d3(l):l)});function d3(s){return Om(Dt(s).toLowerCase())}function f3(s){return s=Dt(s),s&&s.replace(pr,BR).replace(Mp,"")}function G8(s,l,p){s=Dt(s),l=Ar(l);var w=s.length;p=p===n?w:Pa(nt(p),0,w);var A=p;return p-=l.length,p>=0&&s.slice(p,A)==l}function q8(s){return s=Dt(s),s&&Vt.test(s)?s.replace(En,IR):s}function Y8(s){return s=Dt(s),s&&Ye.test(s)?s.replace(je,"\\$&"):s}var Z8=Vs(function(s,l,p){return s+(p?"-":"")+l.toLowerCase()}),J8=Vs(function(s,l,p){return s+(p?" ":"")+l.toLowerCase()}),X8=m4("toLowerCase");function Q8(s,l,p){s=Dt(s),l=nt(l);var w=l?Os(s):0;if(!l||w>=l)return s;var A=(l-w)/2;return Ld(Cd(A),p)+s+Ld(Ed(A),p)}function ek(s,l,p){s=Dt(s),l=nt(l);var w=l?Os(s):0;return l&&w<l?s+Ld(l-w,p):s}function tk(s,l,p){s=Dt(s),l=nt(l);var w=l?Os(s):0;return l&&w<l?Ld(l-w,p)+s:s}function nk(s,l,p){return p||l==null?l=0:l&&(l=+l),lO(Dt(s).replace(Ft,""),l||0)}function rk(s,l,p){return(p?or(s,l,p):l===n)?l=1:l=nt(l),am(Dt(s),l)}function ik(){var s=arguments,l=Dt(s[0]);return s.length<3?l:l.replace(s[1],s[2])}var ok=Vs(function(s,l,p){return s+(p?"_":"")+l.toLowerCase()});function ak(s,l,p){return p&&typeof p!="number"&&or(s,l,p)&&(l=p=n),p=p===n?z:p>>>0,p?(s=Dt(s),s&&(typeof l=="string"||l!=null&&!Pm(l))&&(l=Ar(l),!l&&Rs(s))?Wo(ci(s),0,p):s.split(l,p)):[]}var sk=Vs(function(s,l,p){return s+(p?" ":"")+Om(l)});function uk(s,l,p){return s=Dt(s),p=p==null?0:Pa(nt(p),0,s.length),l=Ar(l),s.slice(p,p+l.length)==l}function lk(s,l,p){var w=R.templateSettings;p&&or(s,l,p)&&(l=n),s=Dt(s),l=Zd({},l,w,w4);var A=Zd({},l.imports,w.imports,w4),I=Sn(A),H=Up(A,I),J,ee,me=0,ge=l.interpolate||Kn,we="__p += '",Pe=Wp((l.escape||Kn).source+"|"+ge.source+"|"+(ge===tt?ba:Kn).source+"|"+(l.evaluate||Kn).source+"|$","g"),Le="//# sourceURL="+(At.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ll+"]")+`
|
|
68
|
+
`;s.replace(Pe,function(He,lt,ht,_r,ar,Rr){return ht||(ht=_r),we+=s.slice(me,Rr).replace(ko,LR),lt&&(J=!0,we+=`' +
|
|
69
|
+
__e(`+lt+`) +
|
|
70
|
+
'`),ar&&(ee=!0,we+=`';
|
|
71
|
+
`+ar+`;
|
|
72
|
+
__p += '`),ht&&(we+=`' +
|
|
73
|
+
((__t = (`+ht+`)) == null ? '' : __t) +
|
|
74
|
+
'`),me=Rr+He.length,He}),we+=`';
|
|
75
|
+
`;var We=At.call(l,"variable")&&l.variable;if(!We)we=`with (obj) {
|
|
76
|
+
`+we+`
|
|
77
|
+
}
|
|
78
|
+
`;else if(wt.test(We))throw new Je(u);we=(ee?we.replace(er,""):we).replace(On,"$1").replace(tr,"$1;"),we="function("+(We||"obj")+`) {
|
|
79
|
+
`+(We?"":`obj || (obj = {});
|
|
80
|
+
`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join;
|
|
81
|
+
function print() { __p += __j.call(arguments, '') }
|
|
82
|
+
`:`;
|
|
83
|
+
`)+we+`return __p
|
|
84
|
+
}`;var ot=p3(function(){return bt(I,Le+"return "+we).apply(n,H)});if(ot.source=we,Am(ot))throw ot;return ot}function ck(s){return Dt(s).toLowerCase()}function dk(s){return Dt(s).toUpperCase()}function fk(s,l,p){if(s=Dt(s),s&&(p||l===n))return D1(s);if(!s||!(l=Ar(l)))return s;var w=ci(s),A=ci(l),I=E1(w,A),H=C1(w,A)+1;return Wo(w,I,H).join("")}function hk(s,l,p){if(s=Dt(s),s&&(p||l===n))return s.slice(0,T1(s)+1);if(!s||!(l=Ar(l)))return s;var w=ci(s),A=C1(w,ci(l))+1;return Wo(w,0,A).join("")}function pk(s,l,p){if(s=Dt(s),s&&(p||l===n))return s.replace(Ft,"");if(!s||!(l=Ar(l)))return s;var w=ci(s),A=E1(w,ci(l));return Wo(w,A).join("")}function mk(s,l){var p=O,w=F;if(Zt(l)){var A="separator"in l?l.separator:A;p="length"in l?nt(l.length):p,w="omission"in l?Ar(l.omission):w}s=Dt(s);var I=s.length;if(Rs(s)){var H=ci(s);I=H.length}if(p>=I)return s;var J=p-Os(w);if(J<1)return w;var ee=H?Wo(H,0,J).join(""):s.slice(0,J);if(A===n)return ee+w;if(H&&(J+=ee.length-J),Pm(A)){if(s.slice(J).search(A)){var me,ge=ee;for(A.global||(A=Wp(A.source,Dt(hr.exec(A))+"g")),A.lastIndex=0;me=A.exec(ge);)var we=me.index;ee=ee.slice(0,we===n?J:we)}}else if(s.indexOf(Ar(A),J)!=J){var Pe=ee.lastIndexOf(A);Pe>-1&&(ee=ee.slice(0,Pe))}return ee+w}function gk(s){return s=Dt(s),s&&Ir.test(s)?s.replace(Nn,WR):s}var yk=Vs(function(s,l,p){return s+(p?" ":"")+l.toUpperCase()}),Om=m4("toUpperCase");function h3(s,l,p){return s=Dt(s),l=p?n:l,l===n?NR(s)?qR(s):RR(s):s.match(l)||[]}var p3=st(function(s,l){try{return Sr(s,n,l)}catch(p){return Am(p)?p:new Je(p)}}),vk=ao(function(s,l){return jr(l,function(p){p=Mi(p),io(s,p,Sm(s[p],s))}),s});function bk(s){var l=s==null?0:s.length,p=Ue();return s=l?Ht(s,function(w){if(typeof w[1]!="function")throw new Kr(a);return[p(w[0]),w[1]]}):[],st(function(w){for(var A=-1;++A<l;){var I=s[A];if(Sr(I[0],this,w))return Sr(I[1],this,w)}})}function $k(s){return WO(zr(s,h))}function Mm(s){return function(){return s}}function xk(s,l){return s==null||s!==s?l:s}var wk=y4(),Dk=y4(!0);function vr(s){return s}function Fm(s){return G1(typeof s=="function"?s:zr(s,h))}function Ek(s){return Y1(zr(s,h))}function Ck(s,l){return Z1(s,zr(l,h))}var Sk=st(function(s,l){return function(p){return bl(p,s,l)}}),Tk=st(function(s,l){return function(p){return bl(s,p,l)}});function km(s,l,p){var w=Sn(l),A=Rd(l,w);p==null&&!(Zt(l)&&(A.length||!w.length))&&(p=l,l=s,s=this,A=Rd(l,Sn(l)));var I=!(Zt(p)&&"chain"in p)||!!p.chain,H=uo(s);return jr(A,function(J){var ee=l[J];s[J]=ee,H&&(s.prototype[J]=function(){var me=this.__chain__;if(I||me){var ge=s(this.__wrapped__),we=ge.__actions__=mr(this.__actions__);return we.push({func:ee,args:arguments,thisArg:s}),ge.__chain__=me,ge}return ee.apply(s,Vo([this.value()],arguments))})}),s}function Ak(){return pn._===this&&(pn._=eO),this}function Bm(){}function Pk(s){return s=nt(s),st(function(l){return J1(l,s)})}var _k=hm(Ht),Rk=hm(v1),Ok=hm(Lp);function m3(s){return $m(s)?Vp(Mi(s)):uM(s)}function Mk(s){return function(l){return s==null?n:_a(s,l)}}var Fk=b4(),kk=b4(!0);function Im(){return[]}function Lm(){return!1}function Bk(){return{}}function Ik(){return""}function Lk(){return!0}function Vk(s,l){if(s=nt(s),s<1||s>M)return[];var p=z,w=Hn(s,z);l=Ue(l),s-=z;for(var A=Kp(w,l);++p<s;)l(p);return A}function Nk(s){return Xe(s)?Ht(s,Mi):Pr(s)?[s]:mr(k4(Dt(s)))}function jk(s){var l=++XR;return Dt(s)+l}var Kk=Id(function(s,l){return s+l},0),Uk=pm("ceil"),zk=Id(function(s,l){return s/l},1),Wk=pm("floor");function Hk(s){return s&&s.length?_d(s,vr,Qp):n}function Gk(s,l){return s&&s.length?_d(s,Ue(l,2),Qp):n}function qk(s){return x1(s,vr)}function Yk(s,l){return x1(s,Ue(l,2))}function Zk(s){return s&&s.length?_d(s,vr,rm):n}function Jk(s,l){return s&&s.length?_d(s,Ue(l,2),rm):n}var Xk=Id(function(s,l){return s*l},1),Qk=pm("round"),eB=Id(function(s,l){return s-l},0);function tB(s){return s&&s.length?jp(s,vr):0}function nB(s,l){return s&&s.length?jp(s,Ue(l,2)):0}return R.after=EF,R.ary=H4,R.assign=d8,R.assignIn=a3,R.assignInWith=Zd,R.assignWith=f8,R.at=h8,R.before=G4,R.bind=Sm,R.bindAll=vk,R.bindKey=q4,R.castArray=BF,R.chain=U4,R.chunk=WM,R.compact=HM,R.concat=GM,R.cond=bk,R.conforms=$k,R.constant=Mm,R.countBy=tF,R.create=p8,R.curry=Y4,R.curryRight=Z4,R.debounce=J4,R.defaults=m8,R.defaultsDeep=g8,R.defer=CF,R.delay=SF,R.difference=qM,R.differenceBy=YM,R.differenceWith=ZM,R.drop=JM,R.dropRight=XM,R.dropRightWhile=QM,R.dropWhile=e9,R.fill=t9,R.filter=rF,R.flatMap=aF,R.flatMapDeep=sF,R.flatMapDepth=uF,R.flatten=V4,R.flattenDeep=n9,R.flattenDepth=r9,R.flip=TF,R.flow=wk,R.flowRight=Dk,R.fromPairs=i9,R.functions=D8,R.functionsIn=E8,R.groupBy=lF,R.initial=a9,R.intersection=s9,R.intersectionBy=u9,R.intersectionWith=l9,R.invert=S8,R.invertBy=T8,R.invokeMap=dF,R.iteratee=Fm,R.keyBy=fF,R.keys=Sn,R.keysIn=yr,R.map=zd,R.mapKeys=P8,R.mapValues=_8,R.matches=Ek,R.matchesProperty=Ck,R.memoize=Hd,R.merge=R8,R.mergeWith=s3,R.method=Sk,R.methodOf=Tk,R.mixin=km,R.negate=Gd,R.nthArg=Pk,R.omit=O8,R.omitBy=M8,R.once=AF,R.orderBy=hF,R.over=_k,R.overArgs=PF,R.overEvery=Rk,R.overSome=Ok,R.partial=Tm,R.partialRight=X4,R.partition=pF,R.pick=F8,R.pickBy=u3,R.property=m3,R.propertyOf=Mk,R.pull=h9,R.pullAll=j4,R.pullAllBy=p9,R.pullAllWith=m9,R.pullAt=g9,R.range=Fk,R.rangeRight=kk,R.rearg=_F,R.reject=yF,R.remove=y9,R.rest=RF,R.reverse=Em,R.sampleSize=bF,R.set=B8,R.setWith=I8,R.shuffle=$F,R.slice=v9,R.sortBy=DF,R.sortedUniq=C9,R.sortedUniqBy=S9,R.split=ak,R.spread=OF,R.tail=T9,R.take=A9,R.takeRight=P9,R.takeRightWhile=_9,R.takeWhile=R9,R.tap=H9,R.throttle=MF,R.thru=Ud,R.toArray=r3,R.toPairs=l3,R.toPairsIn=c3,R.toPath=Nk,R.toPlainObject=o3,R.transform=L8,R.unary=FF,R.union=O9,R.unionBy=M9,R.unionWith=F9,R.uniq=k9,R.uniqBy=B9,R.uniqWith=I9,R.unset=V8,R.unzip=Cm,R.unzipWith=K4,R.update=N8,R.updateWith=j8,R.values=Ks,R.valuesIn=K8,R.without=L9,R.words=h3,R.wrap=kF,R.xor=V9,R.xorBy=N9,R.xorWith=j9,R.zip=K9,R.zipObject=U9,R.zipObjectDeep=z9,R.zipWith=W9,R.entries=l3,R.entriesIn=c3,R.extend=a3,R.extendWith=Zd,km(R,R),R.add=Kk,R.attempt=p3,R.camelCase=H8,R.capitalize=d3,R.ceil=Uk,R.clamp=U8,R.clone=IF,R.cloneDeep=VF,R.cloneDeepWith=NF,R.cloneWith=LF,R.conformsTo=jF,R.deburr=f3,R.defaultTo=xk,R.divide=zk,R.endsWith=G8,R.eq=fi,R.escape=q8,R.escapeRegExp=Y8,R.every=nF,R.find=iF,R.findIndex=I4,R.findKey=y8,R.findLast=oF,R.findLastIndex=L4,R.findLastKey=v8,R.floor=Wk,R.forEach=z4,R.forEachRight=W4,R.forIn=b8,R.forInRight=$8,R.forOwn=x8,R.forOwnRight=w8,R.get=_m,R.gt=KF,R.gte=UF,R.has=C8,R.hasIn=Rm,R.head=N4,R.identity=vr,R.includes=cF,R.indexOf=o9,R.inRange=z8,R.invoke=A8,R.isArguments=Ma,R.isArray=Xe,R.isArrayBuffer=zF,R.isArrayLike=gr,R.isArrayLikeObject=sn,R.isBoolean=WF,R.isBuffer=Ho,R.isDate=HF,R.isElement=GF,R.isEmpty=qF,R.isEqual=YF,R.isEqualWith=ZF,R.isError=Am,R.isFinite=JF,R.isFunction=uo,R.isInteger=Q4,R.isLength=qd,R.isMap=e3,R.isMatch=XF,R.isMatchWith=QF,R.isNaN=e8,R.isNative=t8,R.isNil=r8,R.isNull=n8,R.isNumber=t3,R.isObject=Zt,R.isObjectLike=on,R.isPlainObject=Cl,R.isRegExp=Pm,R.isSafeInteger=i8,R.isSet=n3,R.isString=Yd,R.isSymbol=Pr,R.isTypedArray=js,R.isUndefined=o8,R.isWeakMap=a8,R.isWeakSet=s8,R.join=c9,R.kebabCase=Z8,R.last=Hr,R.lastIndexOf=d9,R.lowerCase=J8,R.lowerFirst=X8,R.lt=u8,R.lte=l8,R.max=Hk,R.maxBy=Gk,R.mean=qk,R.meanBy=Yk,R.min=Zk,R.minBy=Jk,R.stubArray=Im,R.stubFalse=Lm,R.stubObject=Bk,R.stubString=Ik,R.stubTrue=Lk,R.multiply=Xk,R.nth=f9,R.noConflict=Ak,R.noop=Bm,R.now=Wd,R.pad=Q8,R.padEnd=ek,R.padStart=tk,R.parseInt=nk,R.random=W8,R.reduce=mF,R.reduceRight=gF,R.repeat=rk,R.replace=ik,R.result=k8,R.round=Qk,R.runInContext=Q,R.sample=vF,R.size=xF,R.snakeCase=ok,R.some=wF,R.sortedIndex=b9,R.sortedIndexBy=$9,R.sortedIndexOf=x9,R.sortedLastIndex=w9,R.sortedLastIndexBy=D9,R.sortedLastIndexOf=E9,R.startCase=sk,R.startsWith=uk,R.subtract=eB,R.sum=tB,R.sumBy=nB,R.template=lk,R.times=Vk,R.toFinite=lo,R.toInteger=nt,R.toLength=i3,R.toLower=ck,R.toNumber=Gr,R.toSafeInteger=c8,R.toString=Dt,R.toUpper=dk,R.trim=fk,R.trimEnd=hk,R.trimStart=pk,R.truncate=mk,R.unescape=gk,R.uniqueId=jk,R.upperCase=yk,R.upperFirst=Om,R.each=z4,R.eachRight=W4,R.first=N4,km(R,function(){var s={};return Ri(R,function(l,p){At.call(R.prototype,p)||(s[p]=l)}),s}(),{chain:!1}),R.VERSION=r,jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){R[s].placeholder=R}),jr(["drop","take"],function(s,l){ft.prototype[s]=function(p){p=p===n?1:bn(nt(p),0);var w=this.__filtered__&&!l?new ft(this):this.clone();return w.__filtered__?w.__takeCount__=Hn(p,w.__takeCount__):w.__views__.push({size:Hn(p,z),type:s+(w.__dir__<0?"Right":"")}),w},ft.prototype[s+"Right"]=function(p){return this.reverse()[s](p).reverse()}}),jr(["filter","map","takeWhile"],function(s,l){var p=l+1,w=p==W||p==L;ft.prototype[s]=function(A){var I=this.clone();return I.__iteratees__.push({iteratee:Ue(A,3),type:p}),I.__filtered__=I.__filtered__||w,I}}),jr(["head","last"],function(s,l){var p="take"+(l?"Right":"");ft.prototype[s]=function(){return this[p](1).value()[0]}}),jr(["initial","tail"],function(s,l){var p="drop"+(l?"":"Right");ft.prototype[s]=function(){return this.__filtered__?new ft(this):this[p](1)}}),ft.prototype.compact=function(){return this.filter(vr)},ft.prototype.find=function(s){return this.filter(s).head()},ft.prototype.findLast=function(s){return this.reverse().find(s)},ft.prototype.invokeMap=st(function(s,l){return typeof s=="function"?new ft(this):this.map(function(p){return bl(p,s,l)})}),ft.prototype.reject=function(s){return this.filter(Gd(Ue(s)))},ft.prototype.slice=function(s,l){s=nt(s);var p=this;return p.__filtered__&&(s>0||l<0)?new ft(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),l!==n&&(l=nt(l),p=l<0?p.dropRight(-l):p.take(l-s)),p)},ft.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ft.prototype.toArray=function(){return this.take(z)},Ri(ft.prototype,function(s,l){var p=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),A=R[w?"take"+(l=="last"?"Right":""):l],I=w||/^find/.test(l);A&&(R.prototype[l]=function(){var H=this.__wrapped__,J=w?[1]:arguments,ee=H instanceof ft,me=J[0],ge=ee||Xe(H),we=function(lt){var ht=A.apply(R,Vo([lt],J));return w&&Pe?ht[0]:ht};ge&&p&&typeof me=="function"&&me.length!=1&&(ee=ge=!1);var Pe=this.__chain__,Le=!!this.__actions__.length,We=I&&!Pe,ot=ee&&!Le;if(!I&&ge){H=ot?H:new ft(this);var He=s.apply(H,J);return He.__actions__.push({func:Ud,args:[we],thisArg:n}),new Ur(He,Pe)}return We&&ot?s.apply(this,J):(He=this.thru(we),We?w?He.value()[0]:He.value():He)})}),jr(["pop","push","shift","sort","splice","unshift"],function(s){var l=md[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",w=/^(?:pop|shift)$/.test(s);R.prototype[s]=function(){var A=arguments;if(w&&!this.__chain__){var I=this.value();return l.apply(Xe(I)?I:[],A)}return this[p](function(H){return l.apply(Xe(H)?H:[],A)})}}),Ri(ft.prototype,function(s,l){var p=R[l];if(p){var w=p.name+"";At.call(Bs,w)||(Bs[w]=[]),Bs[w].push({name:l,func:p})}}),Bs[Bd(n,x).name]=[{name:"wrapper",func:n}],ft.prototype.clone=gO,ft.prototype.reverse=yO,ft.prototype.value=vO,R.prototype.at=G9,R.prototype.chain=q9,R.prototype.commit=Y9,R.prototype.next=Z9,R.prototype.plant=X9,R.prototype.reverse=Q9,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=eF,R.prototype.first=R.prototype.head,fl&&(R.prototype[fl]=J9),R},Ms=YR();_i?((_i.exports=Ms)._=Ms,Pi._=Ms):pn._=Ms}).call(HI)}(jl,jl.exports)),jl.exports}var mC=GI();const qI=Ao(mC);var Wm={exports:{}};/*!
|
|
85
|
+
Copyright (c) 2018 Jed Watson.
|
|
86
|
+
Licensed under the MIT License (MIT), see
|
|
87
|
+
http://jedwatson.github.io/classnames
|
|
88
|
+
*/var V3;function YI(){return V3||(V3=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var u=arguments[a];u&&(o=i(o,r(u)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var u in o)t.call(o,u)&&o[u]&&(a=i(a,u));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Wm)),Wm.exports}var ZI=YI();const $y=Ao(ZI);/*
|
|
89
|
+
* React Tooltip
|
|
90
|
+
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
91
|
+
* @copyright ReactTooltip Team
|
|
92
|
+
* @license MIT
|
|
93
|
+
*/const JI="react-tooltip-core-styles",XI="react-tooltip-base-styles",N3={core:!1,base:!1};function j3({css:e,id:t=XI,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||N3[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:process.env)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:process.env)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=JI),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const u=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&u.firstChild?u.insertBefore(c,u.firstChild):u.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),N3[n]=!0}const K3=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[fC(Number(i)),hC({fallbackAxisSideDirection:"start"}),jI({padding:5})],border:u})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const c=a;return n?(c.push(KI({element:n,padding:5})),by(e,t,{placement:r,strategy:o,middleware:c}).then(({x:d,y:f,placement:h,middlewareData:m})=>{var g,v;const $={left:`${d}px`,top:`${f}px`,border:u},{x:C,y:x}=(g=m.arrow)!==null&&g!==void 0?g:{x:0,y:0},y=(v={top:"bottom",right:"left",bottom:"top",left:"right"}[h.split("-")[0]])!==null&&v!==void 0?v:"bottom",D=u&&{borderBottom:u,borderRight:u};let P=0;if(u){const E=`${u}`.match(/(\d+)px/);P=E!=null&&E[1]?Number(E[1]):1}return{tooltipStyles:$,tooltipArrowStyles:{left:C!=null?`${C}px`:"",top:x!=null?`${x}px`:"",right:"",bottom:"",...D,[y]:`-${4+P}px`},place:h}})):by(e,t,{placement:"bottom",strategy:o,middleware:c}).then(({x:d,y:f,placement:h})=>({tooltipStyles:{left:`${d}px`,top:`${f}px`},tooltipArrowStyles:{},place:h}))},U3=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),z3=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},W3=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",xy=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>xy(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!W3(e)||!W3(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>xy(e[i],t[i]))},QI=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},H3=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(QI(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},eL=typeof window<"u"?b.useLayoutEffect:b.useEffect,qr=e=>{e.current&&(clearTimeout(e.current),e.current=null)},tL="DEFAULT_TOOLTIP_ID",nL={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},rL=b.createContext({getTooltipData:()=>nL});function gC(e=tL){return b.useContext(rL).getTooltipData(e)}var zs={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"},Hm={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 iL=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:u="top",offset:c=10,events:d=["hover"],openOnClick:f=!1,positionStrategy:h="absolute",middlewares:m,wrapper:g,delayShow:v=0,delayHide:$=0,float:C=!1,hidden:x=!1,noArrow:y=!1,clickable:D=!1,closeOnEsc:P=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:k,closeEvents:S,globalCloseEvents:U,imperativeModeOnly:O,style:F,position:G,afterShow:K,afterHide:W,disableTooltip:j,content:L,contentWrapperRef:_,isOpen:M,defaultIsOpen:Y=!1,setIsOpen:V,activeAnchor:z,setActiveAnchor:re,border:oe,opacity:fe,arrowColor:ie,role:Ee="tooltip"})=>{var $e;const ne=b.useRef(null),ye=b.useRef(null),xe=b.useRef(null),he=b.useRef(null),le=b.useRef(null),[Fe,et]=b.useState({tooltipStyles:{},tooltipArrowStyles:{},place:u}),[dt,Dn]=b.useState(!1),[yt,q]=b.useState(!1),[Z,te]=b.useState(null),pe=b.useRef(!1),Ce=b.useRef(null),{anchorRefs:De,setActiveAnchor:_e}=gC(t),Ve=b.useRef(!1),[mt,ut]=b.useState([]),Rt=b.useRef(!1),Pn=f||d.includes("click"),_n=Pn||(k==null?void 0:k.click)||(k==null?void 0:k.dblclick)||(k==null?void 0:k.mousedown),Yt=k?{...k}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!k&&Pn&&Object.assign(Yt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ln=S?{...S}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!S&&Pn&&Object.assign(Ln,{mouseleave:!1,blur:!1,mouseout:!1});const tn=U?{...U}:{escape:P||!1,scroll:E||!1,resize:T||!1,clickOutsideAnchor:_n||!1};O&&(Object.assign(Yt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ln,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(tn,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),eL(()=>(Rt.current=!0,()=>{Rt.current=!1}),[]);const vt=Te=>{Rt.current&&(Te&&q(!0),setTimeout(()=>{Rt.current&&(V==null||V(Te),M===void 0&&Dn(Te))},10))};b.useEffect(()=>{if(M===void 0)return()=>null;M&&q(!0);const Te=setTimeout(()=>{Dn(M)},10);return()=>{clearTimeout(Te)}},[M]),b.useEffect(()=>{if(dt!==pe.current)if(qr(le),pe.current=dt,dt)K==null||K();else{const Te=(je=>{const Ye=je.match(/^([\d.]+)(ms|s)$/);if(!Ye)return 0;const[,Ft,rn]=Ye;return Number(Ft)*(rn==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));le.current=setTimeout(()=>{q(!1),te(null),W==null||W()},Te+25)}},[dt]);const Vn=Te=>{et(je=>xy(je,Te)?je:Te)},Cr=(Te=v)=>{qr(xe),yt?vt(!0):xe.current=setTimeout(()=>{vt(!0)},Te)},Rn=(Te=$)=>{qr(he),he.current=setTimeout(()=>{Ve.current||vt(!1)},Te)},er=Te=>{var je;if(!Te)return;const Ye=(je=Te.currentTarget)!==null&&je!==void 0?je:Te.target;if(!(Ye!=null&&Ye.isConnected))return re(null),void _e({current:null});v?Cr():vt(!0),re(Ye),_e({current:Ye}),qr(he)},On=()=>{D?Rn($||100):$?Rn():vt(!1),qr(xe)},tr=({x:Te,y:je})=>{var Ye;const Ft={getBoundingClientRect:()=>({x:Te,y:je,width:0,height:0,top:je,left:Te,right:Te,bottom:je})};K3({place:(Ye=Z==null?void 0:Z.place)!==null&&Ye!==void 0?Ye:u,offset:c,elementReference:Ft,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(rn=>{Vn(rn)})},Nn=Te=>{if(!Te)return;const je=Te,Ye={x:je.clientX,y:je.clientY};tr(Ye),Ce.current=Ye},En=Te=>{var je;if(!dt)return;const Ye=Te.target;Ye.isConnected&&(!((je=ne.current)===null||je===void 0)&&je.contains(Ye)||[document.querySelector(`[id='${o}']`),...mt].some(Ft=>Ft==null?void 0:Ft.contains(Ye))||(vt(!1),qr(xe)))},Ir=z3(er,50),Vt=z3(On,50),Cn=Te=>{Vt.cancel(),Ir(Te)},Ne=()=>{Ir.cancel(),Vt()},tt=b.useCallback(()=>{var Te,je;const Ye=(Te=Z==null?void 0:Z.position)!==null&&Te!==void 0?Te:G;Ye?tr(Ye):C?Ce.current&&tr(Ce.current):z!=null&&z.isConnected&&K3({place:(je=Z==null?void 0:Z.place)!==null&&je!==void 0?je:u,offset:c,elementReference:z,tooltipReference:ne.current,tooltipArrowReference:ye.current,strategy:h,middlewares:m,border:oe}).then(Ft=>{Rt.current&&Vn(Ft)})},[dt,z,L,F,u,Z==null?void 0:Z.place,c,h,G,Z==null?void 0:Z.position,C]);b.useEffect(()=>{var Te,je;const Ye=new Set(De);mt.forEach(gt=>{j!=null&&j(gt)||Ye.add({current:gt})});const Ft=document.querySelector(`[id='${o}']`);Ft&&!(j!=null&&j(Ft))&&Ye.add({current:Ft});const rn=()=>{vt(!1)},jn=H3(z),Kt=H3(ne.current);tn.scroll&&(window.addEventListener("scroll",rn),jn==null||jn.addEventListener("scroll",rn),Kt==null||Kt.addEventListener("scroll",rn));let an=null;tn.resize?window.addEventListener("resize",rn):z&&ne.current&&(an=dC(z,ne.current,tt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const kt=gt=>{gt.key==="Escape"&&vt(!1)};tn.escape&&window.addEventListener("keydown",kt),tn.clickOutsideAnchor&&window.addEventListener("click",En);const wt=[],li=gt=>{dt&&(gt==null?void 0:gt.target)===z||er(gt)},ba=gt=>{dt&&(gt==null?void 0:gt.target)===z&&On()},hr=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Oo=["click","dblclick","mousedown","mouseup"];Object.entries(Yt).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Cn}):Oo.includes(gt)&&wt.push({event:gt,listener:li}))}),Object.entries(Ln).forEach(([gt,nr])=>{nr&&(hr.includes(gt)?wt.push({event:gt,listener:Ne}):Oo.includes(gt)&&wt.push({event:gt,listener:ba}))}),C&&wt.push({event:"pointermove",listener:Nn});const Mo=()=>{Ve.current=!0},Fo=()=>{Ve.current=!1,On()};return D&&!_n&&((Te=ne.current)===null||Te===void 0||Te.addEventListener("mouseenter",Mo),(je=ne.current)===null||je===void 0||je.addEventListener("mouseleave",Fo)),wt.forEach(({event:gt,listener:nr})=>{Ye.forEach(pr=>{var Kn;(Kn=pr.current)===null||Kn===void 0||Kn.addEventListener(gt,nr)})}),()=>{var gt,nr;tn.scroll&&(window.removeEventListener("scroll",rn),jn==null||jn.removeEventListener("scroll",rn),Kt==null||Kt.removeEventListener("scroll",rn)),tn.resize?window.removeEventListener("resize",rn):an==null||an(),tn.clickOutsideAnchor&&window.removeEventListener("click",En),tn.escape&&window.removeEventListener("keydown",kt),D&&!_n&&((gt=ne.current)===null||gt===void 0||gt.removeEventListener("mouseenter",Mo),(nr=ne.current)===null||nr===void 0||nr.removeEventListener("mouseleave",Fo)),wt.forEach(({event:pr,listener:Kn})=>{Ye.forEach(ko=>{var Lr;(Lr=ko.current)===null||Lr===void 0||Lr.removeEventListener(pr,Kn)})})}},[z,tt,yt,De,mt,k,S,U,Pn,v,$]),b.useEffect(()=>{var Te,je;let Ye=(je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a)!==null&&je!==void 0?je:"";!Ye&&t&&(Ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ft=new MutationObserver(rn=>{const jn=[],Kt=[];rn.forEach(an=>{if(an.type==="attributes"&&an.attributeName==="data-tooltip-id"&&(an.target.getAttribute("data-tooltip-id")===t?jn.push(an.target):an.oldValue===t&&Kt.push(an.target)),an.type==="childList"){if(z){const kt=[...an.removedNodes].filter(wt=>wt.nodeType===1);if(Ye)try{Kt.push(...kt.filter(wt=>wt.matches(Ye))),Kt.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}kt.some(wt=>{var li;return!!(!((li=wt==null?void 0:wt.contains)===null||li===void 0)&&li.call(wt,z))&&(q(!1),vt(!1),re(null),qr(xe),qr(he),!0)})}if(Ye)try{const kt=[...an.addedNodes].filter(wt=>wt.nodeType===1);jn.push(...kt.filter(wt=>wt.matches(Ye))),jn.push(...kt.flatMap(wt=>[...wt.querySelectorAll(Ye)]))}catch{}}}),(jn.length||Kt.length)&&ut(an=>[...an.filter(kt=>!Kt.includes(kt)),...jn])});return Ft.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ft.disconnect()}},[t,a,Z==null?void 0:Z.anchorSelect,z]),b.useEffect(()=>{tt()},[tt]),b.useEffect(()=>{if(!(_!=null&&_.current))return()=>null;const Te=new ResizeObserver(()=>{setTimeout(()=>tt())});return Te.observe(_.current),()=>{Te.disconnect()}},[L,_==null?void 0:_.current]),b.useEffect(()=>{var Te;const je=document.querySelector(`[id='${o}']`),Ye=[...mt,je];z&&Ye.includes(z)||re((Te=mt[0])!==null&&Te!==void 0?Te:je)},[o,mt,z]),b.useEffect(()=>(Y&&vt(!0),()=>{qr(xe),qr(he)}),[]),b.useEffect(()=>{var Te;let je=(Te=Z==null?void 0:Z.anchorSelect)!==null&&Te!==void 0?Te:a;if(!je&&t&&(je=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),je)try{const Ye=Array.from(document.querySelectorAll(je));ut(Ye)}catch{ut([])}},[t,a,Z==null?void 0:Z.anchorSelect]),b.useEffect(()=>{xe.current&&(qr(xe),Cr(v))},[v]);const nn=($e=Z==null?void 0:Z.content)!==null&&$e!==void 0?$e:L,fr=dt&&Object.keys(Fe.tooltipStyles).length>0;return b.useImperativeHandle(e,()=>({open:Te=>{if(Te!=null&&Te.anchorSelect)try{document.querySelector(Te.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${Te.anchorSelect}" is not a valid CSS selector`)}te(Te??null),Te!=null&&Te.delay?Cr(Te.delay):vt(!0)},close:Te=>{Te!=null&&Te.delay?Rn(Te.delay):vt(!1)},activeAnchor:z,place:Fe.place,isOpen:!!(yt&&!x&&nn&&fr)})),yt&&!x&&nn?b.createElement(g,{id:t,role:Ee,className:$y("react-tooltip",zs.tooltip,Hm.tooltip,Hm[i],n,`react-tooltip__place-${Fe.place}`,zs[fr?"show":"closing"],fr?"react-tooltip__show":"react-tooltip__closing",h==="fixed"&&zs.fixed,D&&zs.clickable),onTransitionEnd:Te=>{qr(le),dt||Te.propertyName!=="opacity"||(q(!1),te(null),W==null||W())},style:{...F,...Fe.tooltipStyles,opacity:fe!==void 0&&fr?fe:void 0},ref:ne},nn,b.createElement(g,{className:$y("react-tooltip-arrow",zs.arrow,Hm.arrow,r,y&&zs.noArrow),style:{...Fe.tooltipArrowStyles,background:ie?`linear-gradient(to right bottom, transparent 50%, ${ie} 50%)`:void 0},ref:ye})):null},oL=({content:e})=>b.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),aL=b.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:u,variant:c="dark",place:d="top",offset:f=10,wrapper:h="div",children:m=null,events:g=["hover"],openOnClick:v=!1,positionStrategy:$="absolute",middlewares:C,delayShow:x=0,delayHide:y=0,float:D=!1,hidden:P=!1,noArrow:E=!1,clickable:T=!1,closeOnEsc:k=!1,closeOnScroll:S=!1,closeOnResize:U=!1,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K=!1,style:W,position:j,isOpen:L,defaultIsOpen:_=!1,disableStyleInjection:M=!1,border:Y,opacity:V,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,role:Ee="tooltip"},$e)=>{const[ne,ye]=b.useState(r),[xe,he]=b.useState(i),[le,Fe]=b.useState(d),[et,dt]=b.useState(c),[Dn,yt]=b.useState(f),[q,Z]=b.useState(x),[te,pe]=b.useState(y),[Ce,De]=b.useState(D),[_e,Ve]=b.useState(P),[mt,ut]=b.useState(h),[Rt,Pn]=b.useState(g),[_n,Yt]=b.useState($),[Ln,tn]=b.useState(null),[vt,Vn]=b.useState(null),Cr=b.useRef(M),{anchorRefs:Rn,activeAnchor:er}=gC(e),On=Vt=>Vt==null?void 0:Vt.getAttributeNames().reduce((Cn,Ne)=>{var tt;return Ne.startsWith("data-tooltip-")&&(Cn[Ne.replace(/^data-tooltip-/,"")]=(tt=Vt==null?void 0:Vt.getAttribute(Ne))!==null&&tt!==void 0?tt:null),Cn},{}),tr=Vt=>{const Cn={place:Ne=>{var tt;Fe((tt=Ne)!==null&&tt!==void 0?tt:d)},content:Ne=>{ye(Ne??r)},html:Ne=>{he(Ne??i)},variant:Ne=>{var tt;dt((tt=Ne)!==null&&tt!==void 0?tt:c)},offset:Ne=>{yt(Ne===null?f:Number(Ne))},wrapper:Ne=>{var tt;ut((tt=Ne)!==null&&tt!==void 0?tt:h)},events:Ne=>{const tt=Ne==null?void 0:Ne.split(" ");Pn(tt??g)},"position-strategy":Ne=>{var tt;Yt((tt=Ne)!==null&&tt!==void 0?tt:$)},"delay-show":Ne=>{Z(Ne===null?x:Number(Ne))},"delay-hide":Ne=>{pe(Ne===null?y:Number(Ne))},float:Ne=>{De(Ne===null?D:Ne==="true")},hidden:Ne=>{Ve(Ne===null?P:Ne==="true")},"class-name":Ne=>{tn(Ne)}};Object.values(Cn).forEach(Ne=>Ne(null)),Object.entries(Vt).forEach(([Ne,tt])=>{var nn;(nn=Cn[Ne])===null||nn===void 0||nn.call(Cn,tt)})};b.useEffect(()=>{ye(r)},[r]),b.useEffect(()=>{he(i)},[i]),b.useEffect(()=>{Fe(d)},[d]),b.useEffect(()=>{dt(c)},[c]),b.useEffect(()=>{yt(f)},[f]),b.useEffect(()=>{Z(x)},[x]),b.useEffect(()=>{pe(y)},[y]),b.useEffect(()=>{De(D)},[D]),b.useEffect(()=>{Ve(P)},[P]),b.useEffect(()=>{Yt($)},[$]),b.useEffect(()=>{Cr.current!==M&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[M]),b.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:M==="core",disableBase:M}}))},[]),b.useEffect(()=>{var Vt;const Cn=new Set(Rn);let Ne=n;if(!Ne&&e&&(Ne=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ne)try{document.querySelectorAll(Ne).forEach(je=>{Cn.add({current:je})})}catch{console.warn(`[react-tooltip] "${Ne}" is not a valid CSS selector`)}const tt=document.querySelector(`[id='${t}']`);if(tt&&Cn.add({current:tt}),!Cn.size)return()=>null;const nn=(Vt=vt??tt)!==null&&Vt!==void 0?Vt:er.current,fr=new MutationObserver(je=>{je.forEach(Ye=>{var Ft;if(!nn||Ye.type!=="attributes"||!(!((Ft=Ye.attributeName)===null||Ft===void 0)&&Ft.startsWith("data-tooltip-")))return;const rn=On(nn);tr(rn)})}),Te={attributes:!0,childList:!1,subtree:!1};if(nn){const je=On(nn);tr(je),fr.observe(nn,Te)}return()=>{fr.disconnect()}},[Rn,er,vt,t,n]),b.useEffect(()=>{W!=null&&W.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Y&&!U3("border",`${Y}`)&&console.warn(`[react-tooltip] "${Y}" is not a valid \`border\`.`),W!=null&&W.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),V&&!U3("opacity",`${V}`)&&console.warn(`[react-tooltip] "${V}" is not a valid \`opacity\`.`)},[]);let Nn=m;const En=b.useRef(null);if(o){const Vt=o({content:(vt==null?void 0:vt.getAttribute("data-tooltip-content"))||ne||null,activeAnchor:vt});Nn=Vt?b.createElement("div",{ref:En,className:"react-tooltip-content-wrapper"},Vt):null}else ne&&(Nn=ne);xe&&(Nn=b.createElement(oL,{content:xe}));const Ir={forwardRef:$e,id:e,anchorId:t,anchorSelect:n,className:$y(a,Ln),classNameArrow:u,content:Nn,contentWrapperRef:En,place:le,variant:et,offset:Dn,wrapper:mt,events:Rt,openOnClick:v,positionStrategy:_n,middlewares:C,delayShow:q,delayHide:te,float:Ce,hidden:_e,noArrow:E,clickable:T,closeOnEsc:k,closeOnScroll:S,closeOnResize:U,openEvents:O,closeEvents:F,globalCloseEvents:G,imperativeModeOnly:K,style:W,position:j,isOpen:L,defaultIsOpen:_,border:Y,opacity:V,arrowColor:z,setIsOpen:re,afterShow:oe,afterHide:fe,disableTooltip:ie,activeAnchor:vt,setActiveAnchor:Vt=>Vn(Vt),role:Ee};return b.createElement(iL,{...Ir})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||j3({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||j3({css:`
|
|
94
|
+
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const zt=typeof document<"u"?b.useLayoutEffect:()=>{};function wn(e){const t=b.useRef(null);return zt(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function sL(e){let[t,n]=b.useState(e),r=b.useRef(null),i=wn(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}t===a.value?i():n(a.value)});zt(()=>{r.current&&i()});let o=wn(a=>{r.current=a(t),i()});return[t,o]}const Zf={prefix:String(Math.round(Math.random()*1e10)),current:0},yC=b.createContext(Zf),uL=b.createContext(!1);let lL=!!(typeof window<"u"&&window.document&&window.document.createElement),Gm=new WeakMap;function cL(e=!1){let t=b.useContext(yC),n=b.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Gm.get(o);a==null?Gm.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Gm.delete(o))}n.current=++t.current}return n.current}function dL(e){let t=b.useContext(yC);t===Zf&&!lL&&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=cL(!!e),r=t===Zf&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function fL(e){let t=b.useId(),[n]=b.useState(nb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Zf.prefix}`;return e||`${r}-${t}`}const hL=typeof b.useId=="function"?fL:dL;function pL(){return!1}function mL(){return!0}function gL(e){return()=>{}}function nb(){return typeof b.useSyncExternalStore=="function"?b.useSyncExternalStore(gL,pL,mL):b.useContext(uL)}let yL=!!(typeof window<"u"&&window.document&&window.document.createElement),Xo=new Map;function Mr(e){let[t,n]=b.useState(e),r=b.useRef(null),i=hL(t),o=b.useCallback(a=>{r.current=a},[]);return yL&&(Xo.has(i)&&!Xo.get(i).includes(o)?Xo.set(i,[...Xo.get(i),o]):Xo.set(i,[o])),zt(()=>{let a=i;return()=>{Xo.delete(a)}},[i]),b.useEffect(()=>{let a=r.current;a&&(r.current=null,n(a))}),i}function vL(e,t){if(e===t)return e;let n=Xo.get(e);if(n)return n.forEach(i=>i(t)),t;let r=Xo.get(t);return r?(r.forEach(i=>i(e)),e):t}function Cu(e=[]){let t=Mr(),[n,r]=sL(t),i=b.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return zt(i,[t,i,...e]),n}function as(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Lt=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},fa=e=>e&&"window"in e&&e.window===e?e:Lt(e).defaultView||window;function vC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=vC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bL(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vC(e))&&(r&&(r+=" "),r+=t);return r}function xt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let o=t[i],a=r[i];typeof o=="function"&&typeof a=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=as(o,a):(i==="className"||i==="UNSAFE_className")&&typeof o=="string"&&typeof a=="string"?t[i]=bL(o,a):i==="id"&&o&&a?t.id=vL(o,a):t[i]=a!==void 0?a:o}}return t}const $L=new Set(["id"]),xL=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),wL=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),DL=/^(data-.*)$/;function Po(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,o={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&($L.has(a)||n&&xL.has(a)||r&&wL.has(a)||i!=null&&i.has(a)||DL.test(a))&&(o[a]=e[a]);return o}function vi(e){if(EL())e.focus({preventScroll:!0});else{let t=CL(e);e.focus(),SL(t)}}let nf=null;function EL(){if(nf==null){nf=!1;try{document.createElement("div").focus({get preventScroll(){return nf=!0,!0}})}catch{}}return nf}function CL(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 SL(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function Hh(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function rb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function _o(e){let t=null;return()=>(t==null&&(t=e()),t)}const Co=_o(function(){return rb(/^Mac/i)}),TL=_o(function(){return rb(/^iPhone/i)}),bC=_o(function(){return rb(/^iPad/i)||Co()&&navigator.maxTouchPoints>1}),Mc=_o(function(){return TL()||bC()}),Pf=_o(function(){return Co()||Mc()}),ib=_o(function(){return Hh(/AppleWebKit/i)&&!AL()}),AL=_o(function(){return Hh(/Chrome/i)}),$C=_o(function(){return Hh(/Android/i)}),PL=_o(function(){return Hh(/Firefox/i)}),_L=b.createContext({isNative:!0,open:OL,useHref:e=>e});function Gh(){return b.useContext(_L)}function ss(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}=t;PL()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Co()?o=!0:a=!0);let d=ib()&&Co()&&!bC()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:c}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:c,bubbles:!0,cancelable:!0});ss.isOpening=n,vi(e),e.dispatchEvent(d),ss.isOpening=!1}ss.isOpening=!1;function RL(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 OL(e,t){RL(e,n=>ss(n,t))}function ML(e){let t=Gh();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,wy=new Set;function G3(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=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 wy)o();wy.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?G3():document.addEventListener("DOMContentLoaded",G3));function xC(e){requestAnimationFrame(()=>{Zs.size===0?e():wy.add(e)})}function Uu(){let e=b.useRef(new Map),t=b.useCallback((i,o,a,u)=>{let c=u!=null&&u.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:o,eventTarget:i,fn:c,options:u}),i.addEventListener(o,a,u)},[]),n=b.useCallback((i,o,a,u)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;i.removeEventListener(o,d,u),e.current.delete(a)},[]),r=b.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return b.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Su(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=Mr(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function q3(e,t){const n=b.useRef(!0),r=b.useRef(null);b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),b.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,o)=>!Object.is(i,r[o])))&&e(),r.current=t},t)}function FL(){return typeof window.ResizeObserver<"u"}function Y3(e){const{ref:t,box:n,onResize:r}=e;b.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(FL()){const o=new window.ResizeObserver(a=>{a.length&&r()});return o.observe(i,{box:n}),()=>{i&&o.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function wC(e,t){zt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function dc(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 qh(e,t){let n=e;for(dc(n,t)&&(n=n.parentElement);n&&!dc(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function kL(e,t){const n=[];for(;e&&e!==document.documentElement;)dc(e,t)&&n.push(e),e=e.parentElement;return n}let BL=0;const qm=new Map;function Fc(e){let[t,n]=b.useState();return zt(()=>{if(!e)return;let r=qm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${BL++}`;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},qm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),qm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function sa(e,t,n,r){let i=wn(n),o=n==null;b.useEffect(()=>{if(o||!e.current)return;let a=e.current;return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[e,t,r,o,i])}function DC(e,t){let n=Z3(e,t,"left"),r=Z3(e,t,"top"),i=t.offsetWidth,o=t.offsetHeight,a=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d}=getComputedStyle(e),f=e.scrollLeft+parseInt(d,10),h=e.scrollTop+parseInt(c,10),m=f+e.clientWidth,g=h+e.clientHeight;n<=a?a=n-parseInt(d,10):n+i>m&&(a+=n+i-m),r<=h?u=r-parseInt(c,10):r+o>g&&(u+=r+o-g),e.scrollLeft=a,e.scrollTop=u}function Z3(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function Jf(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let c=kL(e);for(let d of c)DC(d,e)}else{var n;let{left:c,top:d}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:f,top:h}=e.getBoundingClientRect();if(Math.abs(c-f)>1||Math.abs(d-h)>1){var r,i,o;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(o=e.scrollIntoView)===null||o===void 0||o.call(e,{block:"nearest"})}}}}function Dy(e){return e.mozInputSource===0&&e.isTrusted?!0:$C()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function IL(e){return!$C()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function EC(e,t){let n=b.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ob(e,t,n){let r=b.useRef(t),i=wn(()=>{n&&n(r.current)});b.useEffect(()=>{var o;let a=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return a==null||a.addEventListener("reset",i),()=>{a==null||a.removeEventListener("reset",i)}},[e,i])}function Fr(e,t,n){let[r,i]=b.useState(e||t),o=b.useRef(e!==void 0),a=e!==void 0;b.useEffect(()=>{let d=o.current;d!==a&&console.warn(`WARN: A component changed from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a},[a]);let u=a?e:r,c=b.useCallback((d,...f)=>{let h=(m,...g)=>{n&&(Object.is(u,m)||n(m,...g)),a||(u=m)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let $=d(a?u:g,...v);return h($,...f),a?g:$})):(a||i(d),h(d,...f))},[a,u,n]);return[u,c]}function Tu(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function rf(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 Sl(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,o=rf(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(rf(n/r,r))*r):o<t?o=t:!isNaN(n)&&o>n&&(o=t+Math.floor(rf((n-t)/r,r))*r),o=rf(o,r),o}let Qs="default",Ey="",_f=new WeakMap;function Cy(e){if(Mc()){if(Qs==="default"){const t=Lt(e);Ey=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Qs="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(_f.set(e,e.style.userSelect),e.style.userSelect="none")}function Kl(e){if(Mc()){if(Qs!=="disabled")return;Qs="restoring",setTimeout(()=>{xC(()=>{if(Qs==="restoring"){const t=Lt(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Ey||""),Ey="",Qs="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&_f.has(e)){let t=_f.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),_f.delete(e)}}const ab=b.createContext({register:()=>{}});ab.displayName="PressResponderContext";function LL(e,t){return t.get?t.get.call(e):t.value}function CC(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function VL(e,t){var n=CC(e,t,"get");return LL(e,n)}function NL(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function kc(e,t,n){NL(e,t),t.set(e,n)}function jL(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function J3(e,t,n){var r=CC(e,t,"set");return jL(e,r,n),n}function KL(e){let t=b.useContext(ab);if(t){let{register:n,...r}=t;e=xt(r,e),n()}return wC(t,e.ref),e}var of=new WeakMap;class af{continuePropagation(){J3(this,of,!1)}get shouldStopPropagation(){return VL(this,of)}constructor(t,n,r,i){kc(this,of,{writable:!0,value:void 0}),J3(this,of,!0);var o;let a=(o=i==null?void 0:i.target)!==null&&o!==void 0?o:r.currentTarget;const u=a==null?void 0:a.getBoundingClientRect();let c,d=0,f,h=null;r.clientX!=null&&r.clientY!=null&&(f=r.clientX,h=r.clientY),u&&(f!=null&&h!=null?(c=f-u.left,d=h-u.top):(c=u.width/2,d=u.height/2)),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=c,this.y=d}}const X3=Symbol("linkClicked");function Bc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:h,...m}=KL(e),[g,v]=b.useState(!1),$=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=Uu(),y=wn((S,U)=>{let O=$.current;if(a||O.didFirePressStart)return!1;let F=!0;if(O.isTriggeringEvent=!0,r){let G=new af("pressstart",U,S);r(G),F=G.shouldStopPropagation}return n&&n(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,v(!0),F}),D=wn((S,U,O=!0)=>{let F=$.current;if(!F.didFirePressStart)return!1;F.ignoreClickAfterPress=!0,F.didFirePressStart=!1,F.isTriggeringEvent=!0;let G=!0;if(i){let K=new af("pressend",U,S);i(K),G=K.shouldStopPropagation}if(n&&n(!1),v(!1),t&&O&&!a){let K=new af("press",U,S);t(K),G&&(G=K.shouldStopPropagation)}return F.isTriggeringEvent=!1,G}),P=wn((S,U)=>{let O=$.current;if(a)return!1;if(o){O.isTriggeringEvent=!0;let F=new af("pressup",U,S);return o(F),O.isTriggeringEvent=!1,F.shouldStopPropagation}return!0}),E=wn(S=>{let U=$.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&D(fo(U.target,S),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,x(),f||Kl(U.target))}),T=wn(S=>{d&&E(S)}),k=b.useMemo(()=>{let S=$.current,U={onKeyDown(F){if(Ym(F.nativeEvent,F.currentTarget)&&F.currentTarget.contains(F.target)){var G;e$(F.target,F.key)&&F.preventDefault();let K=!0;if(!S.isPressed&&!F.repeat){S.target=F.currentTarget,S.isPressed=!0,K=y(F,"keyboard");let W=F.currentTarget,j=L=>{Ym(L,W)&&!L.repeat&&W.contains(L.target)&&S.target&&P(fo(S.target,L),"keyboard")};C(Lt(F.currentTarget),"keyup",as(j,O),!0)}K&&F.stopPropagation(),F.metaKey&&Co()&&((G=S.metaKeyEvents)===null||G===void 0||G.set(F.key,F.nativeEvent))}else F.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(F){if(!(F&&!F.currentTarget.contains(F.target))&&F&&F.button===0&&!S.isTriggeringEvent&&!ss.isOpening){let G=!0;if(a&&F.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Dy(F.nativeEvent))){!a&&!c&&vi(F.currentTarget);let K=y(F,"virtual"),W=P(F,"virtual"),j=D(F,"virtual");G=K&&W&&j}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,G&&F.stopPropagation()}}},O=F=>{var G;if(S.isPressed&&S.target&&Ym(F,S.target)){var K;e$(F.target,F.key)&&F.preventDefault();let j=F.target;D(fo(S.target,F),"keyboard",S.target.contains(j)),x(),F.key!=="Enter"&&sb(S.target)&&S.target.contains(j)&&!F[X3]&&(F[X3]=!0,ss(S.target,F,!1)),S.isPressed=!1,(K=S.metaKeyEvents)===null||K===void 0||K.delete(F.key)}else if(F.key==="Meta"&&(!((G=S.metaKeyEvents)===null||G===void 0)&&G.size)){var W;let j=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let L of j.values())(W=S.target)===null||W===void 0||W.dispatchEvent(new KeyboardEvent("keyup",L))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(IL(j.nativeEvent)){S.pointerType="virtual";return}Zm(j.currentTarget)&&j.preventDefault(),S.pointerType=j.pointerType;let L=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=j.pointerId,S.target=j.currentTarget,!a&&!c&&vi(j.currentTarget),f||Cy(S.target),L=y(j,S.pointerType),C(Lt(j.currentTarget),"pointermove",F,!1),C(Lt(j.currentTarget),"pointerup",G,!1),C(Lt(j.currentTarget),"pointercancel",W,!1)),L&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Zm(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||S.pointerType==="virtual"||j.button===0&&Ws(j,j.currentTarget)&&P(j,S.pointerType||j.pointerType)};let F=j=>{j.pointerId===S.activePointerId&&(S.target&&Ws(j,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,y(fo(S.target,j),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,D(fo(S.target,j),S.pointerType,!1),T(j)))},G=j=>{j.pointerId===S.activePointerId&&S.isPressed&&j.button===0&&S.target&&(Ws(j,S.target)&&S.pointerType!=null?D(fo(S.target,j),S.pointerType):S.isOverTarget&&S.pointerType!=null&&D(fo(S.target,j),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,x(),f||Kl(S.target),"ontouchend"in S.target&&j.pointerType!=="mouse"&&C(S.target,"touchend",K,{once:!0}))},K=j=>{SC(j.currentTarget)&&j.preventDefault()},W=j=>{E(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&E(j)}}else{U.onMouseDown=K=>{if(K.button!==0||!K.currentTarget.contains(K.target))return;if(Zm(K.currentTarget)&&K.preventDefault(),S.ignoreEmulatedMouseEvents){K.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=K.currentTarget,S.pointerType=Dy(K.nativeEvent)?"virtual":"mouse",!a&&!c&&vi(K.currentTarget),y(K,S.pointerType)&&K.stopPropagation(),C(Lt(K.currentTarget),"mouseup",F,!1)},U.onMouseEnter=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,W=y(K,S.pointerType)),W&&K.stopPropagation()},U.onMouseLeave=K=>{if(!K.currentTarget.contains(K.target))return;let W=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,W=D(K,S.pointerType,!1),T(K)),W&&K.stopPropagation()},U.onMouseUp=K=>{K.currentTarget.contains(K.target)&&!S.ignoreEmulatedMouseEvents&&K.button===0&&P(K,S.pointerType||"mouse")};let F=K=>{if(K.button===0){if(S.isPressed=!1,x(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&Ws(K,S.target)&&S.pointerType!=null?D(fo(S.target,K),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&D(fo(S.target,K),S.pointerType,!1),S.isOverTarget=!1}};U.onTouchStart=K=>{if(!K.currentTarget.contains(K.target))return;let W=UL(K.nativeEvent);if(!W)return;S.activePointerId=W.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=K.currentTarget,S.pointerType="touch",!a&&!c&&vi(K.currentTarget),f||Cy(S.target),y(Go(S.target,K),S.pointerType)&&K.stopPropagation(),C(fa(K.currentTarget),"scroll",G,!0)},U.onTouchMove=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&Ws(W,K.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,j=y(Go(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,j=D(Go(S.target,K),S.pointerType,!1),T(Go(S.target,K))),j&&K.stopPropagation()},U.onTouchEnd=K=>{if(!K.currentTarget.contains(K.target))return;if(!S.isPressed){K.stopPropagation();return}let W=Q3(K.nativeEvent,S.activePointerId),j=!0;W&&Ws(W,K.currentTarget)&&S.pointerType!=null?(P(Go(S.target,K),S.pointerType),j=D(Go(S.target,K),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(j=D(Go(S.target,K),S.pointerType,!1)),j&&K.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&Kl(S.target),x()},U.onTouchCancel=K=>{K.currentTarget.contains(K.target)&&(K.stopPropagation(),S.isPressed&&E(Go(S.target,K)))};let G=K=>{S.isPressed&&K.target.contains(S.target)&&E({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=K=>{K.currentTarget.contains(K.target)&&E(K)}}return U},[C,a,c,x,f,E,T,D,y,P]);return b.useEffect(()=>()=>{var S;f||Kl((S=$.current.target)!==null&&S!==void 0?S:void 0)},[f]),{isPressed:u||g,pressProps:xt(m,k)}}function sb(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ym(e,t){const{key:n,code:r}=e,i=t,o=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof fa(i).HTMLInputElement&&!TC(i,n)||i instanceof fa(i).HTMLTextAreaElement||i.isContentEditable)&&!((o==="link"||!o&&sb(i))&&n!=="Enter")}function UL(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Q3(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function Go(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 fo(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 zL(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 WL(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ws(e,t){let n=t.getBoundingClientRect(),r=zL(e);return WL(n,r)}function Zm(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function SC(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!sb(e)}function e$(e,t){return e instanceof HTMLInputElement?!TC(e,t):SC(e)}const HL=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function TC(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":HL.has(e.type)}function GL({children:e}){let t=b.useMemo(()=>({register:()=>{}}),[]);return b.createElement(ab.Provider,{value:t},e)}class qL{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function AC(e){let t=b.useRef({isFocused:!1,observer:null});zt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=wn(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new qL("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 YL(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(c=>{if(c.target===c.currentTarget)return r&&r(c),i&&i(!1),!0},[r,i]),a=AC(o),u=b.useCallback(c=>{const d=Lt(c.target);c.target===c.currentTarget&&d.activeElement===c.target&&(n&&n(c),i&&i(!0),a(c))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?o:void 0}}}let hs=null,ZL=new Set,Xl=new Map,us=!1,Sy=!1;function Yh(e,t){for(let n of ZL)n(e,t)}function JL(e){return!(e.metaKey||!Co()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xf(e){us=!0,JL(e)&&(hs="keyboard",Yh("keyboard",e))}function ni(e){hs="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(us=!0,Yh("pointer",e))}function PC(e){Dy(e)&&(us=!0,hs="virtual")}function _C(e){e.target===window||e.target===document||(!us&&!Sy&&(hs="virtual",Yh("virtual",e)),us=!1,Sy=!1)}function RC(){us=!1,Sy=!0}function t$(e){if(typeof window>"u"||Xl.get(fa(e)))return;const t=fa(e),n=Lt(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){us=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xf,!0),n.addEventListener("keyup",Xf,!0),n.addEventListener("click",PC,!0),t.addEventListener("focus",_C,!0),t.addEventListener("blur",RC,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ni,!0),n.addEventListener("pointermove",ni,!0),n.addEventListener("pointerup",ni,!0)):(n.addEventListener("mousedown",ni,!0),n.addEventListener("mousemove",ni,!0),n.addEventListener("mouseup",ni,!0)),t.addEventListener("beforeunload",()=>{OC(e)},{once:!0}),Xl.set(t,{focus:r})}const OC=(e,t)=>{const n=fa(e),r=Lt(e);t&&r.removeEventListener("DOMContentLoaded",t),Xl.has(n)&&(n.HTMLElement.prototype.focus=Xl.get(n).focus,r.removeEventListener("keydown",Xf,!0),r.removeEventListener("keyup",Xf,!0),r.removeEventListener("click",PC,!0),n.removeEventListener("focus",_C,!0),n.removeEventListener("blur",RC,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ni,!0),r.removeEventListener("pointermove",ni,!0),r.removeEventListener("pointerup",ni,!0)):(r.removeEventListener("mousedown",ni,!0),r.removeEventListener("mousemove",ni,!0),r.removeEventListener("mouseup",ni,!0)),Xl.delete(n))};function XL(e){const t=Lt(e);let n;return t.readyState!=="loading"?t$(e):(n=()=>{t$(e)},t.addEventListener("DOMContentLoaded",n)),()=>OC(e,n)}typeof document<"u"&&XL();function n$(){return hs!=="pointer"}function Qf(){return hs}function MC(e){hs=e,Yh(e,null)}function zu(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),a=b.useCallback(d=>{o.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(d),i&&i(!1))},[n,i,o]),u=AC(a),c=b.useCallback(d=>{!o.current.isFocusWithin&&document.activeElement===d.target&&(r&&r(d),i&&i(!0),o.current.isFocusWithin=!0,u(d))},[r,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}let eh=!1,Jm=0;function Ty(){eh=!0,setTimeout(()=>{eh=!1},50)}function r$(e){e.pointerType==="touch"&&Ty()}function QL(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",r$):document.addEventListener("touchend",Ty),Jm++,()=>{Jm--,!(Jm>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",r$):document.removeEventListener("touchend",Ty))}}function eV(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=b.useState(!1),u=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(QL,[]);let{hoverProps:c,triggerHoverEnd:d}=b.useMemo(()=>{let f=(g,v)=>{if(u.pointerType=v,i||v==="touch"||u.isHovered||!g.currentTarget.contains(g.target))return;u.isHovered=!0;let $=g.currentTarget;u.target=$,t&&t({type:"hoverstart",target:$,pointerType:v}),n&&n(!0),a(!0)},h=(g,v)=>{if(u.pointerType="",u.target=null,v==="touch"||!u.isHovered)return;u.isHovered=!1;let $=g.currentTarget;r&&r({type:"hoverend",target:$,pointerType:v}),n&&n(!1),a(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=g=>{eh&&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&&!eh&&f(g,"mouse"),u.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&h(g,"mouse")}),{hoverProps:m,triggerHoverEnd:h}},[t,n,r,i,u]);return b.useEffect(()=>{i&&d({currentTarget:u.target},u.pointerType)},[i]),{hoverProps:c,isHovered:o}}function tV(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=wn(c=>{n&&sf(c,t)&&(i&&i(c),o.current.isPointerDown=!0)}),u=wn(c=>{n&&n(c)});b.useEffect(()=>{let c=o.current;if(r)return;const d=t.current,f=Lt(d);if(typeof PointerEvent<"u"){let h=m=>{c.isPointerDown&&sf(m,t)&&u(m),c.isPointerDown=!1};return f.addEventListener("pointerdown",a,!0),f.addEventListener("pointerup",h,!0),()=>{f.removeEventListener("pointerdown",a,!0),f.removeEventListener("pointerup",h,!0)}}else{let h=g=>{c.ignoreEmulatedMouseEvents?c.ignoreEmulatedMouseEvents=!1:c.isPointerDown&&sf(g,t)&&u(g),c.isPointerDown=!1},m=g=>{c.ignoreEmulatedMouseEvents=!0,c.isPointerDown&&sf(g,t)&&u(g),c.isPointerDown=!1};return f.addEventListener("mousedown",a,!0),f.addEventListener("mouseup",h,!0),f.addEventListener("touchstart",a,!0),f.addEventListener("touchend",m,!0),()=>{f.removeEventListener("mousedown",a,!0),f.removeEventListener("mouseup",h,!0),f.removeEventListener("touchstart",a,!0),f.removeEventListener("touchend",m,!0)}}},[t,r,a,u])}function sf(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function i$(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function FC(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:i$(e.onKeyDown),onKeyUp:i$(e.onKeyUp)}}}function kC(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=b.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:o,removeGlobalListener:a}=Uu(),u=wn((f,h,m,g)=>{m===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey})),n==null||n({type:"move",pointerType:h,deltaX:m,deltaY:g,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))}),c=wn((f,h)=>{Kl(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:h,shiftKey:f.shiftKey,metaKey:f.metaKey,ctrlKey:f.ctrlKey,altKey:f.altKey}))});return{moveProps:b.useMemo(()=>{let f={},h=()=>{Cy(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=x=>{if(x.button===0){var y,D,P,E;u(x,"mouse",x.pageX-((P=(y=i.current.lastPosition)===null||y===void 0?void 0:y.pageX)!==null&&P!==void 0?P:0),x.pageY-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY}}},v=x=>{x.button===0&&(c(x,"mouse"),a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};f.onMouseDown=x=>{x.button===0&&(h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:x.pageX,pageY:x.pageY},o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};let $=x=>{let y=[...x.changedTouches].findIndex(({identifier:k})=>k===i.current.id);if(y>=0){var D,P;let{pageX:k,pageY:S}=x.changedTouches[y];var E,T;u(x,"touch",k-((E=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageX)!==null&&E!==void 0?E:0),S-((T=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&T!==void 0?T:0)),i.current.lastPosition={pageX:k,pageY:S}}},C=x=>{[...x.changedTouches].findIndex(({identifier:D})=>D===i.current.id)>=0&&(c(x,"touch"),i.current.id=null,a(window,"touchmove",$),a(window,"touchend",C),a(window,"touchcancel",C))};f.onTouchStart=x=>{if(x.changedTouches.length===0||i.current.id!=null)return;let{pageX:y,pageY:D,identifier:P}=x.changedTouches[0];h(),x.stopPropagation(),x.preventDefault(),i.current.lastPosition={pageX:y,pageY:D},i.current.id=P,o(window,"touchmove",$,!1),o(window,"touchend",C,!1),o(window,"touchcancel",C,!1)}}else{let g=$=>{if($.pointerId===i.current.id){var C,x;let P=$.pointerType||"mouse";var y,D;u($,P,$.pageX-((y=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&y!==void 0?y:0),$.pageY-((D=(x=i.current.lastPosition)===null||x===void 0?void 0:x.pageY)!==null&&D!==void 0?D:0)),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY}}},v=$=>{if($.pointerId===i.current.id){let C=$.pointerType||"mouse";c($,C),i.current.id=null,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1)}};f.onPointerDown=$=>{$.button===0&&i.current.id==null&&(h(),$.stopPropagation(),$.preventDefault(),i.current.lastPosition={pageX:$.pageX,pageY:$.pageY},i.current.id=$.pointerId,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1))}}let m=(g,v,$)=>{h(),u(g,"keyboard",v,$),c(g,"keyboard")};return f.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),m(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),m(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),m(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),m(g,0,1);break}},f},[i,o,a,u,c])}}const nV=500;function BC(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:o=nV,accessibilityDescription:a}=e;const u=b.useRef(void 0);let{addGlobalListener:c,removeGlobalListener:d}=Uu(),{pressProps:f}=Bc({isDisabled:t,onPressStart(m){if(m.continuePropagation(),(m.pointerType==="mouse"||m.pointerType==="touch")&&(n&&n({...m,type:"longpressstart"}),u.current=setTimeout(()=>{m.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...m,type:"longpress"}),u.current=void 0},o),m.pointerType==="touch")){let g=v=>{v.preventDefault()};c(m.target,"contextmenu",g,{once:!0}),c(window,"pointerup",()=>{setTimeout(()=>{d(m.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(m){u.current&&clearTimeout(u.current),r&&(m.pointerType==="mouse"||m.pointerType==="touch")&&r({...m,type:"longpressend"})}}),h=Fc(i&&!t?a:void 0);return{longPressProps:xt(f,h)}}function ls(e){const t=Lt(e);if(Qf()==="virtual"){let n=t.activeElement;xC(()=>{t.activeElement===n&&e.isConnected&&vi(e)})}else vi(e)}function rV(e){const t=fa(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 iV(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function IC(e,t){return e.nodeName!=="#comment"&&rV(e)&&iV(e,t)&&(!e.parentElement||IC(e.parentElement,e))}const o$=b.createContext(null),Ay="react-aria-focus-scope-restore";let Nt=null;function oV(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,o=b.useRef(null),a=b.useRef(null),u=b.useRef([]),{parentNode:c}=b.useContext(o$)||{},d=b.useMemo(()=>new _y({scopeRef:u}),[u]);zt(()=>{let m=c||mn.root;if(mn.getTreeNode(m.scopeRef)&&Nt&&!th(Nt,m.scopeRef)){let g=mn.getTreeNode(Nt);g&&(m=g)}m.addChild(d),mn.addNode(d)},[d,c]),zt(()=>{let m=mn.getTreeNode(u);m&&(m.contain=!!n)},[n]),zt(()=>{var m;let g=(m=o.current)===null||m===void 0?void 0:m.nextSibling,v=[],$=C=>C.stopPropagation();for(;g&&g!==a.current;)v.push(g),g.addEventListener(Ay,$),g=g.nextSibling;return u.current=v,()=>{for(let C of v)C.removeEventListener(Ay,$)}},[t]),fV(u,r,n),lV(u,n),hV(u,r,n),dV(u,i),b.useEffect(()=>{const m=Lt(u.current?u.current[0]:void 0).activeElement;let g=null;if(ui(m,u.current)){for(let v of mn.traverse())v.scopeRef&&ui(m,v.scopeRef.current)&&(g=v);g===mn.getTreeNode(u)&&(Nt=g.scopeRef)}},[u]),zt(()=>()=>{var m,g,v;let $=(v=(g=mn.getTreeNode(u))===null||g===void 0||(m=g.parent)===null||m===void 0?void 0:m.scopeRef)!==null&&v!==void 0?v:null;(u===Nt||th(u,Nt))&&(!$||mn.getTreeNode($))&&(Nt=$),mn.removeTreeNode(u)},[u]);let f=b.useMemo(()=>aV(u),[]),h=b.useMemo(()=>({focusManager:f,parentNode:d}),[d,f]);return b.createElement(o$.Provider,{value:h},b.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:o}),t,b.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function aV(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[0].previousElementSibling,d=Ua(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.nextNode();return!h&&o&&(f.currentNode=c,h=f.nextNode()),h&&xr(h,!0),h},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:o,accept:a}=t,u=r||Lt(n[0]).activeElement,c=n[n.length-1].nextElementSibling,d=Ua(n),f=wr(d,{tabbable:i,accept:a},n);f.currentNode=ui(u,n)?u:c;let h=f.previousNode();return!h&&o&&(f.currentNode=c,h=f.previousNode()),h&&xr(h,!0),h},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,o=Ua(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=Ua(n),a=wr(o,{tabbable:r,accept:i},n);a.currentNode=n[n.length-1].nextElementSibling;let u=a.previousNode();return u&&xr(u,!0),u}}}const ub=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],sV=ub.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ub.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const uV=ub.join(':not([hidden]):not([tabindex="-1"]),');function Ua(e){return e[0].parentElement}function Ul(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function lV(e,t){let n=b.useRef(void 0),r=b.useRef(void 0);zt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const o=Lt(i?i[0]:void 0);let a=d=>{if(d.key!=="Tab"||d.altKey||d.ctrlKey||d.metaKey||!Ul(e)||d.isComposing)return;let f=o.activeElement,h=e.current;if(!h||!ui(f,h))return;let m=Ua(h),g=wr(m,{tabbable:!0},h);if(!f)return;g.currentNode=f;let v=d.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=d.shiftKey?h[h.length-1].nextElementSibling:h[0].previousElementSibling,v=d.shiftKey?g.previousNode():g.nextNode()),d.preventDefault(),v&&xr(v,!0)},u=d=>{(!Nt||th(Nt,e))&&ui(d.target,e.current)?(Nt=e,n.current=d.target):Ul(e)&&!na(d.target,e)?n.current?n.current.focus():Nt&&Nt.current&&Py(Nt.current):Ul(e)&&(n.current=d.target)},c=d=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.activeElement&&Ul(e)&&!na(o.activeElement,e))if(Nt=e,o.body.contains(d.target)){var f;n.current=d.target,(f=n.current)===null||f===void 0||f.focus()}else Nt.current&&Py(Nt.current)})};return o.addEventListener("keydown",a,!1),o.addEventListener("focusin",u,!1),i==null||i.forEach(d=>d.addEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.addEventListener("focusout",c,!1)),()=>{o.removeEventListener("keydown",a,!1),o.removeEventListener("focusin",u,!1),i==null||i.forEach(d=>d.removeEventListener("focusin",u,!1)),i==null||i.forEach(d=>d.removeEventListener("focusout",c,!1))}},[e,t]),zt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function LC(e){return na(e)}function ui(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function na(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of mn.traverse(mn.getTreeNode(t)))if(n&&ui(e,n.current))return!0;return!1}function cV(e){return na(e,Nt)}function th(e,t){var n;let r=(n=mn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function xr(e,t=!1){if(e!=null&&!t)try{ls(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function VC(e,t=!0){let n=e[0].previousElementSibling,r=Ua(e),i=wr(r,{tabbable:t},e);i.currentNode=n;let o=i.nextNode();return t&&!o&&(r=Ua(e),i=wr(r,{tabbable:!1},e),i.currentNode=n,o=i.nextNode()),o}function Py(e,t=!0){xr(VC(e,t))}function dV(e,t){const n=b.useRef(t);b.useEffect(()=>{if(n.current){Nt=e;const r=Lt(e.current?e.current[0]:void 0);!ui(r.activeElement,Nt.current)&&e.current&&Py(e.current)}n.current=!1},[e])}function fV(e,t,n){zt(()=>{if(t||n)return;let r=e.current;const i=Lt(r?r[0]:void 0);let o=a=>{let u=a.target;ui(u,e.current)?Nt=e:LC(u)||(Nt=null)};return i.addEventListener("focusin",o,!1),r==null||r.forEach(a=>a.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),r==null||r.forEach(a=>a.removeEventListener("focusin",o,!1))}},[e,t,n])}function a$(e){let t=mn.getTreeNode(Nt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function hV(e,t,n){const r=b.useRef(typeof document<"u"?Lt(e.current?e.current[0]:void 0).activeElement:null);zt(()=>{let i=e.current;const o=Lt(i?i[0]:void 0);if(!t||n)return;let a=()=>{(!Nt||th(Nt,e))&&ui(o.activeElement,e.current)&&(Nt=e)};return o.addEventListener("focusin",a,!1),i==null||i.forEach(u=>u.addEventListener("focusin",a,!1)),()=>{o.removeEventListener("focusin",a,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",a,!1))}},[e,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Ul(e)||a.isComposing)return;let u=i.activeElement;if(!na(u,e)||!a$(e))return;let c=mn.getTreeNode(e);if(!c)return;let d=c.nodeToRestore,f=wr(i.body,{tabbable:!0});f.currentNode=u;let h=a.shiftKey?f.previousNode():f.nextNode();if((!d||!i.body.contains(d)||d===i.body)&&(d=void 0,c.nodeToRestore=void 0),(!h||!na(h,e))&&d){f.currentNode=d;do h=a.shiftKey?f.previousNode():f.nextNode();while(na(h,e));a.preventDefault(),a.stopPropagation(),h?xr(h,!0):LC(d)?xr(d,!0):u.blur()}};return n||i.addEventListener("keydown",o,!0),()=>{n||i.removeEventListener("keydown",o,!0)}},[e,t,n]),zt(()=>{const i=Lt(e.current?e.current[0]:void 0);if(!t)return;let o=mn.getTreeNode(e);if(o){var a;return o.nodeToRestore=(a=r.current)!==null&&a!==void 0?a:void 0,()=>{let u=mn.getTreeNode(e);if(!u)return;let c=u.nodeToRestore;if(t&&c&&(i.activeElement&&na(i.activeElement,e)||i.activeElement===i.body&&a$(e))){let d=mn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){s$(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&mn.getTreeNode(f.scopeRef)){let h=VC(f.scopeRef.current,!0);s$(h);return}f=f.parent}}})}}}},[e,t])}function s$(e){e.dispatchEvent(new CustomEvent(Ay,{bubbles:!0,cancelable:!0}))&&xr(e)}function wr(e,t,n){let r=t!=null&&t.tabbable?uV:sV,i=Lt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(o){var a;return!(t==null||(a=t.from)===null||a===void 0)&&a.contains(o)?NodeFilter.FILTER_REJECT:o.matches(r)&&IC(o)&&(!n||ui(o,n))&&(!(t!=null&&t.accept)||t.accept(o))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Zh(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});r.contains(c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=r,f=d.nextNode()),f&&xr(f,!0),f},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:o=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=i||Lt(r).activeElement,d=wr(r,{tabbable:o,accept:u});if(r.contains(c))d.currentNode=c;else{let h=Xm(d);return h&&xr(h,!0),h??null}let f=d.previousNode();if(!f&&a){d.currentNode=r;let h=Xm(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=Xm(a);return u&&xr(u,!0),u??null}}}function Xm(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class lb{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let o=new _y({scopeRef:t});i.addChild(o),o.parent=i,this.fastMap.set(t,o),r&&(o.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ui(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(o=>r&&r.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new lb;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new _y({scopeRef:null}),this.fastMap.set(null,this.root)}}class _y{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let mn=new lb,pV=b.createContext(null);function mV(e){let t=b.useContext(pV)||{};wC(t,e);let{ref:n,...r}=t;return r}function cb(e,t){let{focusProps:n}=YL(e),{keyboardProps:r}=FC(e),i=xt(n,r),o=mV(t),a=e.isDisabled?{}:o,u=b.useRef(e.autoFocus);return b.useEffect(()=>{u.current&&t.current&&ls(t.current),u.current=!1},[t]),{focusableProps:xt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const gV=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),yV=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vV(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 gV.has(n.script)}let t=e.split("-")[0];return yV.has(t)}const bV=Symbol.for("react-aria.i18n.locale");function NC(){let e=typeof window<"u"&&window[bV]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:vV(e)?"rtl":"ltr"}}let Ry=NC(),zl=new Set;function u$(){Ry=NC();for(let e of zl)e(Ry)}function $V(){let e=nb(),[t,n]=b.useState(Ry);return b.useEffect(()=>(zl.size===0&&window.addEventListener("languagechange",u$),zl.add(n),()=>{zl.delete(n),zl.size===0&&window.removeEventListener("languagechange",u$)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const xV=b.createContext(null);function Qn(){let e=$V();return b.useContext(xV)||e}const wV=Symbol.for("react-aria.i18n.locale"),DV=Symbol.for("react-aria.i18n.strings");let Hs;class ya{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=EV(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[wV];if(Hs===void 0){let i=window[DV];if(!i)return null;Hs={};for(let o in i)Hs[o]=new ya({[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 EV(e,t,n="en-US"){if(t[e])return t[e];let r=CV(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function CV(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const l$=new Map,c$=new Map;class jC{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let o=this.locale+":"+r,a=l$.get(o);a||(a=new Intl.PluralRules(this.locale,{type:r}),l$.set(o,a));let u=a.select(t);return i=n[u]||n.other,typeof i=="function"?i():i}number(t){let n=c$.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),c$.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const d$=new WeakMap;function SV(e){let t=d$.get(e);return t||(t=new ya(e),d$.set(e,t)),t}function KC(e,t){return t&&ya.getGlobalDictionaryForPackage(t)||SV(e)}function Qi(e,t){let{locale:n}=Qn(),r=KC(e,t);return b.useMemo(()=>new jC(n,r),[n,r])}function du(e,t){return e-t*Math.floor(e/t)}const UC=1721426;function za(e,t,n,r){t=Ic(e,t);let i=t-1,o=-2;return n<=2?o=0:ra(t)&&(o=-1),UC-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+o+r)}function ra(e){return e%4===0&&(e%100!==0||e%400===0)}function Ic(e,t){return e==="BC"?1-t:t}function Jh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const TV={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class dr{fromJulianDay(t){let n=t,r=n-UC,i=Math.floor(r/146097),o=du(r,146097),a=Math.floor(o/36524),u=du(o,36524),c=Math.floor(u/1461),d=du(u,1461),f=Math.floor(d/365),h=i*400+a*100+c*4+f+(a!==4&&f!==4?1:0),[m,g]=Jh(h),v=n-za(m,g,1,1),$=2;n<za(m,g,3,1)?$=0:ra(g)&&($=1);let C=Math.floor(((v+$)*12+373)/367),x=n-za(m,g,C,1)+1;return new hn(m,g,C,x)}toJulianDay(t){return za(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return TV[ra(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return ra(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 AV={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function xn(e,t){return t=Qt(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Oy(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function zC(e,t){return xn(e,Xh(t))}const PV={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function db(e,t,n){let r=e.calendar.toJulianDay(e),i=n?PV[n]:kV(t),o=Math.ceil(r+1-i)%7;return o<0&&(o+=7),o}function WC(e){return vo(Date.now(),e)}function Xh(e){return cr(WC(e))}function HC(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function GC(e,t){return f$(e)-f$(t)}function f$(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let Qm=null;function Lc(){return Qm==null&&(Qm=new Intl.DateTimeFormat().resolvedOptions().timeZone),Qm}function Vc(e){return e.subtract({days:e.day-1})}function My(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function _V(e){return Vc(e.subtract({months:e.month-1}))}function RV(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function OV(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function fc(e,t,n){let r=db(e,t,n);return e.subtract({days:r})}function MV(e,t,n){return fc(e,t,n).add({days:6})}const h$=new Map;function FV(e){if(Intl.Locale){let n=h$.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&h$.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function kV(e){let t=FV(e);return t&&AV[t]||0}function BV(e,t,n){let r=e.calendar.getDaysInMonth(e);return Math.ceil((db(Vc(e),t,n)+r)/7)}function fb(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function hb(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function Au(e){e=Qt(e,new dr);let t=Ic(e.era,e.year);return qC(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function qC(e,t,n,r,i,o,a){let u=new Date;return u.setUTCHours(r,i,o,a),u.setUTCFullYear(e,t-1,n),u.getTime()}function Fy(e,t){if(t==="UTC")return 0;if(e>0&&t===Lc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:o,minute:a,second:u}=YC(e,t);return qC(n,r,i,o,a,u,0)-Math.floor(e/1e3)*1e3}const p$=new Map;function YC(e,t){let n=p$.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),p$.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let o of r)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const m$=864e5;function IV(e,t,n,r){return(n===r?[n]:[n,r]).filter(o=>LV(e,t,o))}function LV(e,t,n){let r=YC(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function yo(e,t,n="compatible"){let r=Di(e);if(t==="UTC")return Au(r);if(t===Lc()&&n==="compatible"){r=Qt(r,new dr);let c=new Date,d=Ic(r.era,r.year);return c.setFullYear(d,r.month-1,r.day),c.setHours(r.hour,r.minute,r.second,r.millisecond),c.getTime()}let i=Au(r),o=Fy(i-m$,t),a=Fy(i+m$,t),u=IV(r,t,i-o,i-a);if(u.length===1)return u[0];if(u.length>1)switch(n){case"compatible":case"earlier":return u[0];case"later":return u[u.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function ZC(e,t,n="compatible"){return new Date(yo(e,t,n))}function vo(e,t){let n=Fy(e,t),r=new Date(e+n),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),u=r.getUTCHours(),c=r.getUTCMinutes(),d=r.getUTCSeconds(),f=r.getUTCMilliseconds();return new mc(i<1?"BC":"AD",i<1?-i+1:i,o,a,t,n,u,c,d,f)}function cr(e){return new hn(e.calendar,e.era,e.year,e.month,e.day)}function Di(e,t){let n=0,r=0,i=0,o=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:o}=t),new pc(e.calendar,e.era,e.year,e.month,e.day,n,r,i,o)}function g$(e){return new Nc(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,cs(r),r}function JC(e,t,n){if(e instanceof mc)return e.timeZone===t?e:NV(e,t);let r=yo(e,t,n);return vo(r,t)}function VV(e){let t=Au(e)-e.offset;return new Date(t)}function NV(e,t){let n=Au(e)-e.offset;return Qt(vo(n,t),e.calendar)}const Tl=36e5;function Qh(e,t){let n=e.copy(),r="hour"in n?tS(n,t):0;ky(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,By(n),XC(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,jV(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){var o,a;let c=(o=(a=n.calendar).isInverseEra)===null||o===void 0?void 0:o.call(a,n);n.year=i,n.month=c?1:n.calendar.getMonthsInYear(n),n.day=c?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let u=n.calendar.getMonthsInYear(n);return n.month>u&&(n.month=u,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ky(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function By(e){for(;e.month<1;)ky(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ky(e,1)}function jV(e){for(;e.day<1;)e.month--,By(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,By(e)}function XC(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function cs(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),XC(e)}function pb(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function QC(e,t){return Qh(e,pb(t))}function mb(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),cs(n),n}function hc(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),eS(n),n}function KV(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=uf(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=uf(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=uf(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=uf(e.hour,24),t}function eS(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function uf(e,t){let n=e%t;return n<0&&(n+=t),n}function tS(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,KV(e)}function nS(e,t){let n=e.copy();return tS(n,t),n}function UV(e,t){return nS(e,pb(t))}function gb(e,t,n,r){let i=e.copy();switch(t){case"era":{let u=e.calendar.getEras(),c=u.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=bo(c,n,0,u.length-1,r==null?void 0:r.round),i.era=u[c],cs(i);break}case"year":var o,a;!((o=(a=i.calendar).isInverseEra)===null||o===void 0)&&o.call(a,i)&&(n=-n),i.year=bo(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=bo(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=bo(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),cs(i),i}function yb(e,t,n,r){let i=e.copy();switch(t){case"hour":{let o=e.hour,a=0,u=23;if((r==null?void 0:r.hourCycle)===12){let c=o>=12;a=c?12:0,u=c?23:11}i.hour=bo(o,n,a,u,r==null?void 0:r.round);break}case"minute":i.minute=bo(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=bo(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=bo(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function bo(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function rS(e,t){let n;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Qh(Di(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=yo(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=vo(n,e.timeZone);return Qt(r,e.calendar)}function zV(e,t){return rS(e,pb(t))}function WV(e,t,n,r){switch(t){case"hour":{let i=0,o=23;if((r==null?void 0:r.hourCycle)===12){let v=e.hour>=12;i=v?12:0,o=v?23:11}let a=Di(e),u=Qt(hc(a,{hour:i}),new dr),c=[yo(u,e.timeZone,"earlier"),yo(u,e.timeZone,"later")].filter(v=>vo(v,e.timeZone).day===u.day)[0],d=Qt(hc(a,{hour:o}),new dr),f=[yo(d,e.timeZone,"earlier"),yo(d,e.timeZone,"later")].filter(v=>vo(v,e.timeZone).day===d.day).pop(),h=Au(e)-e.offset,m=Math.floor(h/Tl),g=h%Tl;return h=bo(m,n,Math.floor(c/Tl),Math.floor(f/Tl),r==null?void 0:r.round)*Tl+g,Qt(vo(h,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return yb(e,t,n,r);case"era":case"year":case"month":case"day":{let i=gb(Di(e),t,n,r),o=yo(i,e.timeZone);return Qt(vo(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function HV(e,t,n){let r=Di(e),i=hc(mb(r,t),t);if(i.compare(r)===0)return e;let o=yo(i,e.timeZone,n);return Qt(vo(o,e.timeZone),e.calendar)}const GV=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,qV=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;function YV(e){let t=e.match(GV);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new hn(Fi(t[1],0,9999),Fi(t[2],1,12),1);return n.day=Fi(t[3],0,n.calendar.getDaysInMonth(n)),n}function ZV(e){let t=e.match(qV);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 pc(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 iS(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function oS(e){let t=Qt(e,new dr),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function aS(e){return`${oS(e)}T${iS(e)}`}function JV(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 XV(e){return`${aS(e)}${JV(e.offset)}[${e.timeZone}]`}function vb(e){let t=typeof e[0]=="object"?e.shift():new dr,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),i=e.shift(),o=e.shift();return[t,n,r,i,o]}var QV=new WeakMap;class hn{copy(){return this.era?new hn(this.calendar,this.era,this.year,this.month,this.day):new hn(this.calendar,this.year,this.month,this.day)}add(t){return Qh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(this,t)}cycle(t,n,r){return gb(this,t,n,r)}toDate(t){return ZC(this,t)}toString(){return oS(this)}compare(t){return HC(this,t)}constructor(...t){kc(this,QV,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,cs(this)}}var eN=new WeakMap;class Nc{copy(){return new Nc(this.hour,this.minute,this.second,this.millisecond)}add(t){return nS(this,t)}subtract(t){return UV(this,t)}set(t){return hc(this,t)}cycle(t,n,r){return yb(this,t,n,r)}toString(){return iS(this)}compare(t){return GC(this,t)}constructor(t=0,n=0,r=0,i=0){kc(this,eN,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,eS(this)}}var tN=new WeakMap;class pc{copy(){return this.era?new pc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new pc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Qh(this,t)}subtract(t){return QC(this,t)}set(t){return mb(hc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return gb(this,t,n,r);default:return yb(this,t,n,r)}}toDate(t,n){return ZC(this,t,n)}toString(){return aS(this)}compare(t){let n=HC(this,t);return n===0?GC(this,Di(t)):n}constructor(...t){kc(this,tN,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t);this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,cs(this)}}var nN=new WeakMap;class mc{copy(){return this.era?new mc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new mc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return rS(this,t)}subtract(t){return zV(this,t)}set(t,n){return HV(this,t,n)}cycle(t,n,r){return WV(this,t,n,r)}toDate(){return VV(this)}toString(){return XV(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-JC(t,this.timeZone).toDate().getTime()}constructor(...t){kc(this,nN,{writable:!0,value:void 0});let[n,r,i,o,a]=vb(t),u=t.shift(),c=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=o,this.day=a,this.timeZone=u,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,cs(this)}}const fu=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],rN=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Rf=[1867,1911,1925,1988,2018],Qo=["meiji","taisho","showa","heisei","reiwa"];function y$(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 eg(e){let t=Rf[Qo.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new hn(e.year+t,e.month,e.day)}class iN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=y$(n);return new hn(this,Qo[r],n.year-Rf[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(eg(t))}balanceDate(t){let n=eg(t),r=y$(n);Qo[r]!==t.era&&(t.era=Qo[r],t.year=n.year-Rf[r]),this.constrainDate(t)}constrainDate(t){let n=Qo.indexOf(t.era),r=rN[n];if(r!=null){let[i,o,a]=r,u=i-Rf[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 Qo}getYearsInEra(t){let n=Qo.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(eg(t))}getMinimumMonthInYear(t){let n=v$(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=v$(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function v$(e){if(e.year===1){let t=Qo.indexOf(e.era);return fu[t]}}const sS=-543;class oN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ic(n.era,n.year);return new hn(this,r-sS,n.month,n.day)}toJulianDay(t){return super.toJulianDay(b$(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(b$(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function b$(e){let[t,n]=Jh(e.year+sS);return new hn(t,n,e.month,e.day)}const nh=1911;function uS(e){return e.era==="minguo"?e.year+nh:1-e.year+nh}function $$(e){let t=e-nh;return t>0?["minguo",t]:["before_minguo",1-t]}class aN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=Ic(n.era,n.year),[i,o]=$$(r);return new hn(this,i,o,n.month,n.day)}toJulianDay(t){return super.toJulianDay(x$(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=$$(uS(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(x$(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-nh}constructor(...t){super(...t),this.identifier="roc"}}function x$(e){let[t,n]=Jh(uS(e));return new hn(t,n,e.month,e.day)}const w$=1948320,D$=[0,31,62,93,124,155,186,216,246,276,306,336];class sN{fromJulianDay(t){let n=t-w$,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),o=n-i,a=o<216?Math.floor(o/31):Math.floor((o-6)/30),u=o-D$[a]+1;return new hn(this,r,a+1,u)}toJulianDay(t){let n=w$-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=D$[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||du(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const tg=78,E$=80;class uN extends dr{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-tg,i=t-za(n.era,n.year,1,1),o;i<E$?(r--,o=ra(n.year-1)?31:30,i+=o+155+90+10):(o=ra(n.year)?31:30,i-=E$);let a,u;if(i<o)a=1,u=i+1;else{let c=i-o;c<155?(a=Math.floor(c/31)+2,u=c%31+1):(c-=155,a=Math.floor(c/30)+7,u=c%30+1)}return new hn(this,r,a,u)}toJulianDay(t){let n=t.year+tg,[r,i]=Jh(n),o,a;return ra(i)?(o=31,a=za(r,i,3,21)):(o=30,a=za(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&&ra(t.year+tg)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const rh=1948440,C$=1948439,ei=1300,Gs=1600,lN=460322;function ih(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function lS(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+ih(t,r,1,1)))/29.5)+1),o=n-ih(t,r,i,1)+1;return new hn(e,r,i,o)}function S$(e){return(14+11*e)%30<11}class bb{fromJulianDay(t){return lS(this,rh,t)}toJulianDay(t){return ih(rh,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&S$(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return S$(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class cN extends bb{fromJulianDay(t){return lS(this,C$,t)}toJulianDay(t){return ih(C$,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const dN="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Iy,hu;function Of(e){return lN+hu[e-ei]}function Wl(e,t){let n=e-ei,r=1<<11-(t-1);return Iy[n]&r?30:29}function T$(e,t){let n=Of(e);for(let r=1;r<t;r++)n+=Wl(e,r);return n}function A$(e){return hu[e+1-ei]-hu[e-ei]}class fN extends bb{fromJulianDay(t){let n=t-rh,r=Of(ei),i=Of(Gs);if(n<r||n>i)return super.fromJulianDay(t);{let o=ei-1,a=1,u=1;for(;u>0;){o++,u=n-Of(o)+1;let c=A$(o);if(u===c){a=12;break}else if(u<c){let d=Wl(o,a);for(a=1;u>d;)u-=d,a++,d=Wl(o,a);break}}return new hn(this,o,a,n-T$(o,a)+1)}}toJulianDay(t){return t.year<ei||t.year>Gs?super.toJulianDay(t):rh+T$(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<ei||t.year>Gs?super.getDaysInMonth(t):Wl(t.year,t.month)}getDaysInYear(t){return t.year<ei||t.year>Gs?super.getDaysInYear(t):A$(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Iy||(Iy=new Uint16Array(Uint8Array.from(atob(dN),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+=Wl(n,r)}}}}const P$=347997,cS=1080,dS=24*cS,hN=29,pN=12*cS+793,mN=hN*dS+pN;function Na(e){return du(e*7+1,19)<7}function Mf(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 gN(e){let t=Mf(e-1),n=Mf(e);return Mf(e+1)-n===356?2:n-t===382?1:0}function Ql(e){return Mf(e)+gN(e)}function fS(e){return Ql(e+1)-Ql(e)}function yN(e){let t=fS(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function lf(e,t){if(t>=6&&!Na(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=yN(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Na(e)?30:0:30}class vN{fromJulianDay(t){let n=t-P$,r=n*dS/mN,i=Math.floor((19*r+234)/235)+1,o=Ql(i),a=Math.floor(n-o);for(;a<1;)i--,o=Ql(i),a=Math.floor(n-o);let u=1,c=0;for(;c<a;)c+=lf(i,u),u++;u--,c-=lf(i,u);let d=a-c;return new hn(this,i,u,d)}toJulianDay(t){let n=Ql(t.year);for(let r=1;r<t.month;r++)n+=lf(t.year,r);return n+t.day+P$}getDaysInMonth(t){return lf(t.year,t.month)}getMonthsInYear(t){return Na(t.year)?13:12}getDaysInYear(t){return fS(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Na(n.year)&&!Na(t.year)&&n.month>6?t.month--:!Na(n.year)&&Na(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Ly=1723856,_$=1824665,Vy=5500;function oh(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function $b(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-oh(e,n,1,1))/30),i=t+1-oh(e,n,r,1);return[n,r,i]}function hS(e){return Math.floor(e%4/3)}function pS(e,t){return t%13!==0?30:hS(e)+5}class xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t),o="AM";return n<=0&&(o="AA",n+=Vy),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Vy),oh(Ly,n,t.month,t.day)}getDaysInMonth(t){return pS(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+hS(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class bN extends xb{fromJulianDay(t){let[n,r,i]=$b(Ly,t);return n+=Vy,new hn(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class $N extends xb{fromJulianDay(t){let[n,r,i]=$b(_$,t),o="CE";return n<=0&&(o="BCE",n=1-n),new hn(this,o,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),oh(_$,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),pS(n,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function xN(e){switch(e){case"buddhist":return new oN;case"ethiopic":return new xb;case"ethioaa":return new bN;case"coptic":return new $N;case"hebrew":return new vN;case"indian":return new uN;case"islamic-civil":return new bb;case"islamic-tbla":return new cN;case"islamic-umalqura":return new fN;case"japanese":return new iN;case"persian":return new sN;case"roc":return new aN;case"gregory":default:return new dr}}let ng=new Map;class ii{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),i=this.formatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return EN()&&(this.resolvedHourCycle||(this.resolvedHourCycle=CN(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=mS(t,n),this.options=n}}const wN={true:{ja:"h11"},false:{}};function mS(e,t={}){if(typeof t.hour12=="boolean"&&DN()){t={...t};let i=wN[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(ng.has(n))return ng.get(n);let r=new Intl.DateTimeFormat(e,t);return ng.set(n,r),r}let rg=null;function DN(){return rg==null&&(rg=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),rg}let ig=null;function EN(){return ig==null&&(ig=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ig}function CN(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=mS(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(r===0&&i===23)return"h23";if(r===24&&i===23)return"h24";if(r===0&&i===11)return"h11";if(r===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function Ni(e){e=EC(e??{},SN);let{locale:t}=Qn();return b.useMemo(()=>new ii(t,e),[t,e])}function SN(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0}let og=new Map,Ny=!1;try{Ny=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ah=!1;try{ah=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const gS={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class yS{format(t){let n="";if(!Ny&&this.options.signDisplay!=null?n=AN(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ah){var r;let{unit:i,unitDisplay:o="short",locale:a}=this.resolvedOptions();if(!i)return n;let u=(r=gS[i])===null||r===void 0?void 0:r[o];n+=u[a]||u.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ny&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ah&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=TN(t,n),this.options=n}}function TN(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ah){var r;let{unit:a,unitDisplay:u="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=gS[a])===null||r===void 0)&&r[u]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${u}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((a,u)=>a[0]<u[0]?-1:1).join():"");if(og.has(i))return og.get(i);let o=new Intl.NumberFormat(e,t);return og.set(i,o),o}function AN(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 PN=new RegExp("^.*\\(.*\\).*$"),_N=["latn","arab","hanidec","deva","beng"];class vS{parse(t){return ag(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ag(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ag(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const R$=new Map;function ag(e,t,n){let r=O$(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of _N)if(i!==r.options.numberingSystem){let o=O$(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function O$(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():""),r=R$.get(n);return r||(r=new RN(e,t),R$.set(n,r)),r}class RN{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=cf(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=n.indexOf("-");n=n.replace("-","");let u=n.indexOf(".");u===-1&&(u=n.length),n=n.replace(".",""),u-2===0?n=`0.${n}`:u-2===-1?n=`0.0${n}`:u-2===-2?n="0.00":n=`${n.slice(0,u-2)}.${n.slice(u-2)}`,a>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let a={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new vS(this.locale,a).parse(new yS(this.locale,a).format(r))}return this.options.currencySign==="accounting"&&PN.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=cf(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=cf(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=cf(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=MN(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const M$=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ON=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function MN(e,t,n,r){var i,o,a,u;let c=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),d=c.formatToParts(-10000.111),f=c.formatToParts(10000.111),h=ON.map(O=>c.formatToParts(O));var m;let g=(m=(i=d.find(O=>O.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&m!==void 0?m:"-",v=(o=f.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!v&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(v="+");let C=(a=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(O=>O.type==="decimal"))===null||a===void 0?void 0:a.value,x=(u=d.find(O=>O.type==="group"))===null||u===void 0?void 0:u.value,y=d.filter(O=>!M$.has(O.type)).map(O=>F$(O.value)),D=h.flatMap(O=>O.filter(F=>!M$.has(F.type)).map(F=>F$(F.value))),P=[...new Set([...y,...D])].sort((O,F)=>F.length-O.length),E=P.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${P.join("|")}|[\\p{White_Space}]`,"gu"),T=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(T.map((O,F)=>[O,F])),S=new RegExp(`[${T.join("")}]`,"g");return{minusSign:g,plusSign:v,decimal:C,group:x,literals:E,numeral:S,index:O=>String(k.get(O))}}function cf(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function F$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function FN(e={}){let{locale:t}=Qn();return b.useMemo(()=>new yS(t,e),[t,e])}let sg=new Map;function bS(e){let{locale:t}=Qn(),n=t+(e?Object.entries(e).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(sg.has(n))return sg.get(n);let r=new Intl.Collator(t,e);return sg.set(n,r),r}function $S(e){let t=bS({usage:"search",...e}),n=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(0,a.length),a)===0),[t]),r=b.useCallback((o,a)=>a.length===0?!0:(o=o.normalize("NFC"),a=a.normalize("NFC"),t.compare(o.slice(-a.length),a)===0),[t]),i=b.useCallback((o,a)=>{if(a.length===0)return!0;o=o.normalize("NFC"),a=a.normalize("NFC");let u=0,c=a.length;for(;u+c<=o.length;u++){let d=o.slice(u,u+c);if(t.compare(a,d)===0)return!0}return!1},[t]);return b.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function kN(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:o,onPressEnd:a,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:h,href:m,target:g,rel:v,type:$="button"}=e,C;n==="button"?C={type:$,disabled:r}:C={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?m:void 0,target:n==="a"?g:void 0,type:n==="input"?$:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:x,isPressed:y}=Bc({onPressStart:o,onPressEnd:a,onPressChange:c,onPress:i,onPressUp:u,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:D}=cb(e,t);f&&(D.tabIndex=r?-1:D.tabIndex);let P=xt(D,x,Po(e,{labelable:!0}));return{isPressed:y,buttonProps:xt(C,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{h&&(h(E),console.warn("onClick is deprecated, please use onPress"))}})}}var xS={};xS={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var wS={};wS={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var DS={};DS={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var ES={};ES={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var CS={};CS={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var SS={};SS={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var TS={};TS={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var AS={};AS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var PS={};PS={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var _S={};_S={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var RS={};RS={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var OS={};OS={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var MS={};MS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var FS={};FS={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var kS={};kS={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var BS={};BS={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var IS={};IS={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var LS={};LS={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var VS={};VS={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var NS={};NS={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var jS={};jS={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var KS={};KS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var US={};US={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var zS={};zS={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var WS={};WS={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var HS={};HS={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var GS={};GS={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var qS={};qS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var YS={};YS={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var ZS={};ZS={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var JS={};JS={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var XS={};XS={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var QS={};QS={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var e5={};e5={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var jc={};jc={"ar-AE":xS,"bg-BG":wS,"cs-CZ":DS,"da-DK":ES,"de-DE":CS,"el-GR":SS,"en-US":TS,"es-ES":AS,"et-EE":PS,"fi-FI":_S,"fr-FR":RS,"he-IL":OS,"hr-HR":MS,"hu-HU":FS,"it-IT":kS,"ja-JP":BS,"ko-KR":IS,"lt-LT":LS,"lv-LV":VS,"nb-NO":NS,"nl-NL":jS,"pl-PL":KS,"pt-BR":US,"pt-PT":zS,"ro-RO":WS,"ru-RU":HS,"sk-SK":GS,"sl-SI":qS,"sr-SP":YS,"sv-SE":ZS,"tr-TR":JS,"uk-UA":XS,"zh-CN":QS,"zh-TW":e5};function t5(e){return e&&e.__esModule?e.default:e}const wb=new WeakMap;function gc(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function BN(e){let t=Qi(t5(jc),"@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=Ni({weekday:"long",month:"long",year:"numeric",day:"numeric",era:gc(n)||gc(r),timeZone:e.timeZone}),a="anchorDate"in e?e.anchorDate:null;return b.useMemo(()=>{if(!a&&n&&r)if(xn(n,r)){let u=o.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:u})}else{let u=Ky(o,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:u})}return""},[n,r,a,e.timeZone,t,o])}function jy(e,t,n,r){let i=Qi(t5(jc),"@react-aria/calendar"),o=gc(e)||gc(t),a=Ni({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n}),u=Ni({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:n});return b.useMemo(()=>{if(xn(e,Vc(e))){if(xn(t,My(e)))return a.format(e.toDate(n));if(xn(t,My(t)))return r?Ky(a,i,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Ky(u,i,e,t,n):u.formatRange(e.toDate(n),t.toDate(n))},[e,t,a,u,i,n,r])}function Ky(e,t,n,r,i){let o=e.formatRangeToParts(n.toDate(i),r.toDate(i)),a=-1;for(let d=0;d<o.length;d++){let f=o[d];if(f.source==="shared"&&f.type==="literal")a=d;else if(f.source==="endRange")break}let u="",c="";for(let d=0;d<o.length;d++)d<a?u+=o[d].value:d>a&&(c+=o[d].value);return t.format("dateRange",{startDate:u,endDate:c})}const n5=7e3;let Xr=null;function pu(e,t="assertive",n=n5){Xr?Xr.announce(e,t,n):(Xr=new LN,(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 IN(e){Xr&&Xr.clear(e)}class LN{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=n5){var i,o;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(a):(o=this.politeLog)===null||o===void 0||o.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function VN(e){return e&&e.__esModule?e.default:e}function r5(e,t){let n=Qi(VN(jc),"@react-aria/calendar"),r=Po(e),i=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),o=jy(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);q3(()=>{t.isFocused||pu(o)},[o]);let a=BN(t);q3(()=>{a&&pu(a,"polite",4e3)},[a]);let u=Cu([!!e.errorMessage,e.isInvalid,e.validationState]);wb.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:u,selectedDateDescription:a});let[c,d]=b.useState(!1),f=e.isDisabled||t.isNextVisibleRangeInvalid();f&&c&&(d(!1),t.setFocused(!0));let[h,m]=b.useState(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();g&&h&&(m(!1),t.setFocused(!0));let v=Su({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:xt(r,v,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:f,onFocusChange:d},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:m},errorMessageProps:{id:u},title:i}}function NN(e,t){return r5(e,t)}function jN(e,t,n){let r=r5(e,t),i=b.useRef(!1),o=b.useRef(typeof window<"u"?window:null);return sa(o,"pointerdown",u=>{i.current=u.width===0&&u.height===0}),sa(o,"pointerup",u=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let c=u.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(c)||!c.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=u=>{n.current&&(!u.relatedTarget||!n.current.contains(u.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},sa(n,"touchmove",u=>{t.isDragging&&u.preventDefault()},{passive:!1,capture:!0}),r}function KN(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=Qn(),o=g=>{switch(g.key){case"Enter":case" ":g.preventDefault(),t.selectFocusedDate();break;case"PageUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousSection(g.shiftKey);break;case"PageDown":g.preventDefault(),g.stopPropagation(),t.focusNextSection(g.shiftKey);break;case"End":g.preventDefault(),g.stopPropagation(),t.focusSectionEnd();break;case"Home":g.preventDefault(),g.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":g.preventDefault(),g.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":g.preventDefault(),g.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":g.preventDefault(),g.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(g.preventDefault(),t.setAnchorDate(null));break}},a=jy(n,r,t.timeZone,!0),{ariaLabel:u,ariaLabelledBy:c}=wb.get(t),d=Su({"aria-label":[u,a].filter(Boolean).join(", "),"aria-labelledby":c}),f=Ni({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:h}=Qn(),m=b.useMemo(()=>{let g=fc(Xh(t.timeZone),h);return[...new Array(7).keys()].map(v=>{let C=g.add({days:v}).toDate(t.timeZone);return f.format(C)})},[h,t.timeZone,f]);return{gridProps:xt(d,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:o,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:m}}function UN(e){return e&&e.__esModule?e.default:e}function zN(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=wb.get(t),u=Qi(UN(jc),"@react-aria/calendar"),c=Ni({weekday:"long",day:"numeric",month:"long",year:"numeric",era:gc(r),timeZone:t.timeZone}),d=t.isSelected(r),f=t.isCellFocused(r);i=i||t.isCellDisabled(r);let h=t.isCellUnavailable(r),m=!i&&!h,g=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&xn(t.value,r));g&&(d=!0),r=EC(r,Oy);let v=b.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),$=zC(r,t.timeZone),C=b.useMemo(()=>{let F="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(xn(r,t.value.start)||xn(r,t.value.end))&&(F=a+", "),F+=c.format(v),$?F=u.format(d?"todayDateSelected":"todayDate",{date:F}):d&&(F=u.format("dateSelected",{date:F})),t.minValue&&xn(r,t.minValue)?F+=", "+u.format("minimumDate"):t.maxValue&&xn(r,t.maxValue)&&(F+=", "+u.format("maximumDate")),F},[c,v,u,d,$,r,t,a]),x="";"anchorDate"in t&&f&&!t.isReadOnly&&m&&(t.anchorDate?x=u.format("finishRangeSelectionPrompt"):x=u.format("startRangeSelectionPrompt"));let y=Fc(x),D=b.useRef(!1),P=b.useRef(!1),E=b.useRef(void 0),{pressProps:T,isPressed:k}=Bc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!m||t.isReadOnly,onPressStart(F){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(F.pointerType==="mouse"||F.pointerType==="touch")){if(t.highlightedRange&&!g){if(xn(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}else if(xn(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),P.current=!0;return}}let G=()=>{t.setDragging(!0),E.current=void 0,t.selectDate(r),t.setFocusedDate(r),D.current=!0};F.pointerType==="touch"?E.current=setTimeout(G,200):G()}},onPressEnd(){P.current=!1,D.current=!1,clearTimeout(E.current),E.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(F){if(!t.isReadOnly&&("anchorDate"in t&&E.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(P.current)t.setAnchorDate(r);else if(t.anchorDate&&!D.current)t.selectDate(r),t.setFocusedDate(r);else if(F.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let G=r.add({days:1});t.isInvalid(G)&&(G=r.subtract({days:1})),t.isInvalid(G)||t.setFocusedDate(G)}else F.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),S;i||(S=xn(r,t.focusedDate)?0:-1),b.useEffect(()=>{f&&n.current&&(vi(n.current),Qf()!=="pointer"&&document.activeElement===n.current&&Jf(n.current,{containingElement:qh(n.current)}))},[f,n]);let U=Ni({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),O=b.useMemo(()=>U.formatToParts(v).find(F=>F.type==="day").value,[U,v]);return{cellProps:{role:"gridcell","aria-disabled":!m||void 0,"aria-selected":d||void 0,"aria-invalid":g||void 0},buttonProps:xt(T,{onFocus(){i||t.setFocusedDate(r)},tabIndex:S,role:"button","aria-disabled":!m||void 0,"aria-label":C,"aria-invalid":g||void 0,"aria-describedby":[g?o:void 0,y["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(F){"highlightDate"in t&&(F.pointerType!=="touch"||t.isDragging)&&m&&t.highlightDate(r)},onPointerDown(F){"releasePointerCapture"in F.target&&F.target.releasePointerCapture(F.pointerId)},onContextMenu(F){F.preventDefault()}}),isPressed:k,isFocused:f,isSelected:d,isDisabled:i,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:g,formattedDate:O}}const ep={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},i5={...ep,customError:!0,valid:!1},ja={isInvalid:!1,validationDetails:ep,validationErrors:[]},WN=b.createContext({}),Pu="__formValidationState"+Date.now();function Kc(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 HN(e)}function HN(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:o,validate:a,validationBehavior:u="aria"}=e;n&&(t||(t=n==="invalid"));let c=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:i5}:null,d=b.useMemo(()=>{if(!a||i==null)return null;let O=GN(a,i);return k$(O)},[a,i]);o!=null&&o.validationDetails.valid&&(o=void 0);let f=b.useContext(WN),h=b.useMemo(()=>r?Array.isArray(r)?r.flatMap(O=>Uy(f[O])):Uy(f[r]):[],[f,r]),[m,g]=b.useState(f),[v,$]=b.useState(!1);f!==m&&(g(f),$(!1));let C=b.useMemo(()=>k$(v?[]:h),[v,h]),x=b.useRef(ja),[y,D]=b.useState(ja),P=b.useRef(ja),E=()=>{if(!T)return;k(!1);let O=d||o||x.current;ug(O,P.current)||(P.current=O,D(O))},[T,k]=b.useState(!1);return b.useEffect(E),{realtimeValidation:c||C||d||o||ja,displayValidation:u==="native"?c||C||y:c||C||d||o||y,updateValidation(O){u==="aria"&&!ug(y,O)?D(O):x.current=O},resetValidation(){let O=ja;ug(O,P.current)||(P.current=O,D(O)),u==="native"&&k(!1),$(!0)},commitValidation(){u==="native"&&k(!0),$(!0)}}}function Uy(e){return e?Array.isArray(e)?e:[e]:[]}function GN(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Uy(n)}return[]}function k$(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:i5}:null}function ug(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function sh(...e){let t=new Set,n=!1,r={...ep};for(let a of e){var i,o;for(let u of a.validationErrors)t.add(u);n||(n=a.isInvalid);for(let u in r)(i=r)[o=u]||(i[o]=a.validationDetails[u])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function o5(e,t,n){let{validationBehavior:r,focus:i}=e;zt(()=>{if(r==="native"&&(n!=null&&n.current)){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(YN(n.current))}});let o=wn(()=>{t.resetValidation()}),a=wn(c=>{var d;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(d=n.current)===null||d===void 0?void 0:d.form;if(!c.defaultPrevented&&n&&f&&ZN(f)===n.current){var h;i?i():(h=n.current)===null||h===void 0||h.focus(),MC("keyboard")}c.preventDefault()}),u=wn(()=>{t.commitValidation()});b.useEffect(()=>{let c=n==null?void 0:n.current;if(!c)return;let d=c.form;return c.addEventListener("invalid",a),c.addEventListener("change",u),d==null||d.addEventListener("reset",o),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",u),d==null||d.removeEventListener("reset",o)}},[n,a,u,o,r])}function qN(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 YN(e){return{isInvalid:!e.validity.valid,validationDetails:qN(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function ZN(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function tp(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;t=Mr(t);let a=Mr(),u={};n?(r=r?`${a} ${r}`:a,u={id:a,htmlFor:o==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Su({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:u,fieldProps:c}}function np(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:o,fieldProps:a}=tp(e),u=Cu([!!t,!!n,r,i]),c=Cu([!!t,!!n,r,i]);return a=xt(a,{"aria-describedby":[u,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:a,descriptionProps:{id:u},errorMessageProps:{id:c}}}const JN=0,XN=100,QN=1;function ej(e){const{isDisabled:t=!1,minValue:n=JN,maxValue:r=XN,numberFormatter:i,step:o=QN,orientation:a="horizontal"}=e;let u=b.useMemo(()=>{let z=(r-n)/10;return z=Sl(z,0,z+o,o),Math.max(z,o)},[o,r,n]),c=b.useCallback(z=>z==null?void 0:z.map((re,oe)=>{let fe=oe===0?n:z[oe-1],ie=oe===z.length-1?r:z[oe+1];return Sl(re,fe,ie,o)}),[n,r,o]),d=b.useMemo(()=>c(I$(e.value)),[e.value]),f=b.useMemo(()=>{var z;return c((z=I$(e.defaultValue))!==null&&z!==void 0?z:[n])},[e.defaultValue,n]),h=L$(e.value,e.defaultValue,e.onChange),m=L$(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Fr(d,f,h),[$,C]=b.useState(new Array(g.length).fill(!1)),x=b.useRef(new Array(g.length).fill(!0)),[y,D]=b.useState(void 0),P=b.useRef(g),E=b.useRef($);let T=z=>{P.current=z,v(z)},k=z=>{E.current=z,C(z)};function S(z){return(z-n)/(r-n)}function U(z){return z===0?n:g[z-1]}function O(z){return z===g.length-1?r:g[z+1]}function F(z){return x.current[z]}function G(z,re){x.current[z]=re}function K(z,re){if(t||!F(z))return;const oe=U(z),fe=O(z);re=Sl(re,oe,fe,o);let ie=B$(P.current,z,re);T(ie)}function W(z,re){if(t||!F(z))return;re&&(P.current=g);const oe=E.current[z];E.current=B$(E.current,z,re),k(E.current),oe&&!E.current.some(Boolean)&&m(P.current)}function j(z){return i.format(z)}function L(z,re){K(z,M(re))}function _(z){return Math.round((z-n)/o)*o+n}function M(z){const re=z*(r-n)+n;return Tu(_(re),n,r)}function Y(z,re=1){let oe=Math.max(re,o);K(z,Sl(g[z]+oe,n,r,o))}function V(z,re=1){let oe=Math.max(re,o);K(z,Sl(g[z]-oe,n,r,o))}return{values:g,getThumbValue:z=>g[z],setThumbValue:K,setThumbPercent:L,isThumbDragging:z=>$[z],setThumbDragging:W,focusedThumb:y,setFocusedThumb:D,getThumbPercent:z=>S(g[z]),getValuePercent:S,getThumbValueLabel:z=>j(g[z]),getFormattedValue:j,getThumbMinValue:U,getThumbMaxValue:O,getPercentValue:M,isThumbEditable:F,setThumbEditable:G,incrementThumb:Y,decrementThumb:V,step:o,pageSize:u,orientation:a,isDisabled:t}}function B$(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function I$(e){if(e!=null)return Array.isArray(e)?e:[e]}function L$(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const V$={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function tj(e={}){let{style:t,isFocusable:n}=e,[r,i]=b.useState(!1),{focusWithinProps:o}=zu({isDisabled:!n,onFocusWithinChange:u=>i(u)}),a=b.useMemo(()=>r?t:t?{...V$,...t}:V$,[r]);return{visuallyHiddenProps:{...o,style:a}}}function nj(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...o}=e,{visuallyHiddenProps:a}=tj(e);return b.createElement(n,xt(o,a),t)}const Db=new WeakMap;function zy(e,t){let n=Db.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function rj(e,t,n){let{labelProps:r,fieldProps:i}=tp(e),o=e.orientation==="vertical";var a;Db.set(t,{id:(a=r.id)!==null&&a!==void 0?a:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:u}=Qn(),{addGlobalListener:c,removeGlobalListener:d}=Uu();const f=b.useRef(null),h=u==="rtl",m=b.useRef(null),{moveProps:g}=kC({onMoveStart(){m.current=null},onMove({deltaX:x,deltaY:y}){if(!n.current)return;let{height:D,width:P}=n.current.getBoundingClientRect(),E=o?D:P;m.current==null&&f.current!=null&&(m.current=t.getThumbPercent(f.current)*E);let T=o?y:x;if((o||h)&&(T=-T),m.current+=T,f.current!=null&&n.current){const k=Tu(m.current/E,0,1);t.setThumbPercent(f.current,k)}},onMoveEnd(){f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null)}});let v=b.useRef(void 0),$=(x,y,D,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,T)=>!t.isThumbDragging(T))){let{height:E,width:T,top:k,left:S}=n.current.getBoundingClientRect(),U=o?E:T,K=((o?P:D)-(o?k:S))/U;(u==="rtl"||o)&&(K=1-K);let W=t.getPercentValue(K),j,L=t.values.findIndex(_=>W-_<0);if(L===0)j=L;else if(L===-1)j=t.values.length-1;else{let _=t.values[L-1],M=t.values[L];Math.abs(_-W)<Math.abs(M-W)?j=L-1:j=L}j>=0&&t.isThumbEditable(j)?(x.preventDefault(),f.current=j,t.setFocusedThumb(j),v.current=y,t.setThumbDragging(f.current,!0),t.setThumbValue(j,W),c(window,"mouseup",C,!1),c(window,"touchend",C,!1),c(window,"pointerup",C,!1)):f.current=null}},C=x=>{var y,D;((D=x.pointerId)!==null&&D!==void 0?D:(y=x.changedTouches)===null||y===void 0?void 0:y[0].identifier)===v.current&&(f.current!=null&&(t.setThumbDragging(f.current,!1),f.current=null),d(window,"mouseup",C,!1),d(window,"touchend",C,!1),d(window,"pointerup",C,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var x;(x=document.getElementById(zy(t,0)))===null||x===void 0||x.focus(),MC("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:xt({onMouseDown(x){x.button!==0||x.altKey||x.ctrlKey||x.metaKey||$(x,void 0,x.clientX,x.clientY)},onPointerDown(x){x.pointerType==="mouse"&&(x.button!==0||x.altKey||x.ctrlKey||x.metaKey)||$(x,x.pointerId,x.clientX,x.clientY)},onTouchStart(x){$(x,x.changedTouches[0].identifier,x.changedTouches[0].clientX,x.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((x,y)=>zy(t,y)).join(" "),"aria-live":"off"}}}function ij(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:o,trackRef:a,inputRef:u,orientation:c=t.orientation,name:d}=e,f=e.isDisabled||t.isDisabled,h=c==="vertical",{direction:m}=Qn(),{addGlobalListener:g,removeGlobalListener:v}=Uu(),$=Db.get(t);var C;const{labelProps:x,fieldProps:y}=tp({...e,id:zy(t,n),"aria-labelledby":`${$.id} ${(C=e["aria-labelledby"])!==null&&C!==void 0?C:""}`.trim()}),D=t.values[n],P=b.useCallback(()=>{u.current&&vi(u.current)},[u]),E=t.focusedThumb===n;b.useEffect(()=>{E&&P()},[E,P]);let T=m==="rtl",k=b.useRef(null),{keyboardProps:S}=FC({onKeyDown(L){let{getThumbMaxValue:_,getThumbMinValue:M,decrementThumb:Y,incrementThumb:V,setThumbValue:z,setThumbDragging:re,pageSize:oe}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),re(n,!0),L.key){case"PageUp":V(n,oe);break;case"PageDown":Y(n,oe);break;case"Home":z(n,M(n));break;case"End":z(n,_(n));break}re(n,!1)}}),{moveProps:U}=kC({onMoveStart(){k.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:_,pointerType:M,shiftKey:Y}){const{getThumbPercent:V,setThumbPercent:z,decrementThumb:re,incrementThumb:oe,step:fe,pageSize:ie}=t;if(!a.current)return;let{width:Ee,height:$e}=a.current.getBoundingClientRect(),ne=h?$e:Ee;if(k.current==null&&(k.current=V(n)*ne),M==="keyboard")L>0&&T||L<0&&!T||_>0?re(n,Y?ie:fe):oe(n,Y?ie:fe);else{let ye=h?_:L;(h||T)&&(ye=-ye),k.current+=ye,z(n,Tu(k.current/ne,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!f);const{focusableProps:O}=cb(xt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),u);let F=b.useRef(void 0),G=L=>{P(),F.current=L,t.setThumbDragging(n,!0),g(window,"mouseup",K,!1),g(window,"touchend",K,!1),g(window,"pointerup",K,!1)},K=L=>{var _,M;((M=L.pointerId)!==null&&M!==void 0?M:(_=L.changedTouches)===null||_===void 0?void 0:_[0].identifier)===F.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",K,!1),v(window,"touchend",K,!1),v(window,"pointerup",K,!1))},W=t.getThumbPercent(n);(h||m==="rtl")&&(W=1-W);let j=f?{}:xt(S,U,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||G(L.pointerId)},onTouchStart:L=>{G(L.changedTouches[0].identifier)}});return ob(u,D,L=>{t.setThumbValue(n,L)}),{inputProps:xt(O,y,{type:"range",tabIndex:f?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:D,name:d,disabled:f,"aria-orientation":c,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":o||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[$["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[$["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:L=>{t.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:{...j,style:{position:"absolute",[h?"top":"left"]:`${W*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:x,isDragging:t.isThumbDragging(n),isDisabled:f,isFocused:E}}function oj(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:o=!1,type:a="text",validationBehavior:u="aria"}=e,[c,d]=Fr(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=cb(e,t),h=Kc({...e,value:c}),{isInvalid:m,validationErrors:g,validationDetails:v}=h.displayValidation,{labelProps:$,fieldProps:C,descriptionProps:x,errorMessageProps:y}=np({...e,isInvalid:m,errorMessage:e.errorMessage||g}),D=Po(e,{labelable:!0});const P={type:a,pattern:e.pattern};return ob(t,c,d),o5(e,h,t),b.useEffect(()=>{if(t.current instanceof fa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:$,inputProps:xt(D,n==="input"?P:void 0,{disabled:r,readOnly:o,required:i&&u==="native","aria-required":i&&u==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...C}),descriptionProps:x,errorMessageProps:y,isInvalid:m,validationErrors:g,validationDetails:v}}var a5={};a5={Empty:"فارغ"};var s5={};s5={Empty:"Изпразни"};var u5={};u5={Empty:"Prázdné"};var l5={};l5={Empty:"Tom"};var c5={};c5={Empty:"Leer"};var d5={};d5={Empty:"Άδειο"};var f5={};f5={Empty:"Empty"};var h5={};h5={Empty:"Vacío"};var p5={};p5={Empty:"Tühjenda"};var m5={};m5={Empty:"Tyhjä"};var g5={};g5={Empty:"Vide"};var y5={};y5={Empty:"ריק"};var v5={};v5={Empty:"Prazno"};var b5={};b5={Empty:"Üres"};var $5={};$5={Empty:"Vuoto"};var x5={};x5={Empty:"空"};var w5={};w5={Empty:"비어 있음"};var D5={};D5={Empty:"Tuščias"};var E5={};E5={Empty:"Tukšs"};var C5={};C5={Empty:"Tom"};var S5={};S5={Empty:"Leeg"};var T5={};T5={Empty:"Pusty"};var A5={};A5={Empty:"Vazio"};var P5={};P5={Empty:"Vazio"};var _5={};_5={Empty:"Gol"};var R5={};R5={Empty:"Не заполнено"};var O5={};O5={Empty:"Prázdne"};var M5={};M5={Empty:"Prazen"};var F5={};F5={Empty:"Prazno"};var k5={};k5={Empty:"Tomt"};var B5={};B5={Empty:"Boş"};var I5={};I5={Empty:"Пусто"};var L5={};L5={Empty:"空"};var V5={};V5={Empty:"空白"};var N5={};N5={"ar-AE":a5,"bg-BG":s5,"cs-CZ":u5,"da-DK":l5,"de-DE":c5,"el-GR":d5,"en-US":f5,"es-ES":h5,"et-EE":p5,"fi-FI":m5,"fr-FR":g5,"he-IL":y5,"hr-HR":v5,"hu-HU":b5,"it-IT":$5,"ja-JP":x5,"ko-KR":w5,"lt-LT":D5,"lv-LV":E5,"nb-NO":C5,"nl-NL":S5,"pl-PL":T5,"pt-BR":A5,"pt-PT":P5,"ro-RO":_5,"ru-RU":R5,"sk-SK":O5,"sl-SI":M5,"sr-SP":F5,"sv-SE":k5,"tr-TR":B5,"uk-UA":I5,"zh-CN":L5,"zh-TW":V5};function aj(e){return e&&e.__esModule?e.default:e}function sj(e){const t=b.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:o,isDisabled:a,isReadOnly:u,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:h,onDecrementPage:m,onDecrementToMin:g,onIncrementToMax:v}=e;const $=Qi(aj(N5),"@react-aria/spinbutton"),C=()=>clearTimeout(t.current);b.useEffect(()=>()=>C(),[]);let x=F=>{if(!(F.ctrlKey||F.metaKey||F.shiftKey||F.altKey||u))switch(F.key){case"PageUp":if(f){F.preventDefault(),f==null||f();break}case"ArrowUp":case"Up":d&&(F.preventDefault(),d==null||d());break;case"PageDown":if(m){F.preventDefault(),m==null||m();break}case"ArrowDown":case"Down":h&&(F.preventDefault(),h==null||h());break;case"Home":g&&(F.preventDefault(),g==null||g());break;case"End":v&&(F.preventDefault(),v==null||v());break}},y=b.useRef(!1),D=()=>{y.current=!0},P=()=>{y.current=!1},E=r===""?$.format("Empty"):(r||`${n}`).replace("-","−");b.useEffect(()=>{y.current&&(IN("assertive"),pu(E,"assertive"))},[E]);const T=wn(F=>{C(),d==null||d(),t.current=window.setTimeout(()=>{(o===void 0||isNaN(o)||n===void 0||isNaN(n)||n<o)&&T(60)},F)}),k=wn(F=>{C(),h==null||h(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&k(60)},F)});let S=F=>{F.preventDefault()},{addGlobalListener:U,removeAllGlobalListeners:O}=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":c||void 0,onKeyDown:x,onFocus:D,onBlur:P},incrementButtonProps:{onPressStart:()=>{T(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P},decrementButtonProps:{onPressStart:()=>{k(400),U(window,"contextmenu",S)},onPressEnd:()=>{C(),O()},onFocus:D,onBlur:P}}}var j5={};j5={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var K5={};K5={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var U5={};U5={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var z5={};z5={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var W5={};W5={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var H5={};H5={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var G5={};G5={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var q5={};q5={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Y5={};Y5={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Z5={};Z5={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var J5={};J5={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var X5={};X5={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Q5={};Q5={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var e2={};e2={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var t2={};t2={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var n2={};n2={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var r2={};r2={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var i2={};i2={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var o2={};o2={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var a2={};a2={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var s2={};s2={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var u2={};u2={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var l2={};l2={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var c2={};c2={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var d2={};d2={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var f2={};f2={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var h2={};h2={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var p2={};p2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var m2={};m2={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var g2={};g2={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var y2={};y2={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var v2={};v2={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var b2={};b2={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var $2={};$2={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var x2={};x2={"ar-AE":j5,"bg-BG":K5,"cs-CZ":U5,"da-DK":z5,"de-DE":W5,"el-GR":H5,"en-US":G5,"es-ES":q5,"et-EE":Y5,"fi-FI":Z5,"fr-FR":J5,"he-IL":X5,"hr-HR":Q5,"hu-HU":e2,"it-IT":t2,"ja-JP":n2,"ko-KR":r2,"lt-LT":i2,"lv-LV":o2,"nb-NO":a2,"nl-NL":s2,"pl-PL":u2,"pt-BR":l2,"pt-PT":c2,"ro-RO":d2,"ru-RU":f2,"sk-SK":h2,"sl-SI":p2,"sr-SP":m2,"sv-SE":g2,"tr-TR":y2,"uk-UA":v2,"zh-CN":b2,"zh-TW":$2};const ji={top:"top",bottom:"top",left:"left",right:"left"},uh={top:"bottom",bottom:"top",left:"right",right:"left"},uj={top:"left",left:"top"},Wy={top:"height",left:"width"},w2={width:"totalWidth",height:"totalHeight"},df={};let Tn=typeof document<"u"?window.visualViewport:null;function N$(e){let t=0,n=0,r=0,i=0,o=0,a=0,u={};var c;let d=((c=Tn==null?void 0:Tn.scale)!==null&&c!==void 0?c:1)>1;if(e.tagName==="BODY"){let v=document.documentElement;r=v.clientWidth,i=v.clientHeight;var f;t=(f=Tn==null?void 0:Tn.width)!==null&&f!==void 0?f:r;var h;n=(h=Tn==null?void 0:Tn.height)!==null&&h!==void 0?h:i,u.top=v.scrollTop||e.scrollTop,u.left=v.scrollLeft||e.scrollLeft,Tn&&(o=Tn.offsetTop,a=Tn.offsetLeft)}else({width:t,height:n,top:o,left:a}=mu(e)),u.top=e.scrollTop,u.left=e.scrollLeft,r=t,i=n;if(ib()&&(e.tagName==="BODY"||e.tagName==="HTML")&&d){u.top=0,u.left=0;var m;o=(m=Tn==null?void 0:Tn.pageTop)!==null&&m!==void 0?m:0;var g;a=(g=Tn==null?void 0:Tn.pageLeft)!==null&&g!==void 0?g:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:u,top:o,left:a}}function lj(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function j$(e,t,n,r,i,o,a){var u;let c=(u=i.scroll[e])!==null&&u!==void 0?u:0,d=r[Wy[e]],f=r.scroll[ji[e]]+o,h=d+r.scroll[ji[e]]-o,m=t-c+a[e]-r[ji[e]],g=t-c+n+a[e]-r[ji[e]];return m<f?f-m:g>h?Math.max(h-g,f-m):0}function cj(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function K$(e){if(df[e])return df[e];let[t,n]=e.split(" "),r=ji[t]||"right",i=uj[r];ji[n]||(n="center");let o=Wy[r],a=Wy[i];return df[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:o,crossSize:a},df[e]}function lg(e,t,n,r,i,o,a,u,c,d){let{placement:f,crossPlacement:h,axis:m,crossAxis:g,size:v,crossSize:$}=r,C={};var x;C[g]=(x=e[g])!==null&&x!==void 0?x:0;var y,D,P,E;h==="center"?C[g]+=(((y=e[$])!==null&&y!==void 0?y:0)-((D=n[$])!==null&&D!==void 0?D:0))/2:h!==g&&(C[g]+=((P=e[$])!==null&&P!==void 0?P:0)-((E=n[$])!==null&&E!==void 0?E:0)),C[g]+=o;const T=e[g]-n[$]+c+d,k=e[g]+e[$]-c-d;if(C[g]=Tu(C[g],T,k),f===m){const S=u?a[v]:t[w2[v]];C[uh[m]]=Math.floor(S-e[m]+i)}else C[m]=Math.floor(e[m]+e[v]+i);return C}function dj(e,t,n,r,i,o,a,u){const c=r?n.height:t[w2.height];var d;let f=e.top!=null?n.top+e.top:n.top+(c-((d=e.bottom)!==null&&d!==void 0?d:0)-a);var h,m,g,v,$,C;let x=u!=="top"?Math.max(0,t.height+t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0)-f-(((m=i.top)!==null&&m!==void 0?m:0)+((g=i.bottom)!==null&&g!==void 0?g:0)+o)):Math.max(0,f+a-(t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0))-((($=i.top)!==null&&$!==void 0?$:0)+((C=i.bottom)!==null&&C!==void 0?C:0)+o));return Math.min(t.height-o*2,x)}function U$(e,t,n,r,i,o){let{placement:a,axis:u,size:c}=o;var d,f;if(a===u)return Math.max(0,n[u]-e[u]-((d=e.scroll[u])!==null&&d!==void 0?d:0)+t[u]-((f=r[u])!==null&&f!==void 0?f:0)-r[uh[u]]-i);var h;return Math.max(0,e[c]+e[u]+e.scroll[u]-t[u]-n[u]-n[c]-((h=r[u])!==null&&h!==void 0?h:0)-r[uh[u]]-i)}function fj(e,t,n,r,i,o,a,u,c,d,f,h,m,g,v,$){let C=K$(e),{size:x,crossAxis:y,crossSize:D,placement:P,crossPlacement:E}=C,T=lg(t,u,n,C,f,h,d,m,v,$),k=f,S=U$(u,d,t,i,o+f,C);if(a&&r[x]>S){let fe=K$(`${uh[P]} ${E}`),ie=lg(t,u,n,fe,f,h,d,m,v,$);U$(u,d,t,i,o+f,fe)>S&&(C=fe,T=ie,k=f)}let U="bottom";C.axis==="top"?C.placement==="top"?U="top":C.placement==="bottom"&&(U="bottom"):C.crossAxis==="top"&&(C.crossPlacement==="top"?U="bottom":C.crossPlacement==="bottom"&&(U="top"));let O=j$(y,T[y],n[D],u,c,o,d);T[y]+=O;let F=dj(T,u,d,m,i,o,n.height,U);g&&g<F&&(F=g),n.height=Math.min(n.height,F),T=lg(t,u,n,C,k,h,d,m,v,$),O=j$(y,T[y],n[D],u,c,o,d),T[y]+=O;let G={},K=t[y]+.5*t[D]-T[y]-i[ji[y]];const W=v/2+$;var j,L,_,M;const Y=ji[y]==="left"?((j=i.left)!==null&&j!==void 0?j:0)+((L=i.right)!==null&&L!==void 0?L:0):((_=i.top)!==null&&_!==void 0?_:0)+((M=i.bottom)!==null&&M!==void 0?M:0),V=n[D]-Y-v/2-$,z=t[y]+v/2-(T[y]+i[ji[y]]),re=t[y]+t[D]-v/2-(T[y]+i[ji[y]]),oe=Tu(K,z,re);return G[y]=Tu(oe,W,V),{position:T,maxHeight:F,arrowOffsetLeft:G.left,arrowOffsetTop:G.top,placement:C.placement}}function hj(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:o,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:f,arrowSize:h=0,arrowBoundaryOffset:m=0}=e,g=r instanceof HTMLElement?pj(r):document.documentElement,v=g===document.documentElement;const $=window.getComputedStyle(g).position;let C=!!$&&$!=="static",x=v?mu(n):z$(n,g);if(!v){let{marginTop:G,marginLeft:K}=window.getComputedStyle(n);x.top+=parseInt(G,10)||0,x.left+=parseInt(K,10)||0}let y=mu(r),D=cj(r);var P,E;y.width+=((P=D.left)!==null&&P!==void 0?P:0)+((E=D.right)!==null&&E!==void 0?E:0);var T,k;y.height+=((T=D.top)!==null&&T!==void 0?T:0)+((k=D.bottom)!==null&&k!==void 0?k:0);let S=lj(i),U=N$(u),O=N$(g),F=u.tagName==="BODY"?mu(g):z$(g,u);return g.tagName==="HTML"&&u.tagName==="BODY"&&(O.scroll.top=0,O.scroll.left=0),fj(t,x,y,S,D,o,a,U,O,F,c,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:c}=document.documentElement;return{top:t+o-u,left:n+a-c,width:r,height:i}}function z$(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:o,width:a,height:u}=e.getBoundingClientRect();r={top:i,left:o,width:a,height:u}}else{r=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 pj(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!W$(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!W$(t);)t=t.parentElement;return t||document.documentElement}function W$(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const D2=new WeakMap;function mj(e){let{triggerRef:t,isOpen:n,onClose:r}=e;b.useEffect(()=>{if(!n||r===null)return;let i=o=>{let a=o.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement)return;let u=r||D2.get(t.current);u&&u()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let ln=typeof document<"u"?window.visualViewport:null;function gj(e){let{direction:t}=Qn(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:o=i,placement:a="bottom",containerPadding:u=12,shouldFlip:c=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:f=0,crossOffset:h=0,shouldUpdatePosition:m=!0,isOpen:g=!0,onClose:v,maxHeight:$,arrowBoundaryOffset:C=0}=e,[x,y]=b.useState(null),D=[m,a,i.current,r.current,o.current,u,c,d,f,h,g,t,$,C,n],P=b.useRef(ln==null?void 0:ln.scale);b.useEffect(()=>{g&&(P.current=ln==null?void 0:ln.scale)},[g]);let E=b.useCallback(()=>{if(m===!1||!g||!i.current||!r.current||!d||(ln==null?void 0:ln.scale)!==P.current)return;let O=null;if(o.current&&o.current.contains(document.activeElement)){var F;let M=(F=document.activeElement)===null||F===void 0?void 0:F.getBoundingClientRect(),Y=o.current.getBoundingClientRect();var G;if(O={type:"top",offset:((G=M==null?void 0:M.top)!==null&&G!==void 0?G:0)-Y.top},O.offset>Y.height/2){O.type="bottom";var K;O.offset=((K=M==null?void 0:M.bottom)!==null&&K!==void 0?K:0)-Y.bottom}}let W=i.current;if(!$&&i.current){var j;W.style.top="0px",W.style.bottom="";var L;W.style.maxHeight=((L=(j=window.visualViewport)===null||j===void 0?void 0:j.height)!==null&&L!==void 0?L:window.innerHeight)+"px"}let _=hj({placement:vj(a,t),overlayNode:i.current,targetNode:r.current,scrollNode:o.current||i.current,padding:u,shouldFlip:c,boundaryElement:d,offset:f,crossOffset:h,maxHeight:$,arrowSize:n,arrowBoundaryOffset:C});if(_.position){if(W.style.top="",W.style.bottom="",W.style.left="",W.style.right="",Object.keys(_.position).forEach(M=>W.style[M]=_.position[M]+"px"),W.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":"",O&&document.activeElement&&o.current){let M=document.activeElement.getBoundingClientRect(),Y=o.current.getBoundingClientRect(),V=M[O.type]-Y[O.type];o.current.scrollTop+=V-O.offset}y(_)}},D);zt(E,D),yj(E),Y3({ref:i,onResize:E}),Y3({ref:r,onResize:E});let T=b.useRef(!1);zt(()=>{let O,F=()=>{T.current=!0,clearTimeout(O),O=setTimeout(()=>{T.current=!1},500),E()},G=()=>{T.current&&F()};return ln==null||ln.addEventListener("resize",F),ln==null||ln.addEventListener("scroll",G),()=>{ln==null||ln.removeEventListener("resize",F),ln==null||ln.removeEventListener("scroll",G)}},[E]);let k=b.useCallback(()=>{T.current||v==null||v()},[v,T]);mj({triggerRef:r,isOpen:g,onClose:v&&k});var S,U;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(S=x==null?void 0:x.maxHeight)!==null&&S!==void 0?S:"100vh"}},placement:(U=x==null?void 0:x.placement)!==null&&U!==void 0?U:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:E}}function yj(e){zt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function vj(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const ho=[];function bj(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:o=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:u}=e;b.useEffect(()=>(i&&ho.push(t),()=>{let v=ho.indexOf(t);v>=0&&ho.splice(v,1)}),[i,t]);let c=()=>{ho[ho.length-1]===t&&n&&n()},d=v=>{(!u||u(v.target))&&ho[ho.length-1]===t&&(v.stopPropagation(),v.preventDefault())},f=v=>{(!u||u(v.target))&&(ho[ho.length-1]===t&&(v.stopPropagation(),v.preventDefault()),c())},h=v=>{v.key==="Escape"&&!a&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),c())};tV({ref:t,onInteractOutside:o&&i?f:void 0,onInteractOutsideStart:d});let{focusWithinProps:m}=zu({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||cV(v.relatedTarget)||(!u||u(v.relatedTarget))&&(n==null||n())}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:h,...m},underlayProps:{onPointerDown:g}}}function $j(e,t,n){let{type:r}=e,{isOpen:i}=t;b.useEffect(()=>{n&&n.current&&D2.set(n.current,t.close)});let o;r==="menu"?o=!0:r==="listbox"&&(o="listbox");let a=Mr();return{triggerProps:{"aria-haspopup":o,"aria-expanded":i,"aria-controls":i?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const cg=typeof document<"u"&&window.visualViewport,xj=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ff=0,dg;function wj(e={}){let{isDisabled:t}=e;zt(()=>{if(!t)return ff++,ff===1&&(Mc()?dg=Ej():dg=Dj()),()=>{ff--,ff===0&&dg()}},[t])}function Dj(){return as(eu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),eu(document.documentElement,"overflow","hidden"))}function Ej(){let e,t,n=d=>{e=qh(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=d=>{let f=d.target;G$(f)&&f!==document.activeElement&&(d.preventDefault(),u(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""})),t&&t()},o=d=>{let f=d.target;G$(f)&&(u(),f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",cg&&(cg.height<window.innerHeight?requestAnimationFrame(()=>{H$(f)}):cg.addEventListener("resize",()=>H$(f),{once:!0}))}))},a=null,u=()=>{if(a)return;let d=()=>{window.scrollTo(0,0)},f=window.pageXOffset,h=window.pageYOffset;a=as(Al(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)},c=as(Al(document,"touchstart",n,{passive:!1,capture:!0}),Al(document,"touchmove",r,{passive:!1,capture:!0}),Al(document,"touchend",i,{passive:!1,capture:!0}),Al(document,"focus",o,!0));return()=>{t==null||t(),a==null||a(),c()}}function eu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Al(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function H$(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=qh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,o=n.getBoundingClientRect().top;o>i+n.clientHeight&&(r.scrollTop+=o-i)}n=r.parentElement}}function G$(e){return e instanceof HTMLInputElement&&!xj.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let Pl=new WeakMap,Yr=[];function E2(e,t=document.body){let n=new Set(e),r=new Set,i=c=>{for(let m of c.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(m);let d=m=>{if(n.has(m)||m.parentElement&&r.has(m.parentElement)&&m.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let g of n)if(m.contains(g))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},f=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT,{acceptNode:d}),h=d(c);if(h===NodeFilter.FILTER_ACCEPT&&o(c),h!==NodeFilter.FILTER_REJECT){let m=f.nextNode();for(;m!=null;)o(m),m=f.nextNode()}},o=c=>{var d;let f=(d=Pl.get(c))!==null&&d!==void 0?d:0;c.getAttribute("aria-hidden")==="true"&&f===0||(f===0&&c.setAttribute("aria-hidden","true"),r.add(c),Pl.set(c,f+1))};Yr.length&&Yr[Yr.length-1].disconnect(),i(t);let a=new MutationObserver(c=>{for(let d of c)if(!(d.type!=="childList"||d.addedNodes.length===0)&&![...n,...r].some(f=>f.contains(d.target))){for(let f of d.removedNodes)f instanceof Element&&(n.delete(f),r.delete(f));for(let f of d.addedNodes)(f instanceof HTMLElement||f instanceof SVGElement)&&(f.dataset.liveAnnouncer==="true"||f.dataset.reactAriaTopLayer==="true")?n.add(f):f instanceof Element&&i(f)}});a.observe(t,{childList:!0,subtree:!0});let u={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return Yr.push(u),()=>{a.disconnect();for(let c of r){let d=Pl.get(c);d!=null&&(d===1?(c.removeAttribute("aria-hidden"),Pl.delete(c)):Pl.set(c,d-1))}u===Yr[Yr.length-1]?(Yr.pop(),Yr.length&&Yr[Yr.length-1].observe()):Yr.splice(Yr.indexOf(u),1)}}function Cj(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:a,...u}=e,{overlayProps:c,underlayProps:d}=bj({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}=gj({...u,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return wj({isDisabled:i||!t.isOpen}),zt(()=>{if(t.isOpen&&!i&&r.current)return E2([r.current])},[i,t.isOpen,r]),{popoverProps:xt(c,f),arrowProps:h,underlayProps:d,placement:m}}const Sj=b.createContext({});function Tj(){var e;return(e=b.useContext(Sj))!==null&&e!==void 0?e:{}}const C2=b.createContext(null);function Aj(e){let t=nb(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,o]=b.useState(!1),a=b.useMemo(()=>({contain:i,setContain:o}),[i,o]),{getContainer:u}=Tj();if(!e.portalContainer&&u&&(n=u()),!n)return null;let c=e.children;return e.disableFocusManagement||(c=b.createElement(oV,{restoreFocus:!0,contain:i&&!r},c)),c=b.createElement(C2.Provider,{value:a},b.createElement(GL,null,c)),aa.createPortal(c,n)}function Pj(){let e=b.useContext(C2),t=e==null?void 0:e.setContain;zt(()=>{t==null||t(!0)},[t])}const rp=new WeakMap;function _j(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function S2(e,t){let n=rp.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${_j(t)}`}function Hy(e){return Pf()?e.altKey:e.ctrlKey}function Js(e){return Co()?e.metaKey:e.ctrlKey}const Rj=1e3;function Oj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=b.useRef({search:"",timeout:void 0}).current,o=a=>{let u=Mj(a.key);if(!(!u||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(u===" "&&i.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),i.search+=u,t.getKeyForSearch!=null){let c=t.getKeyForSearch(i.search,n.focusedKey);c==null&&(c=t.getKeyForSearch(i.search)),c!=null&&(n.setFocusedKey(c),r&&r(c))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Rj)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?o:void 0}}}function Mj(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function T2(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:h=!1,isVirtualized:m,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:$}=Qn(),C=Gh(),x=O=>{var F;if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!(!((F=r.current)===null||F===void 0)&&F.contains(O.target)))return;const G=(ie,Ee)=>{if(ie!=null){if(t.isLink(ie)&&v==="selection"&&c&&!Hy(O)){var $e;aa.flushSync(()=>{t.setFocusedKey(ie,Ee)});let ne=($e=g.current)===null||$e===void 0?void 0:$e.querySelector(`[data-key="${CSS.escape(ie.toString())}"]`),ye=t.getItemProps(ie);ne&&C.open(ne,O,ye.href,ye.routerOptions);return}if(t.setFocusedKey(ie,Ee),t.isLink(ie)&&v==="override")return;O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&!Hy(O)&&t.replaceSelection(ie)}};switch(O.key){case"ArrowDown":if(n.getKeyBelow){var K,W,j;let ie=t.focusedKey!=null?(K=n.getKeyBelow)===null||K===void 0?void 0:K.call(n,t.focusedKey):(W=n.getFirstKey)===null||W===void 0?void 0:W.call(n);ie==null&&o&&(ie=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowUp":if(n.getKeyAbove){var L,_,M;let ie=t.focusedKey!=null?(L=n.getKeyAbove)===null||L===void 0?void 0:L.call(n,t.focusedKey):(_=n.getLastKey)===null||_===void 0?void 0:_.call(n);ie==null&&o&&(ie=(M=n.getLastKey)===null||M===void 0?void 0:M.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Y,V,z;let ie=t.focusedKey!=null?(Y=n.getKeyLeftOf)===null||Y===void 0?void 0:Y.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(V=n.getFirstKey)===null||V===void 0?void 0:V.call(n,t.focusedKey):(z=n.getLastKey)===null||z===void 0?void 0:z.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var re,oe,fe;let ie=t.focusedKey!=null?(re=n.getKeyRightOf)===null||re===void 0?void 0:re.call(n,t.focusedKey):null;ie==null&&o&&(ie=$==="rtl"?(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey):(fe=n.getFirstKey)===null||fe===void 0?void 0:fe.call(n,t.focusedKey)),ie!=null&&(O.preventDefault(),G(ie,$==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){O.preventDefault();let ie=n.getFirstKey(t.focusedKey,Js(O));t.setFocusedKey(ie),ie!=null&&(Js(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"End":if(n.getLastKey){O.preventDefault();let ie=n.getLastKey(t.focusedKey,Js(O));t.setFocusedKey(ie),ie!=null&&(Js(O)&&O.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(ie):c&&t.replaceSelection(ie))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let ie=n.getKeyPageBelow(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let ie=n.getKeyPageAbove(t.focusedKey);ie!=null&&(O.preventDefault(),G(ie))}break;case"a":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 ie=wr(r.current,{tabbable:!0}),Ee,$e;do $e=ie.lastChild(),$e&&(Ee=$e);while($e);Ee&&!Ee.contains(document.activeElement)&&vi(Ee)}break}}},y=b.useRef({top:0,left:0});sa(g,"scroll",m?void 0:()=>{var O,F,G,K;y.current={top:(G=(O=g.current)===null||O===void 0?void 0:O.scrollTop)!==null&&G!==void 0?G:0,left:(K=(F=g.current)===null||F===void 0?void 0:F.scrollLeft)!==null&&K!==void 0?K:0}});let D=O=>{if(t.isFocused){O.currentTarget.contains(O.target)||t.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(t.setFocused(!0),t.focusedKey==null){var F,G;let j=_=>{_!=null&&(t.setFocusedKey(_),c&&t.replaceSelection(_))},L=O.relatedTarget;var K,W;L&&O.currentTarget.compareDocumentPosition(L)&Node.DOCUMENT_POSITION_FOLLOWING?j((K=t.lastSelectedKey)!==null&&K!==void 0?K:(F=n.getLastKey)===null||F===void 0?void 0:F.call(n)):j((W=t.firstSelectedKey)!==null&&W!==void 0?W:(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n))}else!m&&g.current&&(g.current.scrollTop=y.current.top,g.current.scrollLeft=y.current.left);if(t.focusedKey!=null&&g.current){let j=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);j&&(j.contains(document.activeElement)||vi(j),Qf()==="keyboard"&&Jf(j,{containingElement:r.current}))}}},P=O=>{O.currentTarget.contains(O.relatedTarget)||t.setFocused(!1)};const E=b.useRef(i);b.useEffect(()=>{if(E.current){var O,F;let W=null;var G;i==="first"&&(W=(G=(O=n.getFirstKey)===null||O===void 0?void 0:O.call(n))!==null&&G!==void 0?G:null);var K;i==="last"&&(W=(K=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n))!==null&&K!==void 0?K:null);let j=t.selectedKeys;if(j.size){for(let L of j)if(t.canSelectItem(L)){W=L;break}}t.setFocused(!0),t.setFocusedKey(W),W==null&&!f&&r.current&&ls(r.current)}},[]);let T=b.useRef(t.focusedKey);b.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==T.current||E.current)&&g.current&&r.current){let O=Qf(),F=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!F)return;(O==="keyboard"||E.current)&&(DC(g.current,F),O!=="virtual"&&Jf(F,{containingElement:r.current}))}!f&&t.isFocused&&t.focusedKey==null&&T.current!=null&&r.current&&ls(r.current),T.current=t.focusedKey,E.current=!1}),sa(r,"react-aria-focus-scope-restore",O=>{O.preventDefault(),t.setFocused(!0)});let k={onKeyDown:x,onFocus:D,onBlur:P,onMouseDown(O){g.current===O.target&&O.preventDefault()}},{typeSelectProps:S}=Oj({keyboardDelegate:n,selectionManager:t});d||(k=xt(S,k));let U;return f||(U=t.focusedKey==null?0:-1),{collectionProps:{...k,tabIndex:U}}}function Fj(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,h=Gh(),m=_=>{if(_.pointerType==="keyboard"&&Hy(_))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(f==="selection"&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(f==="override"||f==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):_&&_.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||_&&(Js(_)||_.pointerType==="touch"||_.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};b.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!o&&(a?a():document.activeElement!==r.current&&r.current&&ls(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),u=u||t.isDisabled(n);let g={};!o&&!u?g={tabIndex:n===t.focusedKey?0:-1,onFocus(_){_.target===r.current&&t.setFocusedKey(n)}}:u&&(g.onMouseDown=_=>{_.preventDefault()});let v=t.isLink(n)&&f==="override",$=t.isLink(n)&&f!=="selection"&&f!=="none",C=!u&&t.canSelectItem(n)&&!v,x=(c||$)&&!u,y=x&&(t.selectionBehavior==="replace"?!C:!C||t.isEmpty),D=x&&C&&t.selectionBehavior==="replace",P=y||D,E=b.useRef(null),T=P&&C,k=b.useRef(!1),S=b.useRef(!1),U=_=>{if(c&&c(),$&&r.current){let M=t.getItemProps(n);h.open(r.current,_,M.href,M.routerOptions)}},O={};i?(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,_.pointerType==="keyboard"&&(!P||Y$())&&m(_)},d?(O.onPressUp=y?void 0:_=>{_.pointerType!=="keyboard"&&C&&m(_)},O.onPress=y?U:void 0):O.onPress=_=>{if(y||D&&_.pointerType!=="mouse"){if(_.pointerType==="keyboard"&&!q$())return;U(_)}else _.pointerType!=="keyboard"&&C&&m(_)}):(O.onPressStart=_=>{E.current=_.pointerType,k.current=T,S.current=y,C&&(_.pointerType==="mouse"&&!y||_.pointerType==="keyboard"&&(!x||Y$()))&&m(_)},O.onPress=_=>{(_.pointerType==="touch"||_.pointerType==="pen"||_.pointerType==="virtual"||_.pointerType==="keyboard"&&P&&q$()||_.pointerType==="mouse"&&S.current)&&(P?U(_):C&&m(_))}),g["data-key"]=n,O.preventFocusOnPress=o;let{pressProps:F,isPressed:G}=Bc(O),K=D?_=>{E.current==="mouse"&&(_.stopPropagation(),_.preventDefault(),U(_))}:void 0,{longPressProps:W}=BC({isDisabled:!T,onLongPress(_){_.pointerType==="touch"&&(m(_),t.setSelectionBehavior("toggle"))}}),j=_=>{E.current==="touch"&&k.current&&_.preventDefault()},L=t.isLink(n)?_=>{ss.isOpening||_.preventDefault()}:void 0;return{itemProps:xt(g,C||y?F:{},T?W:{},{onDoubleClick:K,onDragStartCapture:j,onClick:L}),isPressed:G,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:u,allowsSelection:C,hasAction:P}}function q$(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Y$(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Z${getItemRect(t){let n=this.ref.current;if(!n)return null;let r=t!=null?n.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null;if(!r)return null;let i=n.getBoundingClientRect(),o=r.getBoundingClientRect();return{x:o.left-i.left+n.scrollLeft,y:o.top-i.top+n.scrollTop,width:o.width,height:o.height}}getContentSize(){let t=this.ref.current;var n,r;return{width:(n=t==null?void 0:t.scrollWidth)!==null&&n!==void 0?n:0,height:(r=t==null?void 0:t.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let t=this.ref.current;var n,r,i,o;return{x:(n=t==null?void 0:t.scrollLeft)!==null&&n!==void 0?n:0,y:(r=t==null?void 0:t.scrollTop)!==null&&r!==void 0?r:0,width:(i=t==null?void 0:t.offsetWidth)!==null&&i!==void 0?i:0,height:(o=t==null?void 0:t.offsetHeight)!==null&&o!==void 0?o:0}}constructor(t){this.ref=t}}class A2{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,n){let r=t;for(;r!=null;){let i=this.collection.getItem(r);if((i==null?void 0:i.type)==="item"&&!this.isDisabled(i))return r;r=n(r)}return null}getNextKey(t){let n=t;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,r=>this.collection.getKeyAfter(r))}getPreviousKey(t){let n=t;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,r=>this.collection.getKeyBefore(r))}findKey(t,n,r){let i=t,o=this.layoutDelegate.getItemRect(i);if(!o||i==null)return null;let a=o;do{if(i=n(i),i==null)break;o=this.layoutDelegate.getItemRect(i)}while(o&&r(a,o)&&i!=null);return i}isSameRow(t,n){return t.y===n.y||t.x!==n.x}isSameColumn(t,n){return t.x===n.x||t.y!==n.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let n=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let n=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[n]?(t=this.layoutDelegate[n](t),this.findNextNonDisabled(t,r=>this.layoutDelegate[n](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyAfter(n))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,n=>this.collection.getKeyBefore(n))}getKeyPageAbove(t){let n=this.ref.current,r=this.layoutDelegate.getItemRect(t);if(!r)return null;if(n&&!dc(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&&!dc(n))return this.getLastKey();let i=t;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<o&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}return i??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let o=r.getItem(i);if(!o)return null;let a=o.textValue.slice(0,t.length);if(o.textValue&&this.collator.compare(a,t)===0)return i;i=this.getNextKey(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation||"vertical",this.direction=n.direction,this.layout=n.layout||"stack",this.layoutDelegate=n.layoutDelegate||new Z$(n.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Z$(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function kj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:o,layoutDelegate:a}=e,u=bS({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=b.useMemo(()=>o||new A2({collection:n,disabledKeys:r,disabledBehavior:c,ref:i,collator:u,layoutDelegate:a}),[o,a,n,r,i,u,c]),{collectionProps:f}=T2({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:f}}function Bj(e,t,n){let r=Po(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&o==="action"&&(o="override");let{listProps:a}=kj({...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}),c=Mr(e.id);rp.set(t,{id:c,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:d,fieldProps:f}=tp({...e,id:c,labelElementType:"span"});return{labelProps:d,listBoxProps:xt(r,u,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...xt(f,a)})}}function P2(e){return null}P2.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:o}=t,a=t.title||t.children,u=t.textValue||(typeof a=="string"?a:"")||t["aria-label"]||"";!u&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:a,textValue:u,"aria-label":t["aria-label"],hasChildNodes:Ij(t),*childNodes(){if(r)for(let c of r)yield{type:"item",value:c};else if(i){let c=[];b.Children.forEach(o,d=>{c.push({type:"item",element:d})}),yield*c}}}};function Ij(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&b.Children.count(e.children)>0)}let Lj=P2;class Vj{build(t,n){return this.context=n,J$(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(b.isValidElement(n)&&n.type===b.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let i=0;for(let o of r)yield*this.getFullNode({value:o,index:i},{renderer:n}),i++}else{let i=[];b.Children.forEach(n,a=>{a&&i.push(a)});let o=0;for(let a of i){let u=this.getFullNode({element:a,index:o},{});for(let c of u)o++,yield c}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let o=n.value;if(o!=null){var a;let u=(a=o.key)!==null&&a!==void 0?a:o.id;if(u==null)throw new Error("No key found for item");return u}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(b.isValidElement(t.element)&&t.element.type===b.Fragment){let C=[];b.Children.forEach(t.element.props.children,y=>{C.push(y)});var o;let x=(o=t.index)!==null&&o!==void 0?o:0;for(const y of C)yield*this.getFullNode({element:y,index:x++},n,r,i);return}let a=t.element;if(!a&&t.value&&n&&n.renderer){let C=this.cache.get(t.value);if(C&&(!C.shouldInvalidate||!C.shouldInvalidate(this.context))){C.index=t.index,C.parentKey=i?i.key:null,yield C;return}a=n.renderer(t.value)}if(b.isValidElement(a)){let C=a.type;if(typeof C!="function"&&typeof C.getCollectionNode!="function"){let P=a.type;throw new Error(`Unknown element <${P}> in collection.`)}let x=C.getCollectionNode(a.props,this.context);var u;let y=(u=t.index)!==null&&u!==void 0?u:0,D=x.next();for(;!D.done&&D.value;){let P=D.value;t.index=y;var c;let E=(c=P.key)!==null&&c!==void 0?c:null;E==null&&(E=P.element?null:this.getKey(a,t,n,r));let k=[...this.getFullNode({...P,key:E,index:y,wrapper:Nj(t.wrapper,P.wrapper)},this.getChildState(n,P),r?`${r}${a.key}`:a.key,i)];for(let S of k){var d,f;S.value=(f=(d=P.value)!==null&&d!==void 0?d:t.value)!==null&&f!==void 0?f:null,S.value&&this.cache.set(S.value,S);var h;if(t.type&&S.type!==t.type)throw new Error(`Unsupported type <${fg(S.type)}> in <${fg((h=i==null?void 0:i.type)!==null&&h!==void 0?h:"unknown parent type")}>. Only <${fg(t.type)}> is supported.`);y++,yield S}D=x.next(k)}return}if(t.key==null||t.type==null)return;let m=this;var g,v;let $={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(g=t.value)!==null&&g!==void 0?g:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(v=t.textValue)!==null&&v!==void 0?v:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:J$(function*(){if(!t.hasChildNodes||!t.childNodes)return;let C=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${$.key}${x.key}`);let y=m.getFullNode({...x,index:C},m.getChildState(n,x),$.key,$);for(let D of y)C++,yield D}})};yield $}constructor(){this.cache=new WeakMap}}function J$(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function Nj(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function fg(e){return e[0].toUpperCase()+e.slice(1)}function jj(e,t,n){let r=b.useMemo(()=>new Vj,[]),{children:i,items:o,collection:a}=e;return b.useMemo(()=>{if(a)return a;let c=r.build({children:i,items:o},n);return t(c)},[r,i,o,a,n,t])}function ip(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Kj(e){return Uj(e)}function Uj(e,t){for(let n of e)return n}function hg(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...X$(e,t),t],i=[...X$(e,n),n],o=r.slice(0,i.length).findIndex((a,u)=>a!==i[u]);return o!==-1?(t=r[o],n=i[o],t.index-n.index):r.findIndex(a=>a===n)>=0?1:(i.findIndex(a=>a===t)>=0,-1)}function X$(e,t){let n=[],r=t;for(;(r==null?void 0:r.parentKey)!=null;)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}const Q$=new WeakMap;function _2(e){let t=Q$.get(e);if(t!=null)return t;let n=0,r=i=>{for(let o of i)o.type==="section"?r(ip(o,e)):n++};return r(e),Q$.set(e,n),n}function zj(e,t,n){var r,i;let{key:o}=e,a=rp.get(t);var u;let c=(u=e.isDisabled)!==null&&u!==void 0?u:t.selectionManager.isDisabled(o);var d;let f=(d=e.isSelected)!==null&&d!==void 0?d:t.selectionManager.isSelected(o);var h;let m=(h=e.shouldSelectOnPressUp)!==null&&h!==void 0?h:a==null?void 0:a.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:a==null?void 0:a.shouldFocusOnHover;var $;let C=($=e.shouldUseVirtualFocus)!==null&&$!==void 0?$:a==null?void 0:a.shouldUseVirtualFocus;var x;let y=(x=e.isVirtualized)!==null&&x!==void 0?x:a==null?void 0:a.isVirtualized,D=Cu(),P=Cu(),E={role:"option","aria-disabled":c||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?f:void 0};Co()&&ib()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=D,E["aria-describedby"]=P);let T=t.collection.getItem(o);if(y){let L=Number(T==null?void 0:T.index);E["aria-posinset"]=Number.isNaN(L)?void 0:L+1,E["aria-setsize"]=_2(t.collection)}let k=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,o)}:void 0,{itemProps:S,isPressed:U,isFocused:O,hasAction:F,allowsSelection:G}=Fj({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&v,isVirtualized:y,shouldUseVirtualFocus:C,isDisabled:c,onAction:k||!(T==null||(r=T.props)===null||r===void 0)&&r.onAction?as(T==null||(i=T.props)===null||i===void 0?void 0:i.onAction,k):void 0,linkBehavior:a==null?void 0:a.linkBehavior}),{hoverProps:K}=eV({isDisabled:c||!v,onHoverStart(){n$()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),W=Po(T==null?void 0:T.props);delete W.id;let j=ML(T==null?void 0:T.props);return{optionProps:{...E,...xt(W,S,K,j),id:S2(t,o)},labelProps:{id:D},descriptionProps:{id:P},isFocused:O,isFocusVisible:O&&n$(),isSelected:f,isDisabled:c,isPressed:U,allowsSelection:G,hasAction:F}}var R2={};R2={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var O2={};O2={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var M2={};M2={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var F2={};F2={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var k2={};k2={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var B2={};B2={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var I2={};I2={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var L2={};L2={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var V2={};V2={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var N2={};N2={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var j2={};j2={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var K2={};K2={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var U2={};U2={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var z2={};z2={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var W2={};W2={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var H2={};H2={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var G2={};G2={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var q2={};q2={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Y2={};Y2={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Z2={};Z2={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var J2={};J2={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var X2={};X2={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Q2={};Q2={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var eT={};eT={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var tT={};tT={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var nT={};nT={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var rT={};rT={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var iT={};iT={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var oT={};oT={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var aT={};aT={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var sT={};sT={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var uT={};uT={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var lT={};lT={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var cT={};cT={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var dT={};dT={"ar-AE":R2,"bg-BG":O2,"cs-CZ":M2,"da-DK":F2,"de-DE":k2,"el-GR":B2,"en-US":I2,"es-ES":L2,"et-EE":V2,"fi-FI":N2,"fr-FR":j2,"he-IL":K2,"hr-HR":U2,"hu-HU":z2,"it-IT":W2,"ja-JP":H2,"ko-KR":G2,"lt-LT":q2,"lv-LV":Y2,"nb-NO":Z2,"nl-NL":J2,"pl-PL":X2,"pt-BR":Q2,"pt-PT":eT,"ro-RO":tT,"ru-RU":nT,"sk-SK":rT,"sl-SI":iT,"sr-SP":oT,"sv-SE":aT,"tr-TR":sT,"uk-UA":uT,"zh-CN":lT,"zh-TW":cT};function Wj(e){return e&&e.__esModule?e.default:e}function Hj(e,t,n){let{type:r="menu",isDisabled:i,trigger:o="press"}=e,a=Mr(),{triggerProps:u,overlayProps:c}=$j({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=Qi(Wj(dT),"@react-aria/menu"),{longPressProps:h}=BC({isDisabled:i||o!=="longPress",accessibilityDescription:f.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete u.onPress,{menuTriggerProps:{...u,...o==="press"?m:h,id:a,onKeyDown:d},menuProps:{...c,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function Gj(e){return e&&e.__esModule?e.default:e}function qj(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:o,keyboardDelegate:a,layoutDelegate:u,shouldFocusWrap:c,isReadOnly:d,isDisabled:f}=e,h=b.useRef(null);n=n??h;let m=Qi(Gj(x2),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:v}=Hj({type:"listbox",isDisabled:f||d},t,n);rp.set(t,{id:v.id});let{collection:$}=t,{disabledKeys:C}=t.selectionManager,x=b.useMemo(()=>a||new A2({collection:$,disabledKeys:C,ref:o,layoutDelegate:u}),[a,u,$,C,o]),{collectionProps:y}=T2({selectionManager:t.selectionManager,keyboardDelegate:x,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:c,ref:i,isVirtualized:!0}),D=Gh(),P=he=>{if(!he.nativeEvent.isComposing)switch(he.key){case"Enter":case"Tab":if(t.isOpen&&he.key==="Enter"&&he.preventDefault(),t.isOpen&&o.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let le=o.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(he.key==="Enter"&&le instanceof HTMLAnchorElement){let Fe=t.collection.getItem(t.selectionManager.focusedKey);Fe&&D.open(le,he,Fe.props.href,Fe.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&he.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},E=he=>{var le;let Fe=(n==null?void 0:n.current)&&n.current===he.relatedTarget,et=(le=r.current)===null||le===void 0?void 0:le.contains(he.relatedTarget);Fe||et||(e.onBlur&&e.onBlur(he),t.setFocused(!1))},T=he=>{t.isFocused||(e.onFocus&&e.onFocus(he),t.setFocused(!0))},{isInvalid:k,validationErrors:S,validationDetails:U}=t.displayValidation,{labelProps:O,inputProps:F,descriptionProps:G,errorMessageProps:K}=oj({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:as(t.isOpen&&y.onKeyDown,P,e.onKeyDown),onBlur:E,value:t.inputValue,onFocus:T,autoComplete:"off",validate:void 0,[Pu]:t},i),W=he=>{if(he.pointerType==="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(null,"manual")}},j=he=>{if(he.pointerType!=="touch"){var le;(le=i.current)===null||le===void 0||le.focus(),t.toggle(he.pointerType==="keyboard"||he.pointerType==="virtual"?"first":null,"manual")}},L=Su({id:g.id,"aria-label":m.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),_=Su({id:v.id,"aria-label":m.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||O.id}),M=b.useRef(0),Y=he=>{if(f||d)return;if(he.timeStamp-M.current<500){var le;he.preventDefault(),(le=i.current)===null||le===void 0||le.focus();return}let Fe=he.target.getBoundingClientRect(),et=he.changedTouches[0],dt=Math.ceil(Fe.left+.5*Fe.width),Dn=Math.ceil(Fe.top+.5*Fe.height);if(et.clientX===dt&&et.clientY===Dn){var yt;he.preventDefault(),(yt=i.current)===null||yt===void 0||yt.focus(),t.toggle(null,"manual"),M.current=he.timeStamp}},V=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var z;let re=(z=V==null?void 0:V.parentKey)!==null&&z!==void 0?z:null;var oe;let fe=(oe=t.selectionManager.focusedKey)!==null&&oe!==void 0?oe:null,ie=b.useRef(re),Ee=b.useRef(fe);b.useEffect(()=>{if(Pf()&&V!=null&&fe!=null&&fe!==Ee.current){let le=t.selectionManager.isSelected(fe),Fe=re!=null?t.collection.getItem(re):null,et=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"";var he;let dt=m.format("focusAnnouncement",{isGroupChange:(he=Fe&&re!==ie.current)!==null&&he!==void 0?he:!1,groupTitle:et,groupCount:Fe?[...ip(Fe,t.collection)].length:0,optionText:V["aria-label"]||V.textValue||"",isSelected:le});pu(dt)}ie.current=re,Ee.current=fe});let $e=_2(t.collection),ne=b.useRef($e),ye=b.useRef(t.isOpen);b.useEffect(()=>{let he=t.isOpen!==ye.current&&(t.selectionManager.focusedKey==null||Pf());if(t.isOpen&&(he||$e!==ne.current)){let le=m.format("countAnnouncement",{optionCount:$e});pu(le)}ne.current=$e,ye.current=t.isOpen});let xe=b.useRef(t.selectedKey);return b.useEffect(()=>{if(Pf()&&t.isFocused&&t.selectedItem&&t.selectedKey!==xe.current){let he=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",le=m.format("selectedAnnouncement",{optionText:he});pu(le)}xe.current=t.selectedKey}),b.useEffect(()=>{if(t.isOpen)return E2([i.current,r.current].filter(he=>he!=null))},[t.isOpen,i,r]),{labelProps:O,buttonProps:{...g,...L,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:W,onPressStart:j,isDisabled:f||d},inputProps:xt(F,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?v.id:void 0,"aria-autocomplete":"list","aria-activedescendant":V?S2(t,V.key):void 0,onTouchEnd:Y,autoCorrect:"off",spellCheck:"false"}),listBoxProps:xt(v,_,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:G,errorMessageProps:K,isInvalid:k,validationErrors:S,validationDetails:U}}var fT={};fT={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var hT={};hT={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var pT={};pT={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var mT={};mT={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var gT={};gT={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var yT={};yT={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var vT={};vT={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var bT={};bT={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var $T={};$T={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var xT={};xT={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var wT={};wT={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var DT={};DT={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var ET={};ET={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var CT={};CT={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var ST={};ST={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var TT={};TT={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var AT={};AT={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var PT={};PT={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var _T={};_T={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var RT={};RT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var OT={};OT={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var MT={};MT={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var FT={};FT={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var kT={};kT={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var BT={};BT={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var IT={};IT={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var LT={};LT={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var VT={};VT={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var NT={};NT={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var jT={};jT={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var KT={};KT={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var UT={};UT={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var zT={};zT={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var WT={};WT={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Uc={};Uc={"ar-AE":fT,"bg-BG":hT,"cs-CZ":pT,"da-DK":mT,"de-DE":gT,"el-GR":yT,"en-US":vT,"es-ES":bT,"et-EE":$T,"fi-FI":xT,"fr-FR":wT,"he-IL":DT,"hr-HR":ET,"hu-HU":CT,"it-IT":ST,"ja-JP":TT,"ko-KR":AT,"lt-LT":PT,"lv-LV":_T,"nb-NO":RT,"nl-NL":OT,"pl-PL":MT,"pt-BR":FT,"pt-PT":kT,"ro-RO":BT,"ru-RU":IT,"sk-SK":LT,"sl-SI":VT,"sr-SP":NT,"sv-SE":jT,"tr-TR":KT,"uk-UA":UT,"zh-CN":zT,"zh-TW":WT};function Eb(e,t,n){let{direction:r}=Qn(),i=b.useMemo(()=>Zh(t),[t]),o=c=>{if(c.currentTarget.contains(c.target)&&(c.altKey&&(c.key==="ArrowDown"||c.key==="ArrowUp")&&"setOpen"in e&&(c.preventDefault(),c.stopPropagation(),e.setOpen(!0)),!n))switch(c.key){case"ArrowLeft":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":c.preventDefault(),c.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},a=()=>{var c;if(!t.current)return;let d=(c=window.event)===null||c===void 0?void 0:c.target,f=wr(t.current,{tabbable:!0});if(d&&(f.currentNode=d,d=f.previousNode()),!d){let h;do h=f.lastChild(),h&&(d=h);while(h)}for(;d!=null&&d.hasAttribute("data-placeholder");){let h=f.previousNode();if(h&&h.hasAttribute("data-placeholder"))d=h;else break}d&&d.focus()},{pressProps:u}=Bc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(c){c.pointerType==="mouse"&&a()},onPress(c){c.pointerType!=="mouse"&&a()}});return xt(u,{onKeyDown:o})}function Yj(e){return e&&e.__esModule?e.default:e}const HT=new WeakMap,ec="__role_"+Date.now(),GT="__focusManager_"+Date.now();function qT(e,t,n){var r;let{isInvalid:i,validationErrors:o,validationDetails:a}=t.displayValidation,{labelProps:u,fieldProps:c,descriptionProps:d,errorMessageProps:f}=np({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||o}),h=b.useRef(null),{focusWithinProps:m}=zu({...e,onFocusWithin(O){var F;h.current=t.value,(F=e.onFocus)===null||F===void 0||F.call(e,O)},onBlurWithin:O=>{var F;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),(F=e.onBlur)===null||F===void 0||F.call(e,O)},onFocusWithinChange:e.onFocusChange}),g=Qi(Yj(Uc),"@react-aria/datepicker"),v=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",$=t.maxGranularity==="hour"?"time":"date",C=t.value?g.format(v,{[$]:t.formatValue({month:"long"})}):"",x=Fc(C),y=e[ec]==="presentation"?c["aria-describedby"]:[x["aria-describedby"],c["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=e[GT],P=b.useMemo(()=>D||Zh(n),[D,n]),E=Eb(t,n,e[ec]==="presentation");HT.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[u.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:y,focusManager:P});let T=b.useRef(e.autoFocus),k;e[ec]==="presentation"?k={role:"presentation"}:k=xt(c,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":y}),b.useEffect(()=>{T.current&&P.focusFirst(),T.current=!1},[P]),ob(e.inputRef,t.value,t.setValue),o5({...e,focus(){P.focusFirst()}},t,e.inputRef);let S={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=e.isRequired,S.onChange=()=>{});let U=Po(e);return{labelProps:{...u,onClick:()=>{P.focusFirst()}},fieldProps:xt(U,k,E,m,{onKeyDown(O){e.onKeyDown&&e.onKeyDown(O)},onKeyUp(O){e.onKeyUp&&e.onKeyUp(O)}}),inputProps:S,descriptionProps:d,errorMessageProps:f,isInvalid:i,validationErrors:o,validationDetails:a}}function Zj(e,t,n){var r;let i=qT(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function Jj(e){return e&&e.__esModule?e.default:e}function Xj(e,t,n){let r=Mr(),i=Mr(),o=Mr(),a=Qi(Jj(Uc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=np({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=Eb(t,n),$=h["aria-labelledby"]||h.id,{locale:C}=Qn(),x=t.formatValue(C,{month:"long"}),y=x?a.format("selectedDateDescription",{date:x}):"",D=Fc(y),P=[D["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=Po(e),T=b.useMemo(()=>Zh(n),[n]),{focusWithinProps:k}=zu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xt(E,v,h,D,k,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":$,"aria-describedby":P,onKeyDown(S){t.isOpen||e.onKeyDown&&e.onKeyDown(S)},onKeyUp(S){t.isOpen||e.onKeyUp&&e.onKeyUp(S)}}),labelProps:{...f,onClick:()=>{T.focusFirst()}},fieldProps:{...h,id:o,[ec]:"presentation","aria-describedby":P,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[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":P,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${$}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function Qj(e){return e&&e.__esModule?e.default:e}function eK(){let{locale:e}=Qn(),t=KC(Qj(Uc),"@react-aria/datepicker");return b.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new tK(e,t)}},[e,t])}class tK{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function nK(e,t,n){let r=b.useRef(""),{locale:i}=Qn(),o=eK(),{ariaLabel:a,ariaLabelledBy:u,ariaDescribedBy:c,focusManager:d}=HT.get(t),f=e.isPlaceholder?"":e.text,h=b.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),m=Ni({month:"long",timeZone:h.timeZone}),g=Ni({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if(e.type==="month"&&!e.isPlaceholder){let M=m.format(t.dateValue);f=M!==f?`${f} – ${M}`:M}else e.type==="hour"&&!e.isPlaceholder&&(f=g.format(t.dateValue));let{spinButtonProps:v}=sj({value:e.value,textValue:f,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",e.maxValue!==void 0&&t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",e.minValue!==void 0&&t.setSegment(e.type,e.minValue)}}),$=b.useMemo(()=>new vS(i,{maximumFractionDigits:0}),[i]),C=()=>{if(e.text===e.placeholder&&d.focusPrevious(),$.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let M=e.text.slice(0,-1),Y=$.parse(M);M=Y===0?"":M,M.length===0||Y===0?t.clearSegment(e.type):t.setSegment(e.type,Y),r.current=M}else e.type==="dayPeriod"&&t.clearSegment(e.type)},x=M=>{if(M.key==="a"&&(Co()?M.metaKey:M.ctrlKey)&&M.preventDefault(),!(M.ctrlKey||M.metaKey||M.shiftKey||M.altKey))switch(M.key){case"Backspace":case"Delete":M.preventDefault(),M.stopPropagation(),C();break}},{startsWith:y}=$S({sensitivity:"base"}),D=Ni({hour:"numeric",hour12:!0}),P=b.useMemo(()=>{let M=new Date;return M.setHours(0),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),E=b.useMemo(()=>{let M=new Date;return M.setHours(12),D.formatToParts(M).find(Y=>Y.type==="dayPeriod").value},[D]),T=Ni({year:"numeric",era:"narrow",timeZone:"UTC"}),k=b.useMemo(()=>{if(e.type!=="era")return[];let M=Qt(new hn(1,1,1),t.calendar),Y=t.calendar.getEras().map(z=>{let re=M.set({year:1,month:1,day:1,era:z}).toDate("UTC"),fe=T.formatToParts(re).find(ie=>ie.type==="era").value;return{era:z,formatted:fe}}),V=rK(Y.map(z=>z.formatted));if(V)for(let z of Y)z.formatted=z.formatted.slice(V);return Y},[T,t.calendar,e.type]),S=M=>{if(t.isDisabled||t.isReadOnly)return;let Y=r.current+M;switch(e.type){case"dayPeriod":if(y(P,M))t.setSegment("dayPeriod",0);else if(y(E,M))t.setSegment("dayPeriod",12);else break;d.focusNext();break;case"era":{let V=k.find(z=>y(z.formatted,M));V&&(t.setSegment("era",V.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!$.isValidPartialNumber(Y))return;let V=$.parse(Y),z=V,re=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&(z=$.parse(M));break;case"h12":re=!1,V>12&&(z=$.parse(M));break}e.value!==void 0&&e.value>=12&&V>1&&(V+=12)}else e.maxValue!==void 0&&V>e.maxValue&&(z=$.parse(M));if(isNaN(V))return;let oe=z!==0||re;oe&&t.setSegment(e.type,z),e.maxValue!==void 0&&(+(V+"0")>e.maxValue||Y.length>=String(e.maxValue).length)?(r.current="",oe&&d.focusNext()):r.current=Y;break}}},U=()=>{r.current="",n.current&&Jf(n.current,{containingElement:qh(n.current)});let M=window.getSelection();M==null||M.collapse(n.current)},O=b.useRef(typeof document<"u"?document:null);sa(O,"selectionchange",()=>{var M;let Y=window.getSelection();Y!=null&&Y.anchorNode&&(!((M=n.current)===null||M===void 0)&&M.contains(Y==null?void 0:Y.anchorNode))&&Y.collapse(n.current)});let F=b.useRef("");sa(n,"beforeinput",M=>{if(n.current)switch(M.preventDefault(),M.inputType){case"deleteContentBackward":case"deleteContentForward":$.isValidPartialNumber(e.text)&&!t.isReadOnly&&C();break;case"insertCompositionText":F.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:M.data!=null&&S(M.data);break}}),sa(n,"input",M=>{let{inputType:Y,data:V}=M;switch(Y){case"insertCompositionText":n.current&&(n.current.textContent=F.current),V!=null&&(y(P,V)||y(E,V))&&S(V);break}}),zt(()=>{let M=n.current;return()=>{document.activeElement===M&&(d.focusPrevious()||d.focusNext())}},[n,d]);let G=Mc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},K=b.useMemo(()=>t.segments.find(M=>M.isEditable),[t.segments]);e!==K&&!t.isInvalid&&(c=void 0);let W=Mr(),j=!t.isDisabled&&!t.isReadOnly&&e.isEditable,L=e.type==="literal"?"":o.of(e.type),_=Su({"aria-label":`${L}${a?`, ${a}`:""}${u?", ":""}`,"aria-labelledby":u});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:xt(v,_,{id:W,...G,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":c,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:j,suppressContentEditableWarning:j,spellCheck:j?"false":void 0,autoCorrect:j?"off":void 0,[parseInt(b.version,10)>=17?"enterKeyHint":"enterkeyhint"]:j?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!j?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:x,onFocus:U,style:{caretColor:"transparent"},onPointerDown(M){M.stopPropagation()},onMouseDown(M){M.stopPropagation()}})}}function rK(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 iK(e){return e&&e.__esModule?e.default:e}function oK(e,t,n){var r,i,o;let a=Qi(iK(Uc),"@react-aria/datepicker"),{isInvalid:u,validationErrors:c,validationDetails:d}=t.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:m,errorMessageProps:g}=np({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c}),v=h["aria-labelledby"]||h.id,{locale:$}=Qn(),C=t.formatValue($,{month:"long"}),x=C?a.format("selectedRangeDescription",{startDate:C.start,endDate:C.end}):"",y=Fc(x),D={"aria-label":a.format("startDate"),"aria-labelledby":v},P={"aria-label":a.format("endDate"),"aria-labelledby":v},E=Mr(),T=Mr(),k=Eb(t,n),S=[y["aria-describedby"],h["aria-describedby"]].filter(Boolean).join(" ")||void 0,U=b.useMemo(()=>Zh(n,{accept:_=>_.id!==E}),[n,E]),O={[GT]:U,[ec]:"presentation","aria-describedby":S,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},F=Po(e),{focusWithinProps:G}=zu({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),K=b.useRef(ja),W=b.useRef(ja);var j,L;return{groupProps:xt(F,k,h,y,G,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":S,onKeyDown(_){t.isOpen||e.onKeyDown&&e.onKeyDown(_)},onKeyUp(_){t.isOpen||e.onKeyUp&&e.onKeyUp(_)}}),labelProps:{...f,onClick:()=>{U.focusFirst()}},buttonProps:{...y,id:E,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${E} ${v}`,"aria-describedby":S,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:T,"aria-labelledby":`${E} ${v}`},startFieldProps:{...D,...O,value:(j=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&j!==void 0?j:null,onChange:_=>t.setDateTime("start",_),autoFocus:e.autoFocus,name:e.startName,[Pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){K.current=_,t.updateValidation(sh(_,W.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...P,...O,value:(L=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&L!==void 0?L:null,onChange:_=>t.setDateTime("end",_),name:e.endName,[Pu]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(_){W.current=_,t.updateValidation(sh(K.current,_))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:m,errorMessageProps:g,calendarProps:{autoFocus:!0,value:!((o=t.dateRange)===null||o===void 0)&&o.start&&t.dateRange.end?t.dateRange:null,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:u,validationErrors:c,validationDetails:d}}function aK(e,t){let{role:n="dialog"}=e,r=Cu();r=e["aria-label"]?void 0:r;let i=b.useRef(!1);return b.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){ls(t.current);let o=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),ls(t.current)),i.current=!1)},500);return()=>{clearTimeout(o)}}},[t]),Pj(),{dialogProps:{...Po(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:o=>{i.current&&o.stopPropagation()}},titleProps:{id:r}}}var zc=e=>e.type==="checkbox",Wa=e=>e instanceof Date,sr=e=>e==null;const YT=e=>typeof e=="object";var fn=e=>!sr(e)&&!Array.isArray(e)&&YT(e)&&!Wa(e),ZT=e=>fn(e)&&e.target?zc(e.target)?e.target.checked:e.target.value:e,sK=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,JT=(e,t)=>e.has(sK(t)),uK=e=>{const t=e.constructor&&e.constructor.prototype;return fn(t)&&t.hasOwnProperty("isPrototypeOf")},Cb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function br(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Cb&&(e instanceof Blob||r))&&(n||fn(e)))if(t=n?[]:{},!n&&!uK(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=br(e[i]));else return e;return t}var op=e=>Array.isArray(e)?e.filter(Boolean):[],dn=e=>e===void 0,Ae=(e,t,n)=>{if(!t||!fn(e))return n;const r=op(t.split(/[,[\].]+?/)).reduce((i,o)=>sr(i)?i:i[o],e);return dn(r)||r===e?dn(e[t])?n:e[t]:r},ti=e=>typeof e=="boolean",Sb=e=>/^\w*$/.test(e),XT=e=>op(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Tt=(e,t,n)=>{let r=-1;const i=Sb(t)?[t]:XT(t),o=i.length,a=o-1;for(;++r<o;){const u=i[r];let c=n;if(r!==a){const d=e[u];c=fn(d)||Array.isArray(d)?d:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}return e};const lh={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"},QT=b.createContext(null),ap=()=>b.useContext(QT),lK=e=>{const{children:t,...n}=e;return b.createElement(QT.Provider,{value:n},t)};var eA=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const a=o;return t._proxyFormState[a]!==yi.all&&(t._proxyFormState[a]=!r||yi.all),n&&(n[a]=!0),e[a]}});return i},$r=e=>fn(e)&&!Object.keys(e).length,tA=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return $r(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(a=>t[a]===(!r||yi.all))},tc=e=>Array.isArray(e)?e:[e],nA=(e,t,n)=>!e||!t||e===t||tc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Tb(e){const t=b.useRef(e);t.current=e,b.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function cK(e){const t=ap(),{control:n=t.control,disabled:r,name:i,exact:o}=e,[a,u]=b.useState(n._formState),c=b.useRef(!0),d=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=b.useRef(i);return f.current=i,Tb({disabled:r,next:h=>c.current&&nA(f.current,h.name,o)&&tA(h,d.current,n._updateFormState)&&u({...n._formState,...h}),subject:n._subjects.state}),b.useEffect(()=>(c.current=!0,d.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),b.useMemo(()=>eA(a,n,d.current,!1),[a,n])}var Ki=e=>typeof e=="string",rA=(e,t,n,r,i)=>Ki(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 iA(e){const t=ap(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},u=b.useRef(r);u.current=r,Tb({disabled:o,subject:n._subjects.values,next:f=>{nA(u.current,f.name,a)&&d(br(rA(u.current,n._names,f.values||n._formValues,!1,i)))}});const[c,d]=b.useState(n._getWatch(r,i));return b.useEffect(()=>n._removeUnmounted()),c}function dK(e){const t=ap(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=JT(i._names.array,n),u=iA({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,e.defaultValue)),exact:!0}),c=cK({control:i,name:n,exact:!0}),d=b.useRef(i.register(n,{...e.rules,value:u,...ti(e.disabled)?{disabled:e.disabled}:{}})),f=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ae(c.validatingFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}}),[c,n]),h=b.useMemo(()=>({name:n,value:u,...ti(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:m=>d.current.onChange({target:{value:ZT(m),name:n},type:lh.CHANGE}),onBlur:()=>d.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:lh.BLUR}),ref:m=>{const g=Ae(i._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:v=>m.setCustomValidity(v),reportValidity:()=>m.reportValidity()})}}),[n,i._formValues,r,c.disabled,u,i._fields]);return b.useEffect(()=>{const m=i._options.shouldUnregister||o,g=(v,$)=>{const C=Ae(i._fields,v);C&&C._f&&(C._f.mount=$)};if(g(n,!0),m){const v=br(Ae(i._options.defaultValues,n));Tt(i._defaultValues,n,v),dn(Ae(i._formValues,n))&&Tt(i._formValues,n,v)}return!a&&i.register(n),()=>{(a?m&&!i._state.action:m)?i.unregister(n):g(n,!1)}},[n,i,a,o]),b.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),b.useMemo(()=>({field:h,formState:c,fieldState:f}),[h,c,f])}var oA=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ex=e=>({isOnSubmit:!e||e===yi.onSubmit,isOnBlur:e===yi.onBlur,isOnChange:e===yi.onChange,isOnAll:e===yi.all,isOnTouch:e===yi.onTouched}),tx=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const 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(fn(u)&&nc(u,t))break}}};var fK=(e,t,n)=>{const r=tc(Ae(e,n));return Tt(r,"root",t[n]),Tt(e,n,r),e},Ab=e=>e.type==="file",Li=e=>typeof e=="function",ch=e=>{if(!Cb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ff=e=>Ki(e),Pb=e=>e.type==="radio",dh=e=>e instanceof RegExp;const nx={value:!1,isValid:!1},rx={value:!0,isValid:!0};var aA=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dn(e[0].attributes.value)?dn(e[0].value)||e[0].value===""?rx:{value:e[0].value,isValid:!0}:rx:nx}return nx};const ix={isValid:!1,value:null};var sA=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ix):ix;function ox(e,t,n="validate"){if(Ff(e)||Array.isArray(e)&&e.every(Ff)||ti(e)&&!e)return{type:n,message:Ff(e)?e:"",ref:t}}var qs=e=>fn(e)&&!dh(e)?e:{value:e,message:""},ax=async(e,t,n,r,i,o)=>{const{ref:a,refs:u,required:c,maxLength:d,minLength:f,min:h,max:m,pattern:g,validate:v,name:$,valueAsNumber:C,mount:x}=e._f,y=Ae(n,$);if(!x||t.has($))return{};const D=u?u[0]:a,P=G=>{i&&D.reportValidity&&(D.setCustomValidity(ti(G)?"":G||""),D.reportValidity())},E={},T=Pb(a),k=zc(a),S=T||k,U=(C||Ab(a))&&dn(a.value)&&dn(y)||ch(a)&&a.value===""||y===""||Array.isArray(y)&&!y.length,O=oA.bind(null,$,r,E),F=(G,K,W,j=po.maxLength,L=po.minLength)=>{const _=G?K:W;E[$]={type:G?j:L,message:_,ref:a,...O(G?j:L,_)}};if(o?!Array.isArray(y)||!y.length:c&&(!S&&(U||sr(y))||ti(y)&&!y||k&&!aA(u).isValid||T&&!sA(u).isValid)){const{value:G,message:K}=Ff(c)?{value:!!c,message:c}:qs(c);if(G&&(E[$]={type:po.required,message:K,ref:D,...O(po.required,K)},!r))return P(K),E}if(!U&&(!sr(h)||!sr(m))){let G,K;const W=qs(m),j=qs(h);if(!sr(y)&&!isNaN(y)){const L=a.valueAsNumber||y&&+y;sr(W.value)||(G=L>W.value),sr(j.value)||(K=L<j.value)}else{const L=a.valueAsDate||new Date(y),_=V=>new Date(new Date().toDateString()+" "+V),M=a.type=="time",Y=a.type=="week";Ki(W.value)&&y&&(G=M?_(y)>_(W.value):Y?y>W.value:L>new Date(W.value)),Ki(j.value)&&y&&(K=M?_(y)<_(j.value):Y?y<j.value:L<new Date(j.value))}if((G||K)&&(F(!!G,W.message,j.message,po.max,po.min),!r))return P(E[$].message),E}if((d||f)&&!U&&(Ki(y)||o&&Array.isArray(y))){const G=qs(d),K=qs(f),W=!sr(G.value)&&y.length>+G.value,j=!sr(K.value)&&y.length<+K.value;if((W||j)&&(F(W,G.message,K.message),!r))return P(E[$].message),E}if(g&&!U&&Ki(y)){const{value:G,message:K}=qs(g);if(dh(G)&&!y.match(G)&&(E[$]={type:po.pattern,message:K,ref:a,...O(po.pattern,K)},!r))return P(K),E}if(v){if(Li(v)){const G=await v(y,n),K=ox(G,D);if(K&&(E[$]={...K,...O(po.validate,K.message)},!r))return P(K.message),E}else if(fn(v)){let G={};for(const K in v){if(!$r(G)&&!r)break;const W=ox(await v[K](y,n),D,K);W&&(G={...W,...O(K,W.message)},P(W.message),r&&(E[$]=G))}if(!$r(G)&&(E[$]={ref:D,...G},!r))return E}}return P(!0),E};function hK(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 pK(e){for(const t in e)if(e.hasOwnProperty(t)&&!dn(e[t]))return!1;return!0}function $n(e,t){const n=Array.isArray(t)?t:Sb(t)?[t]:XT(t),r=n.length===1?e:hK(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(fn(r)&&$r(r)||Array.isArray(r)&&pK(r))&&$n(e,n.slice(0,-1)),e}var pg=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},Gy=e=>sr(e)||!YT(e);function ea(e,t){if(Gy(e)||Gy(t))return e===t;if(Wa(e)&&Wa(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(Wa(o)&&Wa(a)||fn(o)&&fn(a)||Array.isArray(o)&&Array.isArray(a)?!ea(o,a):o!==a)return!1}}return!0}var uA=e=>e.type==="select-multiple",mK=e=>Pb(e)||zc(e),mg=e=>ch(e)&&e.isConnected,lA=e=>{for(const t in e)if(Li(e[t]))return!0;return!1};function fh(e,t={}){const n=Array.isArray(e);if(fn(e)||n)for(const r in e)Array.isArray(e[r])||fn(e[r])&&!lA(e[r])?(t[r]=Array.isArray(e[r])?[]:{},fh(e[r],t[r])):sr(e[r])||(t[r]=!0);return t}function cA(e,t,n){const r=Array.isArray(e);if(fn(e)||r)for(const i in e)Array.isArray(e[i])||fn(e[i])&&!lA(e[i])?dn(t)||Gy(n[i])?n[i]=Array.isArray(e[i])?fh(e[i],[]):{...fh(e[i])}:cA(e[i],sr(t)?{}:t[i],n[i]):n[i]=!ea(e[i],t[i]);return n}var _l=(e,t)=>cA(e,t,fh(t)),dA=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dn(e)?e:t?e===""?NaN:e&&+e:n&&Ki(e)?new Date(e):r?r(e):e;function gg(e){const t=e.ref;return Ab(t)?t.files:Pb(t)?sA(e.refs).value:uA(t)?[...t.selectedOptions].map(({value:n})=>n):zc(t)?aA(e.refs).value:dA(dn(t.value)?e.ref.value:t.value,e)}var gK=(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}},Rl=e=>dn(e)?e:dh(e)?e.source:fn(e)?dh(e.value)?e.value.source:e.value:e;const sx="AsyncFunction";var yK=e=>!!e&&!!e.validate&&!!(Li(e.validate)&&e.validate.constructor.name===sx||fn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===sx)),vK=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ux(e,t,n){const r=Ae(e,n);if(r||Sb(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),a=Ae(t,o),u=Ae(e,o);if(a&&!Array.isArray(a)&&n!==o)return{name:n};if(u&&u.type)return{name:o,error:u};i.pop()}return{name:n}}var bK=(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,$K=(e,t)=>!op(Ae(e,t)).length&&$n(e,t);const xK={mode:yi.onSubmit,reValidateMode:yi.onChange,shouldFocusError:!0};function wK(e={}){let t={...xK,...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=fn(t.defaultValues)||fn(t.values)?br(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:br(i),a={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const f={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:pg(),array:pg(),state:pg()},m=ex(t.mode),g=ex(t.reValidateMode),v=t.criteriaMode===yi.all,$=q=>Z=>{clearTimeout(d),d=setTimeout(q,Z)},C=async q=>{if(!t.disabled&&(f.isValid||q)){const Z=t.resolver?$r((await S()).errors):await O(r,!0);Z!==n.isValid&&h.state.next({isValid:Z})}},x=(q,Z)=>{!t.disabled&&(f.isValidating||f.validatingFields)&&((q||Array.from(u.mount)).forEach(te=>{te&&(Z?Tt(n.validatingFields,te,Z):$n(n.validatingFields,te))}),h.state.next({validatingFields:n.validatingFields,isValidating:!$r(n.validatingFields)}))},y=(q,Z=[],te,pe,Ce=!0,De=!0)=>{if(pe&&te&&!t.disabled){if(a.action=!0,De&&Array.isArray(Ae(r,q))){const _e=te(Ae(r,q),pe.argA,pe.argB);Ce&&Tt(r,q,_e)}if(De&&Array.isArray(Ae(n.errors,q))){const _e=te(Ae(n.errors,q),pe.argA,pe.argB);Ce&&Tt(n.errors,q,_e),$K(n.errors,q)}if(f.touchedFields&&De&&Array.isArray(Ae(n.touchedFields,q))){const _e=te(Ae(n.touchedFields,q),pe.argA,pe.argB);Ce&&Tt(n.touchedFields,q,_e)}f.dirtyFields&&(n.dirtyFields=_l(i,o)),h.state.next({name:q,isDirty:G(q,Z),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Tt(o,q,Z)},D=(q,Z)=>{Tt(n.errors,q,Z),h.state.next({errors:n.errors})},P=q=>{n.errors=q,h.state.next({errors:n.errors,isValid:!1})},E=(q,Z,te,pe)=>{const Ce=Ae(r,q);if(Ce){const De=Ae(o,q,dn(te)?Ae(i,q):te);dn(De)||pe&&pe.defaultChecked||Z?Tt(o,q,Z?De:gg(Ce._f)):j(q,De),a.mount&&C()}},T=(q,Z,te,pe,Ce)=>{let De=!1,_e=!1;const Ve={name:q};if(!t.disabled){const mt=!!(Ae(r,q)&&Ae(r,q)._f&&Ae(r,q)._f.disabled);if(!te||pe){f.isDirty&&(_e=n.isDirty,n.isDirty=Ve.isDirty=G(),De=_e!==Ve.isDirty);const ut=mt||ea(Ae(i,q),Z);_e=!!(!mt&&Ae(n.dirtyFields,q)),ut||mt?$n(n.dirtyFields,q):Tt(n.dirtyFields,q,!0),Ve.dirtyFields=n.dirtyFields,De=De||f.dirtyFields&&_e!==!ut}if(te){const ut=Ae(n.touchedFields,q);ut||(Tt(n.touchedFields,q,te),Ve.touchedFields=n.touchedFields,De=De||f.touchedFields&&ut!==te)}De&&Ce&&h.state.next(Ve)}return De?Ve:{}},k=(q,Z,te,pe)=>{const Ce=Ae(n.errors,q),De=f.isValid&&ti(Z)&&n.isValid!==Z;if(t.delayError&&te?(c=$(()=>D(q,te)),c(t.delayError)):(clearTimeout(d),c=null,te?Tt(n.errors,q,te):$n(n.errors,q)),(te?!ea(Ce,te):Ce)||!$r(pe)||De){const _e={...pe,...De&&ti(Z)?{isValid:Z}:{},errors:n.errors,name:q};n={...n,..._e},h.state.next(_e)}},S=async q=>{x(q,!0);const Z=await t.resolver(o,t.context,gK(q||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(q),Z},U=async q=>{const{errors:Z}=await S(q);if(q)for(const te of q){const pe=Ae(Z,te);pe?Tt(n.errors,te,pe):$n(n.errors,te)}else n.errors=Z;return Z},O=async(q,Z,te={valid:!0})=>{for(const pe in q){const Ce=q[pe];if(Ce){const{_f:De,..._e}=Ce;if(De){const Ve=u.array.has(De.name),mt=Ce._f&&yK(Ce._f);mt&&f.validatingFields&&x([pe],!0);const ut=await ax(Ce,u.disabled,o,v,t.shouldUseNativeValidation&&!Z,Ve);if(mt&&f.validatingFields&&x([pe]),ut[De.name]&&(te.valid=!1,Z))break;!Z&&(Ae(ut,De.name)?Ve?fK(n.errors,ut,De.name):Tt(n.errors,De.name,ut[De.name]):$n(n.errors,De.name))}!$r(_e)&&await O(_e,Z,te)}}return te.valid},F=()=>{for(const q of u.unMount){const Z=Ae(r,q);Z&&(Z._f.refs?Z._f.refs.every(te=>!mg(te)):!mg(Z._f.ref))&&Ee(q)}u.unMount=new Set},G=(q,Z)=>!t.disabled&&(q&&Z&&Tt(o,q,Z),!ea(z(),i)),K=(q,Z,te)=>rA(q,u,{...a.mount?o:dn(Z)?i:Ki(q)?{[q]:Z}:Z},te,Z),W=q=>op(Ae(a.mount?o:i,q,t.shouldUnregister?Ae(i,q,[]):[])),j=(q,Z,te={})=>{const pe=Ae(r,q);let Ce=Z;if(pe){const De=pe._f;De&&(!De.disabled&&Tt(o,q,dA(Z,De)),Ce=ch(De.ref)&&sr(Z)?"":Z,uA(De.ref)?[...De.ref.options].forEach(_e=>_e.selected=Ce.includes(_e.value)):De.refs?zc(De.ref)?De.refs.length>1?De.refs.forEach(_e=>(!_e.defaultChecked||!_e.disabled)&&(_e.checked=Array.isArray(Ce)?!!Ce.find(Ve=>Ve===_e.value):Ce===_e.value)):De.refs[0]&&(De.refs[0].checked=!!Ce):De.refs.forEach(_e=>_e.checked=_e.value===Ce):Ab(De.ref)?De.ref.value="":(De.ref.value=Ce,De.ref.type||h.values.next({name:q,values:{...o}})))}(te.shouldDirty||te.shouldTouch)&&T(q,Ce,te.shouldTouch,te.shouldDirty,!0),te.shouldValidate&&V(q)},L=(q,Z,te)=>{for(const pe in Z){const Ce=Z[pe],De=`${q}.${pe}`,_e=Ae(r,De);(u.array.has(q)||fn(Ce)||_e&&!_e._f)&&!Wa(Ce)?L(De,Ce,te):j(De,Ce,te)}},_=(q,Z,te={})=>{const pe=Ae(r,q),Ce=u.array.has(q),De=br(Z);Tt(o,q,De),Ce?(h.array.next({name:q,values:{...o}}),(f.isDirty||f.dirtyFields)&&te.shouldDirty&&h.state.next({name:q,dirtyFields:_l(i,o),isDirty:G(q,De)})):pe&&!pe._f&&!sr(De)?L(q,De,te):j(q,De,te),tx(q,u)&&h.state.next({...n}),h.values.next({name:a.mount?q:void 0,values:{...o}})},M=async q=>{a.mount=!0;const Z=q.target;let te=Z.name,pe=!0;const Ce=Ae(r,te),De=()=>Z.type?gg(Ce._f):ZT(q),_e=Ve=>{pe=Number.isNaN(Ve)||Wa(Ve)&&isNaN(Ve.getTime())||ea(Ve,Ae(o,te,Ve))};if(Ce){let Ve,mt;const ut=De(),Rt=q.type===lh.BLUR||q.type===lh.FOCUS_OUT,Pn=!vK(Ce._f)&&!t.resolver&&!Ae(n.errors,te)&&!Ce._f.deps||bK(Rt,Ae(n.touchedFields,te),n.isSubmitted,g,m),_n=tx(te,u,Rt);Tt(o,te,ut),Rt?(Ce._f.onBlur&&Ce._f.onBlur(q),c&&c(0)):Ce._f.onChange&&Ce._f.onChange(q);const Yt=T(te,ut,Rt,!1),Ln=!$r(Yt)||_n;if(!Rt&&h.values.next({name:te,type:q.type,values:{...o}}),Pn)return f.isValid&&(t.mode==="onBlur"&&Rt?C():Rt||C()),Ln&&h.state.next({name:te,..._n?{}:Yt});if(!Rt&&_n&&h.state.next({...n}),t.resolver){const{errors:tn}=await S([te]);if(_e(ut),pe){const vt=ux(n.errors,r,te),Vn=ux(tn,r,vt.name||te);Ve=Vn.error,te=Vn.name,mt=$r(tn)}}else x([te],!0),Ve=(await ax(Ce,u.disabled,o,v,t.shouldUseNativeValidation))[te],x([te]),_e(ut),pe&&(Ve?mt=!1:f.isValid&&(mt=await O(r,!0)));pe&&(Ce._f.deps&&V(Ce._f.deps),k(te,mt,Ve,Yt))}},Y=(q,Z)=>{if(Ae(n.errors,Z)&&q.focus)return q.focus(),1},V=async(q,Z={})=>{let te,pe;const Ce=tc(q);if(t.resolver){const De=await U(dn(q)?q:Ce);te=$r(De),pe=q?!Ce.some(_e=>Ae(De,_e)):te}else q?(pe=(await Promise.all(Ce.map(async De=>{const _e=Ae(r,De);return await O(_e&&_e._f?{[De]:_e}:_e)}))).every(Boolean),!(!pe&&!n.isValid)&&C()):pe=te=await O(r);return h.state.next({...!Ki(q)||f.isValid&&te!==n.isValid?{}:{name:q},...t.resolver||!q?{isValid:te}:{},errors:n.errors}),Z.shouldFocus&&!pe&&nc(r,Y,q?Ce:u.mount),pe},z=q=>{const Z={...a.mount?o:i};return dn(q)?Z:Ki(q)?Ae(Z,q):q.map(te=>Ae(Z,te))},re=(q,Z)=>({invalid:!!Ae((Z||n).errors,q),isDirty:!!Ae((Z||n).dirtyFields,q),error:Ae((Z||n).errors,q),isValidating:!!Ae(n.validatingFields,q),isTouched:!!Ae((Z||n).touchedFields,q)}),oe=q=>{q&&tc(q).forEach(Z=>$n(n.errors,Z)),h.state.next({errors:q?n.errors:{}})},fe=(q,Z,te)=>{const pe=(Ae(r,q,{_f:{}})._f||{}).ref,Ce=Ae(n.errors,q)||{},{ref:De,message:_e,type:Ve,...mt}=Ce;Tt(n.errors,q,{...mt,...Z,ref:pe}),h.state.next({name:q,errors:n.errors,isValid:!1}),te&&te.shouldFocus&&pe&&pe.focus&&pe.focus()},ie=(q,Z)=>Li(q)?h.values.subscribe({next:te=>q(K(void 0,Z),te)}):K(q,Z,!0),Ee=(q,Z={})=>{for(const te of q?tc(q):u.mount)u.mount.delete(te),u.array.delete(te),Z.keepValue||($n(r,te),$n(o,te)),!Z.keepError&&$n(n.errors,te),!Z.keepDirty&&$n(n.dirtyFields,te),!Z.keepTouched&&$n(n.touchedFields,te),!Z.keepIsValidating&&$n(n.validatingFields,te),!t.shouldUnregister&&!Z.keepDefaultValue&&$n(i,te);h.values.next({values:{...o}}),h.state.next({...n,...Z.keepDirty?{isDirty:G()}:{}}),!Z.keepIsValid&&C()},$e=({disabled:q,name:Z,field:te,fields:pe})=>{(ti(q)&&a.mount||q||u.disabled.has(Z))&&(q?u.disabled.add(Z):u.disabled.delete(Z),T(Z,gg(te?te._f:Ae(pe,Z)._f),!1,!1,!0))},ne=(q,Z={})=>{let te=Ae(r,q);const pe=ti(Z.disabled)||ti(t.disabled);return Tt(r,q,{...te||{},_f:{...te&&te._f?te._f:{ref:{name:q}},name:q,mount:!0,...Z}}),u.mount.add(q),te?$e({field:te,disabled:ti(Z.disabled)?Z.disabled:t.disabled,name:q}):E(q,!0,Z.value),{...pe?{disabled:Z.disabled||t.disabled}:{},...t.progressive?{required:!!Z.required,min:Rl(Z.min),max:Rl(Z.max),minLength:Rl(Z.minLength),maxLength:Rl(Z.maxLength),pattern:Rl(Z.pattern)}:{},name:q,onChange:M,onBlur:M,ref:Ce=>{if(Ce){ne(q,Z),te=Ae(r,q);const De=dn(Ce.value)&&Ce.querySelectorAll&&Ce.querySelectorAll("input,select,textarea")[0]||Ce,_e=mK(De),Ve=te._f.refs||[];if(_e?Ve.find(mt=>mt===De):De===te._f.ref)return;Tt(r,q,{_f:{...te._f,..._e?{refs:[...Ve.filter(mg),De,...Array.isArray(Ae(i,q))?[{}]:[]],ref:{type:De.type,name:q}}:{ref:De}}}),E(q,!1,void 0,De)}else te=Ae(r,q,{}),te._f&&(te._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(JT(u.array,q)&&a.action)&&u.unMount.add(q)}}},ye=()=>t.shouldFocusError&&nc(r,Y,u.mount),xe=q=>{ti(q)&&(h.state.next({disabled:q}),nc(r,(Z,te)=>{const pe=Ae(r,te);pe&&(Z.disabled=pe._f.disabled||q,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(Ce=>{Ce.disabled=pe._f.disabled||q}))},0,!1))},he=(q,Z)=>async te=>{let pe;te&&(te.preventDefault&&te.preventDefault(),te.persist&&te.persist());let Ce=br(o);if(u.disabled.size)for(const De of u.disabled)Tt(Ce,De,void 0);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:De,values:_e}=await S();n.errors=De,Ce=_e}else await O(r);if($n(n.errors,"root"),$r(n.errors)){h.state.next({errors:{}});try{await q(Ce,te)}catch(De){pe=De}}else Z&&await Z({...n.errors},te),ye(),setTimeout(ye);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(n.errors)&&!pe,submitCount:n.submitCount+1,errors:n.errors}),pe)throw pe},le=(q,Z={})=>{Ae(r,q)&&(dn(Z.defaultValue)?_(q,br(Ae(i,q))):(_(q,Z.defaultValue),Tt(i,q,br(Z.defaultValue))),Z.keepTouched||$n(n.touchedFields,q),Z.keepDirty||($n(n.dirtyFields,q),n.isDirty=Z.defaultValue?G(q,br(Ae(i,q))):G()),Z.keepError||($n(n.errors,q),f.isValid&&C()),h.state.next({...n}))},Fe=(q,Z={})=>{const te=q?br(q):i,pe=br(te),Ce=$r(q),De=Ce?i:pe;if(Z.keepDefaultValues||(i=te),!Z.keepValues){if(Z.keepDirtyValues){const _e=new Set([...u.mount,...Object.keys(_l(i,o))]);for(const Ve of Array.from(_e))Ae(n.dirtyFields,Ve)?Tt(De,Ve,Ae(o,Ve)):_(Ve,Ae(De,Ve))}else{if(Cb&&dn(q))for(const _e of u.mount){const Ve=Ae(r,_e);if(Ve&&Ve._f){const mt=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(ch(mt)){const ut=mt.closest("form");if(ut){ut.reset();break}}}}r={}}o=t.shouldUnregister?Z.keepDefaultValues?br(i):{}:br(De),h.array.next({values:{...De}}),h.values.next({values:{...De}})}u={mount:Z.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!Z.keepIsValid||!!Z.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:Z.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:Z.keepDirty?n.isDirty:!!(Z.keepDefaultValues&&!ea(q,i)),isSubmitted:Z.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:Z.keepDirtyValues?Z.keepDefaultValues&&o?_l(i,o):n.dirtyFields:Z.keepDefaultValues&&q?_l(i,q):Z.keepDirty?n.dirtyFields:{},touchedFields:Z.keepTouched?n.touchedFields:{},errors:Z.keepErrors?n.errors:{},isSubmitSuccessful:Z.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},et=(q,Z)=>Fe(Li(q)?q(o):q,Z);return{control:{register:ne,unregister:Ee,getFieldState:re,handleSubmit:he,setError:fe,_executeSchema:S,_getWatch:K,_getDirty:G,_updateValid:C,_removeUnmounted:F,_updateFieldArray:y,_updateDisabledField:$e,_getFieldArray:W,_reset:Fe,_resetDefaultValues:()=>Li(t.defaultValues)&&t.defaultValues().then(q=>{et(q,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:q=>{n={...n,...q}},_disableForm:xe,_subjects:h,_proxyFormState:f,_setErrors:P,get _fields(){return r},get _formValues(){return o},get _state(){return a},set _state(q){a=q},get _defaultValues(){return i},get _names(){return u},set _names(q){u=q},get _formState(){return n},set _formState(q){n=q},get _options(){return t},set _options(q){t={...t,...q}}},trigger:V,register:ne,handleSubmit:he,watch:ie,setValue:_,getValues:z,reset:et,resetField:le,clearErrors:oe,unregister:Ee,setError:fe,setFocus:(q,Z={})=>{const te=Ae(r,q),pe=te&&te._f;if(pe){const Ce=pe.refs?pe.refs[0]:pe.ref;Ce.focus&&(Ce.focus(),Z.shouldSelect&&Li(Ce.select)&&Ce.select())}},getFieldState:re}}function DK(e={}){const t=b.useRef(void 0),n=b.useRef(void 0),[r,i]=b.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={...wK(e),formState:r});const o=t.current.control;return o._options=e,Tb({subject:o._subjects.state,next:a=>{tA(a,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),b.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),b.useEffect(()=>{if(o._proxyFormState.isDirty){const a=o._getDirty();a!==r.isDirty&&o._subjects.state.next({isDirty:a})}},[o,r.isDirty]),b.useEffect(()=>{e.values&&!ea(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(a=>({...a}))):o._resetDefaultValues()},[e.values,o]),b.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),b.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),b.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=eA(r,o),t.current}function gu(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function qy(e,t,n,r,i){let o={};for(let u in t)o[u]=Math.floor(t[u]/2),o[u]>0&&t[u]%2===0&&o[u]--;let a=Ha(e,t,n).subtract(o);return yc(e,a,t,n,r,i)}function Ha(e,t,n,r,i){let o=e;return t.years?o=_V(e):t.months?o=Vc(e):t.weeks&&(o=fc(e,n)),yc(e,o,t,n,r,i)}function Yy(e,t,n,r,i){let o={...t};o.days?o.days--:o.weeks?o.weeks--:o.months?o.months--:o.years&&o.years--;let a=Ha(e,t,n).subtract(o);return yc(e,a,t,n,r,i)}function yc(e,t,n,r,i,o){if(i&&e.compare(i)>=0){let a=hb(t,Ha(cr(i),n,r));a&&(t=a)}if(o&&e.compare(o)<=0){let a=fb(t,Yy(cr(o),n,r));a&&(t=a)}return t}function Yo(e,t,n){if(t){let r=hb(e,cr(t));r&&(e=r)}if(n){let r=fb(e,cr(n));r&&(e=r)}return e}function fA(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 hA(e){let t=b.useMemo(()=>new ii(e.locale),[e.locale]),n=b.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:u,selectionAlignment:c,isDateUnavailable:d,pageBehavior:f="visible"}=e,h=b.useMemo(()=>i(n.calendar),[i,n.calendar]);var m;let[g,v]=Fr(e.value,(m=e.defaultValue)!==null&&m!==void 0?m:null,e.onChange),$=b.useMemo(()=>g?Qt(cr(g),h):null,[g,h]),C=b.useMemo(()=>g&&"timeZone"in g?g.timeZone:n.timeZone,[g,n.timeZone]),x=b.useMemo(()=>e.focusedValue?Yo(Qt(cr(e.focusedValue),h),a,u):void 0,[e.focusedValue,h,a,u]),y=b.useMemo(()=>Yo(e.defaultFocusedValue?Qt(cr(e.defaultFocusedValue),h):$||Qt(Xh(C),h),a,u),[e.defaultFocusedValue,$,C,h,a,u]),[D,P]=Fr(x,y,e.onFocusChange),[E,T]=b.useState(()=>{switch(c){case"start":return Ha(D,o,r,a,u);case"end":return Yy(D,o,r,a,u);case"center":default:return qy(D,o,r,a,u)}}),[k,S]=b.useState(e.autoFocus||!1),U=b.useMemo(()=>{let V={...o};return V.days?V.days--:V.days=-1,E.add(V)},[E,o]),[O,F]=b.useState(h.identifier);if(h.identifier!==O){let V=Qt(D,h);T(qy(V,o,r,a,u)),P(V),F(h.identifier)}gu(D,a,u)?P(Yo(D,a,u)):D.compare(E)<0?T(Yy(D,o,r,a,u)):D.compare(U)>0&&T(Ha(D,o,r,a,u));function G(V){V=Yo(V,a,u),P(V)}function K(V){if(!e.isDisabled&&!e.isReadOnly){let z=V;if(z===null){v(null);return}if(z=Yo(z,a,u),z=fA(z,E,d),!z)return;z=Qt(z,(g==null?void 0:g.calendar)||new dr),g&&"hour"in g?v(g.set(z)):v(z)}}let W=b.useMemo(()=>$?d&&d($)?!0:gu($,a,u):!1,[$,d,a,u]),j=e.isInvalid||e.validationState==="invalid"||W,L=j?"invalid":null,_=b.useMemo(()=>f==="visible"?o:yg(o),[f,o]);var M,Y;return{isDisabled:(M=e.isDisabled)!==null&&M!==void 0?M:!1,isReadOnly:(Y=e.isReadOnly)!==null&&Y!==void 0?Y:!1,value:$,setValue:K,visibleRange:{start:E,end:U},minValue:a,maxValue:u,focusedDate:D,timeZone:C,validationState:L,isValueInvalid:j,setFocusedDate(V){G(V),S(!0)},focusNextDay(){G(D.add({days:1}))},focusPreviousDay(){G(D.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&G(D.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&G(D.subtract({weeks:1}))},focusNextPage(){let V=E.add(_);P(Yo(D.add(_),a,u)),T(Ha(yc(D,V,_,r,a,u),_,r))},focusPreviousPage(){let V=E.subtract(_);P(Yo(D.subtract(_),a,u)),T(Ha(yc(D,V,_,r,a,u),_,r))},focusSectionStart(){o.days?G(E):o.weeks?G(fc(D,r)):(o.months||o.years)&&G(Vc(D))},focusSectionEnd(){o.days?G(U):o.weeks?G(MV(D,r)):(o.months||o.years)&&G(My(D))},focusNextSection(V){if(!V&&!o.days){G(D.add(yg(o)));return}o.days?this.focusNextPage():o.weeks?G(D.add({months:1})):(o.months||o.years)&&G(D.add({years:1}))},focusPreviousSection(V){if(!V&&!o.days){G(D.subtract(yg(o)));return}o.days?this.focusPreviousPage():o.weeks?G(D.subtract({months:1})):(o.months||o.years)&&G(D.subtract({years:1}))},selectFocusedDate(){K(D)},selectDate(V){K(V)},isFocused:k,setFocused:S,isInvalid(V){return gu(V,a,u)},isSelected(V){return $!=null&&xn(V,$)&&!this.isCellDisabled(V)&&!this.isCellUnavailable(V)},isCellFocused(V){return k&&D&&xn(V,D)},isCellDisabled(V){return e.isDisabled||V.compare(E)<0||V.compare(U)>0||this.isInvalid(V)},isCellUnavailable(V){return e.isDateUnavailable?e.isDateUnavailable(V):!1},isPreviousVisibleRangeInvalid(){let V=E.subtract({days:1});return xn(V,E)||this.isInvalid(V)},isNextVisibleRangeInvalid(){let V=U.add({days:1});return xn(V,U)||this.isInvalid(V)},getDatesInWeek(V,z=E){let re=z.add({weeks:V}),oe=[];re=fc(re,r);let fe=db(re,r);for(let ie=0;ie<fe;ie++)oe.push(null);for(;oe.length<7;){oe.push(re);let ie=re.add({days:1});if(xn(re,ie))break;re=ie}for(;oe.length<7;)oe.push(null);return oe}}}function yg(e){let t={...e};for(let n in e)t[n]=1;return t}function EK(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:o,visibleDuration:a={months:1},minValue:u,maxValue:c,...d}=e,[f,h]=Fr(t,n||null,r),[m,g]=b.useState(null),v="center";if(f&&f.start&&f.end){let M=qy(cr(f.start),a,o,u,c).add(a).subtract({days:1});f.end.compare(M)>0&&(v="start")}let $=b.useRef(null),[C,x]=b.useState(null),y=b.useMemo(()=>hb(u,C==null?void 0:C.start),[u,C]),D=b.useMemo(()=>fb(c,C==null?void 0:C.end),[c,C]),P=hA({...d,value:f&&f.start,createCalendar:i,locale:o,visibleDuration:a,minValue:y,maxValue:D,selectionAlignment:v}),E=_=>{if(_&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const M=cx(_,P,-1),Y=cx(_,P,1);$.current={start:M,end:Y},x($.current)}else $.current=null,x(null)},[T,k]=b.useState(P.visibleRange);(!Oy(P.visibleRange.start,T.start)||!Oy(P.visibleRange.end,T.end))&&(E(m),k(P.visibleRange));let S=_=>{_?(g(_),E(_)):(g(null),E(null))},U=m?vg(m,P.focusedDate):f&&vg(f.start,f.end),O=_=>{if(e.isReadOnly)return;const M=Yo(_,y,D),Y=fA(M,P.visibleRange.start,e.isDateUnavailable);if(Y)if(!m)S(Y);else{let V=vg(m,Y);V&&h({start:lx(V.start,f==null?void 0:f.start),end:lx(V.end,f==null?void 0:f.end)}),S(null)}},[F,G]=b.useState(!1),{isDateUnavailable:K}=e,W=b.useMemo(()=>!f||m?!1:K&&(K(f.start)||K(f.end))?!0:gu(f.start,u,c)||gu(f.end,u,c),[K,f,m,u,c]),j=e.isInvalid||e.validationState==="invalid"||W;return{...P,value:f,setValue:h,anchorDate:m,setAnchorDate:S,highlightedRange:U,validationState:j?"invalid":null,isValueInvalid:j,selectFocusedDate(){O(P.focusedDate)},selectDate:O,highlightDate(_){m&&P.setFocusedDate(_)},isSelected(_){return!!(U&&_.compare(U.start)>=0&&_.compare(U.end)<=0&&!P.isCellDisabled(_)&&!P.isCellUnavailable(_))},isInvalid(_){var M,Y;return P.isInvalid(_)||gu(_,(M=$.current)===null||M===void 0?void 0:M.start,(Y=$.current)===null||Y===void 0?void 0:Y.end)},isDragging:F,setDragging:G}}function vg(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:cr(e),end:cr(t)})}function lx(e,t){return e=Qt(e,(t==null?void 0:t.calendar)||new dr),t&&"hour"in t?t.set(e):e}function cx(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Zy{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);var r;return n&&(r=n.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(t){let n=this.keyMap.get(t);var r;return n&&(r=n.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var n;return(n=this.keyMap.get(t))!==null&&n!==void 0?n:null}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let u of a.childNodes)n(u)};for(let a of t)n(a);let r=null,i=0;for(let[a,u]of this.keyMap)r?(r.nextKey=a,u.prevKey=r.key):(this.firstKey=a,u.prevKey=void 0),u.type==="item"&&(u.index=i++),r=u,r.nextKey=void 0;var o;this.lastKey=(o=r==null?void 0:r.key)!==null&&o!==void 0?o:null}}class mi extends Set{constructor(t,n,r){super(t),t instanceof mi?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function CK(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function SK(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=b.useRef(!1),[,u]=b.useState(!1),c=b.useRef(null),d=b.useRef(null),[,f]=b.useState(null),h=b.useMemo(()=>dx(e.selectedKeys),[e.selectedKeys]),m=b.useMemo(()=>dx(e.defaultSelectedKeys,new mi),[e.defaultSelectedKeys]),[g,v]=Fr(h,m,e.onSelectionChange),$=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[C,x]=b.useState(i);i==="replace"&&C==="toggle"&&typeof g=="object"&&g.size===0&&x("replace");let y=b.useRef(i);return b.useEffect(()=>{i!==y.current&&(x(i),y.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:C,setSelectionBehavior:x,get isFocused(){return a.current},setFocused(D){a.current=D,u(D)},get focusedKey(){return c.current},get childFocusStrategy(){return d.current},setFocusedKey(D,P="first"){c.current=D,d.current=P,f(D)},selectedKeys:g,setSelectedKeys(D){(r||!CK(D,g))&&v(D)},disabledKeys:$,disabledBehavior:o}}function dx(e,t){return e?e==="all"?"all":new mi(e):t}class TK{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let n=this.getKey(t);return n==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)<0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let i=this.collection.getItem(r);(!t||i&&hg(this.collection,i,t)>0)&&(t=i)}var n;return(n=t==null?void 0:t.key)!==null&&n!==void 0?n:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r;if(this.state.selectedKeys==="all")r=new mi([n],n,n);else{let a=this.state.selectedKeys;var i;let u=(i=a.anchorKey)!==null&&i!==void 0?i:n;r=new mi(a,u,n);var o;for(let c of this.getKeyRange(u,(o=a.currentKey)!==null&&o!==void 0?o:n))r.delete(c);for(let c of this.getKeyRange(n,u))this.canSelectItem(c)&&r.add(c)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?hg(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){var r;if(!((r=this.layoutDelegate)===null||r===void 0)&&r.getKeyRange)return this.layoutDelegate.getKeyRange(t,n);let i=[],o=t;for(;o!=null;){let a=this.collection.getItem(o);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&i.push(o),o===n)return i;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n&&n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let n=this.getKey(t);if(n==null)return;let r=new mi(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none")return;let n=this.getKey(t);if(n==null)return;let r=this.canSelectItem(n)?new mi([n],n,n):new mi;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new mi;for(let r of t){let i=this.getKey(r);if(i!=null&&(n.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r!=null;){if(this.canSelectItem(r)){var i;let a=this.collection.getItem(r);(a==null?void 0:a.type)==="item"&&t.push(r);var o;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&n((o=(i=Kj(ip(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 AK(e){let{filter:t,layoutDelegate:n}=e,r=SK(e),i=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=b.useCallback(f=>t?new Zy(t(f)):new Zy(f),[t]),a=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),u=jj(e,o,a),c=b.useMemo(()=>new TK(u,r,{layoutDelegate:n}),[u,r,n]);const d=b.useRef(null);return b.useEffect(()=>{if(r.focusedKey!=null&&!u.getItem(r.focusedKey)&&d.current){const x=d.current.getItem(r.focusedKey),y=[...d.current.getKeys()].map(S=>{const U=d.current.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null),D=[...u.getKeys()].map(S=>{const U=u.getItem(S);return(U==null?void 0:U.type)==="item"?U:null}).filter(S=>S!==null);var f,h;const P=((f=y==null?void 0:y.length)!==null&&f!==void 0?f:0)-((h=D==null?void 0:D.length)!==null&&h!==void 0?h:0);var m,g,v;let E=Math.min(P>1?Math.max(((m=x==null?void 0:x.index)!==null&&m!==void 0?m:0)-P+1,0):(g=x==null?void 0:x.index)!==null&&g!==void 0?g:0,((v=D==null?void 0:D.length)!==null&&v!==void 0?v:0)-1),T=null,k=!1;for(;E>=0;){if(!c.isDisabled(D[E].key)){T=D[E];break}if(E<D.length-1&&!k)E++;else{k=!0;var $,C;E>(($=x==null?void 0:x.index)!==null&&$!==void 0?$:0)&&(E=(C=x==null?void 0:x.index)!==null&&C!==void 0?C:0),E--}}r.setFocusedKey(T?T.key:null)}d.current=u},[u,c,r,r.focusedKey]),{collection:u,disabledKeys:i,selectionManager:c}}function PK(e){var t;let[n,r]=Fr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=b.useMemo(()=>n!=null?[n]:[],[n]),{collection:o,disabledKeys:a,selectionManager:u}=AK({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:d=>{if(d==="all")return;var f;let h=(f=d.values().next().value)!==null&&f!==void 0?f:null;h===n&&e.onSelectionChange&&e.onSelectionChange(h),r(h)}}),c=n!=null?o.getItem(n):null;return{collection:o,disabledKeys:a,selectionManager:u,selectedKey:n,setSelectedKey:r,selectedItem:c}}function _b(e){let[t,n]=Fr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=b.useCallback(()=>{n(!0)},[n]),i=b.useCallback(()=>{n(!1)},[n]),o=b.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:o}}function _K(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:o,shouldCloseOnBlur:a=!0}=e,[u,c]=b.useState(!1),[d,f]=b.useState(!1),[h,m]=b.useState(null),g=Z=>{e.onSelectionChange&&e.onSelectionChange(Z),Z===x&&(fe(),z())};var v;let{collection:$,selectionManager:C,selectedKey:x,setSelectedKey:y,selectedItem:D,disabledKeys:P}=PK({...e,onSelectionChange:g,items:(v=e.items)!==null&&v!==void 0?v:e.defaultItems}),E=e.defaultInputValue;if(E==null){var T,k;x==null?E="":E=(k=(T=$.getItem(x))===null||T===void 0?void 0:T.textValue)!==null&&k!==void 0?k:""}let[S,U]=Fr(e.inputValue,E,e.onInputChange),O=$,F=b.useMemo(()=>e.items!=null||!n?$:RK($,S,n),[$,S,n,e.items]),[G,K]=b.useState(F),W=b.useRef("focus"),L=_b({...e,onOpenChange:Z=>{e.onOpenChange&&e.onOpenChange(Z,Z?W.current:void 0),C.setFocused(Z),Z||C.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),_=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";(i||F.size>0||pe&&O.size>0||e.items)&&(pe&&!L.isOpen&&e.items===void 0&&c(!0),W.current=te,m(Z),L.open())},M=(Z=null,te)=>{let pe=te==="manual"||te==="focus"&&r==="focus";!(i||F.size>0||pe&&O.size>0||e.items)&&!L.isOpen||(pe&&!L.isOpen&&e.items===void 0&&c(!0),L.isOpen||(W.current=te),V(Z))},Y=b.useCallback(()=>{K(u?O:F)},[u,O,F]),V=b.useCallback((Z=null)=>{L.isOpen&&Y(),m(Z),L.toggle()},[L,Y]),z=b.useCallback(()=>{L.isOpen&&(Y(),L.close())},[L,Y]),[re,oe]=b.useState(S),fe=()=>{var Z,te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";oe(pe),U(pe)};var ie,Ee;let $e=b.useRef((Ee=(ie=e.selectedKey)!==null&&ie!==void 0?ie:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var ne;let ye=b.useRef(x!=null&&(ne=(t=$.getItem(x))===null||t===void 0?void 0:t.textValue)!==null&&ne!==void 0?ne:"");b.useEffect(()=>{var Z;d&&(F.size>0||i)&&!L.isOpen&&S!==re&&r!=="manual"&&_(null,"input"),!u&&!i&&L.isOpen&&F.size===0&&z(),x!=null&&x!==$e.current&&z(),S!==re&&(C.setFocusedKey(null),c(!1),S===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&y(null)),x!==$e.current&&(e.inputValue===void 0||e.selectedKey===void 0)?fe():re!==S&&oe(S);var te;let pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";!d&&x!=null&&e.inputValue===void 0&&x===$e.current&&ye.current!==pe&&(oe(pe),U(pe)),$e.current=x,ye.current=pe});let xe=Kc({...e,value:b.useMemo(()=>({inputValue:S,selectedKey:x}),[S,x])}),he=()=>{o&&x==null?le():Fe()},le=()=>{$e.current=null,y(null),z()},Fe=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var Z,te;(Z=e.onSelectionChange)===null||Z===void 0||Z.call(e,x);var pe;let Ce=x!=null&&(pe=(te=$.getItem(x))===null||te===void 0?void 0:te.textValue)!==null&&pe!==void 0?pe:"";oe(Ce),z()}else fe(),z()};const et=()=>{if(o){var Z,te;const pe=x!=null&&(te=(Z=$.getItem(x))===null||Z===void 0?void 0:Z.textValue)!==null&&te!==void 0?te:"";S===pe?Fe():le()}else Fe()};let dt=()=>{L.isOpen&&C.focusedKey!=null?x===C.focusedKey?Fe():y(C.focusedKey):et()},Dn=b.useRef(S),yt=Z=>{Z?(Dn.current=S,r==="focus"&&!e.isReadOnly&&_(null,"focus")):(a&&et(),S!==Dn.current&&xe.commitValidation()),f(Z)},q=b.useMemo(()=>L.isOpen?u?O:F:G,[L.isOpen,O,F,u,G]);return{...xe,...L,focusStrategy:h,toggle:M,open:_,close:et,selectionManager:C,selectedKey:x,setSelectedKey:y,disabledKeys:P,isFocused:d,setFocused:yt,selectedItem:D,collection:q,inputValue:S,setInputValue:U,commit:dt,revert:he}}function RK(e,t,n){return new Zy(pA(e,e,t,n))}function pA(e,t,n,r){let i=[];for(let o of t)if(o.type==="section"&&o.hasChildNodes){let a=pA(e,ip(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 mA={};mA={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var gA={};gA={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var yA={};yA={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 vA={};vA={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 bA={};bA={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 $A={};$A={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var xA={};xA={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 wA={};wA={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 DA={};DA={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 EA={};EA={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 CA={};CA={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 SA={};SA={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var TA={};TA={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 AA={};AA={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 PA={};PA={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 _A={};_A={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var RA={};RA={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var OA={};OA={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 MA={};MA={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 FA={};FA={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 kA={};kA={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 BA={};BA={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 IA={};IA={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 LA={};LA={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 VA={};VA={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 NA={};NA={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var jA={};jA={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 KA={};KA={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 UA={};UA={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 zA={};zA={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 WA={};WA={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 HA={};HA={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var GA={};GA={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var qA={};qA={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var YA={};YA={"ar-AE":mA,"bg-BG":gA,"cs-CZ":yA,"da-DK":vA,"de-DE":bA,"el-GR":$A,"en-US":xA,"es-ES":wA,"et-EE":DA,"fi-FI":EA,"fr-FR":CA,"he-IL":SA,"hr-HR":TA,"hu-HU":AA,"it-IT":PA,"ja-JP":_A,"ko-KR":RA,"lt-LT":OA,"lv-LV":MA,"nb-NO":FA,"nl-NL":kA,"pl-PL":BA,"pt-BR":IA,"pt-PT":LA,"ro-RO":VA,"ru-RU":NA,"sk-SK":jA,"sl-SI":KA,"sr-SP":UA,"sv-SE":zA,"tr-TR":WA,"uk-UA":HA,"zh-CN":GA,"zh-TW":qA};function OK(e){return e&&e.__esModule?e.default:e}const ZA=new ya(OK(YA));function JA(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function hh(e,t,n,r,i){let o=e!=null&&n!=null&&e.compare(n)>0,a=e!=null&&t!=null&&e.compare(t)<0,u=e!=null&&(r==null?void 0:r(e))||!1,c=o||a||u,d=[];if(c){let f=JA(),h=ya.getGlobalDictionaryForPackage("@react-stately/datepicker")||ZA,m=new jC(f,h),g=new ii(f,xo({},i)),v=g.resolvedOptions().timeZone;a&&t!=null&&d.push(m.format("rangeUnderflow",{minValue:g.format(t.toDate(v))})),o&&n!=null&&d.push(m.format("rangeOverflow",{maxValue:g.format(n.toDate(v))})),u&&d.push(m.format("unavailableDate"))}return{isInvalid:c,validationErrors:d,validationDetails:{badInput:u,customError:!1,patternMismatch:!1,rangeOverflow:o,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!c}}}function MK(e,t,n,r,i){var o;let a=hh((o=e==null?void 0:e.start)!==null&&o!==void 0?o:null,t,n,r,i);var u;let c=hh((u=e==null?void 0:e.end)!==null&&u!==void 0?u:null,t,n,r,i),d=sh(a,c);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let f=ya.getGlobalDictionaryForPackage("@react-stately/datepicker")||ZA;d=sh(d,{isInvalid:!0,validationErrors:[f.getStringForLocale("rangeReversed",JA())],validationDetails:{...ep,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return d}const FK={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},kK={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function xo(e,t){e={...t.shouldForceLeadingZeros?kK:FK,...e};let r=t.granularity||"minute",i=Object.keys(e);var o;let a=i.indexOf((o=t.maxGranularity)!==null&&o!==void 0?o:"year");a<0&&(a=0);let u=i.indexOf(r);if(u<0&&(u=2),a>u)throw new Error("maxGranularity must be greater than granularity");let c=i.slice(a,u+1).reduce((f,h)=>(f[h]=e[h],f),{});return t.hourCycle!=null&&(c.hour12=t.hourCycle===12),c.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(c.timeZoneName="short"),t.showEra&&a===0&&(c.era="short"),c}function tu(e){return e&&"hour"in e?e:new Nc}function XA(e,t){if(e===null)return null;if(e)return Qt(e,t)}function Ol(e,t,n,r){if(e)return XA(e,n);let i=Qt(WC(r??Lc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?cr(i):r?i:Di(i)}function Rb(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[i,o]=b.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&o([r,n]),t||(t=e?r:i[0]);let a=e?n:i[1];return[t,a]}function BK(e){let t=_b(e),[n,r]=Fr(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[o,a]=Rb(i,e.granularity),u=n!=null?n.toDate(a??"UTC"):null,c=o==="hour"||o==="minute"||o==="second";var d;let f=(d=e.shouldCloseOnSelect)!==null&&d!==void 0?d:!0,[h,m]=b.useState(null),[g,v]=b.useState(null);if(n&&(h=n,"hour"in n&&(g=n)),i&&!(o in i))throw new Error("Invalid granularity "+o+" for value "+i.toString());let $=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",C=b.useMemo(()=>({granularity:o,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:$}),[o,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,$]),{minValue:x,maxValue:y,isDateUnavailable:D}=e,P=b.useMemo(()=>hh(n,x,y,D,C),[n,x,y,D,C]),E=Kc({...e,value:n,builtinValidation:P}),T=E.displayValidation.isInvalid,k=e.validationState||(T?"invalid":null),S=(F,G)=>{r("timeZone"in G?G.set(cr(F)):Di(F,G)),m(null),v(null),E.commitValidation()};return{...E,value:n,setValue:r,dateValue:h,timeValue:g,setDateValue:F=>{let G=typeof f=="function"?f():f;c?g||G?S(F,g||tu(e.defaultValue||e.placeholderValue)):m(F):(r(F),E.commitValidation()),G&&t.setOpen(!1)},setTimeValue:F=>{h&&F?S(h,F):v(F)},granularity:o,hasTime:c,...t,setOpen(F){!F&&!n&&h&&c&&S(h,g||tu(e.defaultValue||e.placeholderValue)),t.setOpen(F)},validationState:k,isInvalid:T,formatValue(F,G){if(!u)return"";let K=xo(G,C);return new ii(F,K).format(u)},getDateFormatter(F,G){let K={...C,...G},W=xo({},K);return new ii(F,W)}}}const IK=new ya({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 LK(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?IK.getStringForLocale(e,n):"––"}const hf={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},fx={year:5,month:2,day:7,hour:2,minute:15,second:15},VK={dayperiod:"dayPeriod"};function QA(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:o=!1,isRequired:a=!1,minValue:u,maxValue:c,isDateUnavailable:d}=e,f=e.value||e.defaultValue||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=m||"UTC";if(f&&!(h in f))throw new Error("Invalid granularity "+h+" for value "+f.toString());let v=b.useMemo(()=>new ii(t),[t]),$=b.useMemo(()=>n(v.resolvedOptions().calendar),[n,v]);var C;let[x,y]=Fr(e.value,(C=e.defaultValue)!==null&&C!==void 0?C:null,e.onChange),D=b.useMemo(()=>{var ne;return(ne=XA(x,$))!==null&&ne!==void 0?ne:null},[x,$]),[P,E]=b.useState(()=>Ol(e.placeholderValue,h,$,m)),T=D||P,k=$.identifier==="gregory"&&T.era==="BC",S=b.useMemo(()=>{var ne;return{granularity:h,maxGranularity:(ne=e.maxGranularity)!==null&&ne!==void 0?ne:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:k,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,h,e.hourCycle,e.shouldForceLeadingZeros,m,r,k]),U=b.useMemo(()=>xo({},S),[S]),O=b.useMemo(()=>new ii(t,U),[t,U]),F=b.useMemo(()=>O.resolvedOptions(),[O]),G=b.useMemo(()=>O.formatToParts(new Date).filter(ne=>hf[ne.type]).reduce((ne,ye)=>(ne[ye.type]=!0,ne),{}),[O]),[K,W]=b.useState(()=>e.value||e.defaultValue?{...G}:{}),j=b.useRef(null),L=b.useRef($.identifier);b.useEffect(()=>{$.identifier!==L.current&&(L.current=$.identifier,E(ne=>Object.keys(K).length>0?Qt(ne,$):Ol(e.placeholderValue,h,$,m)))},[$,h,K,m,e.placeholderValue]),x&&Object.keys(K).length<Object.keys(G).length&&(K={...G},W(K)),x==null&&Object.keys(K).length===Object.keys(G).length&&(K={},W(K),E(Ol(e.placeholderValue,h,$,m)));let _=D&&Object.keys(K).length>=Object.keys(G).length?D:P,M=ne=>{if(e.isDisabled||e.isReadOnly)return;let ye=Object.keys(K),xe=Object.keys(G);ne==null?(y(null),E(Ol(e.placeholderValue,h,$,m)),W({})):ye.length>=xe.length||ye.length===xe.length-1&&G.dayPeriod&&!K.dayPeriod&&j.current!=="dayPeriod"?(ne=Qt(ne,(f==null?void 0:f.calendar)||new dr),y(ne)):E(ne),j.current=null},Y=b.useMemo(()=>_.toDate(g),[_,g]),V=b.useMemo(()=>O.formatToParts(Y).map(ne=>{let ye=hf[ne.type];ne.type==="era"&&$.getEras().length===1&&(ye=!1);let xe=hf[ne.type]&&!K[ne.type],he=hf[ne.type]?LK(ne.type,ne.value,t):null;return{type:VK[ne.type]||ne.type,text:xe?he:ne.value,...NK(_,ne.type,F),isPlaceholder:xe,placeholder:he,isEditable:ye}}),[Y,K,O,F,_,$,t]);G.era&&K.year&&!K.era?(K.era=!0,W({...K})):!G.era&&K.era&&(delete K.era,W({...K}));let z=ne=>{K[ne]=!0,ne==="year"&&G.era&&(K.era=!0),W({...K})},re=(ne,ye)=>{if(K[ne])M(jK(_,ne,ye,F));else{z(ne);let xe=Object.keys(K),he=Object.keys(G);(xe.length>=he.length||xe.length===he.length-1&&G.dayPeriod&&!K.dayPeriod)&&M(_)}},oe=b.useMemo(()=>hh(x,u,c,d,S),[x,u,c,d,S]),fe=Kc({...e,value:x,builtinValidation:oe}),ie=fe.displayValidation.isInvalid,Ee=e.validationState||(ie?"invalid":null);var $e;return{...fe,value:D,dateValue:Y,calendar:$,setValue:M,segments:V,dateFormatter:O,validationState:Ee,isInvalid:ie,granularity:h,maxGranularity:($e=e.maxGranularity)!==null&&$e!==void 0?$e:"year",isDisabled:i,isReadOnly:o,isRequired:a,increment(ne){re(ne,1)},decrement(ne){re(ne,-1)},incrementPage(ne){re(ne,fx[ne]||1)},decrementPage(ne){re(ne,-(fx[ne]||1))},setSegment(ne,ye){z(ne),M(KK(_,ne,ye,F))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let ne=Object.keys(K),ye=Object.keys(G);ne.length===ye.length-1&&G.dayPeriod&&!K.dayPeriod&&(K={...G},W(K),M(_.copy()))},clearSegment(ne){delete K[ne],j.current=ne,W({...K});let ye=Ol(e.placeholderValue,h,$,m),xe=_;if(ne==="dayPeriod"&&"hour"in _&&"hour"in ye){let he=_.hour>=12,le=ye.hour>=12;he&&!le?xe=_.set({hour:_.hour-12}):!he&&le&&(xe=_.set({hour:_.hour+12}))}else ne in _&&(xe=_.set({[ne]:ye[ne]}));y(null),M(xe)},formatValue(ne){if(!D)return"";let ye=xo(ne,S);return new ii(t,ye).format(Y)},getDateFormatter(ne,ye){let xe={...S,...ye},he=xo({},xe);return new ii(ne,he)}}}function NK(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:RV(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:OV(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 jK(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 KK(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 UK(e){var t,n;let r=_b(e),[i,o]=Fr(e.value,e.defaultValue||null,e.onChange),[a,u]=b.useState(()=>i||{start:null,end:null});i==null&&a.start&&a.end&&(a={start:null,end:null},u(a));let c=i||a,d=L=>{u(L||{start:null,end:null}),Fa(L)?o(L):o(null)},f=(c==null?void 0:c.start)||(c==null?void 0:c.end)||e.placeholderValue||null,[h,m]=Rb(f,e.granularity),g=h==="hour"||h==="minute"||h==="second";var v;let $=(v=e.shouldCloseOnSelect)!==null&&v!==void 0?v:!0,[C,x]=b.useState(null),[y,D]=b.useState(null);c&&Fa(c)&&(C=c,"hour"in c.start&&(y=c));let P=(L,_)=>{d({start:"timeZone"in _.start?_.start.set(cr(L.start)):Di(L.start,_.start),end:"timeZone"in _.end?_.end.set(cr(L.end)):Di(L.end,_.end)}),x(null),D(null),K.commitValidation()},E=L=>{let _=typeof $=="function"?$():$;g?Fa(L)&&(y!=null&&y.start)&&(y!=null&&y.end)?P(L,{start:(y==null?void 0:y.start)||tu(e.placeholderValue),end:(y==null?void 0:y.end)||tu(e.placeholderValue)}):x(L):Fa(L)?(d(L),K.commitValidation()):x(L),_&&r.setOpen(!1)},T=L=>{Fa(C)&&Fa(L)?P(C,L):D(L)},k=(c==null||(t=c.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&c.start.era==="BC"||(c==null||(n=c.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&c.end.era==="BC",S=b.useMemo(()=>({granularity:h,timeZone:m,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[h,e.hourCycle,e.shouldForceLeadingZeros,m,e.hideTimeZone,k]),{minValue:U,maxValue:O,isDateUnavailable:F}=e,G=b.useMemo(()=>MK(c,U,O,F,S),[c,U,O,F,S]),K=Kc({...e,value:i,name:b.useMemo(()=>[e.startName,e.endName].filter(L=>L!=null),[e.startName,e.endName]),builtinValidation:G}),W=K.displayValidation.isInvalid,j=e.validationState||(W?"invalid":null);return{...K,value:c,setValue:d,dateRange:C,timeRange:y,granularity:h,hasTime:g,setDate(L,_){var M,Y;E(L==="start"?{start:_,end:(M=C==null?void 0:C.end)!==null&&M!==void 0?M:null}:{start:(Y=C==null?void 0:C.start)!==null&&Y!==void 0?Y:null,end:_})},setTime(L,_){var M,Y;T(L==="start"?{start:_,end:(M=y==null?void 0:y.end)!==null&&M!==void 0?M:null}:{start:(Y=y==null?void 0:y.start)!==null&&Y!==void 0?Y:null,end:_})},setDateTime(L,_){var M,Y;d(L==="start"?{start:_,end:(M=c==null?void 0:c.end)!==null&&M!==void 0?M:null}:{start:(Y=c==null?void 0:c.start)!==null&&Y!==void 0?Y:null,end:_})},setDateRange:E,setTimeRange:T,...r,setOpen(L){!L&&!(c!=null&&c.start&&(c!=null&&c.end))&&Fa(C)&&g&&P(C,{start:(y==null?void 0:y.start)||tu(e.placeholderValue),end:(y==null?void 0:y.end)||tu(e.placeholderValue)}),r.setOpen(L)},validationState:j,isInvalid:W,formatValue(L,_){if(!c||!c.start||!c.end)return null;let M="timeZone"in c.start?c.start.timeZone:void 0,Y=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),V="timeZone"in c.end?c.end.timeZone:void 0,z=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),re=xo(_,{granularity:Y,timeZone:M,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:c.start.calendar.identifier==="gregory"&&c.start.era==="BC"||c.end.calendar.identifier==="gregory"&&c.end.era==="BC"}),oe=c.start.toDate(M||"UTC"),fe=c.end.toDate(V||"UTC"),ie=new ii(L,re),Ee;if(M===V&&Y===z&&c.start.compare(c.end)!==0){try{let $e=ie.formatRangeToParts(oe,fe),ne=-1;for(let he=0;he<$e.length;he++){let le=$e[he];if(le.source==="shared"&&le.type==="literal")ne=he;else if(le.source==="endRange")break}let ye="",xe="";for(let he=0;he<$e.length;he++)he<ne?ye+=$e[he].value:he>ne&&(xe+=$e[he].value);return{start:ye,end:xe}}catch{}Ee=ie}else{let $e=xo(_,{granularity:z,timeZone:V,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Ee=new ii(L,$e)}return{start:ie.format(oe),end:Ee.format(fe)}},getDateFormatter(L,_){let M={...S,..._},Y=xo({},M);return new ii(L,Y)}}}function Fa(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function zK(e){let{placeholderValue:t=new Nc,minValue:n,maxValue:r,granularity:i,validate:o}=e;var a;let[u,c]=Fr(e.value,(a=e.defaultValue)!==null&&a!==void 0?a:null,e.onChange),d=u||t,f=d&&"day"in d?d:void 0,h=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,m=b.useMemo(()=>{let D=d&&"timeZone"in d?d.timeZone:void 0;return(D||h)&&t?JC(Ml(t),D||h):Ml(t)},[t,d,h]),g=b.useMemo(()=>Ml(n,f),[n,f]),v=b.useMemo(()=>Ml(r,f),[r,f]),$=b.useMemo(()=>u&&"day"in u?g$(u):u,[u]),C=b.useMemo(()=>u==null?null:Ml(u),[u]);return{...QA({...e,value:C,defaultValue:void 0,minValue:g,maxValue:v,onChange:D=>{c(f||h?D:D&&g$(D))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:m??void 0,createCalendar:()=>new dr,validate:b.useCallback(()=>o==null?void 0:o(u),[o,u])}),timeValue:$}}function Ml(e,t=Xh(Lc())){return e?"day"in e?e:Di(t,e):null}var kf={exports:{}},WK=kf.exports,hx;function HK(){return hx||(hx=1,function(e,t){(function(n,r){e.exports=r()})(WK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",c="hour",d="day",f="week",h="month",m="quarter",g="year",v="date",$="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var j=["th","st","nd","rd"],L=W%100;return"["+W+(j[(L-20)%10]||j[L]||j[0])+"]"}},D=function(W,j,L){var _=String(W);return!_||_.length>=j?W:""+Array(j+1-_.length).join(L)+W},P={s:D,z:function(W){var j=-W.utcOffset(),L=Math.abs(j),_=Math.floor(L/60),M=L%60;return(j<=0?"+":"-")+D(_,2,"0")+":"+D(M,2,"0")},m:function W(j,L){if(j.date()<L.date())return-W(L,j);var _=12*(L.year()-j.year())+(L.month()-j.month()),M=j.clone().add(_,h),Y=L-M<0,V=j.clone().add(_+(Y?-1:1),h);return+(-(_+(L-M)/(Y?M-V:V-M))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:g,w:f,d,D:v,h:c,m:u,s:a,ms:o,Q:m}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",T={};T[E]=y;var k="$isDayjsObject",S=function(W){return W instanceof G||!(!W||!W[k])},U=function W(j,L,_){var M;if(!j)return E;if(typeof j=="string"){var Y=j.toLowerCase();T[Y]&&(M=Y),L&&(T[Y]=L,M=Y);var V=j.split("-");if(!M&&V.length>1)return W(V[0])}else{var z=j.name;T[z]=j,M=z}return!_&&M&&(E=M),M||!_&&E},O=function(W,j){if(S(W))return W.clone();var L=typeof j=="object"?j:{};return L.date=W,L.args=arguments,new G(L)},F=P;F.l=U,F.i=S,F.w=function(W,j){return O(W,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var G=function(){function W(L){this.$L=U(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[k]=!0}var j=W.prototype;return j.parse=function(L){this.$d=function(_){var M=_.date,Y=_.utc;if(M===null)return new Date(NaN);if(F.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var V=M.match(C);if(V){var z=V[2]-1||0,re=(V[7]||"0").substring(0,3);return Y?new Date(Date.UTC(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],z,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date(M)}(L),this.init()},j.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},j.$utils=function(){return F},j.isValid=function(){return this.$d.toString()!==$},j.isSame=function(L,_){var M=O(L);return this.startOf(_)<=M&&M<=this.endOf(_)},j.isAfter=function(L,_){return O(L)<this.startOf(_)},j.isBefore=function(L,_){return this.endOf(_)<O(L)},j.$g=function(L,_,M){return F.u(L)?this[_]:this.set(M,L)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(L,_){var M=this,Y=!!F.u(_)||_,V=F.p(L),z=function(ye,xe){var he=F.w(M.$u?Date.UTC(M.$y,xe,ye):new Date(M.$y,xe,ye),M);return Y?he:he.endOf(d)},re=function(ye,xe){return F.w(M.toDate()[ye].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(xe)),M)},oe=this.$W,fe=this.$M,ie=this.$D,Ee="set"+(this.$u?"UTC":"");switch(V){case g:return Y?z(1,0):z(31,11);case h:return Y?z(1,fe):z(0,fe+1);case f:var $e=this.$locale().weekStart||0,ne=(oe<$e?oe+7:oe)-$e;return z(Y?ie-ne:ie+(6-ne),fe);case d:case v:return re(Ee+"Hours",0);case c:return re(Ee+"Minutes",1);case u:return re(Ee+"Seconds",2);case a:return re(Ee+"Milliseconds",3);default:return this.clone()}},j.endOf=function(L){return this.startOf(L,!1)},j.$set=function(L,_){var M,Y=F.p(L),V="set"+(this.$u?"UTC":""),z=(M={},M[d]=V+"Date",M[v]=V+"Date",M[h]=V+"Month",M[g]=V+"FullYear",M[c]=V+"Hours",M[u]=V+"Minutes",M[a]=V+"Seconds",M[o]=V+"Milliseconds",M)[Y],re=Y===d?this.$D+(_-this.$W):_;if(Y===h||Y===g){var oe=this.clone().set(v,1);oe.$d[z](re),oe.init(),this.$d=oe.set(v,Math.min(this.$D,oe.daysInMonth())).$d}else z&&this.$d[z](re);return this.init(),this},j.set=function(L,_){return this.clone().$set(L,_)},j.get=function(L){return this[F.p(L)]()},j.add=function(L,_){var M,Y=this;L=Number(L);var V=F.p(_),z=function(fe){var ie=O(Y);return F.w(ie.date(ie.date()+Math.round(fe*L)),Y)};if(V===h)return this.set(h,this.$M+L);if(V===g)return this.set(g,this.$y+L);if(V===d)return z(1);if(V===f)return z(7);var re=(M={},M[u]=r,M[c]=i,M[a]=n,M)[V]||1,oe=this.$d.getTime()+L*re;return F.w(oe,this)},j.subtract=function(L,_){return this.add(-1*L,_)},j.format=function(L){var _=this,M=this.$locale();if(!this.isValid())return M.invalidDate||$;var Y=L||"YYYY-MM-DDTHH:mm:ssZ",V=F.z(this),z=this.$H,re=this.$m,oe=this.$M,fe=M.weekdays,ie=M.months,Ee=M.meridiem,$e=function(xe,he,le,Fe){return xe&&(xe[he]||xe(_,Y))||le[he].slice(0,Fe)},ne=function(xe){return F.s(z%12||12,xe,"0")},ye=Ee||function(xe,he,le){var Fe=xe<12?"AM":"PM";return le?Fe.toLowerCase():Fe};return Y.replace(x,function(xe,he){return he||function(le){switch(le){case"YY":return String(_.$y).slice(-2);case"YYYY":return F.s(_.$y,4,"0");case"M":return oe+1;case"MM":return F.s(oe+1,2,"0");case"MMM":return $e(M.monthsShort,oe,ie,3);case"MMMM":return $e(ie,oe);case"D":return _.$D;case"DD":return F.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return $e(M.weekdaysMin,_.$W,fe,2);case"ddd":return $e(M.weekdaysShort,_.$W,fe,3);case"dddd":return fe[_.$W];case"H":return String(z);case"HH":return F.s(z,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ye(z,re,!0);case"A":return ye(z,re,!1);case"m":return String(re);case"mm":return F.s(re,2,"0");case"s":return String(_.$s);case"ss":return F.s(_.$s,2,"0");case"SSS":return F.s(_.$ms,3,"0");case"Z":return V}return null}(xe)||V.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(L,_,M){var Y,V=this,z=F.p(_),re=O(L),oe=(re.utcOffset()-this.utcOffset())*r,fe=this-re,ie=function(){return F.m(V,re)};switch(z){case g:Y=ie()/12;break;case h:Y=ie();break;case m:Y=ie()/3;break;case f:Y=(fe-oe)/6048e5;break;case d:Y=(fe-oe)/864e5;break;case c:Y=fe/i;break;case u:Y=fe/r;break;case a:Y=fe/n;break;default:Y=fe}return M?Y:F.a(Y)},j.daysInMonth=function(){return this.endOf(h).$D},j.$locale=function(){return T[this.$L]},j.locale=function(L,_){if(!L)return this.$L;var M=this.clone(),Y=U(L,_,!0);return Y&&(M.$L=Y),M},j.clone=function(){return F.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},W}(),K=G.prototype;return O.prototype=K,[["$ms",o],["$s",a],["$m",u],["$H",c],["$W",d],["$M",h],["$y",g],["$D",v]].forEach(function(W){K[W[1]]=function(j){return this.$g(j,W[0],W[1])}}),O.extend=function(W,j){return W.$i||(W(j,G,O),W.$i=!0),O},O.locale=U,O.isDayjs=S,O.unix=function(W){return O(1e3*W)},O.en=T[E],O.Ls=T,O.p={},O})}(kf)),kf.exports}var GK=HK();const qK=Ao(GK);var ps=[["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"]],YK="react-international-phone-",eP=(...e)=>e.filter(t=>!!t).join(" ").trim(),ZK=(...e)=>eP(...e).split(" ").map(t=>`${YK}${t}`).join(" "),Jn=({addPrefix:e,rawClassNames:t})=>eP(ZK(...e),...t),JK=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let o=e.slice(0,r),a=e.slice(r),u=o,c=0;for(let d of t.split("")){if(c>=a.length){if(!i&&d!==n){u+=d;continue}break}d===n?(u+=a[c],c+=1):u+=d}return u},Xs=e=>e?/^\d+$/.test(e):!1,sp=e=>e.replace(/\D/g,""),XK=(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},QK=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),eU=(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=sp(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return o(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return o(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return o(`${t.prefix}${i}`)}let a=()=>{let d=t.dialCode.length,f=i.slice(0,d),h=i.slice(d);return{phoneLeftSide:f,phoneRightSide:h}},{phoneLeftSide:u,phoneRightSide:c}=a();return u=`${t.prefix}${u}${t.charAfterDialCode}`,c=JK({value:c,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&c.length===0}),t.disableDialCodeAndPrefix&&(u=""),o(`${u}${c}`)},tU=({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 c=0,d=0;for(let f=0;f<n.length&&(c+=1,Xs(n[f])&&(d+=1),!(d>=u+1));f+=1);if(o!=="backward")for(;!Xs(n[c])&&c<n.length;)c+=1;return c},Bf=({phone:e,prefix:t})=>e?`${t}${sp(e)}`:"";function Jy({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:a,forceDialCode:u,disableDialCodeAndPrefix:c,defaultMask:d,countryGuessingEnabled:f,disableFormatting:h}){let m=e;c&&(m=m.startsWith(`${o}`)?m:`${o}${t.dialCode}${m}`);let g=f?cU({phone:m,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,v=(g==null?void 0:g.country)??t,$=eU(m,{prefix:o,mask:uU({phone:m,country:v,defaultMask:d,disableFormatting:h}),maskChar:tP,dialCode:v.dialCode,trimNonDigitsEnd:r,charAfterDialCode:a,forceDialCode:u,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:c}),C=f&&!(g!=null&&g.fullDialCodeMatch)?t:v;return{phone:Bf({phone:c?`${C.dialCode}${$}`:$,prefix:o}),inputValue:$,country:C}}var nU=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},rU=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,countryGuessingEnabled:c,defaultMask:d,disableFormatting:f,countries:h})=>{let m=e.nativeEvent,g=m.inputType,v=nU(g),$=!!(g!=null&&g.startsWith("insertFrom")),C=g==="insertText",x=(m==null?void 0:m.data)||void 0,y=e.target.value,D=e.target.selectionStart??0;if(g!=null&&g.includes("history"))return{inputValue:r,phone:Bf({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(C&&!Xs(x)&&y!==i)return{inputValue:r,phone:Bf({phone:u?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:D-((x==null?void 0:x.length)??0),country:t};if(a&&!y.startsWith(`${i}${t.dialCode}`)&&!$){let S=y?r:`${i}${t.dialCode}${o}`;return{inputValue:S,phone:Bf({phone:S,prefix:i}),cursorPosition:i.length+t.dialCode.length+o.length,country:t}}let{phone:P,inputValue:E,country:T}=Jy({value:y,country:t,trimNonDigitsEnd:v==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:c,countries:h,prefix:i,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:u,disableFormatting:f,defaultMask:d}),k=tU({cursorPositionAfterInput:D,phoneBeforeInput:r,phoneAfterInput:y,phoneAfterFormatted:E,leftOffset:a?i.length+t.dialCode.length+o.length:0,deletion:v});return{phone:P,inputValue:E,cursorPosition:k,country:T}},iU=(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},oU=()=>{let e=b.useRef(),t=b.useRef(Date.now());return{check:()=>{let n=Date.now(),r=e.current?n-t.current:void 0;return e.current=t.current,t.current=n,r}}},aU={size:20,overrideLastItemDebounceMS:-1};function sU(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...aU,...t},[o,a]=b.useState(e),[u,c]=b.useState([o]),[d,f]=b.useState(0),h=oU();return[o,(m,g)=>{if(typeof m=="object"&&typeof o=="object"&&iU(m,o)||m===o)return;let v=r>0,$=h.check(),C=v&&$!==void 0?$>r:!0;if((g==null?void 0:g.overrideLastItem)!==void 0?g.overrideLastItem:!C)c(x=>[...x.slice(0,d),m]);else{let x=u.length>=n;c(y=>[...y.slice(x?1:0,d+1),m]),x||f(y=>y+1)}a(m),i==null||i(m)},()=>{if(d<=0)return{success:!1};let m=u[d-1];return a(m),f(g=>g-1),i==null||i(m),{success:!0,value:m}},()=>{if(d+1>=u.length)return{success:!1};let m=u[d+1];return a(m),f(g=>g+1),i==null||i(m),{success:!0,value:m}}]}var tP=".",Zr={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:ps,preferredCountries:[]},nP=({defaultCountry:e=Zr.defaultCountry,value:t=Zr.value,countries:n=Zr.countries,prefix:r=Zr.prefix,defaultMask:i=Zr.defaultMask,charAfterDialCode:o=Zr.charAfterDialCode,historySaveDebounceMS:a=Zr.historySaveDebounceMS,disableCountryGuess:u=Zr.disableCountryGuess,disableDialCodePrefill:c=Zr.disableDialCodePrefill,forceDialCode:d=Zr.forceDialCode,disableDialCodeAndPrefix:f=Zr.disableDialCodeAndPrefix,disableFormatting:h=Zr.disableFormatting,onChange:m,inputRef:g})=>{let v={countries:n,prefix:r,charAfterDialCode:o,forceDialCode:f?!1:d,disableDialCodeAndPrefix:f,defaultMask:i,countryGuessingEnabled:!u,disableFormatting:h},$=b.useRef(null),C=g||$,x=W=>{Promise.resolve().then(()=>{var j;typeof window>"u"||C.current!==(document==null?void 0:document.activeElement)||((j=C.current)==null||j.setSelectionRange(W,W))})},[{phone:y,inputValue:D,country:P},E,T,k]=sU(()=>{let W=nu({value:e,field:"iso2",countries:n});W||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let j=W||nu({value:"us",field:"iso2",countries:n}),{phone:L,inputValue:_,country:M}=Jy({value:t,country:j,insertDialCodeOnEmpty:!c,...v});return x(_.length),{phone:L,inputValue:_,country:M.iso2}},{overrideLastItemDebounceMS:a,onChange:({inputValue:W,phone:j,country:L})=>{if(!m)return;let _=S(L);m({phone:j,inputValue:W,country:_})}}),S=b.useCallback(W=>nu({value:W,field:"iso2",countries:n}),[n]),U=b.useMemo(()=>S(P),[P,S]);b.useEffect(()=>{let W=C.current;if(!W)return;let j=L=>{if(!L.key)return;let _=L.ctrlKey,M=L.metaKey,Y=L.shiftKey;if(L.key.toLowerCase()==="z"){if(QK()){if(!M)return}else if(!_)return;Y?k():T()}};return W.addEventListener("keydown",j),()=>{W.removeEventListener("keydown",j)}},[C,T,k]);let O=W=>{W.preventDefault();let{phone:j,inputValue:L,country:_,cursorPosition:M}=rU(W,{country:U,phoneBeforeInput:D,insertDialCodeOnEmpty:!1,...v});return E({inputValue:L,phone:j,country:_.iso2}),x(M),t},F=(W,j={focusOnInput:!1})=>{let L=nu({value:W,field:"iso2",countries:n});if(!L){console.error(`[react-international-phone]: can not find a country with "${W}" iso2 code`);return}let _=f?"":`${r}${L.dialCode}${o}`;E({inputValue:_,phone:`${r}${L.dialCode}`,country:L.iso2}),j.focusOnInput&&Promise.resolve().then(()=>{var M;(M=C.current)==null||M.focus()})},[G,K]=b.useState(!1);return b.useEffect(()=>{if(!G){K(!0),t!==y&&(m==null||m({inputValue:D,phone:y,country:U}));return}if(t===y)return;let{phone:W,inputValue:j,country:L}=Jy({value:t,country:U,insertDialCodeOnEmpty:!c,...v});E({phone:W,inputValue:j,country:L.iso2})},[t]),{phone:y,inputValue:D,country:U,setCountry:F,handlePhoneValueChange:O,inputRef:C}},uU=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,o=u=>r?u.replace(new RegExp(`[^${tP}]`,"g"),""):u;if(!i)return o(n);if(typeof i=="string")return o(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),o(n);let a=Object.keys(i).find(u=>{if(u==="default")return!1;if(!(u.charAt(0)==="/"&&u.charAt(u.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${u}" for ${t.iso2} is not valid`),!1;let c=new RegExp(u.substring(1,u.length-1)),d=e.replace(t.dialCode,"");return c.test(sp(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}},lU=e=>`Field "${e}" is not supported`,nu=({field:e,value:t,countries:n=ps})=>{if(["priority"].includes(e))throw new Error(lU(e));let r=n.find(i=>{let o=gi(i);return t===o[e]});if(r)return gi(r)},cU=({phone:e,countries:t=ps,currentCountryIso2:n})=>{var u;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=sp(e);if(!i)return r;let o=r,a=({country:c,fullDialCodeMatch:d})=>{var m,g;let f=c.dialCode===((m=o.country)==null?void 0:m.dialCode),h=(c.priority??0)<(((g=o.country)==null?void 0:g.priority)??0);(!f||h)&&(o={country:c,fullDialCodeMatch:d})};for(let c of t){let d=gi(c),{dialCode:f,areaCodes:h}=d;if(i.startsWith(f)){let m=o.country?Number(f)>=Number(o.country.dialCode):!0;if(h){let g=i.substring(f.length);for(let v of h)if(g.startsWith(v))return{country:d,fullDialCodeMatch:!0}}(m||f===i||!o.fullDialCodeMatch)&&a({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||i.length<f.length&&f.startsWith(i)&&(!o.country||Number(f)<=Number(o.country.dialCode))&&a({country:d,fullDialCodeMatch:!1})}if(n){let c=nu({value:n,field:"iso2",countries:t});if(!c)return o;let d=c?(f=>{if(!(f!=null&&f.areaCodes))return!1;let h=i.substring(f.dialCode.length);return f.areaCodes.some(m=>m.startsWith(h))})(c):!1;o&&((u=o.country)==null?void 0:u.dialCode)===c.dialCode&&o.country!==c&&o.fullDialCodeMatch&&(!c.areaCodes||d)&&(o={country:c,fullDialCodeMatch:!0})}return o},dU=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},fU="abcdefghijklmnopqrstuvwxyz",hU="1f1e6",px=fU.split("").reduce((e,t,n)=>({...e,[t]:dU(hU,n)}),{}),pU=e=>[px[e[0]],px[e[1]]].join("-"),Ob=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:o,style:a,...u})=>{if(!e)return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:t,height:t,...u});let c=()=>{if(n)return n;let d=pU(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${d}.svg`};return b.createElement("img",{className:Jn({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:c(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...a},alt:"",...u})},mU=1e3,gU=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=ps,preferredCountries:i=[],flags:o,onSelect:a,onClose:u,...c})=>{let d=b.useRef(null),f=b.useRef(),h=b.useMemo(()=>{if(!i||!i.length)return r;let T=[],k=[...r];for(let S of i){let U=k.findIndex(O=>gi(O).iso2===S);if(U!==-1){let O=k.splice(U,1)[0];T.push(O)}}return T.concat(k)},[r,i]),m=b.useRef({updatedAt:void 0,value:""}),g=T=>{let k=m.current.updatedAt&&new Date().getTime()-m.current.updatedAt.getTime()>mU;m.current={value:k?T:`${m.current.value}${T}`,updatedAt:new Date};let S=h.findIndex(U=>gi(U).name.toLowerCase().startsWith(m.current.value));S!==-1&&C(S)},v=b.useCallback(T=>h.findIndex(k=>gi(k).iso2===T),[h]),[$,C]=b.useState(v(n)),x=()=>{f.current!==n&&C(v(n))},y=b.useCallback(T=>{C(v(T.iso2)),a==null||a(T)},[a,v]),D=T=>{let k=h.length-1,S=U=>T==="prev"?U-1:T==="next"?U+1:T==="last"?k:0;C(U=>{let O=S(U);return O<0?0:O>k?k:O})},P=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let k=gi(h[$]);y(k);return}if(T.key==="Escape"){u==null||u();return}if(T.key==="ArrowUp"){T.preventDefault(),D("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),D("next");return}if(T.key==="PageUp"){T.preventDefault(),D("first");return}if(T.key==="PageDown"){T.preventDefault(),D("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&g(T.key.toLocaleLowerCase())},E=b.useCallback(()=>{if(!d.current||$===void 0)return;let T=gi(h[$]).iso2;if(T===f.current)return;let k=d.current.querySelector(`[data-country="${T}"]`);k&&(XK(d.current,k),f.current=T)},[$,h]);return b.useEffect(()=>{E()},[$,E]),b.useEffect(()=>{d.current&&(e?d.current.focus():x())},[e]),b.useEffect(()=>{x()},[n]),b.createElement("ul",{ref:d,role:"listbox",className:Jn({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:e?"block":"none",...c.style},onKeyDown:P,onBlur:u,tabIndex:-1,"aria-activedescendant":`react-international-phone__${gi(h[$]).iso2}-option`},h.map((T,k)=>{let S=gi(T),U=S.iso2===n,O=k===$,F=i.includes(S.iso2),G=k===i.length-1,K=o==null?void 0:o.find(W=>W.iso2===S.iso2);return b.createElement(b.Fragment,{key:S.iso2},b.createElement("li",{"data-country":S.iso2,role:"option","aria-selected":U,"aria-label":`${S.name} ${t}${S.dialCode}`,id:`react-international-phone__${S.iso2}-option`,className:Jn({addPrefix:["country-selector-dropdown__list-item",F&&"country-selector-dropdown__list-item--preferred",U&&"country-selector-dropdown__list-item--selected",O&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>y(S),style:c.listItemStyle,title:S.name},b.createElement(Ob,{iso2:S.iso2,src:K==null?void 0:K.src,className:Jn({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},S.name),b.createElement("span",{className:Jn({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},t,S.dialCode)),G?b.createElement("hr",{className:Jn({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)}))},yU=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=ps,preferredCountries:o=[],flags:a,renderButtonWrapper:u,...c})=>{let[d,f]=b.useState(!1),h=b.useMemo(()=>{if(e)return nu({value:e,field:"iso2",countries:i})},[i,e]),m=b.useRef(null),g=$=>{$.key&&["ArrowUp","ArrowDown"].includes($.key)&&($.preventDefault(),f(!0))},v=()=>{var x;let $={title:h==null?void 0:h.name,onClick:()=>f(y=>!y),onMouseDown:y=>y.preventDefault(),onKeyDown:g,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":d},C=b.createElement("div",{className:Jn({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},b.createElement(Ob,{iso2:e,src:(x=a==null?void 0:a.find(y=>y.iso2===e))==null?void 0:x.src,className:Jn({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:e?"visible":"hidden",...c.flagStyle}}),!r&&b.createElement("div",{className:Jn({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",d&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return u?u({children:C,rootProps:$}):b.createElement("button",{...$,type:"button",className:Jn({addPrefix:["country-selector-button",d&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":e,style:c.buttonStyle},C)};return b.createElement("div",{className:Jn({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:m},v(),b.createElement(gU,{show:d,countries:i,preferredCountries:o,flags:a,onSelect:$=>{f(!1),t==null||t($)},selectedCountry:e,onClose:()=>{f(!1)},...c.dropdownStyleProps}))},vU=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>b.createElement("div",{className:Jn({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);b.forwardRef(({value:e,onChange:t,countries:n=ps,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:u,style:c,className:d,inputStyle:f,inputClassName:h,countrySelectorStyleProps:m,dialCodePreviewStyleProps:g,inputProps:v,placeholder:$,disabled:C,name:x,onFocus:y,onBlur:D,required:P,autoFocus:E,...T},k)=>{let{phone:S,inputValue:U,inputRef:O,country:F,setCountry:G,handlePhoneValueChange:K}=nP({value:e,countries:n,...T,onChange:j=>{t==null||t(j.phone,{country:j.country,inputValue:j.inputValue})}}),W=T.disableDialCodeAndPrefix&&o&&(F==null?void 0:F.dialCode);return b.useImperativeHandle(k,()=>O.current?Object.assign(O.current,{setCountry:G,state:{phone:S,inputValue:U,country:F}}):null,[O,G,S,U,F]),b.createElement("div",{ref:k,className:Jn({addPrefix:["input-container"],rawClassNames:[d]}),style:c},b.createElement(yU,{onSelect:j=>G(j.iso2,{focusOnInput:!a}),flags:u,selectedCountry:F.iso2,countries:n,preferredCountries:r,disabled:C,hideDropdown:i,...m}),W&&b.createElement(vU,{dialCode:F.dialCode,prefix:T.prefix??"+",disabled:C,...g}),b.createElement("input",{onChange:K,value:U,type:"tel",ref:O,className:Jn({addPrefix:["input",C&&"input--disabled"],rawClassNames:[h]}),placeholder:$,disabled:C,style:f,name:x,onFocus:y,onBlur:D,autoFocus:E,required:P,...v}))});var ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xy={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Object]",$="[object Promise]",C="[object RegExp]",x="[object Set]",y="[object String]",D="[object Symbol]",P="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",U="[object Int8Array]",O="[object Int16Array]",F="[object Int32Array]",G="[object Uint8Array]",K="[object Uint8ClampedArray]",W="[object Uint16Array]",j="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,_=/\w*$/,M=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,V={};V[o]=V[a]=V[E]=V[T]=V[u]=V[c]=V[k]=V[S]=V[U]=V[O]=V[F]=V[m]=V[g]=V[v]=V[C]=V[x]=V[y]=V[D]=V[G]=V[K]=V[W]=V[j]=!0,V[d]=V[f]=V[P]=!1;var z=typeof ia=="object"&&ia&&ia.Object===Object&&ia,re=typeof self=="object"&&self&&self.Object===Object&&self,oe=z||re||Function("return this")(),fe=t&&!t.nodeType&&t,ie=fe&&!0&&e&&!e.nodeType&&e,Ee=ie&&ie.exports===fe;function $e(N,ae){return N.set(ae[0],ae[1]),N}function ne(N,ae){return N.add(ae),N}function ye(N,ae){for(var ve=-1,Ie=N?N.length:0;++ve<Ie&&ae(N[ve],ve,N)!==!1;);return N}function xe(N,ae){for(var ve=-1,Ie=ae.length,yn=N.length;++ve<Ie;)N[yn+ve]=ae[ve];return N}function he(N,ae,ve,Ie){for(var yn=-1,Un=N?N.length:0;++yn<Un;)ve=ae(ve,N[yn],yn,N);return ve}function le(N,ae){for(var ve=-1,Ie=Array(N);++ve<N;)Ie[ve]=ae(ve);return Ie}function Fe(N,ae){return N==null?void 0:N[ae]}function et(N){var ae=!1;if(N!=null&&typeof N.toString!="function")try{ae=!!(N+"")}catch{}return ae}function dt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie,yn){ve[++ae]=[yn,Ie]}),ve}function Dn(N,ae){return function(ve){return N(ae(ve))}}function yt(N){var ae=-1,ve=Array(N.size);return N.forEach(function(Ie){ve[++ae]=Ie}),ve}var q=Array.prototype,Z=Function.prototype,te=Object.prototype,pe=oe["__core-js_shared__"],Ce=function(){var N=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}(),De=Z.toString,_e=te.hasOwnProperty,Ve=te.toString,mt=RegExp("^"+De.call(_e).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Ee?oe.Buffer:void 0,Rt=oe.Symbol,Pn=oe.Uint8Array,_n=Dn(Object.getPrototypeOf,Object),Yt=Object.create,Ln=te.propertyIsEnumerable,tn=q.splice,vt=Object.getOwnPropertySymbols,Vn=ut?ut.isBuffer:void 0,Cr=Dn(Object.keys,Object),Rn=ze(oe,"DataView"),er=ze(oe,"Map"),On=ze(oe,"Promise"),tr=ze(oe,"Set"),Nn=ze(oe,"WeakMap"),En=ze(Object,"create"),Ir=to(Rn),Vt=to(er),Cn=to(On),Ne=to(tr),tt=to(Nn),nn=Rt?Rt.prototype:void 0,fr=nn?nn.valueOf:void 0;function Te(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function je(){this.__data__=En?En(null):{}}function Ye(N){return this.has(N)&&delete this.__data__[N]}function Ft(N){var ae=this.__data__;if(En){var ve=ae[N];return ve===r?void 0:ve}return _e.call(ae,N)?ae[N]:void 0}function rn(N){var ae=this.__data__;return En?ae[N]!==void 0:_e.call(ae,N)}function jn(N,ae){var ve=this.__data__;return ve[N]=En&&ae===void 0?r:ae,this}Te.prototype.clear=je,Te.prototype.delete=Ye,Te.prototype.get=Ft,Te.prototype.has=rn,Te.prototype.set=jn;function Kt(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function an(){this.__data__=[]}function kt(N){var ae=this.__data__,ve=Ai(ae,N);if(ve<0)return!1;var Ie=ae.length-1;return ve==Ie?ae.pop():tn.call(ae,ve,1),!0}function wt(N){var ae=this.__data__,ve=Ai(ae,N);return ve<0?void 0:ae[ve][1]}function li(N){return Ai(this.__data__,N)>-1}function ba(N,ae){var ve=this.__data__,Ie=Ai(ve,N);return Ie<0?ve.push([N,ae]):ve[Ie][1]=ae,this}Kt.prototype.clear=an,Kt.prototype.delete=kt,Kt.prototype.get=wt,Kt.prototype.has=li,Kt.prototype.set=ba;function hr(N){var ae=-1,ve=N?N.length:0;for(this.clear();++ae<ve;){var Ie=N[ae];this.set(Ie[0],Ie[1])}}function Oo(){this.__data__={hash:new Te,map:new(er||Kt),string:new Te}}function Mo(N){return Ke(this,N).delete(N)}function Fo(N){return Ke(this,N).get(N)}function gt(N){return Ke(this,N).has(N)}function nr(N,ae){return Ke(this,N).set(N,ae),this}hr.prototype.clear=Oo,hr.prototype.delete=Mo,hr.prototype.get=Fo,hr.prototype.has=gt,hr.prototype.set=nr;function pr(N){this.__data__=new Kt(N)}function Kn(){this.__data__=new Kt}function ko(N){return this.__data__.delete(N)}function Lr(N){return this.__data__.get(N)}function nl(N){return this.__data__.has(N)}function $s(N,ae){var ve=this.__data__;if(ve instanceof Kt){var Ie=ve.__data__;if(!er||Ie.length<n-1)return Ie.push([N,ae]),this;ve=this.__data__=new hr(Ie)}return ve.set(N,ae),this}pr.prototype.clear=Kn,pr.prototype.delete=ko,pr.prototype.get=Lr,pr.prototype.has=nl,pr.prototype.set=$s;function rl(N,ae){var ve=sl(N)||Op(N)?le(N.length,String):[],Ie=ve.length,yn=!!Ie;for(var Un in N)_e.call(N,Un)&&!(yn&&(Un=="length"||rr(Un,Ie)))&&ve.push(Un);return ve}function Bo(N,ae,ve){var Ie=N[ae];(!(_e.call(N,ae)&&al(Ie,ve))||ve===void 0&&!(ae in N))&&(N[ae]=ve)}function Ai(N,ae){for(var ve=N.length;ve--;)if(al(N[ve][0],ae))return ve;return-1}function $a(N,ae){return N&&be(ae,ll(ae),N)}function xa(N,ae,ve,Ie,yn,Un,Nr){var zn;if(Ie&&(zn=Un?Ie(N,yn,Un,Nr):Ie(N)),zn!==void 0)return zn;if(!As(N))return N;var pn=sl(N);if(pn){if(zn=Mn(N),!ae)return ue(N,zn)}else{var Pi=Wt(N),_i=Pi==f||Pi==h;if(ul(N))return Es(N,ae);if(Pi==v||Pi==o||_i&&!Un){if(et(N))return Un?N:{};if(zn=Fn(_i?{}:N),!ae)return Re(N,$a(zn,N))}else{if(!V[Pi])return Un?N:{};zn=Vr(N,Pi,xa,ae)}}Nr||(Nr=new pr);var cl=Nr.get(N);if(cl)return cl;if(Nr.set(N,zn),!pn)var Ps=ve?it(N):ll(N);return ye(Ps||N,function(Wn,Ca){Ps&&(Ca=Wn,Wn=N[Ca]),Bo(zn,Ca,xa(Wn,ae,ve,Ie,Ca,N,Nr))}),zn}function xs(N){return As(N)?Yt(N):{}}function ws(N,ae,ve){var Ie=ae(N);return sl(N)?Ie:xe(Ie,ve(N))}function il(N){return Ve.call(N)}function Ds(N){if(!As(N)||Da(N))return!1;var ae=dd(N)||et(N)?mt:M;return ae.test(to(N))}function wa(N){if(!Ea(N))return Cr(N);var ae=[];for(var ve in Object(N))_e.call(N,ve)&&ve!="constructor"&&ae.push(ve);return ae}function Es(N,ae){if(ae)return N.slice();var ve=new N.constructor(N.length);return N.copy(ve),ve}function eo(N){var ae=new N.constructor(N.byteLength);return new Pn(ae).set(new Pn(N)),ae}function ol(N,ae){var ve=ae?eo(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.byteLength)}function Cs(N,ae,ve){var Ie=ae?ve(dt(N),!0):dt(N);return he(Ie,$e,new N.constructor)}function Io(N){var ae=new N.constructor(N.source,_.exec(N));return ae.lastIndex=N.lastIndex,ae}function Ss(N,ae,ve){var Ie=ae?ve(yt(N),!0):yt(N);return he(Ie,ne,new N.constructor)}function B(N){return fr?Object(fr.call(N)):{}}function X(N,ae){var ve=ae?eo(N.buffer):N.buffer;return new N.constructor(ve,N.byteOffset,N.length)}function ue(N,ae){var ve=-1,Ie=N.length;for(ae||(ae=Array(Ie));++ve<Ie;)ae[ve]=N[ve];return ae}function be(N,ae,ve,Ie){ve||(ve={});for(var yn=-1,Un=ae.length;++yn<Un;){var Nr=ae[yn],zn=void 0;Bo(ve,Nr,zn===void 0?N[Nr]:zn)}return ve}function Re(N,ae){return be(N,Ot(N),ae)}function it(N){return ws(N,ll,Ot)}function Ke(N,ae){var ve=N.__data__;return Ts(ae)?ve[typeof ae=="string"?"string":"hash"]:ve.map}function ze(N,ae){var ve=Fe(N,ae);return Ds(ve)?ve:void 0}var Ot=vt?Dn(vt,Object):Bt,Wt=il;(Rn&&Wt(new Rn(new ArrayBuffer(1)))!=T||er&&Wt(new er)!=m||On&&Wt(On.resolve())!=$||tr&&Wt(new tr)!=x||Nn&&Wt(new Nn)!=P)&&(Wt=function(N){var ae=Ve.call(N),ve=ae==v?N.constructor:void 0,Ie=ve?to(ve):void 0;if(Ie)switch(Ie){case Ir:return T;case Vt:return m;case Cn:return $;case Ne:return x;case tt:return P}return ae});function Mn(N){var ae=N.length,ve=N.constructor(ae);return ae&&typeof N[0]=="string"&&_e.call(N,"index")&&(ve.index=N.index,ve.input=N.input),ve}function Fn(N){return typeof N.constructor=="function"&&!Ea(N)?xs(_n(N)):{}}function Vr(N,ae,ve,Ie){var yn=N.constructor;switch(ae){case E:return eo(N);case u:case c:return new yn(+N);case T:return ol(N,Ie);case k:case S:case U:case O:case F:case G:case K:case W:case j:return X(N,Ie);case m:return Cs(N,Ie,ve);case g:case y:return new yn(N);case C:return Io(N);case x:return Ss(N,Ie,ve);case D:return B(N)}}function rr(N,ae){return ae=ae??i,!!ae&&(typeof N=="number"||Y.test(N))&&N>-1&&N%1==0&&N<ae}function Ts(N){var ae=typeof N;return ae=="string"||ae=="number"||ae=="symbol"||ae=="boolean"?N!=="__proto__":N===null}function Da(N){return!!Ce&&Ce in N}function Ea(N){var ae=N&&N.constructor,ve=typeof ae=="function"&&ae.prototype||te;return N===ve}function to(N){if(N!=null){try{return De.call(N)}catch{}try{return N+""}catch{}}return""}function Rp(N){return xa(N,!0,!0)}function al(N,ae){return N===ae||N!==N&&ae!==ae}function Op(N){return Mp(N)&&_e.call(N,"callee")&&(!Ln.call(N,"callee")||Ve.call(N)==o)}var sl=Array.isArray;function cd(N){return N!=null&&Fp(N.length)&&!dd(N)}function Mp(N){return kp(N)&&cd(N)}var ul=Vn||Mt;function dd(N){var ae=As(N)?Ve.call(N):"";return ae==f||ae==h}function Fp(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=i}function As(N){var ae=typeof N;return!!N&&(ae=="object"||ae=="function")}function kp(N){return!!N&&typeof N=="object"}function ll(N){return cd(N)?rl(N):wa(N)}function Bt(){return[]}function Mt(){return!1}e.exports=Rp})(Xy,Xy.exports);var oa=Xy.exports,Qy=function(){return Qy=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Qy.apply(this,arguments)};function bU(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function u(f){try{d(r.next(f))}catch(h){a(h)}}function c(f){try{d(r.throw(f))}catch(h){a(h)}}function d(f){f.done?o(f.value):i(f.value).then(u,c)}d((r=r.apply(e,[])).next())})}function $U(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(f){d=[6,f],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function ph(e,t,n,r,i){return bU(this,void 0,void 0,function(){var o,a;return $U(this,function(u){switch(u.label){case 0:if(n===void 0)return[2];a=0,u.label=1;case 1:return a<n.length?[4,n[a](e,t,r,i,n)]:[3,4];case 2:if(o=u.sent(),o==="canceled")return[3,4];u.label=3;case 3:return a++,[3,1];case 4:return o!=="canceled"?[2,o]:[2]}})})}var ev=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Qy({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},xU=function(){function e(t,n,r,i){var o=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var a=oa(n);ph(t,a,r,this.htmlPluginState,i).then(function(u){if(o.isMounted){o.htmlPluginState.pluginEventSubscription.forEach(function(d){d()});var c=ev(i,u);o.imgElement.setAttribute("src",a.toURL(c))}})}return e.prototype.update=function(t,n,r){var i=this,o=oa(t);ph(this.imgElement,o,n,this.htmlPluginState).then(function(a){if(i.isMounted){var u=ev(r,a);i.imgElement.setAttribute("src",o.toURL(u))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let en=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}},wU=class extends Error{constructor(t="Unsupported"){super(t)}};function Mb(e){return new wU(e)}function DU(){return this._qualifierModel||{error:Mb(`unsupported qualifier ${this.constructor.name}`)}}let EU=class{constructor(){this._qualifierModel={}}toJson(){return DU.apply(this)}},rt=class extends EU{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 CU(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function SU(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Mb(`unsupported action ${this.constructor.name}`)}}let TU=class{constructor(){this._actionModel={}}toJson(){return SU.apply(this)}},Ei=class extends TU{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(),CU(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new ai(r)):this.qualifiers.set(n,new rt(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ai(t)):t instanceof ai&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Fb extends Ei{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class up extends Fb{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new rt("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new rt("h",t)),this}static fromJson(t){const n=new up;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 AU(){return new up}function rP(){return new Fb("faces")}function PU(){return new Fb("ocr_text")}class _U extends Ei{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`blur_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`blur_faces${t}`))):this.addQualifier(new rt("e",`blur${t}`))}static fromJson(t){const{strength:n,region:r}=t,i=new this(n);return n&&i.strength(n),r&&r.regionType==="faces"&&i.region(rP()),r&&r.regionType==="ocr_text"&&i.region(PU()),r&&r.regionType==="custom"&&i.region(up.fromJson(r)),i}}function ms(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const iP={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},RU={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},oP={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},aP={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},OU={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},sP={444:"CHROMA_444",420:"CHROMA_420"},MU={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},FU=ms(sP);ms(MU);const kU=ms(iP),BU=ms(RU),uP=ms(oP);ms(aP);ms(OU);class lP extends Ei{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=uP[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=oP[n]||n;return new this(o,r||i)}}class IU extends lP{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=uP[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 lp(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class LU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new en(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new en(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new en(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new en(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new en(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new rt("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:o,detailLevel:a,numOfColors:u}=t,c=new this;return r&&c.paths(r),i&&c.cornersLevel(i),o&&c.despeckleLevel(o),a&&c.detailsLevel(a),u&&c.numOfColors(u),c}}class VU extends IU{level(t){return this._actionModel.level=t,this.setLevel(t)}}class NU extends Ei{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new rt("e",new en("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new rt("e",new en(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new rt("e",new en(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,o=new this;return r==="xray"&&o.xray(),r==="stripes"&&i&&o.stripesStrength(i),o}}class jU extends VU{color(t){return this._actionModel.color=t,this.addQualifier(new rt("co",new en(lp(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,o=new this(n,r);return i&&o.color(i),o}}class KU extends Ei{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach(r=>this.addQualifier(r)),this._region.regionType==="custom"&&this.addQualifier(new rt("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new rt("e",`pixelate_region${t}`)),this.addQualifier(new rt("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new rt("e",`pixelate_faces${t}`))):this.addQualifier(new rt("e",`pixelate${t}`))}static fromJson(t){const{region:n,squareSize:r}=t,i=new this(r);return r&&i.squareSize(r),n&&n.regionType==="faces"&&i.region(rP()),n&&n.regionType==="custom"&&i.region(AU()),i}}function UU(e){return new _U(e)}function zU(){return new lP("grayscale")}function mx(e){return new jU("colorize",e)}function WU(){return new LU}function HU(){return new NU}function GU(e){return new KU(e)}let qU=class extends Ei{constructor(t){super(),this._actionModel={},this.addQualifier(new rt("b",new en(lp(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},gx=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Mb(`unsupported action ${this.constructor.name}`)}}};function YU(e){const t=e;return"error"in t&&!!t.error}function ZU(){return new ai("ignore_aspect_ratio")}function JU(){return new ai("lossy")}function XU(){return new ai("preserve_transparency")}function QU(e){return new ai("progressive",e)}function ez(){return new ai("region_relative")}function tz(){return new ai("relative")}let kb=class extends en{constructor(t){super(t),this.val=t}getValue(){return this.val}},cP=class extends Ei{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof kb?i=n.getValue():i=n,this._actionModel.actionType=BU[t],this._actionModel[r]=i,this.addQualifier(new rt(t,n))}},nz=class extends ai{constructor(t){super("progressive",t)}},tv=class extends cP{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(JU()),this}progressive(t){return t instanceof nz?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(QU(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(XU()),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}},cp=class dP{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new gx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof dP?this.actions=this.actions.concat(t.actions):this.actions.push(new gx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new tv("q",t)),this}format(t){return this.addAction(new tv("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new qU(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Ei;let r=t;return typeof t=="string"&&(r=new ai(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(YU(r))return r;t.push(r)}return{actions:t}}};function yx(e){const t=e.toString();return t.match(/[A-Z]/gi)||t.length>1&&t[0]==="0"?t:!isNaN(parseFloat(t))&&t.indexOf(":")===-1&&t.indexOf(".")===-1?`${t}.0`:t}class rz extends en{}class iz extends Ei{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=kU[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 rz)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new rt("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=yx(t),this.addQualifier(new rt("ar",yx(t)));if(t instanceof ai)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(tz())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(ez())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:o}=t,{aspectRatio:a,width:u,height:c}=r,d=iP[n]||n,f=new this(d,u,c);return a&&f.aspectRatio(a==="ignore_aspect_ratio"?ZU():a),i&&f.relative(),o&&f.regionRelative(),f}}class Bb extends rt{constructor(t){super("g",new en(t))}}class fP extends Bb{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class hP extends Bb{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class pP extends Bb{constructor(t){super(t)}}function oz(e){return new pP(e)}function mP(...e){const t=[...e];return new hP(t)}function gP(){return new fP}class _u extends en{constructor(t){super(),this.name=t}toString(){return this.name}}function az(){return new _u("ocr_text")}function sz(e){return e&&`${e}`.split(":")[0]==="auto"}function uz(e){const t=Ib(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function Ib(e){return`${e}`.replace("g_","")}function lz(e){return{compass:Ib(e),gravityType:"direction"}}function cz(e){return Ib(e)==="ocr_text"}function dz(){return{gravityType:"ocr"}}function fz(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function hz(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 yP(e){let t;const n=e==="auto"?new fP: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(hz)}}function pz(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=gP().autoFocus(...o);i.fallbackGravity=yP(a)}return i}function mz(e){const n=e.split(":").map(r=>new _u(r));return new hP(n)}function gz(e){return uz(e)?lz(e):cz(e)?dz():sz(e)||fz(e)?yP(e):pz(typeof e=="string"?mz(e):e)}class Lb extends en{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof _u?t:new _u(t);return new Lb(r,n)}shouldAddWeight(){return typeof this._weight=="number"||typeof this._weight=="string"||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class vP extends en{constructor(t){super(),this.val=t}toString(){return this.val}}function yz(e){return e.gravityType==="direction"}function vz(e){return e.gravityType==="ocr"}function bz(e){return e.gravityType==="auto"}function $z(e){const{object:t,weight:n,avoid:r}=e,i=new Lb(new _u(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function bP(e){const n=(e.autoFocus||[]).map($z);return gP().autoFocus(...n)}function xz(e){const t=(e.focusOnObjects||[]).map(r=>new _u(r)),n=mP(...t);if(e.fallbackGravity){const r=bP(e.fallbackGravity);n.fallbackGravity(r)}return n}function wz(e){return yz(e)?new pP(new vP(e.compass)):vz(e)?mP(az()):bz(e)?bP(e):xz(e)}class Vb extends iz{gravity(t){this._actionModel.gravity=gz(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(wz(t.gravity)),n}}class Wc extends rt{constructor(t){super("b"),t&&this.addValue(t)}}const $P=100,Dz=0;class Ez extends Wc{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}`:`:${$P}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var xP=Ez;class Nb extends Wc{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>lp(n)),this}}class wP extends Nb{toString(){return`
|
|
95
|
+
b_auto:border
|
|
96
|
+
${this._contrast?"_contrast":""}
|
|
97
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
98
|
+
`.replace(/\s+/g,"")}}class DP extends Nb{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class EP extends DP{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 CP extends DP{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 SP extends Nb{toString(){return`
|
|
111
|
+
b_auto:predominant
|
|
112
|
+
${this._contrast?"_contrast":""}
|
|
113
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
114
|
+
`.replace(/\s+/g,"")}}class TP extends Wc{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 AP(e){return`${e}`.replace("b_","")}function Cz(){return{backgroundType:"auto"}}function Sz(e){const{intensityLevel:t,brightnessLevel:n}=e,r={backgroundType:"blurred"};return(t||t===0)&&(r.intensity=t),(n||n===0)&&(r.brightness=n),r}function jb(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function Tz(e){return Object.assign(Object.assign({},jb(e)),{backgroundType:"border"})}function PP(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=jb(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function Az(e){return Object.assign(Object.assign({},PP(e)),{backgroundType:"borderGradient"})}function Pz(e){return{backgroundType:"color",color:AP(e)}}function _z(e){return Object.assign(Object.assign({},jb(e)),{backgroundType:"predominant"})}function Rz(e){return Object.assign(Object.assign({},PP(e)),{backgroundType:"predominantGradient"})}function Oz(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function Mz(e){return AP(e)==="auto"?Cz():e instanceof xP?Sz(e):e instanceof wP?Tz(e):e instanceof EP?Az(e):e instanceof SP?_z(e):e instanceof CP?Rz(e):e instanceof TP?Oz(e):Pz(e)}function Fz(){return new kb("svg")}function Kb(){return new kb("auto")}function _P(){return new wP}function RP(){return new Wc("auto")}function OP(){return new EP}function MP(){return new CP}function FP(){return new SP}function kP(e){return new Wc(lp(e))}function kz(){return new xP}function BP(){return new TP}const IP={auto:RP,border:_P,borderGradient:OP,predominantGradient:MP,predominant:FP,color:kP,blurred:kz,generativeFill:BP};function Bz(e){const{brightness:t,intensity:n}=e,r=IP.blurred();return r.brightness(t??Dz),r.intensity(n??$P),r}function vx(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=t;return i&&e.contrast(),o&&e.palette(...o),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function bx(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function Iz(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function Lz(e){const{backgroundType:t}=e;switch(t){case"auto":return RP();case"blurred":return Bz(e);case"border":return bx(_P(),e);case"borderGradient":return vx(OP(),e);case"predominant":return bx(FP(),e);case"predominantGradient":return vx(MP(),e);case"generativeFill":return Iz(BP(),e);default:return kP(e.color)}}class Vz extends Vb{background(t){return this._actionModel.background=Mz(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(Lz(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class Nz extends Vb{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new rt("z",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),t.zoom&&n.zoom(t.zoom),n}}class jz extends Vb{x(t){return this._actionModel.x=t,this.addQualifier(new rt("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new rt("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.x&&n.x(t.x),t.y&&n.y(t.y),n}}function Kz(e,t){return new Nz("crop",e,t)}function Uz(e,t){return new jz("fill",e,t)}function zz(e,t){return new Vz("pad",e,t)}class Wz extends cP{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=sP[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=aP[n]||n,a=new this(o);if(r){const u=FU[r.toUpperCase()];u&&a.chromaSubSampling(+u)}return i&&a.quantization(i),a}}function dp(e){return new tv("f",e)}function fp(e){return new Wz(e)}function Hz(){return new vP("north_east")}mx(70).color("black"),mx(40).color("white"),zU(),HU();var Gz=new cp().effect(WU()).delivery(fp("auto")).delivery(dp(Fz())),qz=new cp().effect(GU()).delivery(fp("auto")).delivery(dp(Kb())),Yz=new cp().effect(UU(2e3)).delivery(fp("auto")).delivery(dp(Kb())),Zz=new cp().resize(zz("iw_div_2").aspectRatio(1).background(IP.auto())).resize(Kz(1,1).gravity(oz(Hz()))).resize(Uz().height("ih").width("iw")).delivery(fp("auto")).delivery(dp(Kb())),$x={vectorize:Gz,pixelate:qz,blur:Yz,"predominant-color":Zz},xx="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",wx={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},Dx="?_a=",Jz=function(){function e(t,n,r,i,o,a,u){var c=this;this.mimeType="video",this.mimeSubTypes=wx,this.videoElement=t,this.originalVideo=n,this.videoOptions=u,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var d=oa(n);ph(t,n,i,this.htmlPluginState).then(function(){c.htmlPluginState.pluginEventSubscription.forEach(function(f){f()}),c.setVideoAttributes(o,a),c.handleSourceToVideo(d,r)})}return e.prototype.handleSourceToVideo=function(t,n){var r=this;if(n)this.generateUserSources(t,n);else{var i=["webm","mp4","ogv"];i.forEach(function(o){r.appendSourceTag(oa(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(oa(t).transcode(u),o,r.buildMimeType(o,a))})},e.prototype.appendSourceTag=function(t,n,r){var i,o=document.createElement("source"),a=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;a&&t.format(n);var u=t.toURL(),c=u.split(Dx),d=c[1]?"".concat(Dx).concat(c[1]):"",f=a?"":".".concat(n);o.src="".concat(c[0]).concat(f).concat(d),o.type=r||"video/".concat(wx[n]||n),this.videoElement.appendChild(o)},e.prototype.buildMimeType=function(t,n){var r="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return n&&(r+="; codecs="+(Array.isArray(n)?n.join(", "):n)),r},e.prototype.setVideoAttributes=function(t,n){var r;if(t===void 0&&(t={}),n==="auto"){var i=oa(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else n&&(t.poster=(r=n.toURL)===null||r===void 0?void 0:r.call(n));for(var o=0,a=Object.entries(t);o<a.length;o++){var u=a[o],c=u[0],d=u[1];d&&this.videoElement.setAttribute(c,c==="poster"?d:"")}},e.prototype.update=function(t,n,r,i,o){var a=this;if(t!==this.originalVideo){for(var u=this.videoElement.getElementsByTagName("SOURCE");u[0];)u[0].parentNode.removeChild(u[0]);ph(this.videoElement,t,r,this.htmlPluginState).then(function(){a.setVideoAttributes(i,o),a.handleSourceToVideo(t,n),a.videoElement.load()})}},e}(),Xz=typeof ia=="object"&&ia&&ia.Object===Object&&ia,Qz=typeof self=="object"&&self&&self.Object===Object&&self;Xz||Qz||Function("return this")();function Ub(){return typeof window<"u"}function eW(e){return e instanceof HTMLImageElement}function tW(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,o=i===void 0?.1:i;return nW.bind(null,r,o)}function nW(e,t,n,r,i,o){return e===void 0&&(e="0px"),t===void 0&&(t=.1),Ub()?new Promise(function(a){var u=function(){return a({lazyload:!0})},c=iW(n,u,e,t);i.cleanupCallbacks.push(function(){c(),a("canceled")})}):!1}function rW(){return window&&"IntersectionObserver"in window}function iW(e,t,n,r){try{if(!rW())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 oW(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return aW.bind(null,r)}function aW(e,t,n,r,i,o){$x[e]||(e="vectorize");var a=$x[e].actions,u=oa(n);if(a.forEach(function(d){u.addAction(d)}),!Ub())return n.transformation=u.transformation,!0;if(eW(t)){u.transformation.actions.forEach(function(d,f){d instanceof Ei&&d.getActionTag()==="responsive"&&delete u.transformation.actions[f]});var c=ev(i,{placeholder:!0});return t.src=u.toURL(c),t.onerror=function(){t.src=xx},new Promise(function(d){t.onload=function(){d()}}).then(function(){return new Promise(function(d){r.cleanupCallbacks.push(function(){t.src=xx,d("canceled")});var f=new Image;f.src=n.toURL(c),f.onload=function(){d({placeholder:!0})},f.onerror=function(){d({placeholder:!0})}})})}}function sW(e,t,n){var r=oa(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 mh(e){e.cleanupCallbacks.forEach(function(t){t()})}var nv=function(e,t){return nv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},nv(e,t)};function LP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var vc=function(){return vc=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},vc.apply(this,arguments)};function VP(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 bc={exports:{}},_t={};/*
|
|
115
|
+
object-assign
|
|
116
|
+
(c) Sindre Sorhus
|
|
117
|
+
@license MIT
|
|
118
|
+
*/var Ex=Object.getOwnPropertySymbols,uW=Object.prototype.hasOwnProperty,lW=Object.prototype.propertyIsEnumerable;function cW(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function dW(){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 NP=dW()?Object.assign:function(e,t){for(var n,r=cW(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)uW.call(n,a)&&(r[a]=n[a]);if(Ex){i=Ex(n);for(var u=0;u<i.length;u++)lW.call(n,i[u])&&(r[i[u]]=n[i[u]])}}return r};/** @license React v16.14.0
|
|
119
|
+
* react.production.min.js
|
|
120
|
+
*
|
|
121
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the MIT license found in the
|
|
124
|
+
* LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/var zb=NP,Ci=typeof Symbol=="function"&&Symbol.for,Hc=Ci?Symbol.for("react.element"):60103,fW=Ci?Symbol.for("react.portal"):60106,hW=Ci?Symbol.for("react.fragment"):60107,pW=Ci?Symbol.for("react.strict_mode"):60108,mW=Ci?Symbol.for("react.profiler"):60114,gW=Ci?Symbol.for("react.provider"):60109,yW=Ci?Symbol.for("react.context"):60110,vW=Ci?Symbol.for("react.forward_ref"):60112,bW=Ci?Symbol.for("react.suspense"):60113,$W=Ci?Symbol.for("react.memo"):60115,xW=Ci?Symbol.for("react.lazy"):60116,Cx=typeof Symbol=="function"&&Symbol.iterator;function Gc(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 jP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},KP={};function Wu(e,t,n){this.props=e,this.context=t,this.refs=KP,this.updater=n||jP}Wu.prototype.isReactComponent={};Wu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Gc(85));this.updater.enqueueSetState(this,e,t,"setState")};Wu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function UP(){}UP.prototype=Wu.prototype;function Wb(e,t,n){this.props=e,this.context=t,this.refs=KP,this.updater=n||jP}var Hb=Wb.prototype=new UP;Hb.constructor=Wb;zb(Hb,Wu.prototype);Hb.isPureReactComponent=!0;var Gb={current:null},zP=Object.prototype.hasOwnProperty,WP={key:!0,ref:!0,__self:!0,__source:!0};function HP(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)zP.call(t,r)&&!WP.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:Hc,type:e,key:o,ref:a,props:i,_owner:Gb.current}}function wW(e,t){return{$$typeof:Hc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hc}function DW(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var GP=/\/+/g,gh=[];function qP(e,t,n,r){if(gh.length){var i=gh.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 YP(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>gh.length&&gh.push(e)}function rv(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Hc:case fW:o=!0}}if(o)return n(r,e,t===""?"."+bg(e,0):t),1;if(o=0,t=t===""?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){i=e[a];var u=t+bg(i,a);o+=rv(i,u,n,r)}else if(e===null||typeof e!="object"?u=null:(u=Cx&&e[Cx]||e["@@iterator"],u=typeof u=="function"?u:null),typeof u=="function")for(e=u.call(e),a=0;!(i=e.next()).done;)i=i.value,u=t+bg(i,a++),o+=rv(i,u,n,r);else if(i==="object")throw n=""+e,Error(Gc(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return o}function iv(e,t,n){return e==null?0:rv(e,"",t,n)}function bg(e,t){return typeof e=="object"&&e!==null&&e.key!=null?DW(e.key):t.toString(36)}function EW(e,t){e.func.call(e.context,t,e.count++)}function CW(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?ov(e,r,n,function(o){return o}):e!=null&&(qb(e)&&(e=wW(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(GP,"$&/")+"/")+n)),r.push(e))}function ov(e,t,n,r,i){var o="";n!=null&&(o=(""+n).replace(GP,"$&/")+"/"),t=qP(t,o,r,i),iv(e,CW,t),YP(t)}var ZP={current:null};function Ro(){var e=ZP.current;if(e===null)throw Error(Gc(321));return e}var SW={ReactCurrentDispatcher:ZP,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Gb,IsSomeRendererActing:{current:!1},assign:zb};_t.Children={map:function(e,t,n){if(e==null)return e;var r=[];return ov(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=qP(null,null,t,n),iv(e,EW,t),YP(t)},count:function(e){return iv(e,function(){return null},null)},toArray:function(e){var t=[];return ov(e,t,null,function(n){return n}),t},only:function(e){if(!qb(e))throw Error(Gc(143));return e}};_t.Component=Wu;_t.Fragment=hW;_t.Profiler=mW;_t.PureComponent=Wb;_t.StrictMode=pW;_t.Suspense=bW;_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SW;_t.cloneElement=function(e,t,n){if(e==null)throw Error(Gc(267,e));var r=zb({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Gb.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)zP.call(t,c)&&!WP.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:Hc,type:e.type,key:i,ref:o,props:r,_owner:a}};_t.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:yW,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:gW,_context:e},e.Consumer=e};_t.createElement=HP;_t.createFactory=function(e){var t=HP.bind(null,e);return t.type=e,t};_t.createRef=function(){return{current:null}};_t.forwardRef=function(e){return{$$typeof:vW,render:e}};_t.isValidElement=qb;_t.lazy=function(e){return{$$typeof:xW,_ctor:e,_status:-1,_result:null}};_t.memo=function(e,t){return{$$typeof:$W,type:e,compare:t===void 0?null:t}};_t.useCallback=function(e,t){return Ro().useCallback(e,t)};_t.useContext=function(e,t){return Ro().useContext(e,t)};_t.useDebugValue=function(){};_t.useEffect=function(e,t){return Ro().useEffect(e,t)};_t.useImperativeHandle=function(e,t,n){return Ro().useImperativeHandle(e,t,n)};_t.useLayoutEffect=function(e,t){return Ro().useLayoutEffect(e,t)};_t.useMemo=function(e,t){return Ro().useMemo(e,t)};_t.useReducer=function(e,t,n){return Ro().useReducer(e,t,n)};_t.useRef=function(e){return Ro().useRef(e)};_t.useState=function(e){return Ro().useState(e)};_t.version="16.14.0";var Pt={},TW="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",AW=TW,PW=Function.call.bind(Object.prototype.hasOwnProperty),av=function(){};if(process.env.NODE_ENV!=="production"){var _W=AW,sv={},RW=PW;av=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function JP(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var o in e)if(RW(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,_W)}catch(d){a=d}if(a&&!(a instanceof Error)&&av((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in sv)){sv[a.message]=!0;var c=i?i():"";av("Failed "+n+" type: "+a.message+(c??""))}}}}JP.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(sv={})};var OW=JP;/** @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=NP,t=OW,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,$=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,x=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,D=r?Symbol.for("react.responder"):60118,P=r?Symbol.for("react.scope"):60119,E=typeof Symbol=="function"&&Symbol.iterator,T="@@iterator";function k(B){if(B===null||typeof B!="object")return null;var X=E&&B[E]||B[T];return typeof X=="function"?X:null}var S={current:null},U={suspense:null},O={current:null},F=/^(.*)[\\\/]/;function G(B,X,ue){var be="";if(X){var Re=X.fileName,it=Re.replace(F,"");if(/^index\./.test(it)){var Ke=Re.match(F);if(Ke){var ze=Ke[1];if(ze){var Ot=ze.replace(F,"");it=Ot+"/"+it}}}be=" (at "+it+":"+X.lineNumber+")"}else ue&&(be=" (created by "+ue+")");return`
|
|
133
|
+
in `+(B||"Unknown")+be}var K=1;function W(B){return B._status===K?B._result:null}function j(B,X,ue){var be=X.displayName||X.name||"";return B.displayName||(be!==""?ue+"("+be+")":ue)}function L(B){if(B==null)return null;if(typeof B.tag=="number"&&oe("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof B=="function")return B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case a:return"Fragment";case o:return"Portal";case c:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case v:return"SuspenseList"}if(typeof B=="object")switch(B.$$typeof){case f:return"Context.Consumer";case d:return"Context.Provider";case m:return j(B,B.render,"ForwardRef");case $:return L(B.type);case x:return L(B.render);case C:{var X=B,ue=W(X);if(ue)return L(ue);break}}return null}var _={},M=null;function Y(B){M=B}_.getCurrentStack=null,_.getStackAddendum=function(){var B="";if(M){var X=L(M.type),ue=M._owner;B+=G(X,M._source,ue&&L(ue.type))}var be=_.getCurrentStack;return be&&(B+=be()||""),B};var V={current:!1},z={ReactCurrentDispatcher:S,ReactCurrentBatchConfig:U,ReactCurrentOwner:O,IsSomeRendererActing:V,assign:e};e(z,{ReactDebugCurrentFrame:_,ReactComponentTreeHook:{}});function re(B){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=arguments[be];fe("warn",B,ue)}}function oe(B){{for(var X=arguments.length,ue=new Array(X>1?X-1:0),be=1;be<X;be++)ue[be-1]=arguments[be];fe("error",B,ue)}}function fe(B,X,ue){{var be=ue.length>0&&typeof ue[ue.length-1]=="string"&&ue[ue.length-1].indexOf(`
|
|
134
|
+
in`)===0;if(!be){var Re=z.ReactDebugCurrentFrame,it=Re.getStackAddendum();it!==""&&(X+="%s",ue=ue.concat([it]))}var Ke=ue.map(function(Wt){return""+Wt});Ke.unshift("Warning: "+X),Function.prototype.apply.call(console[B],console,Ke);try{var ze=0,Ot="Warning: "+X.replace(/%s/g,function(){return ue[ze++]});throw new Error(Ot)}catch{}}}var ie={};function Ee(B,X){{var ue=B.constructor,be=ue&&(ue.displayName||ue.name)||"ReactClass",Re=be+"."+X;if(ie[Re])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",X,be),ie[Re]=!0}}var $e={isMounted:function(B){return!1},enqueueForceUpdate:function(B,X,ue){Ee(B,"forceUpdate")},enqueueReplaceState:function(B,X,ue,be){Ee(B,"replaceState")},enqueueSetState:function(B,X,ue,be){Ee(B,"setState")}},ne={};Object.freeze(ne);function ye(B,X,ue){this.props=B,this.context=X,this.refs=ne,this.updater=ue||$e}ye.prototype.isReactComponent={},ye.prototype.setState=function(B,X){if(!(typeof B=="object"||typeof B=="function"||B==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,X,"setState")},ye.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};{var xe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},he=function(B,X){Object.defineProperty(ye.prototype,B,{get:function(){re("%s(...) is deprecated in plain JavaScript React classes. %s",X[0],X[1])}})};for(var le in xe)xe.hasOwnProperty(le)&&he(le,xe[le])}function Fe(){}Fe.prototype=ye.prototype;function et(B,X,ue){this.props=B,this.context=X,this.refs=ne,this.updater=ue||$e}var dt=et.prototype=new Fe;dt.constructor=et,e(dt,ye.prototype),dt.isPureReactComponent=!0;function Dn(){var B={current:null};return Object.seal(B),B}var yt=Object.prototype.hasOwnProperty,q={key:!0,ref:!0,__self:!0,__source:!0},Z,te,pe;pe={};function Ce(B){if(yt.call(B,"ref")){var X=Object.getOwnPropertyDescriptor(B,"ref").get;if(X&&X.isReactWarning)return!1}return B.ref!==void 0}function De(B){if(yt.call(B,"key")){var X=Object.getOwnPropertyDescriptor(B,"key").get;if(X&&X.isReactWarning)return!1}return B.key!==void 0}function _e(B,X){var ue=function(){Z||(Z=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",X))};ue.isReactWarning=!0,Object.defineProperty(B,"key",{get:ue,configurable:!0})}function Ve(B,X){var ue=function(){te||(te=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",X))};ue.isReactWarning=!0,Object.defineProperty(B,"ref",{get:ue,configurable:!0})}function mt(B){if(typeof B.ref=="string"&&O.current&&B.__self&&O.current.stateNode!==B.__self){var X=L(O.current.type);pe[X]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',L(O.current.type),B.ref),pe[X]=!0)}}var ut=function(B,X,ue,be,Re,it,Ke){var ze={$$typeof:i,type:B,key:X,ref:ue,props:Ke,_owner:it};return ze._store={},Object.defineProperty(ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.defineProperty(ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Re}),Object.freeze&&(Object.freeze(ze.props),Object.freeze(ze)),ze};function Rt(B,X,ue){var be,Re={},it=null,Ke=null,ze=null,Ot=null;if(X!=null){Ce(X)&&(Ke=X.ref,mt(X)),De(X)&&(it=""+X.key),ze=X.__self===void 0?null:X.__self,Ot=X.__source===void 0?null:X.__source;for(be in X)yt.call(X,be)&&!q.hasOwnProperty(be)&&(Re[be]=X[be])}var Wt=arguments.length-2;if(Wt===1)Re.children=ue;else if(Wt>1){for(var Mn=Array(Wt),Fn=0;Fn<Wt;Fn++)Mn[Fn]=arguments[Fn+2];Object.freeze&&Object.freeze(Mn),Re.children=Mn}if(B&&B.defaultProps){var Vr=B.defaultProps;for(be in Vr)Re[be]===void 0&&(Re[be]=Vr[be])}if(it||Ke){var rr=typeof B=="function"?B.displayName||B.name||"Unknown":B;it&&_e(Re,rr),Ke&&Ve(Re,rr)}return ut(B,it,Ke,ze,Ot,O.current,Re)}function Pn(B,X){var ue=ut(B.type,X,B.ref,B._self,B._source,B._owner,B.props);return ue}function _n(B,X,ue){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var be,Re=e({},B.props),it=B.key,Ke=B.ref,ze=B._self,Ot=B._source,Wt=B._owner;if(X!=null){Ce(X)&&(Ke=X.ref,Wt=O.current),De(X)&&(it=""+X.key);var Mn;B.type&&B.type.defaultProps&&(Mn=B.type.defaultProps);for(be in X)yt.call(X,be)&&!q.hasOwnProperty(be)&&(X[be]===void 0&&Mn!==void 0?Re[be]=Mn[be]:Re[be]=X[be])}var Fn=arguments.length-2;if(Fn===1)Re.children=ue;else if(Fn>1){for(var Vr=Array(Fn),rr=0;rr<Fn;rr++)Vr[rr]=arguments[rr+2];Re.children=Vr}return ut(B.type,it,Ke,ze,Ot,Wt,Re)}function Yt(B){return typeof B=="object"&&B!==null&&B.$$typeof===i}var Ln=".",tn=":";function vt(B){var X=/[=:]/g,ue={"=":"=0",":":"=2"},be=(""+B).replace(X,function(Re){return ue[Re]});return"$"+be}var Vn=!1,Cr=/\/+/g;function Rn(B){return(""+B).replace(Cr,"$&/")}var er=10,On=[];function tr(B,X,ue,be){if(On.length){var Re=On.pop();return Re.result=B,Re.keyPrefix=X,Re.func=ue,Re.context=be,Re.count=0,Re}else return{result:B,keyPrefix:X,func:ue,context:be,count:0}}function Nn(B){B.result=null,B.keyPrefix=null,B.func=null,B.context=null,B.count=0,On.length<er&&On.push(B)}function En(B,X,ue,be){var Re=typeof B;(Re==="undefined"||Re==="boolean")&&(B=null);var it=!1;if(B===null)it=!0;else switch(Re){case"string":case"number":it=!0;break;case"object":switch(B.$$typeof){case i:case o:it=!0}}if(it)return ue(be,B,X===""?Ln+Vt(B,0):X),1;var Ke,ze,Ot=0,Wt=X===""?Ln:X+tn;if(Array.isArray(B))for(var Mn=0;Mn<B.length;Mn++)Ke=B[Mn],ze=Wt+Vt(Ke,Mn),Ot+=En(Ke,ze,ue,be);else{var Fn=k(B);if(typeof Fn=="function"){Fn===B.entries&&(Vn||re("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),Vn=!0);for(var Vr=Fn.call(B),rr,Ts=0;!(rr=Vr.next()).done;)Ke=rr.value,ze=Wt+Vt(Ke,Ts++),Ot+=En(Ke,ze,ue,be)}else if(Re==="object"){var Da="";Da=" If you meant to render a collection of children, use an array instead."+_.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)+")."+Da)}}return Ot}function Ir(B,X,ue){return B==null?0:En(B,"",X,ue)}function Vt(B,X){return typeof B=="object"&&B!==null&&B.key!=null?vt(B.key):X.toString(36)}function Cn(B,X,ue){var be=B.func,Re=B.context;be.call(Re,X,B.count++)}function Ne(B,X,ue){if(B==null)return B;var be=tr(null,null,X,ue);Ir(B,Cn,be),Nn(be)}function tt(B,X,ue){var be=B.result,Re=B.keyPrefix,it=B.func,Ke=B.context,ze=it.call(Ke,X,B.count++);Array.isArray(ze)?nn(ze,be,ue,function(Ot){return Ot}):ze!=null&&(Yt(ze)&&(ze=Pn(ze,Re+(ze.key&&(!X||X.key!==ze.key)?Rn(ze.key)+"/":"")+ue)),be.push(ze))}function nn(B,X,ue,be,Re){var it="";ue!=null&&(it=Rn(ue)+"/");var Ke=tr(X,it,be,Re);Ir(B,tt,Ke),Nn(Ke)}function fr(B,X,ue){if(B==null)return B;var be=[];return nn(B,be,null,X,ue),be}function Te(B){return Ir(B,function(){return null},null)}function je(B){var X=[];return nn(B,X,null,function(ue){return ue}),X}function Ye(B){if(!Yt(B))throw Error("React.Children.only expected to receive a single React element child.");return B}function Ft(B,X){X===void 0?X=null:X!==null&&typeof X!="function"&&oe("createContext: Expected the optional second argument to be a function. Instead received: %s",X);var ue={$$typeof:f,_calculateChangedBits:X,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null};ue.Provider={$$typeof:d,_context:ue};var be=!1,Re=!1;{var it={$$typeof:f,_context:ue,_calculateChangedBits:ue._calculateChangedBits};Object.defineProperties(it,{Provider:{get:function(){return Re||(Re=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),ue.Provider},set:function(Ke){ue.Provider=Ke}},_currentValue:{get:function(){return ue._currentValue},set:function(Ke){ue._currentValue=Ke}},_currentValue2:{get:function(){return ue._currentValue2},set:function(Ke){ue._currentValue2=Ke}},_threadCount:{get:function(){return ue._threadCount},set:function(Ke){ue._threadCount=Ke}},Consumer:{get:function(){return be||(be=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),ue.Consumer}}}),ue.Consumer=it}return ue._currentRenderer=null,ue._currentRenderer2=null,ue}function rn(B){var X={$$typeof:C,_ctor:B,_status:-1,_result:null};{var ue,be;Object.defineProperties(X,{defaultProps:{configurable:!0,get:function(){return ue},set:function(Re){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ue=Re,Object.defineProperty(X,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return be},set:function(Re){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),be=Re,Object.defineProperty(X,"propTypes",{enumerable:!0})}}})}return X}function jn(B){return B!=null&&B.$$typeof===$?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof B!="function"?oe("forwardRef requires a render function but was given %s.",B===null?"null":typeof B):B.length!==0&&B.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",B.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),B!=null&&(B.defaultProps!=null||B.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:m,render:B}}function Kt(B){return typeof B=="string"||typeof B=="function"||B===a||B===h||B===c||B===u||B===g||B===v||typeof B=="object"&&B!==null&&(B.$$typeof===C||B.$$typeof===$||B.$$typeof===d||B.$$typeof===f||B.$$typeof===m||B.$$typeof===y||B.$$typeof===D||B.$$typeof===P||B.$$typeof===x)}function an(B,X){return Kt(B)||oe("memo: The first argument must be a component. Instead received: %s",B===null?"null":typeof B),{$$typeof:$,type:B,compare:X===void 0?null:X}}function kt(){var B=S.current;if(B===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
135
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
136
|
+
2. You might be breaking the Rules of Hooks
|
|
137
|
+
3. You might have more than one copy of React in the same app
|
|
138
|
+
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return B}function wt(B,X){var ue=kt();if(X!==void 0&&oe("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",X,typeof X=="number"&&Array.isArray(arguments[2])?`
|
|
139
|
+
|
|
140
|
+
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),B._context!==void 0){var be=B._context;be.Consumer===B?oe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):be.Provider===B&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return ue.useContext(B,X)}function li(B){var X=kt();return X.useState(B)}function ba(B,X,ue){var be=kt();return be.useReducer(B,X,ue)}function hr(B){var X=kt();return X.useRef(B)}function Oo(B,X){var ue=kt();return ue.useEffect(B,X)}function Mo(B,X){var ue=kt();return ue.useLayoutEffect(B,X)}function Fo(B,X){var ue=kt();return ue.useCallback(B,X)}function gt(B,X){var ue=kt();return ue.useMemo(B,X)}function nr(B,X,ue){var be=kt();return be.useImperativeHandle(B,X,ue)}function pr(B,X){{var ue=kt();return ue.useDebugValue(B,X)}}var Kn;Kn=!1;function ko(){if(O.current){var B=L(O.current.type);if(B)return`
|
|
141
|
+
|
|
142
|
+
Check the render method of \``+B+"`."}return""}function Lr(B){if(B!==void 0){var X=B.fileName.replace(/^.*[\\\/]/,""),ue=B.lineNumber;return`
|
|
143
|
+
|
|
144
|
+
Check your code at `+X+":"+ue+"."}return""}function nl(B){return B!=null?Lr(B.__source):""}var $s={};function rl(B){var X=ko();if(!X){var ue=typeof B=="string"?B:B.displayName||B.name;ue&&(X=`
|
|
145
|
+
|
|
146
|
+
Check the top-level render call using <`+ue+">.")}return X}function Bo(B,X){if(!(!B._store||B._store.validated||B.key!=null)){B._store.validated=!0;var ue=rl(X);if(!$s[ue]){$s[ue]=!0;var be="";B&&B._owner&&B._owner!==O.current&&(be=" It was passed a child from "+L(B._owner.type)+"."),Y(B),oe('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',ue,be),Y(null)}}}function Ai(B,X){if(typeof B=="object"){if(Array.isArray(B))for(var ue=0;ue<B.length;ue++){var be=B[ue];Yt(be)&&Bo(be,X)}else if(Yt(B))B._store&&(B._store.validated=!0);else if(B){var Re=k(B);if(typeof Re=="function"&&Re!==B.entries)for(var it=Re.call(B),Ke;!(Ke=it.next()).done;)Yt(Ke.value)&&Bo(Ke.value,X)}}}function $a(B){{var X=B.type;if(X==null||typeof X=="string")return;var ue=L(X),be;if(typeof X=="function")be=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===m||X.$$typeof===$))be=X.propTypes;else return;be?(Y(B),t(be,B.props,"prop",ue,_.getStackAddendum),Y(null)):X.PropTypes!==void 0&&!Kn&&(Kn=!0,oe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")),typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&oe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xa(B){{Y(B);for(var X=Object.keys(B.props),ue=0;ue<X.length;ue++){var be=X[ue];if(be!=="children"&&be!=="key"){oe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",be);break}}B.ref!==null&&oe("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null)}}function xs(B,X,ue){var be=Kt(B);if(!be){var Re="";(B===void 0||typeof B=="object"&&B!==null&&Object.keys(B).length===0)&&(Re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=nl(X);it?Re+=it:Re+=ko();var Ke;B===null?Ke="null":Array.isArray(B)?Ke="array":B!==void 0&&B.$$typeof===i?(Ke="<"+(L(B.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):Ke=typeof B,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ke,Re)}var ze=Rt.apply(this,arguments);if(ze==null)return ze;if(be)for(var Ot=2;Ot<arguments.length;Ot++)Ai(arguments[Ot],B);return B===a?xa(ze):$a(ze),ze}var ws=!1;function il(B){var X=xs.bind(null,B);return X.type=B,ws||(ws=!0,re("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(X,"type",{enumerable:!1,get:function(){return re("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:B}),B}}),X}function Ds(B,X,ue){for(var be=_n.apply(this,arguments),Re=2;Re<arguments.length;Re++)Ai(arguments[Re],be.type);return $a(be),be}try{var wa=Object.freeze({}),Es=new Map([[wa,null]]),eo=new Set([wa]);Es.set(0,0),eo.add(0)}catch{}var ol=xs,Cs=Ds,Io=il,Ss={map:fr,forEach:Ne,count:Te,toArray:je,only:Ye};Pt.Children=Ss,Pt.Component=ye,Pt.Fragment=a,Pt.Profiler=c,Pt.PureComponent=et,Pt.StrictMode=u,Pt.Suspense=g,Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,Pt.cloneElement=Cs,Pt.createContext=Ft,Pt.createElement=ol,Pt.createFactory=Io,Pt.createRef=Dn,Pt.forwardRef=jn,Pt.isValidElement=Yt,Pt.lazy=rn,Pt.memo=an,Pt.useCallback=Fo,Pt.useContext=wt,Pt.useDebugValue=pr,Pt.useEffect=Oo,Pt.useImperativeHandle=nr,Pt.useLayoutEffect=Mo,Pt.useMemo=gt,Pt.useReducer=ba,Pt.useRef=hr,Pt.useState=li,Pt.version=n}();process.env.NODE_ENV==="production"?bc.exports=_t:bc.exports=Pt;var ru=bc.exports,$g={sdkSemver:"1.13.1",techVersion:ru.version,sdkCode:"J"},MW=function(e){LP(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 xU(this.imageRef.current,this.props.cldImg,this.props.plugins,$g)},t.prototype.componentDidUpdate=function(){mh(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$g)},t.prototype.componentWillUnmount=function(){mh(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=VP(n,["cldImg","plugins"]);if(Ub())return ru.createElement("img",vc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=sW(this.props.plugins,this.props.cldImg,$g);return ru.createElement("img",vc({},r,{src:i}))},t}(ru.Component),FW=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){LP(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=bc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new Jz(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(){mh(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){mh(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return FW.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=VP(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return ru.createElement("video",vc({},r,{ref:this.attachRef}))},t})(bc.exports.Component);function kW(e){return!(typeof e!="object"||e instanceof Array)}class BW{filterOutNonSupportedKeys(t,n){const r=Object.create({});return kW(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const Sx=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Yb extends BW{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,Sx);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,Sx);return new Yb(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class $c{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 IW extends Error{constructor(t="Unsupported"){super(t)}}function Zb(e){return new IW(e)}function LW(){return this._qualifierModel||{error:Zb(`unsupported qualifier ${this.constructor.name}`)}}class VW{constructor(){this._qualifierModel={}}toJson(){return LW.apply(this)}}class hp extends VW{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof $c?this.qualifierValue=n:(this.qualifierValue=new $c,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 ua extends hp{constructor(t,n){let r;n?r=new $c([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function NW(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function jW(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Zb(`unsupported action ${this.constructor.name}`)}}class KW{constructor(){this._actionModel={}}toJson(){return jW.apply(this)}}class Jb extends KW{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(),NW(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 ua(r)):this.qualifiers.set(n,new hp(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new ua(t)):t instanceof ua&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function UW(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class zW extends Jb{constructor(t){super(),this._actionModel={},this.addQualifier(new hp("b",new $c(UW(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class Tx{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Zb(`unsupported action ${this.constructor.name}`)}}}function WW(e){const t=e;return"error"in t&&!!t.error}function HW(){return new ua("lossy")}function GW(){return new ua("preserve_transparency")}function qW(e){return new ua("progressive",e)}class YW extends $c{constructor(t){super(t),this.val=t}getValue(){return this.val}}function gs(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const ZW={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},JW={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},XW={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},QW={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},eH={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},tH={444:"CHROMA_444",420:"CHROMA_420"},nH={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};gs(tH);gs(nH);gs(ZW);const rH=gs(JW);gs(XW);gs(QW);gs(eH);class iH extends Jb{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof YW?i=n.getValue():i=n,this._actionModel.actionType=rH[t],this._actionModel[r]=i,this.addQualifier(new hp(t,n))}}class oH extends ua{constructor(t){super("progressive",t)}}class yh extends iH{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(HW()),this}progressive(t){return t instanceof oH?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(qW(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(GW()),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 pp{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new Tx(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof pp?this.actions=this.actions.concat(t.actions):this.actions.push(new Tx(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new yh("q",t)),this}format(t){return this.addAction(new yh("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 zW(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new Jb;let r=t;return typeof t=="string"&&(r=new ua(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(WW(r))return r;t.push(r)}return{actions:t}}}class aH extends pp{}class sH extends pp{}function uH(e){return e.match(/^https?:\//)}function lH(e){return e.indexOf("/")<0}function cH(e){return e.match(/^v[0-9]+/)}function dH(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 fH(e){return e||"image"}function hH(e){return e||"upload"}function pH(e,t,n){const r=n!==!1;return t?`v${t}`:cH(e)||uH(e)||lH(e)?"":r?"v1":""}function Xb(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=mH(i,r/i.length)),i.slice(0,r)+String(e))}function mH(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const gH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vh={};let Ax=0;gH.split("").forEach(e=>{let t=Ax.toString(2);t=Xb(t,6,"0"),vh[t]=e,Ax++});function yH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function vH(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return Xb(t,2,"0")}).join(".")}function Px(e){let t="";const r=e.split(".").length*6,i=yH(e),o=vH(i);let u=parseInt(o.split(".").join("")).toString(2);if(u=Xb(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(c=>{t+=vh[c]}),t}function bH(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 $H="1.21.0";function xH(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 vh[o]+vh[a]}function wH(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function DH(e){const t={techVersion:wH(),sdkCode:"T",sdkSemver:$H.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function _x(e){const t=DH(e),n=bH(t);try{const r=EH(n.techVersion),i=Px(n.sdkSemver),o=Px(r),a=xH(n.osVersion),u=n.feature,c=n.sdkCode,{product:d,osType:f}=n;return`D${d}${c}${i}${o}${f}${a}${u}`}catch{return"E"}}function EH(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const Rx={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class CH{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new Yb(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=fH(this.assetType),n=hH(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,o=Rx[`${t}/${n}`],a=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(a){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(o)return o;throw new Error(`URL Suffix only supported for ${Object.keys(Rx).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=dH(this.cloudName,this.urlConfig),i=t?t.toString():"",o=pH(this.publicID,this.version,this.urlConfig.forceVersion),a=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,o,a.replace(/,/g,"%2C"),this.suffix].filter(c=>c).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),o,encodeURI(a).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(f=>f).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),c=this.urlConfig.analytics!==!1&&!a.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const f=new URLSearchParams(this.urlConfig.queryParams);c&&f.set("_a",_x(n)),d=f.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",c&&(d+=`${d.length>0?"&":""}_a=${_x(n)}`);return d?`${u}?${d}`:u}}}class XP extends CH{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 yh("q",t)),this}format(t){return this.addAction(new yh("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 SH extends XP{constructor(t,n,r){super(t,n,r,new aH)}}class TH extends XP{constructor(t,n,r){super(t,n,r,new sH),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class AH{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new SH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new TH(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var xg={exports:{}},Ox;function PH(){return Ox||(Ox=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
147
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
148
|
+
*
|
|
149
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
150
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
151
|
+
* @namespace
|
|
152
|
+
* @public
|
|
153
|
+
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(D){return D instanceof c?new c(D.type,y(D.content),D.alias):Array.isArray(D)?D.map(y):D.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++o}),y.__id},clone:function y(D,P){P=P||{};var E,T;switch(u.util.type(D)){case"Object":if(T=u.util.objId(D),P[T])return P[T];E={},P[T]=E;for(var k in D)D.hasOwnProperty(k)&&(E[k]=y(D[k],P));return E;case"Array":return T=u.util.objId(D),P[T]?P[T]:(E=[],P[T]=E,D.forEach(function(S,U){E[U]=y(S,P)}),E);default:return D}},getLanguage:function(y){for(;y;){var D=i.exec(y.className);if(D)return D[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,D){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(y){var D=document.getElementsByTagName("script");for(var P in D)if(D[P].src==y)return D[P]}return null}},isActive:function(y,D,P){for(var E="no-"+D;y;){var T=y.classList;if(T.contains(D))return!0;if(T.contains(E))return!1;y=y.parentElement}return!!P}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,D){var P=u.util.clone(u.languages[y]);for(var E in D)P[E]=D[E];return P},insertBefore:function(y,D,P,E){E=E||u.languages;var T=E[y],k={};for(var S in T)if(T.hasOwnProperty(S)){if(S==D)for(var U in P)P.hasOwnProperty(U)&&(k[U]=P[U]);P.hasOwnProperty(S)||(k[S]=T[S])}var O=E[y];return E[y]=k,u.languages.DFS(u.languages,function(F,G){G===O&&F!=y&&(this[F]=k)}),k},DFS:function y(D,P,E,T){T=T||{};var k=u.util.objId;for(var S in D)if(D.hasOwnProperty(S)){P.call(D,S,D[S],E||S);var U=D[S],O=u.util.type(U);O==="Object"&&!T[k(U)]?(T[k(U)]=!0,y(U,P,null,T)):O==="Array"&&!T[k(U)]&&(T[k(U)]=!0,y(U,P,S,T))}}},plugins:{},highlightAll:function(y,D){u.highlightAllUnder(document,y,D)},highlightAllUnder:function(y,D,P){var E={callback:P,container:y,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),u.hooks.run("before-all-elements-highlight",E);for(var T=0,k;k=E.elements[T++];)u.highlightElement(k,D===!0,E.callback)},highlightElement:function(y,D,P){var E=u.util.getLanguage(y),T=u.languages[E];u.util.setLanguage(y,E);var k=y.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(k,E);var S=y.textContent,U={element:y,language:E,grammar:T,code:S};function O(G){U.highlightedCode=G,u.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,u.hooks.run("after-highlight",U),u.hooks.run("complete",U),P&&P.call(U.element)}if(u.hooks.run("before-sanity-check",U),k=U.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!U.code){u.hooks.run("complete",U),P&&P.call(U.element);return}if(u.hooks.run("before-highlight",U),!U.grammar){O(u.util.encode(U.code));return}if(D&&r.Worker){var F=new Worker(u.filename);F.onmessage=function(G){O(G.data)},F.postMessage(JSON.stringify({language:U.language,code:U.code,immediateClose:!0}))}else O(u.highlight(U.code,U.grammar,U.language))},highlight:function(y,D,P){var E={code:y,grammar:D,language:P};if(u.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=u.tokenize(E.code,E.grammar),u.hooks.run("after-tokenize",E),c.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(y,D){var P=D.rest;if(P){for(var E in P)D[E]=P[E];delete D.rest}var T=new h;return m(T,T.head,y),f(y,T,D,T.head,0),v(T)},hooks:{all:{},add:function(y,D){var P=u.hooks.all;P[y]=P[y]||[],P[y].push(D)},run:function(y,D){var P=u.hooks.all[y];if(!(!P||!P.length))for(var E=0,T;T=P[E++];)T(D)}},Token:c};r.Prism=u;function c(y,D,P,E){this.type=y,this.content=D,this.alias=P,this.length=(E||"").length|0}c.stringify=function y(D,P){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(O){E+=y(O,P)}),E}var T={type:D.type,content:y(D.content,P),tag:"span",classes:["token",D.type],attributes:{},language:P},k=D.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(T.classes,k):T.classes.push(k)),u.hooks.run("wrap",T);var S="";for(var U in T.attributes)S+=" "+U+'="'+(T.attributes[U]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+S+">"+T.content+"</"+T.tag+">"};function d(y,D,P,E){y.lastIndex=D;var T=y.exec(P);if(T&&E&&T[1]){var k=T[1].length;T.index+=k,T[0]=T[0].slice(k)}return T}function f(y,D,P,E,T,k){for(var S in P)if(!(!P.hasOwnProperty(S)||!P[S])){var U=P[S];U=Array.isArray(U)?U:[U];for(var O=0;O<U.length;++O){if(k&&k.cause==S+","+O)return;var F=U[O],G=F.inside,K=!!F.lookbehind,W=!!F.greedy,j=F.alias;if(W&&!F.pattern.global){var L=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,L+"g")}for(var _=F.pattern||F,M=E.next,Y=T;M!==D.tail&&!(k&&Y>=k.reach);Y+=M.value.length,M=M.next){var V=M.value;if(D.length>y.length)return;if(!(V instanceof c)){var z=1,re;if(W){if(re=d(_,Y,y,K),!re||re.index>=y.length)break;var Ee=re.index,oe=re.index+re[0].length,fe=Y;for(fe+=M.value.length;Ee>=fe;)M=M.next,fe+=M.value.length;if(fe-=M.value.length,Y=fe,M.value instanceof c)continue;for(var ie=M;ie!==D.tail&&(fe<oe||typeof ie.value=="string");ie=ie.next)z++,fe+=ie.value.length;z--,V=y.slice(Y,fe),re.index-=Y}else if(re=d(_,0,V,K),!re)continue;var Ee=re.index,$e=re[0],ne=V.slice(0,Ee),ye=V.slice(Ee+$e.length),xe=Y+V.length;k&&xe>k.reach&&(k.reach=xe);var he=M.prev;ne&&(he=m(D,he,ne),Y+=ne.length),g(D,he,z);var le=new c(S,G?u.tokenize($e,G):$e,j,$e);if(M=m(D,he,le),ye&&m(D,M,ye),z>1){var Fe={cause:S+","+O,reach:xe};f(y,D,P,M.prev,Y,Fe),k&&Fe.reach>k.reach&&(k.reach=Fe.reach)}}}}}}function h(){var y={value:null,prev:null,next:null},D={value:null,prev:y,next:null};y.next=D,this.head=y,this.tail=D,this.length=0}function m(y,D,P){var E=D.next,T={value:P,prev:D,next:E};return D.next=T,E.prev=T,y.length++,T}function g(y,D,P){for(var E=D.next,T=0;T<P&&E!==y.tail;T++)E=E.next;D.next=E,E.prev=D,y.length-=T}function v(y){for(var D=[],P=y.head.next;P!==y.tail;)D.push(P.value),P=P.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(y){var D=JSON.parse(y.data),P=D.language,E=D.code,T=D.immediateClose;r.postMessage(u.highlight(E,u.languages[P],P)),T&&r.close()},!1)),u;var $=u.util.currentScript();$&&(u.filename=$.src,$.hasAttribute("data-manual")&&(u.manual=!0));function C(){u.manual||u.highlightAll()}if(!u.manual){var x=document.readyState;x==="loading"||x==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return u}(t);e.exports&&(e.exports=n),typeof 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(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function($,C){return"✖ Error "+$+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c="loading",d="loaded",f="failed",h="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+c+'"])';function m($,C,x){var y=new XMLHttpRequest;y.open("GET",$,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?C(y.responseText):y.status>=400?x(i(y.status,y.statusText)):x(o))},y.send(null)}function g($){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(C){var x=Number(C[1]),y=C[2],D=C[3];return y?D?[x,Number(D)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+h}),n.hooks.add("before-sanity-check",function($){var C=$.element;if(C.matches(h)){$.code="",C.setAttribute(u,c);var x=C.appendChild(document.createElement("CODE"));x.textContent=r;var y=C.getAttribute("data-src"),D=$.language;if(D==="none"){var P=(/\.(\w+)$/.exec(y)||[,"none"])[1];D=a[P]||P}n.util.setLanguage(x,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),m(y,function(T){C.setAttribute(u,d);var k=g(C.getAttribute("data-range"));if(k){var S=T.split(/\r\n?|\n/g),U=k[0],O=k[1]==null?S.length:k[1];U<0&&(U+=S.length),U=Math.max(0,Math.min(U-1,S.length)),O<0&&(O+=S.length),O=Math.max(0,Math.min(O,S.length)),T=S.slice(U,O).join(`
|
|
154
|
+
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(U+1))}x.textContent=T,n.highlightElement(x)},function(T){C.setAttribute(u,f),x.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(h),y=0,D;D=x[y++];)n.highlightElement(D)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xg)),xg.exports}var _H=PH();(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=" <br /> ",document.body.appendChild(g),m=g.offsetHeight===38,document.body.removeChild(g)}return m}}();function u(m,g){var v=getComputedStyle(m),$=getComputedStyle(g);function C(x){return+x.substr(0,x.length-2)}return g.offsetTop+C($.borderTopWidth)+C($.paddingTop)-C(v.paddingTop)}function c(m){return!m||!/pre/i.test(m.nodeName)?!1:!!(m.hasAttribute("data-line")||m.id&&Prism.util.isActive(m,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(g,v,$){v=typeof v=="string"?v:g.getAttribute("data-line")||"";var C=v.replace(/\s+/g,"").split(",").filter(Boolean),x=+g.getAttribute("data-line-offset")||0,y=a()?parseInt:parseFloat,D=y(getComputedStyle(g).lineHeight),P=Prism.util.isActive(g,e),E=g.querySelector("code"),T=P?g:E||g,k=[],S=E.textContent.match(n),U=S?S.length+1:1,O=!E||T==E?0:u(g,E);C.forEach(function(K){var W=K.split("-"),j=+W[0],L=+W[1]||j;if(L=Math.min(U+x,L),!(L<j)){var _=g.querySelector('.line-highlight[data-range="'+K+'"]')||document.createElement("div");if(k.push(function(){_.setAttribute("aria-hidden","true"),_.setAttribute("data-range",K),_.className=($||"")+" line-highlight"}),P&&Prism.plugins.lineNumbers){var M=Prism.plugins.lineNumbers.getLine(g,j),Y=Prism.plugins.lineNumbers.getLine(g,L);if(M){var V=M.offsetTop+O+"px";k.push(function(){_.style.top=V})}if(Y){var z=Y.offsetTop-M.offsetTop+Y.offsetHeight+"px";k.push(function(){_.style.height=z})}}else k.push(function(){_.setAttribute("data-start",String(j)),L>j&&_.setAttribute("data-end",String(L)),_.style.top=(j-x-1)*D+O+"px",_.textContent=new Array(L-j+2).join(`
|
|
155
|
+
`)});k.push(function(){_.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(_)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var L=F+"."+j;d=!1,location.hash=L,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Mx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},QP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Mx(i,n,e))}},RH=(e,t)=>{t.shouldUseNativeValidation&&QP(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(OH(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},OH=(e,t)=>e.some(n=>n.startsWith(t+"."));function MH(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return o.shouldUseNativeValidation&&QP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:RH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=oA(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var wg,Fx;function FH(){if(Fx)return wg;Fx=1;var e=typeof Vi=="object"&&Vi&&Vi.Object===Object&&Vi;return wg=e,wg}var Dg,kx;function kH(){if(kx)return Dg;kx=1;var e=FH(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Dg=n,Dg}var Eg,Bx;function e6(){if(Bx)return Eg;Bx=1;var e=kH(),t=e.Symbol;return Eg=t,Eg}var Cg,Ix;function BH(){if(Ix)return Cg;Ix=1;var e=e6(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Cg=o,Cg}var Sg,Lx;function IH(){if(Lx)return Sg;Lx=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sg=n,Sg}var Tg,Vx;function LH(){if(Vx)return Tg;Vx=1;var e=e6(),t=BH(),n=IH(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Tg=a,Tg}var Ag,Nx;function VH(){if(Nx)return Ag;Nx=1;function e(t){return t!=null&&typeof t=="object"}return Ag=e,Ag}var Pg,jx;function NH(){if(jx)return Pg;jx=1;var e=LH(),t=VH(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Pg=r,Pg}var jH=NH();const KH=Ao(jH),t6=b.createContext({});function qc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qb=b.createContext(null),e0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function UH(e=!0){const t=b.useContext(Qb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const t0=typeof window<"u",n6=t0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Hu=Er,Ji=Er;process.env.NODE_ENV!=="production"&&(Hu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ji=(e,t)=>{if(!e)throw new Error(t)});function n0(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,wo=e=>e/1e3,zH={skipAnimations:!1,useManualTiming:!1};function WH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const pf=["read","resolveKeyframes","update","preRender","render","postRender"],HH=40;function r6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pf.reduce((x,y)=>(x[y]=WH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,HH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:pf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<pf.length;y++)a[pf[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:So,state:Bn,steps:_g}=r6(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),i6=b.createContext({strict:!1}),Kx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ou={};for(const e in Kx)Ou[e]={isEnabled:t=>Kx[e].some(n=>!!t[n])};function GH(e){for(const t in e)Ou[t]={...Ou[t],...e[t]}}const qH=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 bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||qH.has(e)}let o6=e=>!bh(e);function YH(e){e&&(o6=t=>t.startsWith("on")?!bh(t):e(t))}try{YH(require("@emotion/is-prop-valid").default)}catch{}function ZH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(o6(i)||n===!0&&bh(i)||!t&&!bh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Ux=new Set;function mp(e,t,n){e||Ux.has(t)||(console.warn(t),Ux.add(t))}function JH(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&mp(!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 gp=b.createContext({});function xc(e){return typeof e=="string"||Array.isArray(e)}function yp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const r0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i0=["initial",...r0];function vp(e){return yp(e.animate)||i0.some(t=>xc(e[t]))}function a6(e){return!!(vp(e)||e.variants)}function XH(e,t){if(vp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xc(n)?n:void 0,animate:xc(r)?r:void 0}}return e.inherit!==!1?t:{}}function QH(e){const{initial:t,animate:n}=XH(e,b.useContext(gp));return b.useMemo(()=>({initial:t,animate:n}),[zx(t),zx(n)])}function zx(e){return Array.isArray(e)?e.join(" "):e}const eG=Symbol.for("motionComponentSymbol");function iu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tG(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):iu(n)&&(n.current=r))},[t])}const o0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nG="framerAppearId",s6="data-"+o0(nG),{schedule:a0,cancel:Hre}=r6(queueMicrotask,!1),u6=b.createContext({});function rG(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(gp),c=b.useContext(i6),d=b.useContext(Qb),f=b.useContext(e0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(u6);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&iG(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[s6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return n6(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),a0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function iG(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:l6(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:c,layoutRoot:d})}function l6(e){if(e)return e.options.allowProjection!==!1?e.projection:l6(e.parent)}function oG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&GH(e);function u(d,f){let h;const m={...b.useContext(e0),...d,layoutId:aG(d)},{isStatic:g}=m,v=QH(d),$=r(d,g);if(!g&&t0){sG(m,e);const C=uG(m);h=C.MeasureLayout,v.visualElement=rG(i,$,m,t,C.ProjectionNode)}return Eo.jsxs(gp.Provider,{value:v,children:[h&&v.visualElement?Eo.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,tG($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[eG]=i,c}function aG({layoutId:e}){const t=b.useContext(t6).id;return t&&e!==void 0?t+"-"+e:e}function sG(e,t){const n=b.useContext(i6).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):Ji(!1,r)}}function uG(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 lG=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function s0(e){return typeof e!="string"||e.includes("-")?!1:!!(lG.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function u0(e,t,n,r){if(typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const uv=e=>Array.isArray(e),cG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),dG=e=>uv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function If(e){const t=In(e)?e.get():e;return cG(t)?t.toValue():t}function fG({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:hG(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const c6=e=>(t,n)=>{const r=b.useContext(gp),i=b.useContext(Qb),o=()=>fG(e,t,r,i);return n?o():qc(o)};function hG(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=If(o[m]);let{initial:a,animate:u}=e;const c=vp(e),d=a6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!yp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=u0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Gu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Gu),d6=e=>t=>typeof t=="string"&&t.startsWith(e),f6=d6("--"),pG=d6("var(--"),l0=e=>pG(e)?mG.test(e.split("/*")[0].trim()):!1,mG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,h6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,To=(e,t,n)=>n>t?t:n<e?e:n,qu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wc={...qu,transform:e=>To(0,1,e)},mf={...qu,default:1},Yc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Yc("deg"),qi=Yc("%"),Ge=Yc("px"),gG=Yc("vh"),yG=Yc("vw"),Hx={...qi,parse:e=>qi.parse(e)/100,transform:e=>qi.transform(e*100)},vG={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},bG={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:mf,scaleX:mf,scaleY:mf,scaleZ:mf,skew:Zo,skewX:Zo,skewY:Zo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:wc,originX:Hx,originY:Hx,originZ:Ge},Gx={...qu,transform:Math.round},c0={...vG,...bG,zIndex:Gx,size:Ge,fillOpacity:wc,strokeOpacity:wc,numOctaves:Gx},$G={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xG=Gu.length;function wG(e,t,n){let r="",i=!0;for(let o=0;o<xG;o++){const a=Gu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=h6(u,c0[a]);if(!c){i=!1;const f=$G[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function d0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if(f6(c)){i[c]=d;continue}else{const f=h6(d,c0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=wG(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function qx(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function DG(e,t,n){const r=qx(t,e.x,e.width),i=qx(n,e.y,e.height);return`${r} ${i}`}const EG={offset:"stroke-dashoffset",array:"stroke-dasharray"},CG={offset:"strokeDashoffset",array:"strokeDasharray"};function SG(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?EG:CG;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function f0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(d0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=DG(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&SG(m,a,u,c,!1)}const h0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),p6=()=>({...h0(),attrs:{}}),p0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m6(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 g6=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 y6(e,t,n,r){m6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(g6.has(i)?i:o0(i),t.attrs[i])}const $h={};function TG(e){Object.assign($h,e)}function v6(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$h[e]||e==="opacity")}function m0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||v6(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 b6(e,t,n){const r=m0(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 AG(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Yx=["x","y","width","height","cx","cy","r"],PG={useVisualState:c6({scrapeMotionValuesFromProps:b6,createRenderState:p6,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(ys.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Yx.length;u++){const c=Yx[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>AG(n,r)),jt.render(()=>{f0(r,i,p0(n.tagName),e.transformTemplate),y6(n,r)}))}})},_G={useVisualState:c6({scrapeMotionValuesFromProps:m0,createRenderState:h0})};function $6(e,t,n){for(const r in t)!In(t[r])&&!v6(r,n)&&(e[r]=t[r])}function RG({transformTemplate:e},t){return b.useMemo(()=>{const n=h0();return d0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function OG(e,t){const n=e.style||{},r={};return $6(r,n,e),Object.assign(r,RG(e,t)),r}function MG(e,t){const n={},r=OG(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 FG(e,t,n,r){const i=b.useMemo(()=>{const o=p6();return f0(o,t,p0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};$6(o,e.style,e),i.style={...o,...i.style}}return i}function kG(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(s0(n)?FG:MG)(r,o,a,n),d=ZH(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function BG(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...s0(r)?PG:_G,preloadedFeatures:e,useRender:kG(i),createVisualElement:t,Component:r};return oG(a)}}function x6(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 bp(e,t,n){const r=e.getProps();return u0(r,t,n!==void 0?n:r.custom,e)}const IG=n0(()=>window.ScrollTimeline!==void 0);class LG{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(IG()&&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 VG=class extends LG{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function g0(e,t){return e?e[t]||e.default||e:void 0}const lv=2e4;function w6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lv;)t+=n,r=e.next(t);return t>=lv?1/0:t}function y0(e){return typeof e=="function"}function Zx(e,t){e.timeline=t,e.onfinish=null}const v0=e=>Array.isArray(e)&&typeof e[0]=="number",NG={linearEasing:void 0};function jG(e,t){const n=n0(e);return()=>{var r;return(r=NG[t])!==null&&r!==void 0?r:n()}}const xh=jG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),D6=(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 E6(e){return!!(typeof e=="function"&&xh()||!e||typeof e=="string"&&(e in cv||xh())||v0(e)||Array.isArray(e)&&e.every(E6))}const Hl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hl([0,.65,.55,1]),circOut:Hl([.55,0,1,.45]),backIn:Hl([.31,.01,.66,-.59]),backOut:Hl([.33,1.53,.69,.99])};function C6(e,t){if(e)return typeof e=="function"&&xh()?D6(e,t):v0(e)?Hl(e):Array.isArray(e)?e.map(n=>C6(n,t)||cv.easeOut):cv[e]}const pi={x:!1,y:!1};function S6(){return pi.x||pi.y}function KG(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 T6(e,t){const n=KG(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Jx(e){return t=>{t.pointerType==="touch"||S6()||e(t)}}function UG(e,t,n={}){const[r,i,o]=T6(e,n),a=Jx(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=Jx(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const A6=(e,t)=>t?e===t?!0:A6(e,t.parentElement):!1,b0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function WG(e){return zG.has(e.tagName)||e.tabIndex!==-1}const Gl=new WeakSet;function Xx(e){return t=>{t.key==="Enter"&&e(t)}}function Rg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const HG=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xx(()=>{if(Gl.has(n))return;Rg(n,"down");const i=Xx(()=>{Rg(n,"up")}),o=()=>Rg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Qx(e){return b0(e)&&!S6()}function GG(e,t,n={}){const[r,i,o]=T6(e,n),a=u=>{const c=u.currentTarget;if(!Qx(u)||Gl.has(c))return;Gl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Qx(g)||!Gl.has(c))&&(Gl.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||A6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!WG(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>HG(d,i),i)}),o}function qG(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 P6=new Set(["width","height","top","left","right","bottom",...Gu]);let Lf;function YG(){Lf=void 0}const Yi={now:()=>(Lf===void 0&&Yi.set(Bn.isProcessing||zH.useManualTiming?Bn.timestamp:performance.now()),Lf),set:e=>{Lf=e,queueMicrotask(YG)}};function $0(e,t){e.indexOf(t)===-1&&e.push(t)}function x0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ZG([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let w0=class{constructor(){this.subscriptions=[]}add(t){return $0(this.subscriptions,t),()=>x0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function _6(e,t){return t?e*(1e3/t):0}const ew=30,JG=e=>!isNaN(parseFloat(e)),rc={current:void 0};let XG=class{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Yi.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=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=JG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&mp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new w0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rc.current&&rc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ew)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ew);return _6(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 XG(e,t)}function QG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mu(n))}function eq(e,t){const n=bp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=dG(o[a]);QG(e,a,u)}}function tq(e){return!!(In(e)&&e.add)}function dv(e,t){const n=e.getValue("willChange");if(tq(n))return n.add(t)}function R6(e){return e.props[s6]}const O6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nq=1e-7,rq=12;function iq(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=O6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>nq&&++u<rq);return a}function Zc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>iq(o,0,1,e,n);return o=>o===0||o===1?o:O6(i(o),t,r)}const M6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,F6=e=>t=>1-e(1-t),k6=Zc(.33,1.53,.69,.99),D0=F6(k6),B6=M6(D0),I6=e=>(e*=2)<1?.5*D0(e):.5*(2-Math.pow(2,-10*(e-1))),E0=e=>1-Math.sin(Math.acos(e)),L6=F6(E0),V6=M6(E0),N6=e=>/^0[^.\s]+$/u.test(e);function oq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||N6(e):!0}const ic=e=>Math.round(e*1e5)/1e5,C0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aq(e){return e==null}const sq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,S0=(e,t)=>n=>!!(typeof n=="string"&&sq.test(n)&&n.startsWith(e)||t&&!aq(n)&&Object.prototype.hasOwnProperty.call(n,t)),j6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(C0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},uq=e=>To(0,255,e),Og={...qu,transform:e=>Math.round(uq(e))},Ga={test:S0("rgb","red"),parse:j6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Og.transform(e)+", "+Og.transform(t)+", "+Og.transform(n)+", "+ic(wc.transform(r))+")"};function lq(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const fv={test:S0("#"),parse:lq,transform:Ga.transform},ou={test:S0("hsl","hue"),parse:j6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qi.transform(ic(t))+", "+qi.transform(ic(n))+", "+ic(wc.transform(r))+")"},qn={test:e=>Ga.test(e)||fv.test(e)||ou.test(e),parse:e=>Ga.test(e)?Ga.parse(e):ou.test(e)?ou.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):ou.transform(e)},cq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(C0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(cq))===null||n===void 0?void 0:n.length)||0)>0}const K6="number",U6="color",fq="var",hq="var(",tw="${}",pq=/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 Dc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(pq,c=>(qn.test(c)?(r.color.push(o),i.push(U6),n.push(qn.parse(c))):c.startsWith(hq)?(r.var.push(o),i.push(fq),n.push(c)):(r.number.push(o),i.push(K6),n.push(parseFloat(c))),++o,tw)).split(tw);return{values:n,split:u,indexes:r,types:i}}function z6(e){return Dc(e).values}function W6(e){const{split:t,types:n}=Dc(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===K6?o+=ic(i[a]):u===U6?o+=qn.transform(i[a]):o+=i[a]}return o}}const mq=e=>typeof e=="number"?0:e;function gq(e){const t=z6(e);return W6(e)(t.map(mq))}const ha={test:dq,parse:z6,createTransformer:W6,getAnimatableNone:gq},yq=new Set(["brightness","contrast","saturate","opacity"]);function vq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(C0)||[];if(!r)return e;const i=n.replace(r,"");let o=yq.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const bq=/\b([a-z-]*)\(.*?\)/gu,hv={...ha,getAnimatableNone:e=>{const t=e.match(bq);return t?t.map(vq).join(" "):e}},$q={...c0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},T0=e=>$q[e];function H6(e,t){let n=T0(e);return n!==hv&&(n=ha),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const xq=new Set(["auto","none","0"]);function wq(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!xq.has(o)&&Dc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=H6(n,i)}const nw=e=>e===qu||e===Ge,rw=(e,t)=>parseFloat(e.split(", ")[t]),iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return rw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?rw(o[1],e):0}},Dq=new Set(["x","y","z"]),Eq=Gu.filter(e=>!Dq.has(e));function Cq(e){const t=[];return Eq.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:iw(4,13),y:iw(5,14)};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const Qa=new Set;let pv=!1,mv=!1;function G6(){if(mv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Cq(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}mv=!1,pv=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function q6(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mv=!0)})}function Sq(){q6(),G6()}let A0=class{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),pv||(pv=!0,jt.read(q6),jt.resolveKeyframes(G6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const Y6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Tq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Aq(e){const t=Tq.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Pq=4;function Z6(e,t,n=1){Ji(n<=Pq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Aq(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Y6(a)?parseFloat(a):a}return l0(i)?Z6(i,t,n+1):i}const J6=e=>t=>t.test(e),_q={test:e=>e==="auto",parse:e=>e},X6=[qu,Ge,qi,Zo,yG,gG,_q],ow=e=>X6.find(J6(e));let Q6=class extends A0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),l0(d))){const f=Z6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!P6.has(r)||t.length!==2)return;const[i,o]=t,a=ow(i),u=ow(o);if(a!==u)if(nw(a)&&nw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)oq(t[i])&&r.push(i);r.length&&wq(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Fu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};const aw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ha.test(e)||e==="0")&&!e.startsWith("url("));function Rq(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 Oq(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=aw(i,t),u=aw(o,t);return 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:Rq(e)||(n==="spring"||y0(n))&&r}const Mq=e=>e!==null;function $p(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Mq),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Fq=40;let e7=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=Yi.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>Fq?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Sq(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Oq(t,r,i,o))if(a)this.options.duration=0;else{c==null||c($p(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const qt=(e,t,n)=>e+(t-e)*n;function Mg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function kq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Mg(c,u,e+1/3),o=Mg(c,u,e),a=Mg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function wh(e,t){return n=>n>0?t:e}const Fg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Bq=[fv,Ga,ou],Iq=e=>Bq.find(t=>t.test(e));function sw(e){const t=Iq(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=kq(n)),n}const uw=(e,t)=>{const n=sw(e),r=sw(t);if(!n||!r)return wh(e,t);const i={...n};return o=>(i.red=Fg(n.red,r.red,o),i.green=Fg(n.green,r.green,o),i.blue=Fg(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ga.transform(i))},Lq=(e,t)=>n=>t(e(n)),Jc=(...e)=>e.reduce(Lq),gv=new Set(["none","hidden"]);function Vq(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nq(e,t){return n=>qt(e,t,n)}function P0(e){return typeof e=="number"?Nq:typeof e=="string"?l0(e)?wh:qn.test(e)?uw:Uq:Array.isArray(e)?t7:typeof e=="object"?qn.test(e)?uw:jq:wh}function t7(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>P0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function jq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=P0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Kq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const Uq=(e,t)=>{const n=ha.createTransformer(t),r=Dc(e),i=Dc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?Vq(e,t):Jc(t7(Kq(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.`),wh(e,t))};function n7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):P0(e)(e,t)}const zq=5;function r7(e,t,n){const r=Math.max(t-zq,0);return _6(n-e(r),t-r)}const Jt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},lw=.001;function 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=To(Jt.minDamping,Jt.maxDamping,a),e=To(Jt.minDuration,Jt.maxDuration,wo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=yv(d,a),v=Math.exp(-h);return lw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=yv(Math.pow(d,2),a);return(-i(d)+lw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=Gq(i,o,u);if(e=Gi(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const Hq=12;function Gq(e,t,n){let r=n;for(let i=1;i<Hq;i++)r=r-e(r)/t(r);return r}function yv(e,t){return e*Math.sqrt(1-t*t)}const qq=["duration","bounce"],Yq=["stiffness","damping","mass"];function cw(e,t){return t.some(n=>e[n]!==void 0)}function Zq(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!cw(e,Yq)&&cw(e,qq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*To(.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 i7(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=Zq({...n,velocity:-wo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=wo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=yv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Gi(v):r7(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(w6(P),lv),T=D6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function dw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=i7({keyframes:[m.value,v(m.value)],velocity:r7(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const Jq=Zc(.42,0,1,1),Xq=Zc(0,0,.58,1),o7=Zc(.42,0,.58,1),Qq=e=>Array.isArray(e)&&typeof e[0]!="number",fw={linear:Er,easeIn:Jq,easeInOut:o7,easeOut:Xq,circIn:E0,circInOut:V6,circOut:L6,backIn:D0,backInOut:B6,backOut:k6,anticipate:I6},hw=e=>{if(v0(e)){Ji(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Zc(t,n,r,i)}else if(typeof e=="string")return Ji(fw[e]!==void 0,`Invalid easing type '${e}'`),fw[e];return e};function eY(e,t,n){const r=[],i=n||n7,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Jc(c,u)}r.push(u)}return r}function a7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Ji(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=eY(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ru(e[h],e[h+1],f);return u[h](m)};return n?f=>d(To(e[0],e[o-1],f)):d}function tY(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ru(0,t,r);e.push(qt(n,1,i))}}function nY(e){const t=[0];return tY(t,e.length-1),t}function rY(e,t){return e.map(n=>n*t)}function iY(e,t){return e.map(()=>t||o7).splice(0,e.length-1)}function Dh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Qq(r)?r.map(hw):hw(r),o={done:!1,value:t[0]},a=rY(n&&n.length===t.length?n:nY(t),e),u=a7(a,t,{ease:Array.isArray(i)?i:iY(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const oY=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>So(t),now:()=>Bn.isProcessing?Bn.timestamp:Yi.now()}},aY={decay:dw,inertia:dw,tween:Dh,keyframes:Dh,spring:i7},sY=e=>e/100;let _0=class extends e7{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||A0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=y0(n)?n:aY[n]||Dh;let c,d;u!==Dh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ji(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Jc(sY,n7(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=w6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=To(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=$p(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?wo(t.calculatedDuration):0}get time(){return wo(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=wo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=oY,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 uY=new Set(["opacity","clipPath","filter","transform"]);function lY(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=C6(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 cY=n0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Eh=10,dY=2e4;function fY(e){return y0(e.type)||e.type==="spring"||!E6(e.ease)}function hY(e,t){const n=new _0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<dY;)r=n.sample(o),i.push(r.value),o+=Eh;return{times:void 0,keyframes:i,duration:o-Eh,ease:"linear"}}const s7={anticipate:I6,backInOut:B6,circInOut:V6};function pY(e){return e in s7}let pw=class extends e7{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Q6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&xh()&&pY(a)&&(a=s7[a]),fY(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=hY(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=lY(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Zx(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set($p(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 wo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wo(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;Zx(r,t)}return Er}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new _0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Gi(this.time);d.setWithVelocity(v.sample($-Eh).value,v.sample($).value,Eh)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return cY()&&r&&uY.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const mY={type:"spring",stiffness:500,damping:25,restSpeed:10},gY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yY={type:"keyframes",duration:.8},vY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bY=(e,{keyframes:t})=>t.length>2?yY:ys.has(e)?e.startsWith("scale")?gY(t[1]):mY:vY;function $Y({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const R0=(e,t,n,r={},i,o)=>a=>{const u=g0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Gi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};$Y(u)||(f={...f,...bY(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=$p(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new VG([])}return!o&&pw.supports(f)?new pw(f):new _0(f)};function xY({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&xY(f,h))continue;const v={delay:n,...g0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=R6(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}dv(e,h),m.start(R0(h,m,g,e.shouldReduceMotion&&P6.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&eq(e,u)})}),d}function vv(e,t,n={}){var r;const i=bp(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(u7(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return wY(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function wY(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(DY).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function DY(e,t){return e.sortNodePosition(t)}function EY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?bp(e,t,n.custom):t;r=Promise.all(u7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const CY=i0.length;function l7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?l7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<CY;n++){const r=i0[n],i=e.props[r];(xc(i)||i===!1)&&(t[r]=i)}return t}const SY=[...r0].reverse(),TY=r0.length;function AY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>EY(e,n,r)))}function PY(e){let t=AY(e),n=mw(),r=!0;const i=c=>(d,f)=>{var h;const m=bp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=l7(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<TY;C++){const x=SY[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=xc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||yp(D)||typeof D=="boolean")continue;const k=_Y(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;uv(M)&&uv(Y)?V=!x6(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=mw(),r=!0}}}function _Y(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!x6(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mw(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}let va=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},RY=class extends va{constructor(t){super(t),t.animationState||(t.animationState=PY(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();yp(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)}},OY=0,MY=class extends va{constructor(){super(...arguments),this.id=OY++}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 FY={animation:{Feature:RY},exit:{Feature:MY}};function Ec(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Xc(e){return{point:{x:e.pageX,y:e.pageY}}}const kY=e=>t=>b0(t)&&e(t,Xc(t));function oc(e,t,n,r){return Ec(e,t,kY(n),r)}const gw=(e,t)=>Math.abs(e-t);function BY(e,t){const n=gw(e.x,t.x),r=gw(e.y,t.y);return Math.sqrt(n**2+r**2)}class c7{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Bg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=BY(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=kg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Bg(h.type==="pointercancel"?this.lastMoveEventInfo:kg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!b0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Xc(t),u=kg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Bg(u,this.history)),this.removeListeners=Jc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),So(this.updatePoint)}}function kg(e,t){return t?{point:t(e.point)}:e}function yw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bg({point:e},t){return{point:e,delta:yw(e,d7(t)),offset:yw(e,IY(t)),velocity:LY(t,.1)}}function IY(e){return e[0]}function d7(e){return e[e.length-1]}function LY(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=d7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Gi(t)));)n--;if(!r)return{x:0,y:0};const o=wo(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 f7=1e-4,VY=1-f7,NY=1+f7,h7=.01,jY=0-h7,KY=0+h7;function kr(e){return e.max-e.min}function UY(e,t,n){return Math.abs(e-t)<=n}function vw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=kr(n)/kr(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=VY&&e.scale<=NY||isNaN(e.scale))&&(e.scale=1),(e.translate>=jY&&e.translate<=KY||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,r){vw(e.x,t.x,n.x,r?r.originX:void 0),vw(e.y,t.y,n.y,r?r.originY:void 0)}function bw(e,t,n){e.min=n.min+t.min,e.max=e.min+kr(t)}function zY(e,t,n){bw(e.x,t.x,n.x),bw(e.y,t.y,n.y)}function $w(e,t,n){e.min=t.min-n.min,e.max=e.min+kr(t)}function sc(e,t,n){$w(e.x,t.x,n.x),$w(e.y,t.y,n.y)}function WY(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function xw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function HY(e,{top:t,left:n,bottom:r,right:i}){return{x:xw(e.x,n,i),y:xw(e.y,t,r)}}function ww(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function GY(e,t){return{x:ww(e.x,t.x),y:ww(e.y,t.y)}}function qY(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)),To(0,1,n)}function YY(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bv=.35;function ZY(e=bv){return e===!1?e=0:e===!0&&(e=bv),{x:Dw(e,"left","right"),y:Dw(e,"top","bottom")}}function Dw(e,t,n){return{min:Ew(e,t),max:Ew(e,n)}}function Ew(e,t){return typeof e=="number"?e:e[t]||0}const Cw=()=>({translate:0,scale:1,origin:0,originPoint:0}),au=()=>({x:Cw(),y:Cw()}),Sw=()=>({min:0,max:0}),cn=()=>({x:Sw(),y:Sw()});function Qr(e){return[e("x"),e("y")]}function p7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function JY({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function XY(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ig(e){return e===void 0||e===1}function $v({scale:e,scaleX:t,scaleY:n}){return!Ig(e)||!Ig(t)||!Ig(n)}function Ia(e){return $v(e)||m7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function m7(e){return Tw(e.x)||Tw(e.y)}function Tw(e){return e&&e!=="0%"}function Ch(e,t,n){const r=e-n,i=t*r;return n+i}function Aw(e,t,n,r,i){return i!==void 0&&(e=Ch(e,i,r)),Ch(e,n,r)+t}function xv(e,t=0,n=1,r,i){e.min=Aw(e.min,t,n,r,i),e.max=Aw(e.max,t,n,r,i)}function g7(e,{x:t,y:n}){xv(e.x,t.translate,t.scale,t.originPoint),xv(e.y,n.translate,n.scale,n.originPoint)}const Pw=.999999999999,_w=1.0000000000001;function QY(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uu(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,g7(e,a)),r&&Ia(o.latestValues)&&uu(e,o.latestValues))}t.x<_w&&t.x>Pw&&(t.x=1),t.y<_w&&t.y>Pw&&(t.y=1)}function su(e,t){e.min=e.min+t,e.max=e.max+t}function Rw(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);xv(e,t,n,o,r)}function uu(e,t){Rw(e.x,t.x,t.scaleX,t.scale,t.originX),Rw(e.y,t.y,t.scaleY,t.scale,t.originY)}function y7(e,t){return p7(XY(e.getBoundingClientRect(),t))}function eZ(e,t,n){const r=y7(e,n),{scroll:i}=t;return i&&(su(r.x,i.offset.x),su(r.y,i.offset.y)),r}const v7=({current:e})=>e?e.ownerDocument.defaultView:null,tZ=new WeakMap;class nZ{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(Xc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qG(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(qi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=kr(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),dv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=rZ(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new c7(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:v7(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!gf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=WY(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=HY(i.layoutBox,n):this.constraints=!1,this.elastic=ZY(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=YY(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!iu(t))return!1;const r=t.current;Ji(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=eZ(r,i.root,this.visualElement.getTransformPagePoint());let a=GY(i.layout.layoutBox,o);if(n){const u=n(JY(a));this.hasMutatedConstraints=!!u,u&&(a=p7(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!gf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dv(this.visualElement,t),r.start(R0(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!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 c=u.get();i[a]=qY({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!gf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;tZ.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();iu(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=Ec(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=bv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function gf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rZ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iZ extends va{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new nZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ow=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class oZ extends va{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new c7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:v7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ow(t),onStart:Ow(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=oc(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 Vf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=Mw(e,t.target.x),r=Mw(e,t.target.y);return`${n}% ${r}%`}},aZ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ha.parse(e);if(i.length>5)return r;const o=ha.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class sZ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;TG(uZ),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()})),Vf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),a0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function b7(e){const[t,n]=UH(),r=b.useContext(t6);return Eo.jsx(sZ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(u6),isPresent:t,safeToRemove:n})}const uZ={borderRadius:{...Fl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fl,borderTopRightRadius:Fl,borderBottomLeftRadius:Fl,borderBottomRightRadius:Fl,boxShadow:aZ};function lZ(e,t,n){const r=In(e)?e:Mu(e);return r.start(R0("",r,t,n)),r.animation}function cZ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const dZ=(e,t)=>e.depth-t.depth;class fZ{constructor(){this.children=[],this.isDirty=!1}add(t){$0(this.children,t),this.isDirty=!0}remove(t){x0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dZ),this.isDirty=!1,this.children.forEach(t)}}function hZ(e,t){const n=Yi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(So(r),e(o-t))};return jt.read(r,!0),()=>So(r)}const $7=["TopLeft","TopRight","BottomLeft","BottomRight"],pZ=$7.length,Fw=e=>typeof e=="string"?parseFloat(e):e,kw=e=>typeof e=="number"||Ge.test(e);function mZ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,gZ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,yZ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<pZ;a++){const u=`border${$7[a]}Radius`;let c=Bw(t,u),d=Bw(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||kw(c)===kw(d)?(e[u]=Math.max(qt(Fw(c),Fw(d),r),0),(qi.test(d)||qi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function Bw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const gZ=x7(0,.5,L6),yZ=x7(.5,.95,Er);function x7(e,t,n){return r=>r<e?0:r>t?1:n(Ru(e,t,r))}function Iw(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){Iw(e.x,t.x),Iw(e.y,t.y)}function Lw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vw(e,t,n,r,i){return e-=t,e=Ch(e,1/n,r),i!==void 0&&(e=Ch(e,1/i,r)),e}function vZ(e,t=0,n=1,r=.5,i,o=e,a=e){if(qi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=Vw(e.min,t,n,u,i),e.max=Vw(e.max,t,n,u,i)}function Nw(e,t,[n,r,i],o,a){vZ(e,t[n],t[r],t[i],t.scale,o,a)}const bZ=["x","scaleX","originX"],$Z=["y","scaleY","originY"];function jw(e,t,n,r){Nw(e.x,t,bZ,n?n.x:void 0,r?r.x:void 0),Nw(e.y,t,$Z,n?n.y:void 0,r?r.y:void 0)}function Kw(e){return e.translate===0&&e.scale===1}function w7(e){return Kw(e.x)&&Kw(e.y)}function Uw(e,t){return e.min===t.min&&e.max===t.max}function xZ(e,t){return Uw(e.x,t.x)&&Uw(e.y,t.y)}function zw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function D7(e,t){return zw(e.x,t.x)&&zw(e.y,t.y)}function Ww(e){return kr(e.x)/kr(e.y)}function Hw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wZ{constructor(){this.members=[]}add(t){$0(this.members,t),t.scheduleRender()}remove(t){if(x0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function DZ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const La={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ql=typeof window<"u"&&window.MotionDebug!==void 0,Lg=["","X","Y","Z"],EZ={visibility:"hidden"},Gw=1e3;let CZ=0;function Vg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function E7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=R6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&E7(r)}function C7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=CZ++,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,ql&&(La.totalNodes=La.resolvedTargetDeltas=La.recalculatedProjection=0),this.nodes.forEach(AZ),this.nodes.forEach(MZ),this.nodes.forEach(FZ),this.nodes.forEach(PZ),ql&&window.MotionDebug.record(La)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new fZ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new w0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=cZ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=hZ(m,250),Vf.hasAnimatedSinceResize&&(Vf.hasAnimatedSinceResize=!1,this.nodes.forEach(Yw))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||VZ,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!D7(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...g0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||Yw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,So(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(kZ),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&&E7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qw);return}this.isUpdating||this.nodes.forEach(RZ),this.isUpdating=!1,this.nodes.forEach(OZ),this.nodes.forEach(SZ),this.nodes.forEach(TZ),this.clearAllSnapshots();const u=Yi.now();Bn.delta=To(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,_g.update.process(Bn),_g.preRender.process(Bn),_g.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,a0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_Z),this.sharedNodes.forEach(BZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!w7(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ia(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),NZ(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(jZ))){const{scroll:f}=this.root;f&&(su(c.x,f.offset.x),su(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),su(c.x,h.offset.x),su(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&uu(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ia(f.latestValues)&&uu(c,f.latestValues)}return Ia(this.latestValues)&&uu(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ia(d.latestValues))continue;$v(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),jw(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ia(this.latestValues)&&jw(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(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(),zY(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),g7(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(),sc(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ql&&La.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$v(this.parent.latestValues)||m7(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;QY(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lw(this.prevProjectionDelta.x,this.projectionDelta.x),Lw(this.prevProjectionDelta.y,this.projectionDelta.y)),ac(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!Hw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),ql&&La.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=au(),this.projectionDelta=au(),this.projectionDeltaWithTransform=au()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.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=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(LZ));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;Zw(h.x,a.x,E),Zw(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),IZ(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&xZ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,mZ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(So(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{Vf.hasAnimatedSinceResize=!0,this.currentAnimation=lZ(0,Gw,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&S7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=kr(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=kr(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),uu(u,f),ac(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new wZ),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Vg("z",a,d,this.animationValues);for(let f=0;f<Lg.length;f++)Vg(`rotate${Lg[f]}`,a,d,this.animationValues),Vg(`skew${Lg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return EZ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=If(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=If(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ia(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=DZ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in $h){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=$h[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?If(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(qw),this.root.sharedNodes.clear()}}}function SZ(e){e.updateLayout()}function TZ(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}):S7(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();ac(u,r,n.layoutBox);const c=au();a?ac(c,e.applyTransform(i,!0),n.measuredBox):ac(c,r,n.layoutBox);const d=!w7(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();sc(v,n.layoutBox,m.layoutBox);const $=cn();sc($,r,g.layoutBox),D7(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function AZ(e){ql&&La.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 PZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _Z(e){e.clearSnapshot()}function qw(e){e.clearMeasurements()}function RZ(e){e.isLayoutDirty=!1}function OZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function MZ(e){e.resolveTargetDelta()}function FZ(e){e.calcProjection()}function kZ(e){e.resetSkewAndRotation()}function BZ(e){e.removeLeadSnapshot()}function Zw(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jw(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function IZ(e,t,n,r){Jw(e.x,t.x,n.x,r),Jw(e.y,t.y,n.y,r)}function LZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const VZ={duration:.45,ease:[.4,0,.1,1]},Xw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Qw=Xw("applewebkit/")&&!Xw("chrome/")?Math.round:Er;function eD(e){e.min=Qw(e.min),e.max=Qw(e.max)}function NZ(e){eD(e.x),eD(e.y)}function S7(e,t,n){return e==="position"||e==="preserve-aspect"&&!UY(Ww(t),Ww(n),.2)}function jZ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const KZ=C7({attachResizeListener:(e,t)=>Ec(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ng={current:void 0},T7=C7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ng.current){const e=new KZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Ng.current=e}return Ng.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),UZ={pan:{Feature:oZ},drag:{Feature:iZ,ProjectionNode:T7,MeasureLayout:b7}};function tD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Xc(t)))}let zZ=class extends va{mount(){const{current:t}=this.node;t&&(this.unmount=UG(t,n=>(tD(this.node,n,"Start"),r=>tD(this.node,r,"End"))))}unmount(){}},WZ=class extends va{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=Jc(Ec(this.node.current,"focus",()=>this.onFocus()),Ec(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function nD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Xc(t)))}let HZ=class extends va{mount(){const{current:t}=this.node;t&&(this.unmount=GG(t,n=>(nD(this.node,n,"Start"),(r,{success:i})=>nD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const wv=new WeakMap,jg=new WeakMap,GZ=e=>{const t=wv.get(e.target);t&&t(e)},qZ=e=>{e.forEach(GZ)};function YZ({root:e,...t}){const n=e||document;jg.has(n)||jg.set(n,{});const r=jg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(qZ,{root:e,...t})),r[i]}function ZZ(e,t,n){const r=YZ(t);return wv.set(e,n),r.observe(e),()=>{wv.delete(e),r.unobserve(e)}}const JZ={some:0,all:1};let XZ=class extends va{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:JZ[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return ZZ(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(QZ(t,n))&&this.startObserver()}unmount(){}};function QZ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const eJ={inView:{Feature:XZ},tap:{Feature:HZ},focus:{Feature:WZ},hover:{Feature:zZ}},tJ={layout:{ProjectionNode:T7,MeasureLayout:b7}},Dv={current:null},A7={current:!1};function nJ(){if(A7.current=!0,!!t0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dv.current=e.matches;e.addListener(t),t()}else Dv.current=!1}const rJ=[...X6,qn,ha],iJ=e=>rJ.find(J6(e)),rD=new WeakMap;function oJ(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"&&mp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,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 iD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let aJ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Yi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=vp(n),this.isVariantNode=a6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,rD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),A7.current||nJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dv.current,process.env.NODE_ENV!=="production"&&mp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){rD.delete(this.current),this.projection&&this.projection.unmount(),So(this.notifyUpdate),So(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in 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<iD.length;r++){const i=iD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=oJ(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"&&(Y6(i)||N6(i))?i=parseFloat(i):!iJ(i)&&ha.test(n)&&(i=H6(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=u0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new w0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},P7=class extends aJ{constructor(){super(...arguments),this.KeyframeResolver=Q6}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 sJ(e){return window.getComputedStyle(e)}let uJ=class extends P7{constructor(){super(...arguments),this.type="html",this.renderInstance=m6}readValueFromInstance(t,n){if(ys.has(n)){const r=T0(n);return r&&r.default||0}else{const r=sJ(t),i=(f6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return y7(t,n)}build(t,n,r){d0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return m0(t,n,r)}},lJ=class extends P7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=T0(n);return r&&r.default||0}return n=g6.has(n)?n:o0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return b6(t,n,r)}build(t,n,r){f0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){y6(t,n,r,i)}mount(t){this.isSVGTag=p0(t.tagName),super.mount(t)}};const cJ=(e,t)=>s0(e)?new lJ(t):new uJ(t,{allowProjection:e!==b.Fragment}),dJ=BG({...FY,...eJ,...UZ,...tJ},cJ),_7=JH(dJ);function R7(e){const t=qc(()=>Mu(e)),{isStatic:n}=b.useContext(e0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function O7(e,t){const n=R7(t()),r=()=>n.set(t());return r(),n6(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),So(r)}}),n}const fJ=e=>e&&typeof e=="object"&&e.mix,hJ=e=>fJ(e)?e.mix:void 0;function pJ(...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=a7(i,o,{mixer:hJ(o[0]),...a});return t?u(r):u}function mJ(e){rc.current=[],e();const t=O7(rc.current,e);return rc.current=void 0,t}function gJ(e,t,n,r){if(typeof e=="function")return mJ(e);const i=typeof t=="function"?t:pJ(t,n,r);return Array.isArray(e)?oD(e,i):oD([e],([o])=>i(o))}function oD(e,t){const n=qc(()=>[]);return O7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const M7=b.createContext(null);function yJ(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?ZG(e,i,i+o):e}function vJ({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=qc(()=>_7[t]),c=[],d=b.useRef(!1);Ji(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(xJ)},updateOrder:(h,m,g)=>{if(d.current)return;const v=yJ(c,h,m,g);c!==v&&(d.current=!0,r(v.map($J).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),Eo.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Eo.jsx(M7.Provider,{value:f,children:e})})}const bJ=b.forwardRef(vJ);function $J(e){return e.value}function xJ(e,t){return e.layout.min-t.layout.min}function aD(e,t=0){return In(e)?e:R7(t)}function wJ({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=qc(()=>_7[r]),d=b.useContext(M7),f={x:aD(t.x),y:aD(t.y)},h=gJ([f.x,f.y],([$,C])=>$||C?1:"unset");Ji(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return Eo.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const DJ=b.forwardRef(wJ),sD=new Set;function xp(e,t,n){e||sD.has(t)||(console.warn(t),sD.add(t))}function EJ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&xp(!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 wp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ev=e=>Array.isArray(e);function F7(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 Cc(e){return typeof e=="string"||Array.isArray(e)}function uD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function O0(e,t,n,r){if(typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Dp(e,t,n){const r=e.getProps();return O0(r,t,n!==void 0?n:r.custom,e)}const M0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],F0=["initial",...M0],Qc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(Qc),Do=e=>e*1e3,la=e=>e/1e3,CJ={type:"spring",stiffness:500,damping:25,restSpeed:10},SJ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TJ={type:"keyframes",duration:.8},AJ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PJ=(e,{keyframes:t})=>t.length>2?TJ:vs.has(e)?e.startsWith("scale")?SJ(t[1]):CJ:AJ;function k7(e,t){return e?e[t]||e.default||e:void 0}const _J={skipAnimations:!1,useManualTiming:!1},RJ=e=>e!==null;function Ep(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(RJ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const pa=e=>e;let Yu=pa,ds=pa;process.env.NODE_ENV!=="production"&&(Yu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},ds=(e,t)=>{if(!e)throw new Error(t)});function OJ(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const yf=["read","resolveKeyframes","update","preRender","render","postRender"],MJ=40;function B7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=yf.reduce((x,y)=>(x[y]=OJ(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,MJ),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:yf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<yf.length;y++)a[yf[y]].cancel(x)},state:i,steps:a}}const{schedule:Br,cancel:Cv,state:Sh,steps:hie}=B7(typeof requestAnimationFrame<"u"?requestAnimationFrame:pa,!0),I7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,FJ=1e-7,kJ=12;function BJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=I7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>FJ&&++u<kJ);return a}function ed(e,t,n,r){if(e===t&&n===r)return pa;const i=o=>BJ(o,0,1,e,n);return o=>o===0||o===1?o:I7(i(o),t,r)}const L7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,V7=e=>t=>1-e(1-t),N7=ed(.33,1.53,.69,.99),k0=V7(N7),j7=L7(k0),K7=e=>(e*=2)<1?.5*k0(e):.5*(2-Math.pow(2,-10*(e-1))),B0=e=>1-Math.sin(Math.acos(e)),IJ=V7(B0),U7=L7(B0),z7=e=>/^0[^.\s]+$/u.test(e);function LJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||z7(e):!0}const W7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),H7=e=>t=>typeof t=="string"&&t.startsWith(e),G7=H7("--"),VJ=H7("var(--"),I0=e=>VJ(e)?NJ.test(e.split("/*")[0].trim()):!1,NJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,jJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function KJ(e){const t=jJ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const UJ=4;function q7(e,t,n=1){ds(n<=UJ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=KJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return W7(a)?parseFloat(a):a}return I0(i)?q7(i,t,n+1):i}const fs=(e,t,n)=>n>t?t:n<e?e:n,Zu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sc={...Zu,transform:e=>fs(0,1,e)},vf={...Zu,default:1},td=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jo=td("deg"),yu=td("%"),Ze=td("px"),zJ=td("vh"),WJ=td("vw"),lD={...yu,parse:e=>yu.parse(e)/100,transform:e=>yu.transform(e*100)},HJ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cD=e=>e===Zu||e===Ze,dD=(e,t)=>parseFloat(e.split(", ")[t]),fD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return dD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?dD(o[1],e):0}},GJ=new Set(["x","y","z"]),qJ=Qc.filter(e=>!GJ.has(e));function YJ(e){const t=[];return qJ.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:fD(4,13),y:fD(5,14)};ku.translateX=ku.x;ku.translateY=ku.y;const Y7=e=>t=>t.test(e),ZJ={test:e=>e==="auto",parse:e=>e},Z7=[Zu,Ze,yu,Jo,WJ,zJ,ZJ],hD=e=>Z7.find(Y7(e)),es=new Set;let Sv=!1,Tv=!1;function J7(){if(Tv){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=YJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tv=!1,Sv=!1,es.forEach(e=>e.complete()),es.clear()}function X7(){es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tv=!0)})}function JJ(){X7(),J7()}class L0{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(es.add(this),Sv||(Sv=!0,Br.read(X7),Br.resolveKeyframes(J7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const uc=e=>Math.round(e*1e5)/1e5,V0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XJ(e){return e==null}const QJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,N0=(e,t)=>n=>!!(typeof n=="string"&&QJ.test(n)&&n.startsWith(e)||t&&!XJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),Q7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(V0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},eX=e=>fs(0,255,e),Kg={...Zu,transform:e=>Math.round(eX(e))},qa={test:N0("rgb","red"),parse:Q7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kg.transform(e)+", "+Kg.transform(t)+", "+Kg.transform(n)+", "+uc(Sc.transform(r))+")"};function tX(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Av={test:N0("#"),parse:tX,transform:qa.transform},lu={test:N0("hsl","hue"),parse:Q7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yu.transform(uc(t))+", "+yu.transform(uc(n))+", "+uc(Sc.transform(r))+")"},Yn={test:e=>qa.test(e)||Av.test(e)||lu.test(e),parse:e=>qa.test(e)?qa.parse(e):lu.test(e)?lu.parse(e):Av.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qa.transform(e):lu.transform(e)},nX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rX(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(V0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(nX))===null||n===void 0?void 0:n.length)||0)>0}const e_="number",t_="color",iX="var",oX="var(",pD="${}",aX=/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(aX,c=>(Yn.test(c)?(r.color.push(o),i.push(t_),n.push(Yn.parse(c))):c.startsWith(oX)?(r.var.push(o),i.push(iX),n.push(c)):(r.number.push(o),i.push(e_),n.push(parseFloat(c))),++o,pD)).split(pD);return{values:n,split:u,indexes:r,types:i}}function n_(e){return Tc(e).values}function r_(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===e_?o+=uc(i[a]):u===t_?o+=Yn.transform(i[a]):o+=i[a]}return o}}const sX=e=>typeof e=="number"?0:e;function uX(e){const t=n_(e);return r_(e)(t.map(sX))}const Ju={test:rX,parse:n_,createTransformer:r_,getAnimatableNone:uX},lX=new Set(["brightness","contrast","saturate","opacity"]);function cX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(V0)||[];if(!r)return e;const i=n.replace(r,"");let o=lX.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const dX=/\b([a-z-]*)\(.*?\)/gu,Pv={...Ju,getAnimatableNone:e=>{const t=e.match(dX);return t?t.map(cX).join(" "):e}},fX={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},hX={rotate:Jo,rotateX:Jo,rotateY:Jo,rotateZ:Jo,scale:vf,scaleX:vf,scaleY:vf,scaleZ:vf,skew:Jo,skewX:Jo,skewY:Jo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:Sc,originX:lD,originY:lD,originZ:Ze},mD={...Zu,transform:Math.round},j0={...fX,...hX,zIndex:mD,size:Ze,fillOpacity:Sc,strokeOpacity:Sc,numOctaves:mD},pX={...j0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Pv,WebkitFilter:Pv},K0=e=>pX[e];function i_(e,t){let n=K0(e);return n!==Pv&&(n=Ju),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const mX=new Set(["auto","none","0"]);function gX(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!mX.has(o)&&Tc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=i_(n,i)}class o_ extends L0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),I0(d))){const f=q7(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!HJ.has(r)||t.length!==2)return;const[i,o]=t,a=hD(i),u=hD(o);if(a!==u)if(cD(a)&&cD(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)LJ(t[i])&&r.push(i);r.length&&gX(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(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function U0(e){return typeof e=="function"}let Nf;function yX(){Nf=void 0}const ca={now:()=>(Nf===void 0&&ca.set(Sh.isProcessing||_J.useManualTiming?Sh.timestamp:performance.now()),Nf),set:e=>{Nf=e,queueMicrotask(yX)}},gD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ju.test(e)||e==="0")&&!e.startsWith("url("));function vX(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 bX(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=gD(i,t),u=gD(o,t);return Yu(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:vX(e)||(n==="spring"||U0(n))&&r}const $X=40;class a_{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=ca.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>$X?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&JJ(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ca.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!bX(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Ep(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const z0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},s_=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(z0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u_(e,t){return t?e*(1e3/t):0}const xX=5;function l_(e,t,n){const r=Math.max(t-xX,0);return u_(n-e(r),t-r)}const Xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yD=.001;function wX({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;Yu(e<=Do(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=fs(Xt.minDamping,Xt.maxDamping,a),e=fs(Xt.minDuration,Xt.maxDuration,la(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=_v(d,a),v=Math.exp(-h);return yD-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=_v(Math.pow(d,2),a);return(-i(d)+yD>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=EX(i,o,u);if(e=Do(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const DX=12;function EX(e,t,n){let r=n;for(let i=1;i<DX;i++)r=r-e(r)/t(r);return r}function _v(e,t){return e*Math.sqrt(1-t*t)}const Rv=2e4;function c_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rv;)t+=n,r=e.next(t);return t>=Rv?1/0:t}const CX=["duration","bounce"],SX=["stiffness","damping","mass"];function vD(e,t){return t.some(n=>e[n]!==void 0)}function TX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!vD(e,SX)&&vD(e,CX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*fs(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=wX(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function d_(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=TX({...n,velocity:-la(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=la(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=_v(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Do(v):l_(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(c_(P),Rv),T=s_(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function bD({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=d_({keyframes:[m.value,v(m.value)],velocity:l_(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const AX=ed(.42,0,1,1),PX=ed(0,0,.58,1),f_=ed(.42,0,.58,1),_X=e=>Array.isArray(e)&&typeof e[0]!="number",W0=e=>Array.isArray(e)&&typeof e[0]=="number",$D={linear:pa,easeIn:AX,easeInOut:f_,easeOut:PX,circIn:B0,circInOut:U7,circOut:IJ,backIn:k0,backInOut:j7,backOut:N7,anticipate:K7},xD=e=>{if(W0(e)){ds(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ed(t,n,r,i)}else if(typeof e=="string")return ds($D[e]!==void 0,`Invalid easing type '${e}'`),$D[e];return e},RX=(e,t)=>n=>t(e(n)),Cp=(...e)=>e.reduce(RX),Sp=(e,t,n)=>e+(t-e)*n;function Ug(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function OX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Ug(c,u,e+1/3),o=Ug(c,u,e),a=Ug(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Th(e,t){return n=>n>0?t:e}const zg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},MX=[Av,qa,lu],FX=e=>MX.find(t=>t.test(e));function wD(e){const t=FX(e);if(Yu(!!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=OX(n)),n}const DD=(e,t)=>{const n=wD(e),r=wD(t);if(!n||!r)return Th(e,t);const i={...n};return o=>(i.red=zg(n.red,r.red,o),i.green=zg(n.green,r.green,o),i.blue=zg(n.blue,r.blue,o),i.alpha=Sp(n.alpha,r.alpha,o),qa.transform(i))},Ov=new Set(["none","hidden"]);function kX(e,t){return Ov.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function BX(e,t){return n=>Sp(e,t,n)}function H0(e){return typeof e=="number"?BX:typeof e=="string"?I0(e)?Th:Yn.test(e)?DD:VX:Array.isArray(e)?h_:typeof e=="object"?Yn.test(e)?DD:IX:Th}function h_(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>H0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function IX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=H0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function LX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const VX=(e,t)=>{const n=Ju.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?Ov.has(e)&&!i.values.length||Ov.has(t)&&!r.values.length?kX(e,t):Cp(h_(LX(r,i),i.values),n):(Yu(!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 p_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Sp(e,t,n):H0(e)(e,t)}function NX(e,t,n){const r=[],i=n||p_,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||pa:t;u=Cp(c,u)}r.push(u)}return r}function jX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(ds(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=NX(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=z0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(fs(e[0],e[o-1],d)):c}function KX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=z0(0,t,r);e.push(Sp(n,1,i))}}function UX(e){const t=[0];return KX(t,e.length-1),t}function zX(e,t){return e.map(n=>n*t)}function WX(e,t){return e.map(()=>t||f_).splice(0,e.length-1)}function Ah({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_X(r)?r.map(xD):xD(r),o={done:!1,value:t[0]},a=zX(n&&n.length===t.length?n:UX(t),e),u=jX(a,t,{ease:Array.isArray(i)?i:WX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const HX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Br.update(t,!0),stop:()=>Cv(t),now:()=>Sh.isProcessing?Sh.timestamp:ca.now()}},GX={decay:bD,inertia:bD,tween:Ah,keyframes:Ah,spring:d_},qX=e=>e/100;class G0 extends a_{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||L0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,u=U0(n)?n:GX[n]||Ah;let c,d;u!==Ah&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&ds(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Cp(qX,p_(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=c_(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=fs(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Ep(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?la(t.calculatedDuration):0}get time(){return la(this.currentTime)}set time(t){t=Do(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=la(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=HX,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 YX=new Set(["opacity","clipPath","filter","transform"]);function q0(e){let t;return()=>(t===void 0&&(t=e()),t)}const ZX={linearEasing:void 0};function JX(e,t){const n=q0(e);return()=>{var r;return(r=ZX[t])!==null&&r!==void 0?r:n()}}const Ph=JX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function m_(e){return!!(typeof e=="function"&&Ph()||!e||typeof e=="string"&&(e in Mv||Ph())||W0(e)||Array.isArray(e)&&e.every(m_))}const Yl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn: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 g_(e,t){if(e)return typeof e=="function"&&Ph()?s_(e,t):W0(e)?Yl(e):Array.isArray(e)?e.map(n=>g_(n,t)||Mv.easeOut):Mv[e]}function XX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=g_(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function ED(e,t){e.timeline=t,e.onfinish=null}const QX=q0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_h=10,eQ=2e4;function tQ(e){return U0(e.type)||e.type==="spring"||!m_(e.ease)}function nQ(e,t){const n=new G0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<eQ;)r=n.sample(o),i.push(r.value),o+=_h;return{times:void 0,keyframes:i,duration:o-_h,ease:"linear"}}const y_={anticipate:K7,backInOut:j7,circInOut:U7};function rQ(e){return e in y_}class CD extends a_{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new o_(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Ph()&&rQ(a)&&(a=y_[a]),tQ(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=nQ(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=XX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(ED(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ep(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 la(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return la(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Do(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 pa;const{animation:r}=n;ED(r,t)}return pa}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new G0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Do(this.time);d.setWithVelocity(v.sample($-_h).value,v.sample($).value,_h)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:u}=t;return QX()&&r&&YX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const iQ=q0(()=>window.ScrollTimeline!==void 0);class oQ{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=>iQ()&&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 aQ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const sQ=(e,t,n,r={},i,o)=>a=>{const u=k7(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Do(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};aQ(u)||(f={...f,...PJ(e,f)}),f.duration&&(f.duration=Do(f.duration)),f.repeatDelay&&(f.repeatDelay=Do(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=Ep(f.keyframes,u);if(m!==void 0)return Br.update(()=>{f.onUpdate(m),f.onComplete()}),new oQ([])}return!o&&CD.supports(f)?new CD(f):new G0(f)},uQ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),lQ=e=>Ev(e)?e[e.length-1]||0:e;function cQ(e,t){e.indexOf(t)===-1&&e.push(t)}function dQ(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class v_{constructor(){this.subscriptions=[]}add(t){return cQ(this.subscriptions,t),()=>dQ(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const SD=30,fQ=e=>!isNaN(parseFloat(e));class hQ{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ca.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=ca.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=fQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&xp(!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 v_);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=ca.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>SD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,SD);return u_(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 Rh(e,t){return new hQ(e,t)}function pQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Rh(n))}function mQ(e,t){const n=Dp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=lQ(o[a]);pQ(e,a,u)}}const Y0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gQ="framerAppearId",b_="data-"+Y0(gQ);function yQ(e){return e.props[b_]}const ur=e=>!!(e&&e.getVelocity);function vQ(e){return!!(ur(e)&&e.add)}function bQ(e,t){const n=e.getValue("willChange");if(vQ(n))return n.add(t)}function $Q({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&$Q(f,h))continue;const v={delay:n,...k7(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=yQ(e);if(x){const y=window.MotionHandoffAnimation(x,h,Br);y!==null&&(v.startTime=y,$=!0)}}bQ(e,h),m.start(sQ(h,m,g,e.shouldReduceMotion&&vs.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Br.update(()=>{u&&mQ(e,u)})}),d}function Fv(e,t,n={}){var r;const i=Dp(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($_(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return xQ(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function xQ(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(wQ).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Fv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function wQ(e,t){return e.sortNodePosition(t)}function DQ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Fv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Fv(e,t,n);else{const i=typeof t=="function"?Dp(e,t,n.custom):t;r=Promise.all($_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const EQ=F0.length;function x_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?x_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<EQ;n++){const r=F0[n],i=e.props[r];(Cc(i)||i===!1)&&(t[r]=i)}return t}const CQ=[...M0].reverse(),SQ=M0.length;function TQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>DQ(e,n,r)))}function AQ(e){let t=TQ(e),n=TD(),r=!0;const i=c=>(d,f)=>{var h;const m=Dp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=x_(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<SQ;C++){const x=CQ[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=Cc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||wp(D)||typeof D=="boolean")continue;const k=PQ(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;Ev(M)&&Ev(Y)?V=!F7(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=TD(),r=!0}}}function PQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!F7(t,e):!1}function Ba(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TD(){return{animate:Ba(!0),whileInView:Ba(),whileHover:Ba(),whileTap:Ba(),whileDrag:Ba(),whileFocus:Ba(),exit:Ba()}}class Xu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class _Q extends Xu{constructor(t){super(t),t.animationState||(t.animationState=AQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wp(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 RQ=0;class OQ extends Xu{constructor(){super(...arguments),this.id=RQ++}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 MQ={animation:{Feature:_Q},exit:{Feature:OQ}},FQ={x:!1,y:!1};function kQ(){return FQ.y}const BQ=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function w_(e){return{point:{x:e.pageX,y:e.pageY}}}function AD(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function D_(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const PD=()=>({min:0,max:0}),E_=()=>({x:PD(),y:PD()});function IQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function LQ(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 VQ(e,t){return IQ(LQ(e.getBoundingClientRect(),t))}const C_=b.createContext(null),NQ=b.createContext({}),jQ=b.createContext({}),KQ={},{schedule:UQ,cancel:pie}=B7(queueMicrotask,!1);function zQ(e){const t=ur(e)?e.get():e;return uQ(t)?t.toValue():t}function WQ(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 S_(e,t){const n=WQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _D(e){return t=>{t.pointerType==="touch"||kQ()||e(t)}}function HQ(e,t,n={}){const[r,i,o]=S_(e,n),a=_D(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=_D(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function RD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Br.postRender(()=>o(t,w_(t)))}class GQ extends Xu{mount(){const{current:t}=this.node;t&&(this.unmount=HQ(t,n=>(RD(this.node,n,"Start"),r=>RD(this.node,r,"End"))))}unmount(){}}class qQ extends Xu{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=Cp(AD(this.node.current,"focus",()=>this.onFocus()),AD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zl=new WeakSet;function OD(e){return t=>{t.key==="Enter"&&e(t)}}function Wg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const YQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=OD(()=>{if(Zl.has(n))return;Wg(n,"down");const i=OD(()=>{Wg(n,"up")}),o=()=>Wg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},ZQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function JQ(e){return ZQ.has(e.tagName)||e.tabIndex!==-1}const T_=(e,t)=>t?e===t?!0:T_(e,t.parentElement):!1;function MD(e){return BQ(e)&&!0}function XQ(e,t,n={}){const[r,i,o]=S_(e,n),a=u=>{const c=u.currentTarget;if(!MD(u)||Zl.has(c))return;Zl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!MD(g)||!Zl.has(c))&&(Zl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||T_(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{JQ(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>YQ(d,i),i)}),o}function FD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Br.postRender(()=>o(t,w_(t)))}class QQ extends Xu{mount(){const{current:t}=this.node;t&&(this.unmount=XQ(t,n=>(FD(this.node,n,"Start"),(r,{success:i})=>FD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const kv=new WeakMap,Hg=new WeakMap,eee=e=>{const t=kv.get(e.target);t&&t(e)},tee=e=>{e.forEach(eee)};function nee({root:e,...t}){const n=e||document;Hg.has(n)||Hg.set(n,{});const r=Hg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(tee,{root:e,...t})),r[i]}function ree(e,t,n){const r=nee(t);return kv.set(e,n),r.observe(e),()=>{kv.delete(e),r.unobserve(e)}}const iee={some:0,all:1};class oee extends Xu{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:iee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return ree(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(aee(t,n))&&this.startObserver()}unmount(){}}function aee({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const see={inView:{Feature:oee},tap:{Feature:QQ},focus:{Feature:qQ},hover:{Feature:GQ}},A_=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Tp=b.createContext({}),Z0=typeof window<"u",uee=Z0?b.useLayoutEffect:b.useEffect,J0=b.createContext({strict:!1});function lee(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Tp),c=b.useContext(J0),d=b.useContext(C_),f=b.useContext(A_).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(jQ);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&cee(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[b_],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return uee(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),UQ.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function cee(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:P_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&D_(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function P_(e){if(e)return e.options.allowProjection!==!1?e.projection:P_(e.parent)}function dee(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):D_(n)&&(n.current=r))},[t])}function Ap(e){return wp(e.animate)||F0.some(t=>Cc(e[t]))}function __(e){return!!(Ap(e)||e.variants)}function fee(e,t){if(Ap(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cc(n)?n:void 0,animate:Cc(r)?r:void 0}}return e.inherit!==!1?t:{}}function hee(e){const{initial:t,animate:n}=fee(e,b.useContext(Tp));return b.useMemo(()=>({initial:t,animate:n}),[kD(t),kD(n)])}function kD(e){return Array.isArray(e)?e.join(" "):e}const BD={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bu={};for(const e in BD)Bu[e]={isEnabled:t=>BD[e].some(n=>!!t[n])};function Bv(e){for(const t in e)Bu[t]={...Bu[t],...e[t]}}const pee=Symbol.for("motionComponentSymbol");function mee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Bv(e);function o(u,c){let d;const f={...b.useContext(A_),...u,layoutId:gee(u)},{isStatic:h}=f,m=hee(u),g=r(u,h);if(!h&&Z0){yee(f,e);const v=vee(f);d=v.MeasureLayout,m.visualElement=lee(i,g,f,t,v.ProjectionNode)}return Eo.jsxs(Tp.Provider,{value:m,children:[d&&m.visualElement?Eo.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,dee(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[pee]=i,a}function gee({layoutId:e}){const t=b.useContext(NQ).id;return t&&e!==void 0?t+"-"+e:e}function yee(e,t){const n=b.useContext(J0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Yu(!1,r):ds(!1,r)}}function vee(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 bee=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function X0(e){return typeof e!="string"||e.includes("-")?!1:!!(bee.indexOf(e)>-1||/[A-Z]/u.test(e))}function R_(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 O_=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 M_(e,t,n,r){R_(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(O_.has(i)?i:Y0(i),t.attrs[i])}function F_(e,{layout:t,layoutId:n}){return vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!KQ[e]||e==="opacity")}function Q0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||F_(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 k_(e,t,n){const r=Q0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Qc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function $ee(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function xee({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:wee(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const B_=e=>(t,n)=>{const r=b.useContext(Tp),i=b.useContext(C_),o=()=>xee(e,t,r,i);return n?o():$ee(o)};function wee(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=zQ(o[m]);let{initial:a,animate:u}=e;const c=Ap(e),d=__(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!wp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=O0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const e1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),I_=()=>({...e1(),attrs:{}}),L_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Dee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Eee=Qc.length;function Cee(e,t,n){let r="",i=!0;for(let o=0;o<Eee;o++){const a=Qc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=L_(u,j0[a]);if(!c){i=!1;const f=Dee[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function t1(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(vs.has(c)){a=!0;continue}else if(G7(c)){i[c]=d;continue}else{const f=L_(d,j0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=Cee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function ID(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function See(e,t,n){const r=ID(t,e.x,e.width),i=ID(n,e.y,e.height);return`${r} ${i}`}const Tee={offset:"stroke-dashoffset",array:"stroke-dasharray"},Aee={offset:"strokeDashoffset",array:"strokeDasharray"};function Pee(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Tee:Aee;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function n1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(t1(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=See(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&Pee(m,a,u,c,!1)}const r1=e=>typeof e=="string"&&e.toLowerCase()==="svg",_ee={useVisualState:B_({scrapeMotionValuesFromProps:k_,createRenderState:I_,onMount:(e,t,{renderState:n,latestValues:r})=>{Br.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Br.render(()=>{n1(n,r,r1(t.tagName),e.transformTemplate),M_(t,n)})}})},Ree={useVisualState:B_({scrapeMotionValuesFromProps:Q0,createRenderState:e1})};function V_(e,t,n){for(const r in t)!ur(t[r])&&!F_(r,n)&&(e[r]=t[r])}function Oee({transformTemplate:e},t){return b.useMemo(()=>{const n=e1();return t1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Mee(e,t){const n=e.style||{},r={};return V_(r,n,e),Object.assign(r,Oee(e,t)),r}function Fee(e,t){const n={},r=Mee(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 kee=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 Oh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kee.has(e)}let N_=e=>!Oh(e);function Bee(e){e&&(N_=t=>t.startsWith("on")?!Oh(t):e(t))}try{Bee(require("@emotion/is-prop-valid").default)}catch{}function Iee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(N_(i)||n===!0&&Oh(i)||!t&&!Oh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Lee(e,t,n,r){const i=b.useMemo(()=>{const o=I_();return n1(o,t,r1(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};V_(o,e.style,e),i.style={...o,...i.style}}return i}function Vee(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(X0(n)?Lee:Fee)(r,o,a,n),d=Iee(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function Nee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...X0(r)?_ee:Ree,preloadedFeatures:e,useRender:Vee(i),createVisualElement:t,Component:r};return mee(a)}}const Iv={current:null},j_={current:!1};function jee(){if(j_.current=!0,!!Z0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}function Kee(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"&&xp(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,Rh(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,Rh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const LD=new WeakMap,Uee=[...Z7,Yn,Ju],zee=e=>Uee.find(Y7(e)),VD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Wee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=L0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=ca.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Br.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Ap(n),this.isVariantNode=__(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,LD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),j_.current||jee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&xp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){LD.delete(this.current),this.projection&&this.projection.unmount(),Cv(this.notifyUpdate),Cv(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vs.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):E_()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<VD.length;r++){const i=VD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Kee(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=Rh(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"&&(W7(i)||z7(i))?i=parseFloat(i):!zee(i)&&Ju.test(n)&&(i=i_(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=O0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new v_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class K_ extends Wee{constructor(){super(...arguments),this.KeyframeResolver=o_}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 Hee(e){return window.getComputedStyle(e)}class Gee extends K_{constructor(){super(...arguments),this.type="html",this.renderInstance=R_}readValueFromInstance(t,n){if(vs.has(n)){const r=K0(n);return r&&r.default||0}else{const r=Hee(t),i=(G7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return VQ(t,n)}build(t,n,r){t1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Q0(t,n,r)}}class qee extends K_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E_}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vs.has(n)){const r=K0(n);return r&&r.default||0}return n=O_.has(n)?n:Y0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return k_(t,n,r)}build(t,n,r){n1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){M_(t,n,r,i)}mount(t){this.isSVGTag=r1(t.tagName),super.mount(t)}}const Yee=(e,t)=>X0(e)?new qee(t):new Gee(t,{allowProjection:e!==b.Fragment}),Zee=Nee(),Jee=EJ(Zee);function Xee({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!Gg(t)),i=b.useRef(void 0);if(!Gg(t)){const{renderer:o,...a}=t;i.current=o,Bv(a)}return b.useEffect(()=>{Gg(t)&&t().then(({renderer:o,...a})=>{Bv(a),i.current=o,r(!0)})},[]),Eo.jsx(J0.Provider,{value:{renderer:i.current,strict:n},children:e})}function Gg(e){return typeof e=="function"}const Qee={renderer:Yee,...MQ,...see};function U_(e){return t=>typeof t===e}var ete=U_("function"),tte=e=>e===null,ND=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",jD=e=>!nte(e)&&!tte(e)&&(ete(e)||typeof e=="object"),nte=U_("undefined");function rte(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 ite(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 ote(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 ate(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function lr(e,t){if(e===t)return!0;if(e&&jD(e)&&t&&jD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return rte(e,t);if(e instanceof Map&&t instanceof Map)return ote(e,t);if(e instanceof Set&&t instanceof Set)return ate(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return ite(e,t);if(ND(e)&&ND(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ste=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ute=["bigint","boolean","null","number","string","symbol","undefined"];function Pp(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(lte(t))return t}function Si(e){return t=>Pp(t)===e}function lte(e){return ste.includes(e)}function Qu(e){return t=>typeof t===e}function cte(e){return ute.includes(e)}var dte=["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=Pp(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=>Pp(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Qu("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)&&dte.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=Qu("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=>Qu("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(Pp(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||cte(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=Qu("string");Oe.symbol=Qu("symbol");Oe.undefined=Qu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function fte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function hte(e,t,n){return z_(e,t)?[e,t].every(ke.array)?!e.some(HD(n))&&t.some(HD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(WD(n))&&Object.entries(t).some(WD(n)):t===n:!1}function KD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=Ui(e,i),c=Ui(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function UD(e,t,n){const{key:r,type:i,value:o}=n,a=Ui(e,r),u=Ui(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return hte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(i1(c)):[a,u].every(ke.plainObject)?pte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function zD(e,t,{key:n}={}){let r=Ui(e,n),i=Ui(t,n);if(!z_(r,i))throw new TypeError("Inputs have different types");if(!fte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function WD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&i1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function pte(e,t){return t.some(n=>!e.includes(n))}function HD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&i1(t)(n)):lr(e,t)}function kl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function i1(e){return t=>e.some(n=>lr(n,t))}function z_(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ui(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 Mh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return UD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=Ui(e,f),v=Ui(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?kl(m,g):!kl(h,g),y=kl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=Ui(e,f),v=Ui(t,f),$=ke.defined(m);return kl(h,g)&&($?kl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=zD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=zD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return UD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,GD;function mte(){if(GD)return qg;GD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var gte=mte();const yte=Ao(gte);var jf={exports:{}},vte=jf.exports,qD;function bte(){return qD||(qD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(vte,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})}(jf)),jf.exports}var $te=bte();const W_=Ao($te);var Yg,YD;function xte(){if(YD)return Yg;YD=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,Yg=n,Yg}var wte=xte();const ZD=Ao(wte);var Zg,JD;function Dte(){if(JD)return Zg;JD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Zg=C,Zg}var Ete=Dte();const bi=Ao(Ete);var bf={exports:{}},$f={exports:{}},Et={};/** @license React v16.13.1
|
|
156
|
+
* react-is.production.min.js
|
|
157
|
+
*
|
|
158
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the MIT license found in the
|
|
161
|
+
* LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/var XD;function Cte(){if(XD)return Et;XD=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function D(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case c:case d:case r:case o:case i:case h:return E;default:switch(E=E&&E.$$typeof,E){case u:case f:case v:case g:case a:return E;default:return T}}case n:return T}}}function P(E){return D(E)===d}return Et.AsyncMode=c,Et.ConcurrentMode=d,Et.ContextConsumer=u,Et.ContextProvider=a,Et.Element=t,Et.ForwardRef=f,Et.Fragment=r,Et.Lazy=v,Et.Memo=g,Et.Portal=n,Et.Profiler=o,Et.StrictMode=i,Et.Suspense=h,Et.isAsyncMode=function(E){return P(E)||D(E)===c},Et.isConcurrentMode=P,Et.isContextConsumer=function(E){return D(E)===u},Et.isContextProvider=function(E){return D(E)===a},Et.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Et.isForwardRef=function(E){return D(E)===f},Et.isFragment=function(E){return D(E)===r},Et.isLazy=function(E){return D(E)===v},Et.isMemo=function(E){return D(E)===g},Et.isPortal=function(E){return D(E)===n},Et.isProfiler=function(E){return D(E)===o},Et.isStrictMode=function(E){return D(E)===i},Et.isSuspense=function(E){return D(E)===h},Et.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===o||E===i||E===h||E===m||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===g||E.$$typeof===a||E.$$typeof===u||E.$$typeof===f||E.$$typeof===C||E.$$typeof===x||E.$$typeof===y||E.$$typeof===$)},Et.typeOf=D,Et}var Ct={};/** @license React v16.13.1
|
|
163
|
+
* react-is.development.js
|
|
164
|
+
*
|
|
165
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the MIT license found in the
|
|
168
|
+
* LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/var QD;function Ste(){return QD||(QD=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,$=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function D(le){return typeof le=="string"||typeof le=="function"||le===r||le===d||le===o||le===i||le===h||le===m||typeof le=="object"&&le!==null&&(le.$$typeof===v||le.$$typeof===g||le.$$typeof===a||le.$$typeof===u||le.$$typeof===f||le.$$typeof===C||le.$$typeof===x||le.$$typeof===y||le.$$typeof===$)}function P(le){if(typeof le=="object"&&le!==null){var Fe=le.$$typeof;switch(Fe){case t:var et=le.type;switch(et){case c:case d:case r:case o:case i:case h:return et;default:var dt=et&&et.$$typeof;switch(dt){case u:case f:case v:case g:case a:return dt;default:return Fe}}case n:return Fe}}}var E=c,T=d,k=u,S=a,U=t,O=f,F=r,G=v,K=g,W=n,j=o,L=i,_=h,M=!1;function Y(le){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(le)||P(le)===c}function V(le){return P(le)===d}function z(le){return P(le)===u}function re(le){return P(le)===a}function oe(le){return typeof le=="object"&&le!==null&&le.$$typeof===t}function fe(le){return P(le)===f}function ie(le){return P(le)===r}function Ee(le){return P(le)===v}function $e(le){return P(le)===g}function ne(le){return P(le)===n}function ye(le){return P(le)===o}function xe(le){return P(le)===i}function he(le){return P(le)===h}Ct.AsyncMode=E,Ct.ConcurrentMode=T,Ct.ContextConsumer=k,Ct.ContextProvider=S,Ct.Element=U,Ct.ForwardRef=O,Ct.Fragment=F,Ct.Lazy=G,Ct.Memo=K,Ct.Portal=W,Ct.Profiler=j,Ct.StrictMode=L,Ct.Suspense=_,Ct.isAsyncMode=Y,Ct.isConcurrentMode=V,Ct.isContextConsumer=z,Ct.isContextProvider=re,Ct.isElement=oe,Ct.isForwardRef=fe,Ct.isFragment=ie,Ct.isLazy=Ee,Ct.isMemo=$e,Ct.isPortal=ne,Ct.isProfiler=ye,Ct.isStrictMode=xe,Ct.isSuspense=he,Ct.isValidElementType=D,Ct.typeOf=P}()),Ct}var eE;function H_(){return eE||(eE=1,process.env.NODE_ENV==="production"?$f.exports=Cte():$f.exports=Ste()),$f.exports}/*
|
|
170
|
+
object-assign
|
|
171
|
+
(c) Sindre Sorhus
|
|
172
|
+
@license MIT
|
|
173
|
+
*/var Jg,tE;function Tte(){if(tE)return Jg;tE=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},u=0;u<10;u++)a["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Jg=i()?Object.assign:function(o,a){for(var u,c=r(o),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var h in u)t.call(u,h)&&(c[h]=u[h]);if(e){d=e(u);for(var m=0;m<d.length;m++)n.call(u,d[m])&&(c[d[m]]=u[d[m]])}}return c},Jg}var Xg,nE;function o1(){if(nE)return Xg;nE=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xg=e,Xg}var Qg,rE;function G_(){return rE||(rE=1,Qg=Function.call.bind(Object.prototype.hasOwnProperty)),Qg}var ey,iE;function Ate(){if(iE)return ey;iE=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=o1(),n={},r=G_();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,u,c,d){if(process.env.NODE_ENV!=="production"){for(var f in o)if(r(o,f)){var h;try{if(typeof o[f]!="function"){var m=Error((c||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=o[f](a,f,c,u,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+h.message+(g??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ey=i,ey}var ty,oE;function Pte(){if(oE)return ty;oE=1;var e=H_(),t=Tte(),n=o1(),r=G_(),i=Ate(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return ty=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(V){var z=V&&(d&&V[d]||V[f]);if(typeof z=="function")return z}var m="<<anonymous>>",g={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:y(),arrayOf:D,element:P(),elementType:E(),instanceOf:T,node:O(),objectOf:S,oneOf:k,oneOfType:U,shape:G,exact:K};function v(V,z){return V===z?V!==0||1/V===1/z:V!==V&&z!==z}function $(V,z){this.message=V,this.data=z&&typeof z=="object"?z:{},this.stack=""}$.prototype=Error.prototype;function C(V){if(process.env.NODE_ENV!=="production")var z={},re=0;function oe(ie,Ee,$e,ne,ye,xe,he){if(ne=ne||m,xe=xe||$e,he!==n){if(c){var le=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw le.name="Invariant Violation",le}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Fe=ne+":"+$e;!z[Fe]&&re<3&&(o("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ne+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),z[Fe]=!0,re++)}}return Ee[$e]==null?ie?Ee[$e]===null?new $("The "+ye+" `"+xe+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new $("The "+ye+" `"+xe+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:V(Ee,$e,ne,ye,xe)}var fe=oe.bind(null,!1);return fe.isRequired=oe.bind(null,!0),fe}function x(V){function z(re,oe,fe,ie,Ee,$e){var ne=re[oe],ye=L(ne);if(ye!==V){var xe=_(ne);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+xe+"` supplied to `"+fe+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return C(z)}function y(){return C(a)}function D(V){function z(re,oe,fe,ie,Ee){if(typeof V!="function")return new $("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var $e=re[oe];if(!Array.isArray($e)){var ne=L($e);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an array."))}for(var ye=0;ye<$e.length;ye++){var xe=V($e,ye,fe,ie,Ee+"["+ye+"]",n);if(xe instanceof Error)return xe}return null}return C(z)}function P(){function V(z,re,oe,fe,ie){var Ee=z[re];if(!u(Ee)){var $e=L(Ee);return new $("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return C(V)}function E(){function V(z,re,oe,fe,ie){var Ee=z[re];if(!e.isValidElementType(Ee)){var $e=L(Ee);return new $("Invalid "+fe+" `"+ie+"` of type "+("`"+$e+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return C(V)}function T(V){function z(re,oe,fe,ie,Ee){if(!(re[oe]instanceof V)){var $e=V.name||m,ne=Y(re[oe]);return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected ")+("instance of `"+$e+"`."))}return null}return C(z)}function k(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function z(re,oe,fe,ie,Ee){for(var $e=re[oe],ne=0;ne<V.length;ne++)if(v($e,V[ne]))return null;var ye=JSON.stringify(V,function(he,le){var Fe=_(le);return Fe==="symbol"?String(le):le});return new $("Invalid "+ie+" `"+Ee+"` of value `"+String($e)+"` "+("supplied to `"+fe+"`, expected one of "+ye+"."))}return C(z)}function S(V){function z(re,oe,fe,ie,Ee){if(typeof V!="function")return new $("Property `"+Ee+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type "+("`"+ne+"` supplied to `"+fe+"`, expected an object."));for(var ye in $e)if(r($e,ye)){var xe=V($e,ye,fe,ie,Ee+"."+ye,n);if(xe instanceof Error)return xe}return null}return C(z)}function U(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var z=0;z<V.length;z++){var re=V[z];if(typeof re!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(re)+" at index "+z+"."),a}function oe(fe,ie,Ee,$e,ne){for(var ye=[],xe=0;xe<V.length;xe++){var he=V[xe],le=he(fe,ie,Ee,$e,ne,n);if(le==null)return null;le.data&&r(le.data,"expectedType")&&ye.push(le.data.expectedType)}var Fe=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new $("Invalid "+$e+" `"+ne+"` supplied to "+("`"+Ee+"`"+Fe+"."))}return C(oe)}function O(){function V(z,re,oe,fe,ie){return W(z[re])?null:new $("Invalid "+fe+" `"+ie+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return C(V)}function F(V,z,re,oe,fe){return new $((V||"React class")+": "+z+" type `"+re+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function G(V){function z(re,oe,fe,ie,Ee){var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));for(var ye in V){var xe=V[ye];if(typeof xe!="function")return F(fe,ie,Ee,ye,_(xe));var he=xe($e,ye,fe,ie,Ee+"."+ye,n);if(he)return he}return null}return C(z)}function K(V){function z(re,oe,fe,ie,Ee){var $e=re[oe],ne=L($e);if(ne!=="object")return new $("Invalid "+ie+" `"+Ee+"` of type `"+ne+"` "+("supplied to `"+fe+"`, expected `object`."));var ye=t({},re[oe],V);for(var xe in ye){var he=V[xe];if(r(V,xe)&&typeof he!="function")return F(fe,ie,Ee,xe,_(he));if(!he)return new $("Invalid "+ie+" `"+Ee+"` key `"+xe+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(re[oe],null," ")+`
|
|
174
|
+
Valid keys: `+JSON.stringify(Object.keys(V),null," "));var le=he($e,xe,fe,ie,Ee+"."+xe,n);if(le)return le}return null}return C(z)}function W(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(W);if(V===null||u(V))return!0;var z=h(V);if(z){var re=z.call(V),oe;if(z!==V.entries){for(;!(oe=re.next()).done;)if(!W(oe.value))return!1}else for(;!(oe=re.next()).done;){var fe=oe.value;if(fe&&!W(fe[1]))return!1}}else return!1;return!0;default:return!1}}function j(V,z){return V==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function L(V){var z=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":j(z,V)?"symbol":z}function _(V){if(typeof V>"u"||V===null)return""+V;var z=L(V);if(z==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return z}function M(V){var z=_(V);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function Y(V){return!V.constructor||!V.constructor.name?m:V.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},ty}var ny,aE;function _te(){if(aE)return ny;aE=1;var e=o1();function t(){}function n(){}return n.resetWarningCache=t,ny=function(){function r(a,u,c,d,f,h){if(h!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},ny}var sE;function Rte(){if(sE)return bf.exports;if(sE=1,process.env.NODE_ENV!=="production"){var e=H_(),t=!0;bf.exports=Pte()(e.isElement,t)}else bf.exports=_te()();return bf.exports}var Ote=Rte();const Se=Ao(Ote);/**!
|
|
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 nd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Mte=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(nd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Fte(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function kte(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Mte))}}var Bte=nd&&window.Promise,Ite=Bte?Fte:kte;function q_(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function bs(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function a1(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function rd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=bs(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:rd(a1(e))}function Y_(e){return e&&e.referenceNode?e.referenceNode:e}var uE=nd&&!!(window.MSInputMethodContext&&document.documentMode),lE=nd&&/MSIE 10/.test(navigator.userAgent);function el(e){return e===11?uE:e===10?lE:uE||lE}function Iu(e){if(!e)return document.documentElement;for(var t=el(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&&bs(n,"position")==="static"?Iu(n):n}function Lte(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Iu(e.firstElementChild)===e}function Lv(e){return e.parentNode!==null?Lv(e.parentNode):e}function Fh(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 Lte(a)?a:Iu(a);var u=Lv(e);return u.host?Fh(u.host,t):Fh(e,Lv(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 Vte(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 cE(e,t){var n=t==="x"?"Left":"Top",r=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function dE(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],el(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function Z_(e){var t=e.body,n=e.documentElement,r=el(10)&&getComputedStyle(n);return{height:dE("Height",t,n,r),width:dE("Width",t,n,r)}}var Nte=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},jte=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 ma(e){return oi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Vv(e){var t={};try{if(el(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"?Z_(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,u=o.height||e.clientHeight||i.height,c=e.offsetWidth-a,d=e.offsetHeight-u;if(c||d){var f=bs(e);c-=cE(f,"x"),d-=cE(f,"y"),i.width-=c,i.height-=d}return ma(i)}function s1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=el(10),i=t.nodeName==="HTML",o=Vv(e),a=Vv(t),u=rd(e),c=bs(t),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=ma({top:o.top-a.top-d,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),g=parseFloat(c.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(r&&!n?t.contains(u):t===u&&u.nodeName!=="BODY")&&(h=Vte(h,t)),h}function Kte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=s1(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Lu(n),u=t?0:Lu(n,"left"),c={top:a-r.top+r.marginTop,left:u-r.left+r.marginLeft,width:i,height:o};return ma(c)}function J_(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(bs(e,"position")==="fixed")return!0;var n=a1(e);return n?J_(n):!1}function X_(e){if(!e||!e.parentElement||el())return document.documentElement;for(var t=e.parentElement;t&&bs(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function u1(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o={top:0,left:0},a=i?X_(e):Fh(e,Y_(t));if(r==="viewport")o=Kte(a,i);else{var u=void 0;r==="scrollParent"?(u=rd(a1(t)),u.nodeName==="BODY"&&(u=e.ownerDocument.documentElement)):r==="window"?u=e.ownerDocument.documentElement:u=r;var c=s1(u,a,i);if(u.nodeName==="HTML"&&!J_(a)){var d=Z_(e.ownerDocument),f=d.height,h=d.width;o.top+=c.top-c.marginTop,o.bottom=f+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}else o=c}n=n||0;var m=typeof n=="number";return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function Ute(e){var t=e.width,n=e.height;return t*n}function Q_(e,t,n,r,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var a=u1(n,r,o,i),u={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(u).map(function(m){return oi({key:m},u[m],{area:Ute(u[m])})}).sort(function(m,g){return g.area-m.area}),d=c.filter(function(m){var g=m.width,v=m.height;return g>=n.clientWidth&&v>=n.clientHeight}),f=d.length>0?d[0].key:c[0].key,h=e.split("-")[1];return f+(h?"-"+h:"")}function eR(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?X_(t):Fh(t,Y_(n));return s1(n,i,r)}function tR(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 kh(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 nR(e,t,n){n=n.split("-")[0];var r=tR(e),i={width:r.width,height:r.height},o=["right","left"].indexOf(n)!==-1,a=o?"top":"left",u=o?"left":"top",c=o?"height":"width",d=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,n===u?i[u]=t[u]-r[d]:i[u]=t[kh(u)],i}function id(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function zte(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=id(e,function(i){return i[t]===n});return e.indexOf(r)}function rR(e,t,n){var r=n===void 0?e:e.slice(0,zte(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&&q_(o)&&(t.offsets.popper=ma(t.offsets.popper),t.offsets.reference=ma(t.offsets.reference),t=o(t,i))}),t}function Wte(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=eR(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Q_(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=nR(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=rR(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function iR(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function l1(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(typeof document.body.style[o]<"u")return o}return null}function Hte(){return this.state.isDestroyed=!0,iR(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[l1("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function oR(e){var t=e.ownerDocument;return t?t.defaultView:window}function aR(e,t,n,r){var i=e.nodeName==="BODY",o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||aR(rd(o.parentNode),t,n,r),r.push(o)}function Gte(e,t,n,r){n.updateBound=r,oR(e).addEventListener("resize",n.updateBound,{passive:!0});var i=rd(e);return aR(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function qte(){this.state.eventsEnabled||(this.state=Gte(this.reference,this.options,this.state,this.scheduleUpdate))}function Yte(e,t){return oR(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 Zte(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Yte(this.reference,this.state))}function c1(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Nv(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&c1(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Jte(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Xte(e){return Nv(e.instance.popper,e.styles),Jte(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Nv(e.arrowElement,e.arrowStyles),e}function Qte(e,t,n,r,i){var o=eR(i,t,e,n.positionFixed),a=Q_(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),Nv(t,{position:n.positionFixed?"fixed":"absolute"}),n}function ene(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,u=function(x){return x},c=o(i.width),d=o(r.width),f=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,m=c%2===d%2,g=c%2===1&&d%2===1,v=t?f||h||m?o:a:u,$=t?o:u;return{left:v(g&&!h&&t?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:v(r.right)}}var tne=nd&&/Firefox/i.test(navigator.userAgent);function nne(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=id(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),c=Vv(u),d={position:i.position},f=ene(e,window.devicePixelRatio<2||!tne),h=n==="bottom"?"top":"bottom",m=r==="right"?"left":"right",g=l1("transform"),v=void 0,$=void 0;if(h==="bottom"?u.nodeName==="HTML"?$=-u.clientHeight+f.bottom:$=-c.height+f.bottom:$=f.top,m==="right"?u.nodeName==="HTML"?v=-u.clientWidth+f.right:v=-c.width+f.right:v=f.left,a&&g)d[g]="translate3d("+v+"px, "+$+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var C=h==="bottom"?-1:1,x=m==="right"?-1:1;d[h]=$*C,d[m]=v*x,d.willChange=h+", "+m}var y={"x-placement":e.placement};return e.attributes=oi({},y,e.attributes),e.styles=oi({},d,e.styles),e.arrowStyles=oi({},e.offsets.arrow,e.arrowStyles),e}function sR(e,t,n){var r=id(e,function(u){var c=u.name;return c===t}),i=!!r&&e.some(function(u){return u.name===n&&u.enabled&&u.order<r.order});if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function rne(e,t){var n;if(!sR(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if(typeof r=="string"){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,u=o.reference,c=["left","right"].indexOf(i)!==-1,d=c?"height":"width",f=c?"Top":"Left",h=f.toLowerCase(),m=c?"left":"top",g=c?"bottom":"right",v=tR(r)[d];u[g]-v<a[h]&&(e.offsets.popper[h]-=a[h]-(u[g]-v)),u[h]+v>a[g]&&(e.offsets.popper[h]+=u[h]+v-a[g]),e.offsets.popper=ma(e.offsets.popper);var $=u[h]+u[d]/2-v/2,C=bs(e.instance.popper),x=parseFloat(C["margin"+f]),y=parseFloat(C["border"+f+"Width"]),D=$-e.offsets.popper[h]-x-y;return D=Math.max(Math.min(a[d]-v,D),0),e.arrowElement=r,e.offsets.arrow=(n={},Vu(n,h,Math.round(D)),Vu(n,m,""),n),e}function ine(e){return e==="end"?"start":e==="start"?"end":e}var uR=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ry=uR.slice(3);function fE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ry.indexOf(e),r=ry.slice(n+1).concat(ry.slice(0,n));return t?r.reverse():r}var iy={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function one(e,t){if(iR(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=u1(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=kh(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case iy.FLIP:a=[r,i];break;case iy.CLOCKWISE:a=fE(r);break;case iy.COUNTERCLOCKWISE:a=fE(r,!0);break;default:a=t.behavior}return a.forEach(function(u,c){if(r!==u||a.length===c+1)return e;r=e.placement.split("-")[0],i=kh(r);var d=e.offsets.popper,f=e.offsets.reference,h=Math.floor,m=r==="left"&&h(d.right)>h(f.left)||r==="right"&&h(d.left)<h(f.right)||r==="top"&&h(d.bottom)>h(f.top)||r==="bottom"&&h(d.top)<h(f.bottom),g=h(d.left)<h(n.left),v=h(d.right)>h(n.right),$=h(d.top)<h(n.top),C=h(d.bottom)>h(n.bottom),x=r==="left"&&g||r==="right"&&v||r==="top"&&$||r==="bottom"&&C,y=["top","bottom"].indexOf(r)!==-1,D=!!t.flipVariations&&(y&&o==="start"&&g||y&&o==="end"&&v||!y&&o==="start"&&$||!y&&o==="end"&&C),P=!!t.flipVariationsByContent&&(y&&o==="start"&&v||y&&o==="end"&&g||!y&&o==="start"&&C||!y&&o==="end"&&$),E=D||P;(m||x||E)&&(e.flipped=!0,(m||x)&&(r=a[c+1]),E&&(o=ine(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=oi({},e.offsets.popper,nR(e.instance.popper,e.offsets.reference,e.placement)),e=rR(e.instance.modifiers,e,"flip"))}),e}function ane(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=["top","bottom"].indexOf(i)!==-1,u=a?"right":"bottom",c=a?"left":"top",d=a?"width":"height";return n[u]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[d]),n[c]>o(r[u])&&(e.offsets.popper[c]=o(r[u])),e}function sne(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(a.indexOf("%")===0){var u=void 0;switch(a){case"%p":u=n;break;case"%":case"%r":default:u=r}var c=ma(u);return c[t]/100*o}else if(a==="vh"||a==="vw"){var d=void 0;return a==="vh"?d=Math.max(document.documentElement.clientHeight,window.innerHeight||0):d=Math.max(document.documentElement.clientWidth,window.innerWidth||0),d/100*o}else return o}function une(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(id(a,function(f){return f.search(/,|\s/)!==-1}));a[u]&&a[u].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,d=u!==-1?[a.slice(0,u).concat([a[u].split(c)[0]]),[a[u].split(c)[1]].concat(a.slice(u+1))]:[a];return d=d.map(function(f,h){var m=(h===1?!o:o)?"height":"width",g=!1;return f.reduce(function(v,$){return v[v.length-1]===""&&["+","-"].indexOf($)!==-1?(v[v.length-1]=$,g=!0,v):g?(v[v.length-1]+=$,g=!1,v):v.concat($)},[]).map(function(v){return sne(v,m,t,n)})}),d.forEach(function(f,h){f.forEach(function(m,g){c1(m)&&(i[h]+=m*(f[g-1]==="-"?-1:1))})}),i}function lne(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,u=r.split("-")[0],c=void 0;return c1(+n)?c=[+n,0]:c=une(n,o,a,u),u==="left"?(o.top+=c[0],o.left-=c[1]):u==="right"?(o.top+=c[0],o.left+=c[1]):u==="top"?(o.left+=c[0],o.top-=c[1]):u==="bottom"&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e}function cne(e,t){var n=t.boundariesElement||Iu(e.instance.popper);e.instance.reference===n&&(n=Iu(n));var r=l1("transform"),i=e.instance.popper.style,o=i.top,a=i.left,u=i[r];i.top="",i.left="",i[r]="";var c=u1(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=u,t.boundaries=c;var d=t.priority,f=e.offsets.popper,h={primary:function(g){var v=f[g];return f[g]<c[g]&&!t.escapeWithReference&&(v=Math.max(f[g],c[g])),Vu({},g,v)},secondary:function(g){var v=g==="right"?"left":"top",$=f[v];return f[g]>c[g]&&!t.escapeWithReference&&($=Math.min(f[v],c[g]-(g==="right"?f.width:f.height))),Vu({},v,$)}};return d.forEach(function(m){var g=["left","top"].indexOf(m)!==-1?"primary":"secondary";f=oi({},f,h[g](m))}),e.offsets.popper=f,e}function dne(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,u=["bottom","top"].indexOf(n)!==-1,c=u?"left":"top",d=u?"width":"height",f={start:Vu({},c,o[c]),end:Vu({},c,o[c]+o[d]-a[d])};e.offsets.popper=oi({},a,f[r])}return e}function fne(e){if(!sR(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=id(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 hne(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=kh(t),e.offsets.popper=ma(i),e}var pne={shift:{order:100,enabled:!0,fn:dne},offset:{order:200,enabled:!0,fn:lne,offset:0},preventOverflow:{order:300,enabled:!0,fn:cne,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ane},arrow:{order:500,enabled:!0,fn:rne,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:one,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:hne},hide:{order:800,enabled:!0,fn:fne},computeStyle:{order:850,enabled:!0,fn:nne,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Xte,onLoad:Qte,gpuAcceleration:void 0}},mne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:pne},Ac=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Nte(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Ite(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&&q_(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 jte(e,[{key:"update",value:function(){return Wte.call(this)}},{key:"destroy",value:function(){return Hte.call(this)}},{key:"enableEventListeners",value:function(){return qte.call(this)}},{key:"disableEventListeners",value:function(){return Zte.call(this)}}]),e}();Ac.Utils=(typeof window<"u"?window:global).PopperUtils;Ac.placements=uR;Ac.Defaults=mne;var gne=["innerHTML","ownerDocument","style","attributes","nodeValue"],yne=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],vne=["bigint","boolean","null","number","string","symbol","undefined"];function _p(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(bne(t))return t}function Ti(e){return function(t){return _p(t)===e}}function bne(e){return yne.includes(e)}function tl(e){return function(t){return typeof t===e}}function $ne(e){return vne.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=_p(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 _p(e)==="AsyncGeneratorFunction"};ce.asyncFunction=Ti("AsyncFunction");ce.bigint=tl("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)&&gne.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=tl("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 tl("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(_p(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ce.primitive=function(e){return ce.null(e)||$ne(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=tl("string");ce.symbol=tl("symbol");ce.undefined=tl("undefined");ce.weakMap=Ti("WeakMap");ce.weakSet=Ti("WeakSet");function lR(e){return function(t){return typeof t===e}}var xne=lR("function"),wne=function(e){return e===null},hE=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},pE=function(e){return!Dne(e)&&!wne(e)&&(xne(e)||typeof e=="object")},Dne=lR("undefined"),jv=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Ene(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 Cne(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 Sne(e,t){var n,r,i,o;if(e.size!==t.size)return!1;try{for(var a=jv(e.entries()),u=a.next();!u.done;u=a.next()){var c=u.value;if(!t.has(c[0]))return!1}}catch(h){n={error:h}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var d=jv(e.entries()),f=d.next();!f.done;f=d.next()){var c=f.value;if(!Dr(c[1],t.get(c[0])))return!1}}catch(h){i={error:h}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}return!0}function Tne(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=jv(e.entries()),o=i.next();!o.done;o=i.next()){var a=o.value;if(!t.has(a[0]))return!1}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function Dr(e,t){if(e===t)return!0;if(e&&pE(e)&&t&&pE(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Ene(e,t);if(e instanceof Map&&t instanceof Map)return Sne(e,t);if(e instanceof Set&&t instanceof Set)return Tne(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Cne(e,t);if(hE(e)&&hE(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(var i=n.length;i--!==0;){var o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!Dr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function Ane(){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 Pne(e,t,n){return cR(e,t)?[e,t].every(ce.array)?!e.some(bE(n))&&t.some(bE(n)):[e,t].every(ce.plainObject)?!Object.entries(e).some(vE(n))&&Object.entries(t).some(vE(n)):t===n:!1}function mE(e,t,n){var r=n.actual,i=n.key,o=n.previous,a=n.type,u=zi(e,i),c=zi(t,i),d=[u,c].every(ce.number)&&(a==="increased"?u<c:u>c);return ce.undefined(r)||(d=d&&c===r),ce.undefined(o)||(d=d&&u===o),d}function gE(e,t,n){var r=n.key,i=n.type,o=n.value,a=zi(e,r),u=zi(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ce.nullOrUndefined(o)){if(ce.defined(c)){if(ce.array(c)||ce.plainObject(c))return Pne(c,d,o)}else return Dr(d,o);return!1}return[a,u].every(ce.array)?!d.every(d1(c)):[a,u].every(ce.plainObject)?_ne(Object.keys(c),Object.keys(d)):![a,u].every(function(f){return ce.primitive(f)&&ce.defined(f)})&&(i==="added"?!ce.defined(a)&&ce.defined(u):ce.defined(a)&&!ce.defined(u))}function yE(e,t,n){var r=n===void 0?{}:n,i=r.key,o=zi(e,i),a=zi(t,i);if(!cR(o,a))throw new TypeError("Inputs have different types");if(!Ane(o,a))throw new TypeError("Inputs don't have length");return[o,a].every(ce.plainObject)&&(o=Object.keys(o),a=Object.keys(a)),[o,a]}function vE(e){return function(t){var n=t[0],r=t[1];return ce.array(e)?Dr(e,r)||e.some(function(i){return Dr(i,r)||ce.array(r)&&d1(r)(i)}):ce.plainObject(e)&&e[n]?!!e[n]&&Dr(e[n],r):Dr(e,r)}}function _ne(e,t){return t.some(function(n){return!e.includes(n)})}function bE(e){return function(t){return ce.array(e)?e.some(function(n){return Dr(n,t)||ce.array(t)&&d1(t)(n)}):Dr(e,t)}}function Bl(e,t){return ce.array(e)?e.some(function(n){return Dr(n,t)}):Dr(e,t)}function d1(e){return function(t){return e.some(function(n){return Dr(n,t)})}}function cR(){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 zi(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 Rne(e,t){if([e,t].some(ce.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(h){return ce.plainObject(h)||ce.array(h)}))throw new Error("Expected plain objects or array");var n=function(h,m){try{return gE(e,t,{key:h,type:"added",value:m})}catch{return!1}},r=function(h,m,g){try{var v=zi(e,h),$=zi(t,h),C=ce.defined(m),x=ce.defined(g);if(C||x){var y=x?Bl(g,v):!Bl(m,v),D=Bl(m,$);return y&&D}return[v,$].every(ce.array)||[v,$].every(ce.plainObject)?!Dr(v,$):v!==$}catch{return!1}},i=function(h,m,g){if(!ce.defined(h))return!1;try{var v=zi(e,h),$=zi(t,h),C=ce.defined(g);return Bl(m,v)&&(C?Bl(g,$):!C)}catch{return!1}},o=function(h,m){return ce.defined(h)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(h,m)):!1},a=function(h,m,g){if(!ce.defined(h))return!1;try{return mE(e,t,{key:h,actual:m,previous:g,type:"decreased"})}catch{return!1}},u=function(h){try{var m=yE(e,t,{key:h}),g=m[0],v=m[1];return!!g.length&&!v.length}catch{return!1}},c=function(h){try{var m=yE(e,t,{key:h}),g=m[0],v=m[1];return!g.length&&!!v.length}catch{return!1}},d=function(h,m,g){if(!ce.defined(h))return!1;try{return mE(e,t,{key:h,actual:m,previous:g,type:"increased"})}catch{return!1}},f=function(h,m){try{return gE(e,t,{key:h,type:"removed",value:m})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:o,decreased:a,emptied:u,filled:c,increased:d,removed:f}}function $E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$E(Object(n),!0).forEach(function(r){Zn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$E(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function od(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function One(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,fR(r.key),r)}}function ad(e,t,n){return t&&One(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t,n){return t=fR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sd(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kv(e,t)}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function Mne(){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 Fne(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 dR(e,t){if(e==null)return{};var n=Fne(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 mo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kne(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 mo(e)}function ud(e){var t=Mne();return function(){var r=Bh(e),i;if(t){var o=Bh(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kne(this,i)}}function Bne(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 fR(e){var t=Bne(e,"string");return typeof t=="symbol"?t:String(t)}var Ine={flip:{padding:20},preventOverflow:{padding:10}},Lne="The typeValidator argument must be a function with the signature function(props, propName, componentName).",Vne="The error message is optional, but must be a string if provided.";function Nne(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function jne(e,t){return Object.hasOwnProperty.call(e,t)}function Kne(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function Une(e,t){if(typeof e!="function")throw new TypeError(Lne);if(t)throw new TypeError(Vne)}function xE(e,t,n){return Une(e,n),function(r,i,o){for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];return Nne(t,r,i,o)?jne(r,i)?e.apply(void 0,[r,i,o].concat(u)):Kne(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"},Il=aa.createPortal!==void 0;function Bi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function oy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function xf(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,o=e.debug,a=o===void 0?!1:o,u=i?console.warn||console.error:console.log;a&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(c){ce.plainObject(c)&&c.key?u.apply(console,[c.key,c.value]):u.apply(console,[c])}):u.apply(console,[n]),console.groupEnd())}function zne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function Wne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function Hne(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(a){n(a),Wne(e,t,i)},zne(e,t,i,r)}function wE(){}var hR=function(e){sd(n,e);var t=ud(n);function n(){return od(this,n),t.apply(this,arguments)}return ad(n,[{key:"componentDidMount",value:function(){Bi()&&(this.node||this.appendNode(),Il||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Bi()&&(Il||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Bi()||!this.node||(Il||aa.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(),Il)return aa.createPortal(o,this.node);var u=aa.unstable_renderSubtreeIntoContainer(this,o.length>1?b.createElement("div",null,o):o[0],this.node);return a(u),null}},{key:"renderReact16",value:function(){var i=this.props,o=i.hasChildren,a=i.placement,u=i.target;return o?this.renderPortal():u||a==="center"?this.renderPortal():null}},{key:"render",value:function(){return Il?this.renderReact16():null}}]),n}(b.Component);Zn(hR,"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 pR=function(e){sd(n,e);var t=ud(n);function n(){return od(this,n),t.apply(this,arguments)}return ad(n,[{key:"parentStyle",get:function(){var i=this.props,o=i.placement,a=i.styles,u=a.arrow.length,c={pointerEvents:"none",position:"absolute",width:"100%"};return o.startsWith("top")?(c.bottom=0,c.left=0,c.right=0,c.height=u):o.startsWith("bottom")?(c.left=0,c.right=0,c.top=0,c.height=u):o.startsWith("left")?(c.right=0,c.top=0,c.bottom=0):o.startsWith("right")&&(c.left=0,c.top=0),c}},{key:"render",value:function(){var i=this.props,o=i.placement,a=i.setArrowRef,u=i.styles,c=u.arrow,d=c.color,f=c.display,h=c.length,m=c.margin,g=c.position,v=c.spread,$={display:f,position:g},C,x=v,y=h;return o.startsWith("top")?(C="0,0 ".concat(x/2,",").concat(y," ").concat(x,",0"),$.bottom=0,$.marginLeft=m,$.marginRight=m):o.startsWith("bottom")?(C="".concat(x,",").concat(y," ").concat(x/2,",0 0,").concat(y),$.top=0,$.marginLeft=m,$.marginRight=m):o.startsWith("left")?(y=v,x=h,C="0,0 ".concat(x,",").concat(y/2," 0,").concat(y),$.right=0,$.marginTop=m,$.marginBottom=m):o.startsWith("right")&&(y=v,x=h,C="".concat(x,",").concat(y," ").concat(x,",0 0,").concat(y/2),$.left=0,$.marginTop=m,$.marginBottom=m),b.createElement("div",{className:"__floater__arrow",style:this.parentStyle},b.createElement("span",{ref:a,style:$},b.createElement("svg",{width:x,height:y,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},b.createElement("polygon",{points:C,fill:d}))))}}]),n}(b.Component);Zn(pR,"propTypes",{placement:Se.string.isRequired,setArrowRef:Se.func.isRequired,styles:Se.object.isRequired});var Gne=["color","height","width"];function mR(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,o=n.width,a=dR(n,Gne);return b.createElement("button",{"aria-label":"close",onClick:t,style:a,type:"button"},b.createElement("svg",{width:"".concat(o,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}mR.propTypes={handleClick:Se.func.isRequired,styles:Se.object.isRequired};function gR(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,o=e.positionWrapper,a=e.showCloseButton,u=e.title,c=e.styles,d={content:b.isValidElement(t)?t:b.createElement("div",{className:"__floater__content",style:c.content},t)};return u&&(d.title=b.isValidElement(u)?u:b.createElement("div",{className:"__floater__title",style:c.title},u)),n&&(d.footer=b.isValidElement(n)?n:b.createElement("div",{className:"__floater__footer",style:c.footer},n)),(a||o)&&!ce.boolean(i)&&(d.close=b.createElement(mR,{styles:c.close,handleClick:r})),b.createElement("div",{className:"__floater__container",style:c.container},d.close,d.title,d.content,d.footer)}gR.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 yR=function(e){sd(n,e);var t=ud(n);function n(){return od(this,n),t.apply(this,arguments)}return ad(n,[{key:"style",get:function(){var i=this.props,o=i.disableAnimation,a=i.component,u=i.placement,c=i.hideArrow,d=i.status,f=i.styles,h=f.arrow.length,m=f.floater,g=f.floaterCentered,v=f.floaterClosing,$=f.floaterOpening,C=f.floaterWithAnimation,x=f.floaterWithComponent,y={};return c||(u.startsWith("top")?y.padding="0 0 ".concat(h,"px"):u.startsWith("bottom")?y.padding="".concat(h,"px 0 0"):u.startsWith("left")?y.padding="0 ".concat(h,"px 0 0"):u.startsWith("right")&&(y.padding="0 0 0 ".concat(h,"px"))),[pt.OPENING,pt.OPEN].indexOf(d)!==-1&&(y=Gt(Gt({},y),$)),d===pt.CLOSING&&(y=Gt(Gt({},y),v)),d===pt.OPEN&&!o&&(y=Gt(Gt({},y),C)),u==="center"&&(y=Gt(Gt({},y),g)),a&&(y=Gt(Gt({},y),x)),Gt(Gt({},m),y)}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.handleClick,u=i.hideArrow,c=i.setFloaterRef,d=i.status,f={},h=["__floater"];return o?b.isValidElement(o)?f.content=b.cloneElement(o,{closeFn:a}):f.content=o({closeFn:a}):f.content=b.createElement(gR,this.props),d===pt.OPEN&&h.push("__floater__open"),u||(f.arrow=b.createElement(pR,this.props)),b.createElement("div",{ref:c,className:h.join(" "),style:this.style},b.createElement("div",{className:"__floater__body"},f.content,f.arrow))}}]),n}(b.Component);Zn(yR,"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 vR=function(e){sd(n,e);var t=ud(n);function n(){return od(this,n),t.apply(this,arguments)}return ad(n,[{key:"render",value:function(){var i=this.props,o=i.children,a=i.handleClick,u=i.handleMouseEnter,c=i.handleMouseLeave,d=i.setChildRef,f=i.setWrapperRef,h=i.style,m=i.styles,g;if(o)if(b.Children.count(o)===1)if(!b.isValidElement(o))g=b.createElement("span",null,o);else{var v=ce.function(o.type)?"innerRef":"ref";g=b.cloneElement(b.Children.only(o),Zn({},v,d))}else g=o;return g?b.createElement("span",{ref:f,style:Gt(Gt({},m),h),onClick:a,onMouseEnter:u,onMouseLeave:c},g):null}}]),n}(b.Component);Zn(vR,"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 qne={zIndex:100};function Yne(e){var t=bi(qne,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 Zne=["arrow","flip","offset"],Jne=["position","top","right","bottom","left"],f1=function(e){sd(n,e);var t=ud(n);function n(r){var i;return od(this,n),i=t.call(this,r),Zn(mo(i),"setArrowRef",function(o){i.arrowRef=o}),Zn(mo(i),"setChildRef",function(o){i.childRef=o}),Zn(mo(i),"setFloaterRef",function(o){i.floaterRef=o}),Zn(mo(i),"setWrapperRef",function(o){i.wrapperRef=o}),Zn(mo(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(mo(i),"handleClick",function(){var o=i.props,a=o.event,u=o.open;if(!ce.boolean(u)){var c=i.state,d=c.positionWrapper,f=c.status;(i.event==="click"||i.event==="hover"&&d)&&(xf({title:"click",data:[{event:a,status:f===pt.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Zn(mo(i),"handleMouseEnter",function(){var o=i.props,a=o.event,u=o.open;if(!(ce.boolean(u)||oy())){var c=i.state.status;i.event==="hover"&&c===pt.IDLE&&(xf({title:"mouseEnter",data:[{key:"originalEvent",value:a}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Zn(mo(i),"handleMouseLeave",function(){var o=i.props,a=o.event,u=o.eventDelay,c=o.open;if(!(ce.boolean(c)||oy())){var d=i.state,f=d.status,h=d.positionWrapper;i.event==="hover"&&(xf({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 ad(n,[{key:"componentDidMount",value:function(){if(Bi()){var i=this.state.positionWrapper,o=this.props,a=o.children,u=o.open,c=o.target;this._isMounted=!0,xf({title:"init",data:{hasChildren:!!a,hasTarget:!!c,isControlled:ce.boolean(u),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!a&&c&&ce.boolean(u)}}},{key:"componentDidUpdate",value:function(i,o){if(Bi()){var a=this.props,u=a.autoOpen,c=a.open,d=a.target,f=a.wrapperOptions,h=Rne(o,this.state),m=h.changedFrom,g=h.changed;if(i.open!==c){var v;ce.boolean(c)&&(v=c?pt.OPENING:pt.CLOSING),this.toggle(v)}(i.wrapperOptions.position!==f.position||i.target!==d)&&this.changeWrapperPosition(this.props),g("status",pt.IDLE)&&c?this.toggle(pt.OPEN):m("status",pt.INIT,pt.IDLE)&&u&&this.toggle(pt.OPEN),this.popper&&g("status",pt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(g("status",pt.OPENING)||g("status",pt.CLOSING))&&Hne(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,c=u.disableFlip,d=u.getPopper,f=u.hideArrow,h=u.offset,m=u.placement,g=u.wrapperOptions,v=m==="top"||m==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(m==="center")this.setState({status:pt.IDLE});else if(o&&this.floaterRef){var $=this.options,C=$.arrow,x=$.flip,y=$.offset,D=dR($,Zne);new Ac(o,this.floaterRef,{placement:m,modifiers:Gt({arrow:Gt({enabled:!f,element:this.arrowRef},C),flip:Gt({enabled:!c,behavior:v},x),offset:Gt({offset:"0, ".concat(h,"px")},y)},D),onCreate:function(T){var k;if(i.popper=T,!((k=i.floaterRef)!==null&&k!==void 0&&k.isConnected)){i.setState({needsUpdate:!0});return}d(T,"floater"),i._isMounted&&i.setState({currentPlacement:T.placement,status:pt.IDLE}),m!==T.placement&&setTimeout(function(){T.instance.update()},1)},onUpdate:function(T){i.popper=T;var k=i.state.currentPlacement;i._isMounted&&T.placement!==k&&i.setState({currentPlacement:T.placement})}})}if(a){var P=ce.undefined(g.offset)?0:g.offset;new Ac(this.target,this.wrapperRef,{placement:g.placement||m,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(P,"px")},flip:{enabled:!1}},onCreate:function(T){i.wrapperPopper=T,i._isMounted&&i.setState({statusWrapper:pt.IDLE}),d(T,"wrapper"),m!==T.placement&&setTimeout(function(){T.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var o;(o=i.floaterRef)!==null&&o!==void 0&&o.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var o=i.target,a=i.wrapperOptions;this.setState({positionWrapper:a.position&&!!o})}},{key:"toggle",value:function(i){var o=this.state.status,a=o===pt.OPEN?pt.CLOSING:pt.OPENING;ce.undefined(i)||(a=i),this.setState({status:a})}},{key:"debug",get:function(){var i=this.props.debug;return i||Bi()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,o=i.disableHoverToClick,a=i.event;return a==="hover"&&oy()&&!o?"click":a}},{key:"options",get:function(){var i=this.props.options;return bi(Ine,i||{})}},{key:"styles",get:function(){var i=this,o=this.state,a=o.status,u=o.positionWrapper,c=o.statusWrapper,d=this.props.styles,f=bi(Yne(d),d);if(u){var h;[pt.IDLE].indexOf(a)===-1||[pt.IDLE].indexOf(c)===-1?h=f.wrapperPosition:h=this.wrapperPopper.styles,f.wrapper=Gt(Gt({},f.wrapper),h)}if(this.target){var m=window.getComputedStyle(this.target);this.wrapperStyles?f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles):["relative","static"].indexOf(m.position)===-1&&(this.wrapperStyles={},u||(Jne.forEach(function(g){i.wrapperStyles[g]=m[g]}),f.wrapper=Gt(Gt({},f.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return f}},{key:"target",get:function(){if(!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,c=this.props,d=c.children,f=c.component,h=c.content,m=c.disableAnimation,g=c.footer,v=c.hideArrow,$=c.id,C=c.open,x=c.showCloseButton,y=c.style,D=c.target,P=c.title,E=b.createElement(vR,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:y,styles:this.styles.wrapper},d),T={};return a?T.wrapperInPortal=E:T.wrapperAsChildren=E,b.createElement("span",null,b.createElement(hR,{hasChildren:!!d,id:$,placement:o,setRef:this.setFloaterRef,target:D,zIndex:this.styles.options.zIndex},b.createElement(yR,{component:f,content:h,disableAnimation:m,footer:g,handleClick:this.handleClick,hideArrow:v||o==="center",open:C,placement:o,positionWrapper:a,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:x,status:u,styles:this.styles,title:P}),T.wrapperInPortal),T.wrapperAsChildren)}}]),n}(b.Component);Zn(f1,"propTypes",{autoOpen:Se.bool,callback:Se.func,children:Se.node,component:xE(Se.oneOfType([Se.func,Se.element]),function(e){return!e.content}),content:xE(Se.node,function(e){return!e.component}),debug:Se.bool,disableAnimation:Se.bool,disableFlip:Se.bool,disableHoverToClick:Se.bool,event:Se.oneOf(["hover","click"]),eventDelay:Se.number,footer:Se.node,getPopper:Se.func,hideArrow:Se.bool,id:Se.oneOfType([Se.string,Se.number]),offset:Se.number,open:Se.bool,options:Se.object,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Se.bool,style:Se.object,styles:Se.object,target:Se.oneOfType([Se.object,Se.string]),title:Se.node,wrapperOptions:Se.shape({offset:Se.number,placement:Se.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Se.bool})});Zn(f1,"defaultProps",{autoOpen:!1,callback:wE,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:wE,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Xne=Object.defineProperty,Qne=(e,t,n)=>t in e?Xne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t,n)=>Qne(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 ta(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function bR(e){return e?e.getBoundingClientRect():null}function ere(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 $o(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 tre(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Pc(e,t,n){if(!e)return Ya();const r=W_(e);if(r){if(r.isSameNode(Ya()))return n?document:Ya();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Ya()}return r}function ld(e,t){if(!e)return!1;const n=Pc(e,t);return n?!n.isSameNode(Ya()):!1}function nre(e){return e.offsetParent!==document.body}function Nu(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=tre(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?Nu(e.parentNode,t):!1}function rre(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 ire(e,t,n){var r,i,o;const a=bR(e),u=Pc(e,n),c=ld(e,n),d=Nu(e);let f=0,h=(r=a==null?void 0:a.top)!=null?r:0;if(c&&d){const m=(i=e==null?void 0:e.offsetTop)!=null?i:0,g=(o=u==null?void 0:u.scrollTop)!=null?o:0;h=m-g}else u instanceof HTMLElement&&(f=u.scrollTop,!c&&!Nu(e)&&(h+=f),u.isSameNode(Ya())||(h+=Ya().scrollTop));return Math.floor(h-t)}function ore(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:o=0}=(r=W_(e))!=null?r:{};let a=e.getBoundingClientRect().top+o;i&&(ld(e,n)||nre(e))&&(a-=i);const u=Math.floor(a-t);return u<0?0:u}function Ya(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function are(e,t){const{duration:n,element:r}=t;return new Promise((i,o)=>{const{scrollTop:a}=r,u=e>a?e-a:a-e;yte.top(r,e,{duration:u<100?50:n},c=>c&&c.message!=="Element already at target scroll position"?o(c):i())})}var Ll=aa.createPortal!==void 0;function $R(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 Kf(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=ZD(e);if(o)(o.includes("{step}")||o.includes("{steps}"))&&r&&i&&(o=o.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(b.isValidElement(e)&&!Object.values(e.props).length&&Kf(e.type)==="function"){const a=e.type({});o=Ii(a,t)}else o=ZD(n);return o}function sre(e,t){return!ke.plainObject(e)||!ke.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function ure(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,o,a,u)=>o+o+a+a+u+u),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(n);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function DE(e){return e.disableBeacon||e.placement==="center"}function EE(){return!["chrome","safari","firefox","opera"].includes($R())}function ga({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 lre(e){return Object.keys(e)}function xR(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 cre(e,...t){if(!ke.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}function Uv(e,t,n){const r=o=>o.replace("{step}",String(t)).replace("{steps}",String(n));if(Kf(e)==="string")return r(e);if(!b.isValidElement(e))return e;const{children:i}=e.props;if(Kf(i)==="string"&&i.includes("{step}"))return b.cloneElement(e,{children:r(i)});if(Array.isArray(i))return b.cloneElement(e,{children:i.map(o=>typeof o=="string"?r(o):Uv(o,t,n))});if(Kf(e.type)==="function"&&!Object.values(e.props).length){const o=e.type({});return Uv(o,t,n)}return e}function dre(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 fre={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},wR={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},hre={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:wR,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},pre={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:[]},mre={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},Vl={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},CE={borderRadius:4,position:"absolute"};function gre(e,t){var n,r,i,o,a;const{floaterProps:u,styles:c}=e,d=bi((n=t.floaterProps)!=null?n:{},u??{}),f=bi(c??{},(r=t.styles)!=null?r:{}),h=bi(mre,f.options||{}),m=t.placement==="center"||t.disableBeacon;let{width:g}=h;window.innerWidth>480&&(g=380),"width"in h&&(g=typeof h.width=="number"&&window.innerWidth<h.width?window.innerWidth-30:h.width);const v={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:h.zIndex},$={beacon:{...Vl,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(${ure(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:{...Vl,backgroundColor:h.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Vl,color:h.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Vl,color:h.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Vl,color:h.textColor,fontSize:14},overlay:{...v,backgroundColor:h.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...v},overlayLegacyCenter:{...v,backgroundColor:h.overlayColor},spotlight:{...CE,backgroundColor:"gray"},spotlightLegacy:{...CE,boxShadow:`0 0 0 9999px ${h.overlayColor}, ${h.spotlightShadow}`},floaterStyles:{arrow:{color:(a=(o=(i=d==null?void 0:d.styles)==null?void 0:i.arrow)==null?void 0:o.color)!=null?a:h.arrowColor},options:{zIndex:h.zIndex+100}},options:h};return bi($,f)}function yre(e){return cre(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 c=t??{},d=bi.all([hre,yre(e),c],{isMergeableObject:ke.plainObject}),f=gre(e,d),h=ld($o(d.target),d.disableScrollParentFix),m=bi.all([fre,(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([wR,(u=e.locale)!=null?u:{},d.locale||{}]),floaterProps:m,styles:xR(f,"floaterStyles")}}function DR(e,t=!1){return ke.plainObject(e)?e.target?!0:(ga({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ga({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function SE(e,t=!1){return ke.array(e)?e.every(n=>DR(n,t)):(ga({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var ER={action:"init",controlled:!1,index:0,lifecycle:Qe.INIT,origin:null,size:0,status:ct.IDLE},TE=lre(xR(ER,"controlled","size")),vre=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(!sre(i,TE))throw new Error(`State is not valid. Valid keys: ${TE.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(o=i.action)!=null?o:$t.UPDATE,origin:(a=i.origin)!=null?a:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:$t.INIT,controlled:ke.number(n),continuous:t,index:ke.number(n)?n:0,lifecycle:Qe.INIT,origin:null,status:r.length?ct.READY:ct.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...ER}}getNextState(e,t=!1){var n,r,i,o,a;const{action:u,controlled:c,index:d,size:f,status:h}=this.getState(),m=ke.number(e.index)?e.index:d,g=c&&!t?d:Math.min(Math.max(m,0),f);return{action:(n=e.action)!=null?n:u,controlled:c,index:g,lifecycle:(r=e.lifecycle)!=null?r:Qe.INIT,origin:(i=e.origin)!=null?i:null,size:(o=e.size)!=null?o:f,status:g===f?ct.FINISHED:(a=e.status)!=null?a:h}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){const t=JSON.stringify(e),n=JSON.stringify(this.getState());return t!==n}setState(e,t=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:a=null,size:u,status:c}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",a),this.store.set("size",u),this.store.set("status",c),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function bre(e){return new vre(e)}function $re({styles:e}){return qe.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var xre=$re,wre=class extends qe.Component{constructor(){super(...arguments),Be(this,"isActive",!1),Be(this,"resizeTimeout"),Be(this,"scrollTimeout"),Be(this,"scrollParent"),Be(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Be(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[Qe.INIT,Qe.BEACON,Qe.COMPLETE,Qe.ERROR];return t||(e?r.includes(n):n!==Qe.TOOLTIP)}),Be(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:o,width:a}=this.spotlightStyles,u=i==="fixed"?e.clientY:e.pageY,c=i==="fixed"?e.clientX:e.pageX,d=u>=o&&u<=o+n,h=c>=r&&c<=r+a&&d;h!==t&&this.updateState({mouseOverSpotlight:h})}),Be(this,"handleScroll",()=>{const{target:e}=this.props,t=$o(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=$o(r);this.scrollParent=Pc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&ld(i,!0)&&ga({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}=Mh(e,this.props);if(a("target")||a("disableScrollParentFix")){const u=$o(o);this.scrollParent=Pc(u??document.body,n,!0)}a("lifecycle",Qe.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:u}=this.state;u||this.updateState({showSpotlight:!0})},100)),(a("spotlightClicks")||a("disableOverlay")||a("lifecycle"))&&(i&&r===Qe.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==Qe.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:e}=this.state,{disableOverlayClose:t,placement:n,styles:r}=this.props;let i=r.overlay;return EE()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:ere(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:a=0,styles:u,target:c}=this.props,d=$o(c),f=bR(d),h=Nu(d),m=ire(d,a,i);return{...EE()?u.spotlightLegacy:u.spotlight,height:Math.round(((e=f==null?void 0:f.height)!=null?e:0)+a*2),left:Math.round(((t=f==null?void 0:f.left)!=null?t:0)-a),opacity:r?1:0,pointerEvents:o?"none":"auto",position:h?"fixed":"absolute",top:m,transition:"opacity 0.2s",width:Math.round(((n=f==null?void 0:f.width)!=null?n:0)+a*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){const{showSpotlight:e}=this.state,{onClickOverlay:t,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a=n!=="center"&&e&&qe.createElement(xre,{styles:o});if($R()==="safari"){const{mixBlendMode:u,zIndex:c,...d}=i;a=qe.createElement("div",{style:{...d}},a),delete i.backgroundColor}return qe.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},a)}},Dre=class extends qe.Component{constructor(){super(...arguments),Be(this,"node",null)}componentDidMount(){const{id:e}=this.props;ta()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Ll||this.renderReact15())}componentDidUpdate(){ta()&&(Ll||this.renderReact15())}componentWillUnmount(){!ta()||!this.node||(Ll||wf.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ta())return;const{children:e}=this.props;this.node&&wf.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!ta()||!Ll)return null;const{children:e}=this.props;return this.node?wf.createPortal(e,this.node):null}render(){return Ll?this.renderReact16():null}},Ere=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()}},Cre=class extends qe.Component{constructor(e){if(super(e),Be(this,"beacon",null),Be(this,"setBeaconRef",i=>{this.beacon=i}),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode(`
|
|
198
|
+
@keyframes joyride-beacon-inner {
|
|
199
|
+
20% {
|
|
200
|
+
opacity: 0.9;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
90% {
|
|
204
|
+
opacity: 0.7;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
@keyframes joyride-beacon-outer {
|
|
209
|
+
0% {
|
|
210
|
+
transform: scale(1);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
45% {
|
|
214
|
+
opacity: 0.7;
|
|
215
|
+
transform: scale(0.75);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
100% {
|
|
219
|
+
opacity: 0.9;
|
|
220
|
+
transform: scale(1);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Ii(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Sre({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Tre=Sre;function Are(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Tre,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Ii($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Ii($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var Pre=Are,_re=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Ii(a),g=Ii(u),v=Ii(c),$=Ii(d),C=Ii(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Ii(f,{step:t+1,steps:i});x=Uv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(Pre,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Rre=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(_re,{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;ga({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Mh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=$o(m.target),k=!!T;k&&rre(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:DE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ga({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new Ere(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return DE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=$o(a.target);return!DR(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(f1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Cre,{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})))}},CR=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;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=bre({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ga({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(!ta())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;SE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ta())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Mh(e,this.props),{changed:y,changedFrom:D}=Mh(t,this.state),P=Ys(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=$o(P.target);if(E&&(SE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=Ys(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=Ys(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=Ys(this.props,d[t]),h=$o(f.target),m=dre({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=ld(h,o),v=Pc(h,o);let $=Math.floor(ore(h,u,o))||0;ga({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&are($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!ta())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=Ys(this.props,u[e]);d.step=qe.createElement(Rre,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(Dre,{id:"react-joyride-portal"},qe.createElement(wre,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(CR,"defaultProps",pre);var Ore=CR;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=hA;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=zC;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Lc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=BV;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Zj;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=qT;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=ej;exports.$293f70390ea03370$export$497855f14858aa34=zj;exports.$32489daedd52963e$export$1315d136e6f7581=nK;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Aj;exports.$36a0ac60f04457c5$export$136073280381448e=zN;exports.$3c0fc76039f1c516$export$60e84778edff6d26=QA;exports.$40df3f8667284809$export$d55e7ee900f34e93=aK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=jN;exports.$47b897dc8cdb026b$export$8d15029008292ae=ij;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=nj;exports.$6057a3d2a53a12fd$export$42df105a73306d51=Xj;exports.$64244302c3013299$export$dd0bbc9b26defe37=xN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=kN;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=oK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=UK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=NN;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=EK;exports.$a916eb452884faea$export$b7a616150fdb9f44=FN;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=_K;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=BK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$S;exports.$bcca50147b47f54d$export$56b2c08e277f365=rj;exports.$c132121280ec012d$export$50eacbbf140a3141=Bj;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=Lj;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=qj;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=KN;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=zK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=Cj;exports.$fae977aafc393c5c$export$588937bcd60ade55=ZV;exports.$fae977aafc393c5c$export$6b862160d295c8e=YV;exports.ACTIONS=$t;exports.AdvancedImage=MW;exports.Cloudinary=AH;exports.EVENTS=ri;exports.FormProvider=lK;exports.LazyMotion=Xee;exports.M=aL;exports.M$1=gi;exports.R=ps;exports.ReorderGroup=bJ;exports.ReorderItem=DJ;exports.STATUS=ct;exports._=qI;exports.autoUpdate=dC;exports.components_default=Ore;exports.dayjs=qK;exports.domAnimation=Qee;exports.dt=QE;exports.ee=nP;exports.flip=WI;exports.isNumber=KH;exports.lazyload=tW;exports.lodashExports=mC;exports.lt=Yv;exports.m=Jee;exports.mt=cI;exports.nt=sI;exports.o=MH;exports.offset=zI;exports.ot=uI;exports.placeholder=oW;exports.prismExports=_H;exports.q=Ob;exports.useController=dK;exports.useFloating=UI;exports.useForm=DK;exports.useFormContext=ap;exports.useWatch=iA;
|