@fluidattacks/design 3.4.0 → 3.4.2
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-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/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.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/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/lottie/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/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/modal/modal-footer/index.js +1 -1
- package/dist/components/modal/modal-header/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/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-biHu3Geo.js +3174 -0
- package/dist/{components-C7JPRIEW.mjs → components-zzT9g8AC.mjs} +1135 -1142
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/vendor-XyvD1xaI.mjs +38040 -0
- package/dist/vendor-km0FQdhR.js +233 -0
- package/package.json +1 -1
- package/dist/components-C5lsYMUE.js +0 -3174
- package/dist/vendor-Dv7Zxa-7.js +0 -132
- package/dist/vendor-_XDhaIzo.mjs +0 -14504
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";require('./assets/vendor.css');const S=require("react"),ls=require("react-dom"),Wm=require("react/jsx-runtime");function u$(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 Ft=u$(S),fd=u$(ls);var ti=function(){return ti=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ti.apply(this,arguments)};function eu(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function ek(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tk=/^((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)-.*))$/,nk=ek(function(e){return tk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var In="-ms-",bc="-moz-",bn="-webkit-",l$="comm",fh="rule",hv="decl",rk="@import",c$="@keyframes",ik="@layer",f$=Math.abs,pv=String.fromCharCode,Hm=Object.assign;function ak(e,t){return jr(e,0)^45?(((t<<2^jr(e,0))<<2^jr(e,1))<<2^jr(e,2))<<2^jr(e,3):0}function d$(e){return e.trim()}function So(e,t){return(e=t.exec(e))?e[0]:e}function Gt(e,t,n){return e.replace(t,n)}function dd(e,t,n){return e.indexOf(t,n)}function jr(e,t){return e.charCodeAt(t)|0}function nl(e,t,n){return e.slice(t,n)}function ja(e){return e.length}function h$(e){return e.length}function cc(e,t){return t.push(e),e}function ok(e,t){return e.map(t).join("")}function Mb(e,t){return e.filter(function(n){return!So(n,t)})}var dh=1,rl=1,p$=0,Qi=0,wr=0,wl="";function hh(e,t,n,r,i,a,s,c){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:dh,column:rl,length:s,return:"",siblings:c}}function Xo(e,t){return Hm(hh("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Fu(e){for(;e.root;)e=Xo(e.root,{children:[e]});cc(e,e.siblings)}function sk(){return wr}function uk(){return wr=Qi>0?jr(wl,--Qi):0,rl--,wr===10&&(rl=1,dh--),wr}function ya(){return wr=Qi<p$?jr(wl,Qi++):0,rl++,wr===10&&(rl=1,dh++),wr}function Zs(){return jr(wl,Qi)}function hd(){return Qi}function ph(e,t){return nl(wl,e,t)}function Gm(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 lk(e){return dh=rl=1,p$=ja(wl=e),Qi=0,[]}function ck(e){return wl="",e}function Hp(e){return d$(ph(Qi-1,qm(e===91?e+2:e===40?e+1:e)))}function fk(e){for(;(wr=Zs())&&wr<33;)ya();return Gm(e)>2||Gm(wr)>3?"":" "}function dk(e,t){for(;--t&&ya()&&!(wr<48||wr>102||wr>57&&wr<65||wr>70&&wr<97););return ph(e,hd()+(t<6&&Zs()==32&&ya()==32))}function qm(e){for(;ya();)switch(wr){case e:return Qi;case 34:case 39:e!==34&&e!==39&&qm(wr);break;case 40:e===41&&qm(e);break;case 92:ya();break}return Qi}function hk(e,t){for(;ya()&&e+wr!==57;)if(e+wr===84&&Zs()===47)break;return"/*"+ph(t,Qi-1)+"*"+pv(e===47?e:ya())}function pk(e){for(;!Gm(Zs());)ya();return ph(e,Qi)}function mk(e){return ck(pd("",null,null,null,[""],e=lk(e),0,[0],e))}function pd(e,t,n,r,i,a,s,c,d){for(var h=0,g=0,v=s,$=0,y=0,P=0,T=1,R=1,D=1,C=0,_="",B=i,k=a,L=r,X=_;R;)switch(P=C,C=ya()){case 40:if(P!=108&&jr(X,v-1)==58){dd(X+=Gt(Hp(C),"&","&\f"),"&\f",f$(h?c[h-1]:0))!=-1&&(D=-1);break}case 34:case 39:case 91:X+=Hp(C);break;case 9:case 10:case 13:case 32:X+=fk(P);break;case 92:X+=dk(hd()-1,7);continue;case 47:switch(Zs()){case 42:case 47:cc(gk(hk(ya(),hd()),t,n,d),d);break;default:X+="/"}break;case 123*T:c[h++]=ja(X)*D;case 125*T:case 59:case 0:switch(C){case 0:case 125:R=0;case 59+g:D==-1&&(X=Gt(X,/\f/g,"")),y>0&&ja(X)-v&&cc(y>32?Ib(X+";",r,n,v-1,d):Ib(Gt(X," ","")+";",r,n,v-2,d),d);break;case 59:X+=";";default:if(cc(L=Ob(X,t,n,h,g,i,c,_,B=[],k=[],v,a),a),C===123)if(g===0)pd(X,t,L,L,B,a,v,c,k);else switch($===99&&jr(X,3)===110?100:$){case 100:case 108:case 109:case 115:pd(e,L,L,r&&cc(Ob(e,L,L,0,0,i,c,_,i,B=[],v,k),k),i,k,v,c,r?B:k);break;default:pd(X,L,L,L,[""],k,0,c,k)}}h=g=y=0,T=D=1,_=X="",v=s;break;case 58:v=1+ja(X),y=P;default:if(T<1){if(C==123)--T;else if(C==125&&T++==0&&uk()==125)continue}switch(X+=pv(C),C*T){case 38:D=g>0?1:(X+="\f",-1);break;case 44:c[h++]=(ja(X)-1)*D,D=1;break;case 64:Zs()===45&&(X+=Hp(ya())),$=Zs(),g=v=ja(_=X+=pk(hd())),C++;break;case 45:P===45&&ja(X)==2&&(T=0)}}return a}function Ob(e,t,n,r,i,a,s,c,d,h,g,v){for(var $=i-1,y=i===0?a:[""],P=h$(y),T=0,R=0,D=0;T<r;++T)for(var C=0,_=nl(e,$+1,$=f$(R=s[T])),B=e;C<P;++C)(B=d$(R>0?y[C]+" "+_:Gt(_,/&\f/g,y[C])))&&(d[D++]=B);return hh(e,t,n,i===0?fh:c,d,h,g,v)}function gk(e,t,n,r){return hh(e,t,n,l$,pv(sk()),nl(e,2,-2),0,r)}function Ib(e,t,n,r,i){return hh(e,t,n,hv,nl(e,0,r),nl(e,r+1,-1),r,i)}function m$(e,t,n){switch(ak(e,t)){case 5103:return bn+"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 bn+e+e;case 4789:return bc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bn+e+bc+e+In+e+e;case 5936:switch(jr(e,t+11)){case 114:return bn+e+In+Gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+In+Gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+In+Gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return bn+e+In+e+e;case 6165:return bn+e+In+"flex-"+e+e;case 5187:return bn+e+Gt(e,/(\w+).+(:[^]+)/,bn+"box-$1$2"+In+"flex-$1$2")+e;case 5443:return bn+e+In+"flex-item-"+Gt(e,/flex-|-self/g,"")+(So(e,/flex-|baseline/)?"":In+"grid-row-"+Gt(e,/flex-|-self/g,""))+e;case 4675:return bn+e+In+"flex-line-pack"+Gt(e,/align-content|flex-|-self/g,"")+e;case 5548:return bn+e+In+Gt(e,"shrink","negative")+e;case 5292:return bn+e+In+Gt(e,"basis","preferred-size")+e;case 6060:return bn+"box-"+Gt(e,"-grow","")+bn+e+In+Gt(e,"grow","positive")+e;case 4554:return bn+Gt(e,/([^-])(transform)/g,"$1"+bn+"$2")+e;case 6187:return Gt(Gt(Gt(e,/(zoom-|grab)/,bn+"$1"),/(image-set)/,bn+"$1"),e,"")+e;case 5495:case 3959:return Gt(e,/(image-set\([^]*)/,bn+"$1$`$1");case 4968:return Gt(Gt(e,/(.+:)(flex-)?(.*)/,bn+"box-pack:$3"+In+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bn+e+e;case 4200:if(!So(e,/flex-|baseline/))return In+"grid-column-align"+nl(e,t)+e;break;case 2592:case 3360:return In+Gt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,So(r.props,/grid-\w+-end/)})?~dd(e+(n=n[t].value),"span",0)?e:In+Gt(e,"-start","")+e+In+"grid-row-span:"+(~dd(n,"span",0)?So(n,/\d+/):+So(n,/\d+/)-+So(e,/\d+/))+";":In+Gt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return So(r.props,/grid-\w+-start/)})?e:In+Gt(Gt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Gt(e,/(.+)-inline(.+)/,bn+"$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(ja(e)-1-t>6)switch(jr(e,t+1)){case 109:if(jr(e,t+4)!==45)break;case 102:return Gt(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+bc+(jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dd(e,"stretch",0)?m$(Gt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Gt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,s,c,d,h){return In+i+":"+a+h+(s?In+i+"-span:"+(c?d:+d-+a)+h:"")+e});case 4949:if(jr(e,t+6)===121)return Gt(e,":",":"+bn)+e;break;case 6444:switch(jr(e,jr(e,14)===45?18:11)){case 120:return Gt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+bn+(jr(e,14)===45?"inline-":"")+"box$3$1"+bn+"$2$3$1"+In+"$2box$3")+e;case 100:return Gt(e,":",":"+In)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Gt(e,"scroll-","scroll-snap-")+e}return e}function Ad(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function vk(e,t,n,r){switch(e.type){case ik:if(e.children.length)break;case rk:case hv:return e.return=e.return||e.value;case l$:return"";case c$:return e.return=e.value+"{"+Ad(e.children,r)+"}";case fh:if(!ja(e.value=e.props.join(",")))return""}return ja(n=Ad(e.children,r))?e.return=e.value+"{"+n+"}":""}function yk(e){var t=h$(e);return function(n,r,i,a){for(var s="",c=0;c<t;c++)s+=e[c](n,r,i,a)||"";return s}}function bk(e){return function(t){t.root||(t=t.return)&&e(t)}}function $k(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case hv:e.return=m$(e.value,e.length,n);return;case c$:return Ad([Xo(e,{value:Gt(e.value,"@","@"+bn)})],r);case fh:if(e.length)return ok(n=e.props,function(i){switch(So(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Fu(Xo(e,{props:[Gt(i,/:(read-\w+)/,":"+bc+"$1")]})),Fu(Xo(e,{props:[i]})),Hm(e,{props:Mb(n,r)});break;case"::placeholder":Fu(Xo(e,{props:[Gt(i,/:(plac\w+)/,":"+bn+"input-$1")]})),Fu(Xo(e,{props:[Gt(i,/:(plac\w+)/,":"+bc+"$1")]})),Fu(Xo(e,{props:[Gt(i,/:(plac\w+)/,In+"input-$1")]})),Fu(Xo(e,{props:[i]})),Hm(e,{props:Mb(n,r)});break}return""})}}var wk={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},tu=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",g$="active",v$="data-styled-version",mh="6.1.14",mv=`/*!sc*/
|
|
2
|
+
`,Pd=typeof window<"u"&&"HTMLElement"in window,xk=!!(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"),Lb=/invalid hook call/i,Uf=new Set,Ek=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 a=!0;console.error=function(s){for(var c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];Lb.test(s)?(a=!1,Uf.delete(r)):i.apply(void 0,eu([s],c,!1))},S.useRef(),a&&!Uf.has(r)&&(console.warn(r),Uf.add(r))}catch(s){Lb.test(s.message)&&Uf.delete(r)}finally{console.error=i}}},gh=Object.freeze([]),il=Object.freeze({});function Ck(e,t,n){return n===void 0&&(n=il),e.theme!==n.theme&&e.theme||t||n.theme}var Ym=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"]),Sk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Dk=/(^-|-$)/g;function Bb(e){return e.replace(Sk,"-").replace(Dk,"")}var Ak=/(a)(d)/gi,Wf=52,Vb=function(e){return String.fromCharCode(e+(e>25?39:97))};function Zm(e){var t,n="";for(t=Math.abs(e);t>Wf;t=t/Wf|0)n=Vb(t%Wf)+n;return(Vb(t%Wf)+n).replace(Ak,"$1-$2")}var Gp,y$=5381,js=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},b$=function(e){return js(y$,e)};function $$(e){return Zm(b$(e)>>>0)}function w$(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function qp(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var x$=typeof Symbol=="function"&&Symbol.for,E$=x$?Symbol.for("react.memo"):60115,Pk=x$?Symbol.for("react.forward_ref"):60112,Tk={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_k={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},C$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kk=((Gp={})[Pk]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gp[E$]=C$,Gp);function Nb(e){return("type"in(t=e)&&t.type.$$typeof)===E$?C$:"$$typeof"in e?kk[e.$$typeof]:Tk;var t}var Rk=Object.defineProperty,Fk=Object.getOwnPropertyNames,jb=Object.getOwnPropertySymbols,Mk=Object.getOwnPropertyDescriptor,Ok=Object.getPrototypeOf,Kb=Object.prototype;function S$(e,t,n){if(typeof t!="string"){if(Kb){var r=Ok(t);r&&r!==Kb&&S$(e,r,n)}var i=Fk(t);jb&&(i=i.concat(jb(t)));for(var a=Nb(e),s=Nb(t),c=0;c<i.length;++c){var d=i[c];if(!(d in _k||n&&n[d]||s&&d in s||a&&d in a)){var h=Mk(t,d);try{Rk(e,d,h)}catch{}}}}return e}function nu(e){return typeof e=="function"}function gv(e){return typeof e=="object"&&"styledComponentId"in e}function Us(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Jm(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function al(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xm(e,t,n){if(n===void 0&&(n=!1),!n&&!al(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Xm(e[r],t[r]);else if(al(t))for(var r in t)e[r]=Xm(e[r],t[r]);return e}function vv(e,t){Object.defineProperty(e,"toString",{value:t})}var Ik=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 Lk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,a=e.length;i<a;i+=1)r.push(e[i]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function qa(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(Lk.apply(void 0,eu([Ik[e]],t,!1)).trim())}var Bk=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,a=i;t>=a;)if((a<<=1)<0)throw qa(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var s=i;s<a;s++)this.groupSizes[s]=0}for(var c=this.indexOfGroup(t+1),d=(s=0,n.length);s<d;s++)this.tag.insertRule(c,n[s])&&(this.groupSizes[t]++,c++)},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 a=r;a<i;a++)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),a=i+r,s=i;s<a;s++)n+="".concat(this.tag.getRule(s)).concat(mv);return n},e}(),Vk=1<<30,md=new Map,Td=new Map,gd=1,Hf=function(e){if(md.has(e))return md.get(e);for(;Td.has(gd);)gd++;var t=gd++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Vk))throw qa(16,"".concat(t));return md.set(e,t),Td.set(t,e),t},Nk=function(e,t){gd=t+1,md.set(e,t),Td.set(t,e)},jk="style[".concat(tu,"][").concat(v$,'="').concat(mh,'"]'),Kk=new RegExp("^".concat(tu,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zk=function(e,t,n){for(var r,i=n.split(","),a=0,s=i.length;a<s;a++)(r=i[a])&&e.registerName(t,r)},Uk=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(mv),i=[],a=0,s=r.length;a<s;a++){var c=r[a].trim();if(c){var d=c.match(Kk);if(d){var h=0|parseInt(d[1],10),g=d[2];h!==0&&(Nk(g,h),zk(e,g,d[3]),e.getTag().insertRules(h,i)),i.length=0}else i.push(c)}}},zb=function(e){for(var t=document.querySelectorAll(jk),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(tu)!==g$&&(Uk(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function Wk(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var D$=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(c){var d=Array.from(c.querySelectorAll("style[".concat(tu,"]")));return d[d.length-1]}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(tu,g$),r.setAttribute(v$,mh);var s=Wk();return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Hk=function(){function e(t){this.element=D$(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,a=r.length;i<a;i++){var s=r[i];if(s.ownerNode===n)return s}throw qa(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}(),Gk=function(){function e(t){this.element=D$(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}(),qk=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}(),Ub=Pd,Yk={isServer:!Pd,useCSSOMInjection:!xk},A$=function(){function e(t,n,r){t===void 0&&(t=il),n===void 0&&(n={});var i=this;this.options=ti(ti({},Yk),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Pd&&Ub&&(Ub=!1,zb(this)),vv(this,function(){return function(a){for(var s=a.getTag(),c=s.length,d="",h=function(v){var $=function(D){return Td.get(D)}(v);if($===void 0)return"continue";var y=a.names.get($),P=s.getGroup(v);if(y===void 0||!y.size||P.length===0)return"continue";var T="".concat(tu,".g").concat(v,'[id="').concat($,'"]'),R="";y!==void 0&&y.forEach(function(D){D.length>0&&(R+="".concat(D,","))}),d+="".concat(P).concat(T,'{content:"').concat(R,'"}').concat(mv)},g=0;g<c;g++)h(g);return d}(i)})}return e.registerId=function(t){return Hf(t)},e.prototype.rehydrate=function(){!this.server&&Pd&&zb(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(ti(ti({},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 qk(i):r?new Hk(i):new Gk(i)}(this.options),new Bk(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(Hf(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(Hf(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Hf(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Zk=/&/g,Jk=/^\s*\/\/.*$/gm;function P$(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=P$(n.children,t)),n})}function Xk(e){var t,n,r,i=il,a=i.options,s=a===void 0?il:a,c=i.plugins,d=c===void 0?gh:c,h=function($,y,P){return P.startsWith(n)&&P.endsWith(n)&&P.replaceAll(n,"").length>0?".".concat(t):$},g=d.slice();g.push(function($){$.type===fh&&$.value.includes("&")&&($.props[0]=$.props[0].replace(Zk,n).replace(r,h))}),s.prefix&&g.push($k),g.push(vk);var v=function($,y,P,T){y===void 0&&(y=""),P===void 0&&(P=""),T===void 0&&(T="&"),t=T,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var R=$.replace(Jk,""),D=mk(P||y?"".concat(P," ").concat(y," { ").concat(R," }"):R);s.namespace&&(D=P$(D,s.namespace));var C=[];return Ad(D,yk(g.concat(bk(function(_){return C.push(_)})))),C};return v.hash=d.length?d.reduce(function($,y){return y.name||qa(15),js($,y.name)},y$).toString():"",v}var Qk=new A$,Qm=Xk(),T$=S.createContext({shouldForwardProp:void 0,styleSheet:Qk,stylis:Qm});T$.Consumer;S.createContext(void 0);function Wb(){return S.useContext(T$)}var eg=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Qm);var s=r.name+a.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,a(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,vv(this,function(){throw qa(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Qm),this.name+t.hash},e}(),eR=function(e){return e>="A"&&e<="Z"};function Hb(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;eR(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var _$=function(e){return e==null||e===!1||e===""},k$=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!_$(a)&&(Array.isArray(a)&&a.isCss||nu(a)?r.push("".concat(Hb(i),":"),a,";"):al(a)?r.push.apply(r,eu(eu(["".concat(i," {")],k$(a),!1),["}"],!1)):r.push("".concat(Hb(i),": ").concat((t=i,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in wk||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Js(e,t,n,r){if(_$(e))return[];if(gv(e))return[".".concat(e.styledComponentId)];if(nu(e)){if(!nu(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof eg||al(i)||i===null||console.error("".concat(w$(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.")),Js(i,t,n,r)}var a;return e instanceof eg?n?(e.inject(n,r),[e.getName(r)]):[e]:al(e)?k$(e):Array.isArray(e)?Array.prototype.concat.apply(gh,e.map(function(s){return Js(s,t,n,r)})):[e.toString()]}function tR(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(nu(n)&&!gv(n))return!1}return!0}var nR=b$(mh),rR=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&tR(t),this.componentId=n,this.baseHash=js(nR,n),this.baseStyle=r,A$.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=Us(i,this.staticRulesId);else{var a=Jm(Js(this.rules,t,n,r)),s=Zm(js(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,s)){var c=r(a,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,c)}i=Us(i,s),this.staticRulesId=s}else{for(var d=js(this.baseHash,r.hash),h="",g=0;g<this.rules.length;g++){var v=this.rules[g];if(typeof v=="string")h+=v,process.env.NODE_ENV!=="production"&&(d=js(d,v));else if(v){var $=Jm(Js(v,t,n,r));d=js(d,$+g),h+=$}}if(h){var y=Zm(d>>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(h,".".concat(y),void 0,this.componentId)),i=Us(i,y)}}return i},e}(),Cc=S.createContext(void 0);Cc.Consumer;function iR(){var e=S.useContext(Cc);if(!e)throw qa(18);return e}function aR(e){var t=S.useContext(Cc),n=S.useMemo(function(){return function(r,i){if(!r)throw qa(14);if(nu(r)){var a=r(i);if(process.env.NODE_ENV!=="production"&&(a===null||Array.isArray(a)||typeof a!="object"))throw qa(7);return a}if(Array.isArray(r)||typeof r!="object")throw qa(8);return i?ti(ti({},i),r):r}(e.theme,t)},[e.theme,t]);return e.children?S.createElement(Cc.Provider,{value:n},e.children):null}var Yp={},Gb=new Set;function oR(e,t,n){var r=gv(e),i=e,a=!qp(e),s=t.attrs,c=s===void 0?gh:s,d=t.componentId,h=d===void 0?function(B,k){var L=typeof B!="string"?"sc":Bb(B);Yp[L]=(Yp[L]||0)+1;var X="".concat(L,"-").concat($$(mh+L+Yp[L]));return k?"".concat(k,"-").concat(X):X}(t.displayName,t.parentComponentId):d,g=t.displayName,v=g===void 0?function(B){return qp(B)?"styled.".concat(B):"Styled(".concat(w$(B),")")}(e):g,$=t.displayName&&t.componentId?"".concat(Bb(t.displayName),"-").concat(t.componentId):t.componentId||h,y=r&&i.attrs?i.attrs.concat(c).filter(Boolean):c,P=t.shouldForwardProp;if(r&&i.shouldForwardProp){var T=i.shouldForwardProp;if(t.shouldForwardProp){var R=t.shouldForwardProp;P=function(B,k){return T(B,k)&&R(B,k)}}else P=T}var D=new rR(n,$,r?i.componentStyle:void 0);function C(B,k){return function(L,X,F){var ge=L.attrs,te=L.componentStyle,ie=L.defaultProps,De=L.foldedComponentIds,me=L.styledComponentId,de=L.target,ne=S.useContext(Cc),re=Wb(),K=L.shouldForwardProp||re.shouldForwardProp;process.env.NODE_ENV!=="production"&&S.useDebugValue(me);var oe=Ck(X,ne,ie)||il,Ce=function(Se,Je,Ge){for(var xe,Be=ti(ti({},Je),{className:void 0,theme:Ge}),qe=0;qe<Se.length;qe+=1){var Ke=nu(xe=Se[qe])?xe(Be):xe;for(var Oe in Ke)Be[Oe]=Oe==="className"?Us(Be[Oe],Ke[Oe]):Oe==="style"?ti(ti({},Be[Oe]),Ke[Oe]):Ke[Oe]}return Je.className&&(Be.className=Us(Be.className,Je.className)),Be}(ge,X,oe),ee=Ce.as||de,pe={};for(var Pe in Ce)Ce[Pe]===void 0||Pe[0]==="$"||Pe==="as"||Pe==="theme"&&Ce.theme===oe||(Pe==="forwardedAs"?pe.as=Ce.forwardedAs:K&&!K(Pe,ee)||(pe[Pe]=Ce[Pe],K||process.env.NODE_ENV!=="development"||nk(Pe)||Gb.has(Pe)||!Ym.has(ee)||(Gb.add(Pe),console.warn('styled-components: it looks like an unknown prop "'.concat(Pe,'" 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 Te=function(Se,Je){var Ge=Wb(),xe=Se.generateAndInjectStyles(Je,Ge.styleSheet,Ge.stylis);return process.env.NODE_ENV!=="production"&&S.useDebugValue(xe),xe}(te,Ce);process.env.NODE_ENV!=="production"&&L.warnTooManyClasses&&L.warnTooManyClasses(Te);var Ve=Us(De,me);return Te&&(Ve+=" "+Te),Ce.className&&(Ve+=" "+Ce.className),pe[qp(ee)&&!Ym.has(ee)?"class":"className"]=Ve,F&&(pe.ref=F),S.createElement(ee,pe)}(_,B,k)}C.displayName=v;var _=S.forwardRef(C);return _.attrs=y,_.componentStyle=D,_.displayName=v,_.shouldForwardProp=P,_.foldedComponentIds=r?Us(i.foldedComponentIds,i.styledComponentId):"",_.styledComponentId=$,_.target=r?i.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(B){this._foldedDefaultProps=r?function(k){for(var L=[],X=1;X<arguments.length;X++)L[X-1]=arguments[X];for(var F=0,ge=L;F<ge.length;F++)Xm(k,ge[F],!0);return k}({},i.defaultProps,B):B}}),process.env.NODE_ENV!=="production"&&(Ek(v,$),_.warnTooManyClasses=function(B,k){var L={},X=!1;return function(F){if(!X&&(L[F]=!0,Object.keys(L).length>=200)){var ge=k?' with the id of "'.concat(k,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(B).concat(ge,`.
|
|
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 />`),X=!0,L={}}}}(v,$)),vv(_,function(){return".".concat(_.styledComponentId)}),a&&S$(_,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),_}function qb(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 Yb=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(nu(e)||al(e))return Yb(Js(qb(gh,eu([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Js(r):Yb(Js(qb(r,t)))}function tg(e,t,n){if(n===void 0&&(n=il),!t)throw qa(1,t);var r=function(i){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];return e(t,n,yv.apply(void 0,eu([i],a,!1)))};return r.attrs=function(i){return tg(e,t,ti(ti({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return tg(e,t,ti(ti({},n),i))},r}var R$=function(e){return tg(oR,e)},F$=R$;Ym.forEach(function(e){F$[e]=R$(e)});function sR(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=Jm(yv.apply(void 0,eu([e],t,!1))),i=$$(r);return new eg(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 Gf="__sc-".concat(tu,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Gf]||(window[Gf]=0),window[Gf]===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[Gf]+=1);const ol=Math.min,Xs=Math.max,_d=Math.round,qf=Math.floor,Ya=e=>({x:e,y:e}),uR={left:"right",right:"left",bottom:"top",top:"bottom"},lR={start:"end",end:"start"};function ng(e,t,n){return Xs(e,ol(t,n))}function Nc(e,t){return typeof e=="function"?e(t):e}function ru(e){return e.split("-")[0]}function jc(e){return e.split("-")[1]}function M$(e){return e==="x"?"y":"x"}function bv(e){return e==="y"?"height":"width"}function sl(e){return["top","bottom"].includes(ru(e))?"y":"x"}function $v(e){return M$(sl(e))}function cR(e,t,n){n===void 0&&(n=!1);const r=jc(e),i=$v(e),a=bv(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=kd(s)),[s,kd(s)]}function fR(e){const t=kd(e);return[rg(e),t,rg(t)]}function rg(e){return e.replace(/start|end/g,t=>lR[t])}function dR(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:s;default:return[]}}function hR(e,t,n,r){const i=jc(e);let a=dR(ru(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(rg)))),a}function kd(e){return e.replace(/left|right|bottom|top/g,t=>uR[t])}function pR(e){return{top:0,right:0,bottom:0,left:0,...e}}function O$(e){return typeof e!="number"?pR(e):{top:e,right:e,bottom:e,left:e}}function Rd(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 Zb(e,t,n){let{reference:r,floating:i}=e;const a=sl(t),s=$v(t),c=bv(s),d=ru(t),h=a==="y",g=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,$=r[c]/2-i[c]/2;let y;switch(d){case"top":y={x:g,y:r.y-i.height};break;case"bottom":y={x:g,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:v};break;case"left":y={x:r.x-i.width,y:v};break;default:y={x:r.x,y:r.y}}switch(jc(t)){case"start":y[s]-=$*(n&&h?-1:1);break;case"end":y[s]+=$*(n&&h?-1:1);break}return y}const mR=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let h=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:g,y:v}=Zb(h,r,d),$=r,y={},P=0;for(let T=0;T<c.length;T++){const{name:R,fn:D}=c[T],{x:C,y:_,data:B,reset:k}=await D({x:g,y:v,initialPlacement:r,placement:$,strategy:i,middlewareData:y,rects:h,platform:s,elements:{reference:e,floating:t}});g=C??g,v=_??v,y={...y,[R]:{...y[R],...B}},k&&P<=50&&(P++,typeof k=="object"&&(k.placement&&($=k.placement),k.rects&&(h=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:g,y:v}=Zb(h,$,d)),T=-1)}return{x:g,y:v,placement:$,strategy:i,middlewareData:y}};async function I$(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:$=!1,padding:y=0}=Nc(t,e),P=O$(y),R=c[$?v==="floating"?"reference":"floating":v],D=Rd(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(R)))==null||n?R:R.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:g,strategy:d})),C=v==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),B=await(a.isElement==null?void 0:a.isElement(_))?await(a.getScale==null?void 0:a.getScale(_))||{x:1,y:1}:{x:1,y:1},k=Rd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:C,offsetParent:_,strategy:d}):C);return{top:(D.top-k.top+P.top)/B.y,bottom:(k.bottom-D.bottom+P.bottom)/B.y,left:(D.left-k.left+P.left)/B.x,right:(k.right-D.right+P.right)/B.x}}const gR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:c,middlewareData:d}=t,{element:h,padding:g=0}=Nc(e,t)||{};if(h==null)return{};const v=O$(g),$={x:n,y:r},y=$v(i),P=bv(y),T=await s.getDimensions(h),R=y==="y",D=R?"top":"left",C=R?"bottom":"right",_=R?"clientHeight":"clientWidth",B=a.reference[P]+a.reference[y]-$[y]-a.floating[P],k=$[y]-a.reference[y],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h));let X=L?L[_]:0;(!X||!await(s.isElement==null?void 0:s.isElement(L)))&&(X=c.floating[_]||a.floating[P]);const F=B/2-k/2,ge=X/2-T[P]/2-1,te=ol(v[D],ge),ie=ol(v[C],ge),De=te,me=X-T[P]-ie,de=X/2-T[P]/2+F,ne=ng(De,de,me),re=!d.arrow&&jc(i)!=null&&de!==ne&&a.reference[P]/2-(de<De?te:ie)-T[P]/2<0,K=re?de<De?de-De:de-me:0;return{[y]:$[y]+K,data:{[y]:ne,centerOffset:de-ne-K,...re&&{alignmentOffset:K}},reset:re}}}),vR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:h}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:$,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:T=!0,...R}=Nc(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const D=ru(i),C=sl(c),_=ru(c)===c,B=await(d.isRTL==null?void 0:d.isRTL(h.floating)),k=$||(_||!T?[kd(c)]:fR(c)),L=P!=="none";!$&&L&&k.push(...hR(c,T,P,B));const X=[c,...k],F=await I$(t,R),ge=[];let te=((r=a.flip)==null?void 0:r.overflows)||[];if(g&&ge.push(F[D]),v){const de=cR(i,s,B);ge.push(F[de[0]],F[de[1]])}if(te=[...te,{placement:i,overflows:ge}],!ge.every(de=>de<=0)){var ie,De;const de=(((ie=a.flip)==null?void 0:ie.index)||0)+1,ne=X[de];if(ne)return{data:{index:de,overflows:te},reset:{placement:ne}};let re=(De=te.filter(K=>K.overflows[0]<=0).sort((K,oe)=>K.overflows[1]-oe.overflows[1])[0])==null?void 0:De.placement;if(!re)switch(y){case"bestFit":{var me;const K=(me=te.filter(oe=>{if(L){const Ce=sl(oe.placement);return Ce===C||Ce==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(Ce=>Ce>0).reduce((Ce,ee)=>Ce+ee,0)]).sort((oe,Ce)=>oe[1]-Ce[1])[0])==null?void 0:me[0];K&&(re=K);break}case"initialPlacement":re=c;break}if(i!==re)return{reset:{placement:re}}}return{}}}};async function yR(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ru(n),c=jc(n),d=sl(n)==="y",h=["left","top"].includes(s)?-1:1,g=a&&d?-1:1,v=Nc(t,e);let{mainAxis:$,crossAxis:y,alignmentAxis:P}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return c&&typeof P=="number"&&(y=c==="end"?P*-1:P),d?{x:y*g,y:$*h}:{x:$*h,y:y*g}}const bR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:c}=t,d=await yR(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},$R=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:R=>{let{x:D,y:C}=R;return{x:D,y:C}}},...d}=Nc(e,t),h={x:n,y:r},g=await I$(t,d),v=sl(ru(i)),$=M$(v);let y=h[$],P=h[v];if(a){const R=$==="y"?"top":"left",D=$==="y"?"bottom":"right",C=y+g[R],_=y-g[D];y=ng(C,y,_)}if(s){const R=v==="y"?"top":"left",D=v==="y"?"bottom":"right",C=P+g[R],_=P-g[D];P=ng(C,P,_)}const T=c.fn({...t,[$]:y,[v]:P});return{...T,data:{x:T.x-n,y:T.y-r,enabled:{[$]:a,[v]:s}}}}}};function vh(){return typeof window<"u"}function xl(e){return L$(e)?(e.nodeName||"").toLowerCase():"#document"}function Ti(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ja(e){var t;return(t=(L$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function L$(e){return vh()?e instanceof Node||e instanceof Ti(e).Node:!1}function ba(e){return vh()?e instanceof Element||e instanceof Ti(e).Element:!1}function Za(e){return vh()?e instanceof HTMLElement||e instanceof Ti(e).HTMLElement:!1}function Jb(e){return!vh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ti(e).ShadowRoot}function Kc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$a(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function wR(e){return["table","td","th"].includes(xl(e))}function yh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function wv(e){const t=xv(),n=ba(e)?$a(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 xR(e){let t=ps(e);for(;Za(t)&&!ul(t);){if(wv(t))return t;if(yh(t))return null;t=ps(t)}return null}function xv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ul(e){return["html","body","#document"].includes(xl(e))}function $a(e){return Ti(e).getComputedStyle(e)}function bh(e){return ba(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ps(e){if(xl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jb(e)&&e.host||Ja(e);return Jb(t)?t.host:t}function B$(e){const t=ps(e);return ul(t)?e.ownerDocument?e.ownerDocument.body:e.body:Za(t)&&Kc(t)?t:B$(t)}function Sc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=B$(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Ti(i);if(a){const c=ig(s);return t.concat(s,s.visualViewport||[],Kc(i)?i:[],c&&n?Sc(c):[])}return t.concat(i,Sc(i,[],n))}function ig(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function V$(e){const t=$a(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Za(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=_d(n)!==a||_d(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function Ev(e){return ba(e)?e:e.contextElement}function qu(e){const t=Ev(e);if(!Za(t))return Ya(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=V$(t);let s=(a?_d(n.width):n.width)/r,c=(a?_d(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ER=Ya(0);function N$(e){const t=Ti(e);return!xv()||!t.visualViewport?ER:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ti(e)?!1:t}function iu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Ev(e);let s=Ya(1);t&&(r?ba(r)&&(s=qu(r)):s=qu(e));const c=CR(a,n,r)?N$(a):Ya(0);let d=(i.left+c.x)/s.x,h=(i.top+c.y)/s.y,g=i.width/s.x,v=i.height/s.y;if(a){const $=Ti(a),y=r&&ba(r)?Ti(r):r;let P=$,T=ig(P);for(;T&&r&&y!==P;){const R=qu(T),D=T.getBoundingClientRect(),C=$a(T),_=D.left+(T.clientLeft+parseFloat(C.paddingLeft))*R.x,B=D.top+(T.clientTop+parseFloat(C.paddingTop))*R.y;d*=R.x,h*=R.y,g*=R.x,v*=R.y,d+=_,h+=B,P=Ti(T),T=ig(P)}}return Rd({width:g,height:v,x:d,y:h})}function Cv(e,t){const n=bh(e).scrollLeft;return t?t.left+n:iu(Ja(e)).left+n}function j$(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Cv(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function SR(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=Ja(r),c=t?yh(t.floating):!1;if(r===s||c&&a)return n;let d={scrollLeft:0,scrollTop:0},h=Ya(1);const g=Ya(0),v=Za(r);if((v||!v&&!a)&&((xl(r)!=="body"||Kc(s))&&(d=bh(r)),Za(r))){const y=iu(r);h=qu(r),g.x=y.x+r.clientLeft,g.y=y.y+r.clientTop}const $=s&&!v&&!a?j$(s,d,!0):Ya(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+g.x+$.x,y:n.y*h.y-d.scrollTop*h.y+g.y+$.y}}function DR(e){return Array.from(e.getClientRects())}function AR(e){const t=Ja(e),n=bh(e),r=e.ownerDocument.body,i=Xs(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Xs(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Cv(e);const c=-n.scrollTop;return $a(r).direction==="rtl"&&(s+=Xs(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:c}}function PR(e,t){const n=Ti(e),r=Ja(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,d=0;if(i){a=i.width,s=i.height;const h=xv();(!h||h&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:c,y:d}}function TR(e,t){const n=iu(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Za(e)?qu(e):Ya(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,d=i*a.x,h=r*a.y;return{width:s,height:c,x:d,y:h}}function Xb(e,t,n){let r;if(t==="viewport")r=PR(e,n);else if(t==="document")r=AR(Ja(e));else if(ba(t))r=TR(t,n);else{const i=N$(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Rd(r)}function K$(e,t){const n=ps(e);return n===t||!ba(n)||ul(n)?!1:$a(n).position==="fixed"||K$(n,t)}function _R(e,t){const n=t.get(e);if(n)return n;let r=Sc(e,[],!1).filter(c=>ba(c)&&xl(c)!=="body"),i=null;const a=$a(e).position==="fixed";let s=a?ps(e):e;for(;ba(s)&&!ul(s);){const c=$a(s),d=wv(s);!d&&c.position==="fixed"&&(i=null),(a?!d&&!i:!d&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Kc(s)&&!d&&K$(e,s))?r=r.filter(g=>g!==s):i=c,s=ps(s)}return t.set(e,r),r}function kR(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?yh(t)?[]:_R(t,this._c):[].concat(n),r],c=s[0],d=s.reduce((h,g)=>{const v=Xb(t,g,i);return h.top=Xs(v.top,h.top),h.right=ol(v.right,h.right),h.bottom=ol(v.bottom,h.bottom),h.left=Xs(v.left,h.left),h},Xb(t,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function RR(e){const{width:t,height:n}=V$(e);return{width:t,height:n}}function FR(e,t,n){const r=Za(t),i=Ja(t),a=n==="fixed",s=iu(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const d=Ya(0);if(r||!r&&!a)if((xl(t)!=="body"||Kc(i))&&(c=bh(t)),r){const $=iu(t,!0,a,t);d.x=$.x+t.clientLeft,d.y=$.y+t.clientTop}else i&&(d.x=Cv(i));const h=i&&!r&&!a?j$(i,c):Ya(0),g=s.left+c.scrollLeft-d.x-h.x,v=s.top+c.scrollTop-d.y-h.y;return{x:g,y:v,width:s.width,height:s.height}}function Zp(e){return $a(e).position==="static"}function Qb(e,t){if(!Za(e)||$a(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ja(e)===n&&(n=n.ownerDocument.body),n}function z$(e,t){const n=Ti(e);if(yh(e))return n;if(!Za(e)){let i=ps(e);for(;i&&!ul(i);){if(ba(i)&&!Zp(i))return i;i=ps(i)}return n}let r=Qb(e,t);for(;r&&wR(r)&&Zp(r);)r=Qb(r,t);return r&&ul(r)&&Zp(r)&&!wv(r)?n:r||xR(e)||n}const MR=async function(e){const t=this.getOffsetParent||z$,n=this.getDimensions,r=await n(e.floating);return{reference:FR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function OR(e){return $a(e).direction==="rtl"}const IR={convertOffsetParentRelativeRectToViewportRelativeRect:SR,getDocumentElement:Ja,getClippingRect:kR,getOffsetParent:z$,getElementRects:MR,getClientRects:DR,getDimensions:RR,getScale:qu,isElement:ba,isRTL:OR};function U$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LR(e,t){let n=null,r;const i=Ja(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const h=e.getBoundingClientRect(),{left:g,top:v,width:$,height:y}=h;if(c||t(),!$||!y)return;const P=qf(v),T=qf(i.clientWidth-(g+$)),R=qf(i.clientHeight-(v+y)),D=qf(g),_={rootMargin:-P+"px "+-T+"px "+-R+"px "+-D+"px",threshold:Xs(0,ol(1,d))||1};let B=!0;function k(L){const X=L[0].intersectionRatio;if(X!==d){if(!B)return s();X?s(!1,X):r=setTimeout(()=>{s(!1,1e-7)},1e3)}X===1&&!U$(h,e.getBoundingClientRect())&&s(),B=!1}try{n=new IntersectionObserver(k,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,_)}n.observe(e)}return s(!0),a}function W$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Ev(e),g=i||a?[...h?Sc(h):[],...Sc(t)]:[];g.forEach(D=>{i&&D.addEventListener("scroll",n,{passive:!0}),a&&D.addEventListener("resize",n)});const v=h&&c?LR(h,n):null;let $=-1,y=null;s&&(y=new ResizeObserver(D=>{let[C]=D;C&&C.target===h&&y&&(y.unobserve(t),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var _;(_=y)==null||_.observe(t)})),n()}),h&&!d&&y.observe(h),y.observe(t));let P,T=d?iu(e):null;d&&R();function R(){const D=iu(e);T&&!U$(T,D)&&n(),T=D,P=requestAnimationFrame(R)}return n(),()=>{var D;g.forEach(C=>{i&&C.removeEventListener("scroll",n),a&&C.removeEventListener("resize",n)}),v==null||v(),(D=y)==null||D.disconnect(),y=null,d&&cancelAnimationFrame(P)}}const H$=bR,BR=$R,G$=vR,VR=gR,ag=(e,t,n)=>{const r=new Map,i={platform:IR,...n},a={...i.platform,_c:r};return mR(e,t,{...i,platform:a})};var vd=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Fd(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(!Fd(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 a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Fd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function q$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e1(e,t){const n=q$(e);return Math.round(t*n)/n}function Jp(e){const t=Ft.useRef(e);return vd(()=>{t.current=e}),t}function NR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:d,open:h}=e,[g,v]=Ft.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[$,y]=Ft.useState(r);Fd($,r)||y(r);const[P,T]=Ft.useState(null),[R,D]=Ft.useState(null),C=Ft.useCallback(oe=>{oe!==L.current&&(L.current=oe,T(oe))},[]),_=Ft.useCallback(oe=>{oe!==X.current&&(X.current=oe,D(oe))},[]),B=a||P,k=s||R,L=Ft.useRef(null),X=Ft.useRef(null),F=Ft.useRef(g),ge=d!=null,te=Jp(d),ie=Jp(i),De=Jp(h),me=Ft.useCallback(()=>{if(!L.current||!X.current)return;const oe={placement:t,strategy:n,middleware:$};ie.current&&(oe.platform=ie.current),ag(L.current,X.current,oe).then(Ce=>{const ee={...Ce,isPositioned:De.current!==!1};de.current&&!Fd(F.current,ee)&&(F.current=ee,fd.flushSync(()=>{v(ee)}))})},[$,t,n,ie,De]);vd(()=>{h===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,v(oe=>({...oe,isPositioned:!1})))},[h]);const de=Ft.useRef(!1);vd(()=>(de.current=!0,()=>{de.current=!1}),[]),vd(()=>{if(B&&(L.current=B),k&&(X.current=k),B&&k){if(te.current)return te.current(B,k,me);me()}},[B,k,me,te,ge]);const ne=Ft.useMemo(()=>({reference:L,floating:X,setReference:C,setFloating:_}),[C,_]),re=Ft.useMemo(()=>({reference:B,floating:k}),[B,k]),K=Ft.useMemo(()=>{const oe={position:n,left:0,top:0};if(!re.floating)return oe;const Ce=e1(re.floating,g.x),ee=e1(re.floating,g.y);return c?{...oe,transform:"translate("+Ce+"px, "+ee+"px)",...q$(re.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ce,top:ee}},[n,c,re.floating,g.x,g.y]);return Ft.useMemo(()=>({...g,update:me,refs:ne,elements:re,floatingStyles:K}),[g,me,ne,re,K])}const jR=(e,t)=>({...H$(e),options:[e,t]}),KR=(e,t)=>({...G$(e),options:[e,t]});var fc={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 zR=fc.exports,t1;function UR(){return t1||(t1=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,g="__lodash_placeholder__",v=1,$=2,y=4,P=1,T=2,R=1,D=2,C=4,_=8,B=16,k=32,L=64,X=128,F=256,ge=512,te=30,ie="...",De=800,me=16,de=1,ne=2,re=3,K=1/0,oe=9007199254740991,Ce=17976931348623157e292,ee=NaN,pe=4294967295,Pe=pe-1,Te=pe>>>1,Ve=[["ary",X],["bind",R],["bindKey",D],["curry",_],["curryRight",B],["flip",ge],["partial",k],["partialRight",L],["rearg",F]],Se="[object Arguments]",Je="[object Array]",Ge="[object AsyncFunction]",xe="[object Boolean]",Be="[object Date]",qe="[object DOMException]",Ke="[object Error]",Oe="[object Function]",et="[object GeneratorFunction]",wt="[object Map]",Lt="[object Number]",yt="[object Null]",xt="[object Object]",Yn="[object Promise]",tt="[object Proxy]",Et="[object RegExp]",At="[object Set]",Bn="[object String]",ar="[object Symbol]",Zn="[object Undefined]",Vn="[object WeakMap]",_r="[object WeakSet]",Jn="[object ArrayBuffer]",Qt="[object DataView]",or="[object Float32Array]",xr="[object Float64Array]",Wt="[object Int8Array]",Dt="[object Int16Array]",Tt="[object Int32Array]",Ct="[object Uint8Array]",zn="[object Uint8ClampedArray]",Er="[object Uint16Array]",sr="[object Uint32Array]",gr=/\b__p \+= '';/g,Xn=/\b(__p \+=) '' \+/g,Kr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ft=/&(?:amp|lt|gt|quot|#39);/g,Un=/[&<>"']/g,kr=RegExp(ft.source),xn=RegExp(Un.source),ur=/<%-([\s\S]+?)%>/g,$t=/<%([\s\S]+?)%>/g,Vt=/<%=([\s\S]+?)%>/g,kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hr=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gt=/[\\^$.*+?()[\]{}|]/g,Ye=RegExp(gt.source),Ot=/^\s+/,En=/\s/,Cr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pn=/\{\n\/\* \[wrapped with (.+)\] \*/,Nn=/,? & /,mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,un=/[()=,{}\[\]\/\s]/,Qn=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ln=/\w*$/,Gr=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Rn=/^\[object .+?Constructor\]$/,Yt=/^0o[0-7]+$/i,er=/^(?:0|[1-9]\d*)$/,Sr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cn=/($^)/,$i=/['\n\r\u2028\u2029\\]/g,Kt="\\ud800-\\udfff",ws="\\u0300-\\u036f",Qa="\\ufe20-\\ufe2f",xs="\\u20d0-\\u20ff",Da=ws+Qa+xs,Fi="\\u2700-\\u27bf",eo="a-z\\xdf-\\xf6\\xf8-\\xff",to="\\xac\\xb1\\xd7\\xf7",Io="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lo="\\u2000-\\u206f",Es=" \\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",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Aa="\\ufe0e\\ufe0f",no=to+Io+Lo+Es,ta="['’]",Vo="["+Kt+"]",No="["+no+"]",zr="["+Da+"]",Dr="\\d+",Y="["+Fi+"]",Ee="["+eo+"]",Me="[^"+Kt+no+Dr+Fi+eo+Bo+"]",ze="\\ud83c[\\udffb-\\udfff]",at="(?:"+zr+"|"+ze+")",Bt="[^"+Kt+"]",bt="(?:\\ud83c[\\udde6-\\uddff]){2}",St="[\\ud800-\\udbff][\\udc00-\\udfff]",Zt="["+Bo+"]",Pn="\\u200d",vr="(?:"+Ee+"|"+Me+")",yr="(?:"+Zt+"|"+Me+")",rn="(?:"+ta+"(?:d|ll|m|re|s|t|ve))?",Fr="(?:"+ta+"(?:D|LL|M|RE|S|T|VE))?",na=at+"?",Pa="["+Aa+"]?",ro="(?:"+Pn+"(?:"+[Bt,bt,St].join("|")+")"+Pa+na+")*",ri="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ta=Pa+na+ro,_a="(?:"+[Y,bt,St].join("|")+")"+Ta,io="(?:"+[Bt+zr+"?",zr,bt,St,Vo].join("|")+")",ra=RegExp(ta,"g"),ao=RegExp(zr,"g"),jo=RegExp(ze+"(?="+ze+")|"+io+Ta,"g"),yu=RegExp([Zt+"?"+Ee+"+"+rn+"(?="+[No,Zt,"$"].join("|")+")",yr+"+"+Fr+"(?="+[No,Zt+vr,"$"].join("|")+")",Zt+"?"+vr+"+"+rn,Zt+"+"+Fr,Cs,ri,Dr,_a].join("|"),"g"),Fl=RegExp("["+Pn+Kt+Da+Aa+"]"),oo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ml=["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"],so=-1,an={};an[or]=an[xr]=an[Wt]=an[Dt]=an[Tt]=an[Ct]=an[zn]=an[Er]=an[sr]=!0,an[Se]=an[Je]=an[Jn]=an[xe]=an[Qt]=an[Be]=an[Ke]=an[Oe]=an[wt]=an[Lt]=an[xt]=an[Et]=an[At]=an[Bn]=an[Vn]=!1;var fn={};fn[Se]=fn[Je]=fn[Jn]=fn[Qt]=fn[xe]=fn[Be]=fn[or]=fn[xr]=fn[Wt]=fn[Dt]=fn[Tt]=fn[wt]=fn[Lt]=fn[xt]=fn[Et]=fn[At]=fn[Bn]=fn[ar]=fn[Ct]=fn[zn]=fn[Er]=fn[sr]=!0,fn[Ke]=fn[Oe]=fn[Vn]=!1;var Q={À:"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"},_e={"&":"&","<":"<",">":">",'"':""","'":"'"},We={"&":"&","<":"<",">":">",""":'"',"'":"'"},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fn=parseFloat,Ar=parseInt,Mr=typeof is=="object"&&is&&is.Object===Object&&is,lr=typeof self=="object"&&self&&self.Object===Object&&self,jn=Mr||lr||Function("return this")(),Mi=t&&!t.nodeType&&t,Oi=Mi&&!0&&e&&!e.nodeType&&e,Ss=Oi&&Oi.exports===Mi,Ko=Ss&&Mr.process,Or=function(){try{var A=Oi&&Oi.require&&Oi.require("util").types;return A||Ko&&Ko.binding&&Ko.binding("util")}catch{}}(),uo=Or&&Or.isArrayBuffer,mf=Or&&Or.isDate,gf=Or&&Or.isMap,Ol=Or&&Or.isRegExp,zo=Or&&Or.isSet,ia=Or&&Or.isTypedArray;function tr(A,q,z){switch(z.length){case 0:return A.call(q);case 1:return A.call(q,z[0]);case 2:return A.call(q,z[0],z[1]);case 3:return A.call(q,z[0],z[1],z[2])}return A.apply(q,z)}function ka(A,q,z,le){for(var ue=-1,N=A==null?0:A.length;++ue<N;){var U=A[ue];q(le,U,z(U),A)}return le}function Dn(A,q){for(var z=-1,le=A==null?0:A.length;++z<le&&q(A[z],z,A)!==!1;);return A}function Ir(A,q){for(var z=A==null?0:A.length;z--&&q(A[z],z,A)!==!1;);return A}function lo(A,q){for(var z=-1,le=A==null?0:A.length;++z<le;)if(!q(A[z],z,A))return!1;return!0}function qr(A,q){for(var z=-1,le=A==null?0:A.length,ue=0,N=[];++z<le;){var U=A[z];q(U,z,A)&&(N[ue++]=U)}return N}function Ra(A,q){var z=A==null?0:A.length;return!!z&&co(A,q,0)>-1}function bu(A,q,z){for(var le=-1,ue=A==null?0:A.length;++le<ue;)if(z(q,A[le]))return!0;return!1}function Cn(A,q){for(var z=-1,le=A==null?0:A.length,ue=Array(le);++z<le;)ue[z]=q(A[z],z,A);return ue}function aa(A,q){for(var z=-1,le=q.length,ue=A.length;++z<le;)A[ue+z]=q[z];return A}function $u(A,q,z,le){var ue=-1,N=A==null?0:A.length;for(le&&N&&(z=A[++ue]);++ue<N;)z=q(z,A[ue],ue,A);return z}function Ds(A,q,z,le){var ue=A==null?0:A.length;for(le&&ue&&(z=A[--ue]);ue--;)z=q(z,A[ue],ue,A);return z}function Fa(A,q){for(var z=-1,le=A==null?0:A.length;++z<le;)if(q(A[z],z,A))return!0;return!1}var As=wu("length");function Ps(A){return A.split("")}function Jh(A){return A.match(mn)||[]}function Il(A,q,z){var le;return z(A,function(ue,N,U){if(q(ue,N,U))return le=N,!1}),le}function Ts(A,q,z,le){for(var ue=A.length,N=z+(le?1:-1);le?N--:++N<ue;)if(q(A[N],N,A))return N;return-1}function co(A,q,z){return q===q?f(A,q,z):Ts(A,Ll,z)}function vf(A,q,z,le){for(var ue=z-1,N=A.length;++ue<N;)if(le(A[ue],q))return ue;return-1}function Ll(A){return A!==A}function _s(A,q){var z=A==null?0:A.length;return z?Ma(A,q)/z:ee}function wu(A){return function(q){return q==null?n:q[A]}}function xu(A){return function(q){return A==null?n:A[q]}}function Bl(A,q,z,le,ue){return ue(A,function(N,U,M){z=le?(le=!1,N):q(z,N,U,M)}),z}function ks(A,q){var z=A.length;for(A.sort(q);z--;)A[z]=A[z].value;return A}function Ma(A,q){for(var z,le=-1,ue=A.length;++le<ue;){var N=q(A[le]);N!==n&&(z=z===n?N:z+N)}return z}function Eu(A,q){for(var z=-1,le=Array(A);++z<A;)le[z]=q(z);return le}function Xh(A,q){return Cn(q,function(z){return[z,A[z]]})}function yf(A){return A&&A.slice(0,E(A)+1).replace(Ot,"")}function Yr(A){return function(q){return A(q)}}function Vl(A,q){return Cn(q,function(z){return A[z]})}function Tn(A,q){return A.has(q)}function Cu(A,q){for(var z=-1,le=A.length;++z<le&&co(q,A[z],0)>-1;);return z}function Lr(A,q){for(var z=A.length;z--&&co(q,A[z],0)>-1;);return z}function Qh(A,q){for(var z=A.length,le=0;z--;)A[z]===q&&++le;return le}var ep=xu(Q),fo=xu(_e);function wi(A){return"\\"+pt[A]}function tp(A,q){return A==null?n:A[q]}function Zr(A){return Fl.test(A)}function Nl(A){return oo.test(A)}function Oa(A){for(var q,z=[];!(q=A.next()).done;)z.push(q.value);return z}function nr(A){var q=-1,z=Array(A.size);return A.forEach(function(le,ue){z[++q]=[ue,le]}),z}function Ii(A,q){return function(z){return A(q(z))}}function fi(A,q){for(var z=-1,le=A.length,ue=0,N=[];++z<le;){var U=A[z];(U===q||U===g)&&(A[z]=g,N[ue++]=z)}return N}function Uo(A){var q=-1,z=Array(A.size);return A.forEach(function(le){z[++q]=le}),z}function u(A){var q=-1,z=Array(A.size);return A.forEach(function(le){z[++q]=[le,le]}),z}function f(A,q,z){for(var le=z-1,ue=A.length;++le<ue;)if(A[le]===q)return le;return-1}function p(A,q,z){for(var le=z+1;le--;)if(A[le]===q)return le;return le}function b(A){return Zr(A)?fe(A):As(A)}function x(A){return Zr(A)?G(A):Ps(A)}function E(A){for(var q=A.length;q--&&En.test(A.charAt(q)););return q}var V=xu(We);function fe(A){for(var q=jo.lastIndex=0;jo.test(A);)++q;return q}function G(A){return A.match(jo)||[]}function ye(A){return A.match(yu)||[]}var $e=function A(q){q=q==null?jn:ke.defaults(jn.Object(),q,ke.pick(jn,Ml));var z=q.Array,le=q.Date,ue=q.Error,N=q.Function,U=q.Math,M=q.Object,I=q.RegExp,j=q.String,Z=q.TypeError,ae=z.prototype,ce=N.prototype,Fe=M.prototype,Qe=q["__core-js_shared__"],Xe=ce.toString,Le=Fe.hasOwnProperty,st=0,ct=function(){var o=/[^.]+$/.exec(Qe&&Qe.keys&&Qe.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),Ie=Fe.toString,be=Xe.call(M),se=jn._,H=I("^"+Xe.call(Le).replace(gt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),he=Ss?q.Buffer:n,Ne=q.Symbol,Re=q.Uint8Array,lt=he?he.allocUnsafe:n,It=Ii(M.getPrototypeOf,M),_t=M.create,Mn=Fe.propertyIsEnumerable,tn=ae.splice,Br=Ne?Ne.isConcatSpreadable:n,br=Ne?Ne.iterator:n,rr=Ne?Ne.toStringTag:n,cr=function(){try{var o=Is(M,"defineProperty");return o({},"",{}),o}catch{}}(),fr=q.clearTimeout!==jn.clearTimeout&&q.clearTimeout,Ur=le&&le.now!==jn.Date.now&&le.now,dt=q.setTimeout!==jn.setTimeout&&q.setTimeout,Sn=U.ceil,di=U.floor,Li=M.getOwnPropertySymbols,oa=he?he.isBuffer:n,xi=q.isFinite,sa=ae.join,ua=Ii(M.keys,M),on=U.max,On=U.min,Ia=le.now,Ei=q.parseInt,la=U.random,Ci=ae.reverse,ca=Is(q,"DataView"),La=Is(q,"Map"),Wo=Is(q,"Promise"),Su=Is(q,"Set"),jl=Is(q,"WeakMap"),Kl=Is(M,"create"),bf=jl&&new jl,Du={},uA=Ls(ca),lA=Ls(La),cA=Ls(Wo),fA=Ls(Su),dA=Ls(jl),$f=Ne?Ne.prototype:n,zl=$f?$f.valueOf:n,Xy=$f?$f.toString:n;function W(o){if(ir(o)&&!Nt(o)&&!(o instanceof en)){if(o instanceof Bi)return o;if(Le.call(o,"__wrapped__"))return Q0(o)}return new Bi(o)}var Au=function(){function o(){}return function(l){if(!Wn(l))return{};if(_t)return _t(l);o.prototype=l;var m=new o;return o.prototype=n,m}}();function wf(){}function Bi(o,l){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=n}W.templateSettings={escape:ur,evaluate:$t,interpolate:Vt,variable:"",imports:{_:W}},W.prototype=wf.prototype,W.prototype.constructor=W,Bi.prototype=Au(wf.prototype),Bi.prototype.constructor=Bi;function en(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pe,this.__views__=[]}function hA(){var o=new en(this.__wrapped__);return o.__actions__=hi(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=hi(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=hi(this.__views__),o}function pA(){if(this.__filtered__){var o=new en(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function mA(){var o=this.__wrapped__.value(),l=this.__dir__,m=Nt(o),w=l<0,O=m?o.length:0,J=AP(0,O,this.__views__),ve=J.start,we=J.end,Ae=we-ve,Ue=w?we:ve-1,He=this.__iteratees__,Ze=He.length,ot=0,vt=On(Ae,this.__takeCount__);if(!m||!w&&O==Ae&&vt==Ae)return x0(o,this.__actions__);var kt=[];e:for(;Ae--&&ot<vt;){Ue+=l;for(var Ht=-1,Rt=o[Ue];++Ht<Ze;){var Jt=He[Ht],nn=Jt.iteratee,Ai=Jt.type,oi=nn(Rt);if(Ai==ne)Rt=oi;else if(!oi){if(Ai==de)continue e;break e}}kt[ot++]=Rt}return kt}en.prototype=Au(wf.prototype),en.prototype.constructor=en;function Rs(o){var l=-1,m=o==null?0:o.length;for(this.clear();++l<m;){var w=o[l];this.set(w[0],w[1])}}function gA(){this.__data__=Kl?Kl(null):{},this.size=0}function vA(o){var l=this.has(o)&&delete this.__data__[o];return this.size-=l?1:0,l}function yA(o){var l=this.__data__;if(Kl){var m=l[o];return m===d?n:m}return Le.call(l,o)?l[o]:n}function bA(o){var l=this.__data__;return Kl?l[o]!==n:Le.call(l,o)}function $A(o,l){var m=this.__data__;return this.size+=this.has(o)?0:1,m[o]=Kl&&l===n?d:l,this}Rs.prototype.clear=gA,Rs.prototype.delete=vA,Rs.prototype.get=yA,Rs.prototype.has=bA,Rs.prototype.set=$A;function ho(o){var l=-1,m=o==null?0:o.length;for(this.clear();++l<m;){var w=o[l];this.set(w[0],w[1])}}function wA(){this.__data__=[],this.size=0}function xA(o){var l=this.__data__,m=xf(l,o);if(m<0)return!1;var w=l.length-1;return m==w?l.pop():tn.call(l,m,1),--this.size,!0}function EA(o){var l=this.__data__,m=xf(l,o);return m<0?n:l[m][1]}function CA(o){return xf(this.__data__,o)>-1}function SA(o,l){var m=this.__data__,w=xf(m,o);return w<0?(++this.size,m.push([o,l])):m[w][1]=l,this}ho.prototype.clear=wA,ho.prototype.delete=xA,ho.prototype.get=EA,ho.prototype.has=CA,ho.prototype.set=SA;function po(o){var l=-1,m=o==null?0:o.length;for(this.clear();++l<m;){var w=o[l];this.set(w[0],w[1])}}function DA(){this.size=0,this.__data__={hash:new Rs,map:new(La||ho),string:new Rs}}function AA(o){var l=Mf(this,o).delete(o);return this.size-=l?1:0,l}function PA(o){return Mf(this,o).get(o)}function TA(o){return Mf(this,o).has(o)}function _A(o,l){var m=Mf(this,o),w=m.size;return m.set(o,l),this.size+=m.size==w?0:1,this}po.prototype.clear=DA,po.prototype.delete=AA,po.prototype.get=PA,po.prototype.has=TA,po.prototype.set=_A;function Fs(o){var l=-1,m=o==null?0:o.length;for(this.__data__=new po;++l<m;)this.add(o[l])}function kA(o){return this.__data__.set(o,d),this}function RA(o){return this.__data__.has(o)}Fs.prototype.add=Fs.prototype.push=kA,Fs.prototype.has=RA;function fa(o){var l=this.__data__=new ho(o);this.size=l.size}function FA(){this.__data__=new ho,this.size=0}function MA(o){var l=this.__data__,m=l.delete(o);return this.size=l.size,m}function OA(o){return this.__data__.get(o)}function IA(o){return this.__data__.has(o)}function LA(o,l){var m=this.__data__;if(m instanceof ho){var w=m.__data__;if(!La||w.length<i-1)return w.push([o,l]),this.size=++m.size,this;m=this.__data__=new po(w)}return m.set(o,l),this.size=m.size,this}fa.prototype.clear=FA,fa.prototype.delete=MA,fa.prototype.get=OA,fa.prototype.has=IA,fa.prototype.set=LA;function Qy(o,l){var m=Nt(o),w=!m&&Bs(o),O=!m&&!w&&Zo(o),J=!m&&!w&&!O&&ku(o),ve=m||w||O||J,we=ve?Eu(o.length,j):[],Ae=we.length;for(var Ue in o)(l||Le.call(o,Ue))&&!(ve&&(Ue=="length"||O&&(Ue=="offset"||Ue=="parent")||J&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||yo(Ue,Ae)))&&we.push(Ue);return we}function e0(o){var l=o.length;return l?o[dp(0,l-1)]:n}function BA(o,l){return Of(hi(o),Ms(l,0,o.length))}function VA(o){return Of(hi(o))}function np(o,l,m){(m!==n&&!da(o[l],m)||m===n&&!(l in o))&&mo(o,l,m)}function Ul(o,l,m){var w=o[l];(!(Le.call(o,l)&&da(w,m))||m===n&&!(l in o))&&mo(o,l,m)}function xf(o,l){for(var m=o.length;m--;)if(da(o[m][0],l))return m;return-1}function NA(o,l,m,w){return Ho(o,function(O,J,ve){l(w,O,m(O),ve)}),w}function t0(o,l){return o&&Va(l,Vr(l),o)}function jA(o,l){return o&&Va(l,mi(l),o)}function mo(o,l,m){l=="__proto__"&&cr?cr(o,l,{configurable:!0,enumerable:!0,value:m,writable:!0}):o[l]=m}function rp(o,l){for(var m=-1,w=l.length,O=z(w),J=o==null;++m<w;)O[m]=J?n:Lp(o,l[m]);return O}function Ms(o,l,m){return o===o&&(m!==n&&(o=o<=m?o:m),l!==n&&(o=o>=l?o:l)),o}function Vi(o,l,m,w,O,J){var ve,we=l&v,Ae=l&$,Ue=l&y;if(m&&(ve=O?m(o,w,O,J):m(o)),ve!==n)return ve;if(!Wn(o))return o;var He=Nt(o);if(He){if(ve=TP(o),!we)return hi(o,ve)}else{var Ze=Jr(o),ot=Ze==Oe||Ze==et;if(Zo(o))return S0(o,we);if(Ze==xt||Ze==Se||ot&&!O){if(ve=Ae||ot?{}:U0(o),!we)return Ae?yP(o,jA(ve,o)):vP(o,t0(ve,o))}else{if(!fn[Ze])return O?o:{};ve=_P(o,Ze,we)}}J||(J=new fa);var vt=J.get(o);if(vt)return vt;J.set(o,ve),bb(o)?o.forEach(function(Rt){ve.add(Vi(Rt,l,m,Rt,o,J))}):vb(o)&&o.forEach(function(Rt,Jt){ve.set(Jt,Vi(Rt,l,m,Jt,o,J))});var kt=Ue?Ae?Ep:xp:Ae?mi:Vr,Ht=He?n:kt(o);return Dn(Ht||o,function(Rt,Jt){Ht&&(Jt=Rt,Rt=o[Jt]),Ul(ve,Jt,Vi(Rt,l,m,Jt,o,J))}),ve}function KA(o){var l=Vr(o);return function(m){return n0(m,o,l)}}function n0(o,l,m){var w=m.length;if(o==null)return!w;for(o=M(o);w--;){var O=m[w],J=l[O],ve=o[O];if(ve===n&&!(O in o)||!J(ve))return!1}return!0}function r0(o,l,m){if(typeof o!="function")throw new Z(s);return Jl(function(){o.apply(n,m)},l)}function Wl(o,l,m,w){var O=-1,J=Ra,ve=!0,we=o.length,Ae=[],Ue=l.length;if(!we)return Ae;m&&(l=Cn(l,Yr(m))),w?(J=bu,ve=!1):l.length>=i&&(J=Tn,ve=!1,l=new Fs(l));e:for(;++O<we;){var He=o[O],Ze=m==null?He:m(He);if(He=w||He!==0?He:0,ve&&Ze===Ze){for(var ot=Ue;ot--;)if(l[ot]===Ze)continue e;Ae.push(He)}else J(l,Ze,w)||Ae.push(He)}return Ae}var Ho=_0(Ba),i0=_0(ap,!0);function zA(o,l){var m=!0;return Ho(o,function(w,O,J){return m=!!l(w,O,J),m}),m}function Ef(o,l,m){for(var w=-1,O=o.length;++w<O;){var J=o[w],ve=l(J);if(ve!=null&&(we===n?ve===ve&&!Di(ve):m(ve,we)))var we=ve,Ae=J}return Ae}function UA(o,l,m,w){var O=o.length;for(m=zt(m),m<0&&(m=-m>O?0:O+m),w=w===n||w>O?O:zt(w),w<0&&(w+=O),w=m>w?0:wb(w);m<w;)o[m++]=l;return o}function a0(o,l){var m=[];return Ho(o,function(w,O,J){l(w,O,J)&&m.push(w)}),m}function Wr(o,l,m,w,O){var J=-1,ve=o.length;for(m||(m=RP),O||(O=[]);++J<ve;){var we=o[J];l>0&&m(we)?l>1?Wr(we,l-1,m,w,O):aa(O,we):w||(O[O.length]=we)}return O}var ip=k0(),o0=k0(!0);function Ba(o,l){return o&&ip(o,l,Vr)}function ap(o,l){return o&&o0(o,l,Vr)}function Cf(o,l){return qr(l,function(m){return bo(o[m])})}function Os(o,l){l=qo(l,o);for(var m=0,w=l.length;o!=null&&m<w;)o=o[Na(l[m++])];return m&&m==w?o:n}function s0(o,l,m){var w=l(o);return Nt(o)?w:aa(w,m(o))}function ii(o){return o==null?o===n?Zn:yt:rr&&rr in M(o)?DP(o):VP(o)}function op(o,l){return o>l}function WA(o,l){return o!=null&&Le.call(o,l)}function HA(o,l){return o!=null&&l in M(o)}function GA(o,l,m){return o>=On(l,m)&&o<on(l,m)}function sp(o,l,m){for(var w=m?bu:Ra,O=o[0].length,J=o.length,ve=J,we=z(J),Ae=1/0,Ue=[];ve--;){var He=o[ve];ve&&l&&(He=Cn(He,Yr(l))),Ae=On(He.length,Ae),we[ve]=!m&&(l||O>=120&&He.length>=120)?new Fs(ve&&He):n}He=o[0];var Ze=-1,ot=we[0];e:for(;++Ze<O&&Ue.length<Ae;){var vt=He[Ze],kt=l?l(vt):vt;if(vt=m||vt!==0?vt:0,!(ot?Tn(ot,kt):w(Ue,kt,m))){for(ve=J;--ve;){var Ht=we[ve];if(!(Ht?Tn(Ht,kt):w(o[ve],kt,m)))continue e}ot&&ot.push(kt),Ue.push(vt)}}return Ue}function qA(o,l,m,w){return Ba(o,function(O,J,ve){l(w,m(O),J,ve)}),w}function Hl(o,l,m){l=qo(l,o),o=q0(o,l);var w=o==null?o:o[Na(ji(l))];return w==null?n:tr(w,o,m)}function u0(o){return ir(o)&&ii(o)==Se}function YA(o){return ir(o)&&ii(o)==Jn}function ZA(o){return ir(o)&&ii(o)==Be}function Gl(o,l,m,w,O){return o===l?!0:o==null||l==null||!ir(o)&&!ir(l)?o!==o&&l!==l:JA(o,l,m,w,Gl,O)}function JA(o,l,m,w,O,J){var ve=Nt(o),we=Nt(l),Ae=ve?Je:Jr(o),Ue=we?Je:Jr(l);Ae=Ae==Se?xt:Ae,Ue=Ue==Se?xt:Ue;var He=Ae==xt,Ze=Ue==xt,ot=Ae==Ue;if(ot&&Zo(o)){if(!Zo(l))return!1;ve=!0,He=!1}if(ot&&!He)return J||(J=new fa),ve||ku(o)?j0(o,l,m,w,O,J):CP(o,l,Ae,m,w,O,J);if(!(m&P)){var vt=He&&Le.call(o,"__wrapped__"),kt=Ze&&Le.call(l,"__wrapped__");if(vt||kt){var Ht=vt?o.value():o,Rt=kt?l.value():l;return J||(J=new fa),O(Ht,Rt,m,w,J)}}return ot?(J||(J=new fa),SP(o,l,m,w,O,J)):!1}function XA(o){return ir(o)&&Jr(o)==wt}function up(o,l,m,w){var O=m.length,J=O,ve=!w;if(o==null)return!J;for(o=M(o);O--;){var we=m[O];if(ve&&we[2]?we[1]!==o[we[0]]:!(we[0]in o))return!1}for(;++O<J;){we=m[O];var Ae=we[0],Ue=o[Ae],He=we[1];if(ve&&we[2]){if(Ue===n&&!(Ae in o))return!1}else{var Ze=new fa;if(w)var ot=w(Ue,He,Ae,o,l,Ze);if(!(ot===n?Gl(He,Ue,P|T,w,Ze):ot))return!1}}return!0}function l0(o){if(!Wn(o)||MP(o))return!1;var l=bo(o)?H:Rn;return l.test(Ls(o))}function QA(o){return ir(o)&&ii(o)==Et}function eP(o){return ir(o)&&Jr(o)==At}function tP(o){return ir(o)&&jf(o.length)&&!!an[ii(o)]}function c0(o){return typeof o=="function"?o:o==null?gi:typeof o=="object"?Nt(o)?h0(o[0],o[1]):d0(o):Rb(o)}function lp(o){if(!Zl(o))return ua(o);var l=[];for(var m in M(o))Le.call(o,m)&&m!="constructor"&&l.push(m);return l}function nP(o){if(!Wn(o))return BP(o);var l=Zl(o),m=[];for(var w in o)w=="constructor"&&(l||!Le.call(o,w))||m.push(w);return m}function cp(o,l){return o<l}function f0(o,l){var m=-1,w=pi(o)?z(o.length):[];return Ho(o,function(O,J,ve){w[++m]=l(O,J,ve)}),w}function d0(o){var l=Sp(o);return l.length==1&&l[0][2]?H0(l[0][0],l[0][1]):function(m){return m===o||up(m,o,l)}}function h0(o,l){return Ap(o)&&W0(l)?H0(Na(o),l):function(m){var w=Lp(m,o);return w===n&&w===l?Bp(m,o):Gl(l,w,P|T)}}function Sf(o,l,m,w,O){o!==l&&ip(l,function(J,ve){if(O||(O=new fa),Wn(J))rP(o,l,ve,m,Sf,w,O);else{var we=w?w(Tp(o,ve),J,ve+"",o,l,O):n;we===n&&(we=J),np(o,ve,we)}},mi)}function rP(o,l,m,w,O,J,ve){var we=Tp(o,m),Ae=Tp(l,m),Ue=ve.get(Ae);if(Ue){np(o,m,Ue);return}var He=J?J(we,Ae,m+"",o,l,ve):n,Ze=He===n;if(Ze){var ot=Nt(Ae),vt=!ot&&Zo(Ae),kt=!ot&&!vt&&ku(Ae);He=Ae,ot||vt||kt?Nt(we)?He=we:dr(we)?He=hi(we):vt?(Ze=!1,He=S0(Ae,!0)):kt?(Ze=!1,He=D0(Ae,!0)):He=[]:Xl(Ae)||Bs(Ae)?(He=we,Bs(we)?He=xb(we):(!Wn(we)||bo(we))&&(He=U0(Ae))):Ze=!1}Ze&&(ve.set(Ae,He),O(He,Ae,w,J,ve),ve.delete(Ae)),np(o,m,He)}function p0(o,l){var m=o.length;if(m)return l+=l<0?m:0,yo(l,m)?o[l]:n}function m0(o,l,m){l.length?l=Cn(l,function(J){return Nt(J)?function(ve){return Os(ve,J.length===1?J[0]:J)}:J}):l=[gi];var w=-1;l=Cn(l,Yr(Pt()));var O=f0(o,function(J,ve,we){var Ae=Cn(l,function(Ue){return Ue(J)});return{criteria:Ae,index:++w,value:J}});return ks(O,function(J,ve){return gP(J,ve,m)})}function iP(o,l){return g0(o,l,function(m,w){return Bp(o,w)})}function g0(o,l,m){for(var w=-1,O=l.length,J={};++w<O;){var ve=l[w],we=Os(o,ve);m(we,ve)&&ql(J,qo(ve,o),we)}return J}function aP(o){return function(l){return Os(l,o)}}function fp(o,l,m,w){var O=w?vf:co,J=-1,ve=l.length,we=o;for(o===l&&(l=hi(l)),m&&(we=Cn(o,Yr(m)));++J<ve;)for(var Ae=0,Ue=l[J],He=m?m(Ue):Ue;(Ae=O(we,He,Ae,w))>-1;)we!==o&&tn.call(we,Ae,1),tn.call(o,Ae,1);return o}function v0(o,l){for(var m=o?l.length:0,w=m-1;m--;){var O=l[m];if(m==w||O!==J){var J=O;yo(O)?tn.call(o,O,1):mp(o,O)}}return o}function dp(o,l){return o+di(la()*(l-o+1))}function oP(o,l,m,w){for(var O=-1,J=on(Sn((l-o)/(m||1)),0),ve=z(J);J--;)ve[w?J:++O]=o,o+=m;return ve}function hp(o,l){var m="";if(!o||l<1||l>oe)return m;do l%2&&(m+=o),l=di(l/2),l&&(o+=o);while(l);return m}function qt(o,l){return _p(G0(o,l,gi),o+"")}function sP(o){return e0(Ru(o))}function uP(o,l){var m=Ru(o);return Of(m,Ms(l,0,m.length))}function ql(o,l,m,w){if(!Wn(o))return o;l=qo(l,o);for(var O=-1,J=l.length,ve=J-1,we=o;we!=null&&++O<J;){var Ae=Na(l[O]),Ue=m;if(Ae==="__proto__"||Ae==="constructor"||Ae==="prototype")return o;if(O!=ve){var He=we[Ae];Ue=w?w(He,Ae,we):n,Ue===n&&(Ue=Wn(He)?He:yo(l[O+1])?[]:{})}Ul(we,Ae,Ue),we=we[Ae]}return o}var y0=bf?function(o,l){return bf.set(o,l),o}:gi,lP=cr?function(o,l){return cr(o,"toString",{configurable:!0,enumerable:!1,value:Np(l),writable:!0})}:gi;function cP(o){return Of(Ru(o))}function Ni(o,l,m){var w=-1,O=o.length;l<0&&(l=-l>O?0:O+l),m=m>O?O:m,m<0&&(m+=O),O=l>m?0:m-l>>>0,l>>>=0;for(var J=z(O);++w<O;)J[w]=o[w+l];return J}function fP(o,l){var m;return Ho(o,function(w,O,J){return m=l(w,O,J),!m}),!!m}function Df(o,l,m){var w=0,O=o==null?w:o.length;if(typeof l=="number"&&l===l&&O<=Te){for(;w<O;){var J=w+O>>>1,ve=o[J];ve!==null&&!Di(ve)&&(m?ve<=l:ve<l)?w=J+1:O=J}return O}return pp(o,l,gi,m)}function pp(o,l,m,w){var O=0,J=o==null?0:o.length;if(J===0)return 0;l=m(l);for(var ve=l!==l,we=l===null,Ae=Di(l),Ue=l===n;O<J;){var He=di((O+J)/2),Ze=m(o[He]),ot=Ze!==n,vt=Ze===null,kt=Ze===Ze,Ht=Di(Ze);if(ve)var Rt=w||kt;else Ue?Rt=kt&&(w||ot):we?Rt=kt&&ot&&(w||!vt):Ae?Rt=kt&&ot&&!vt&&(w||!Ht):vt||Ht?Rt=!1:Rt=w?Ze<=l:Ze<l;Rt?O=He+1:J=He}return On(J,Pe)}function b0(o,l){for(var m=-1,w=o.length,O=0,J=[];++m<w;){var ve=o[m],we=l?l(ve):ve;if(!m||!da(we,Ae)){var Ae=we;J[O++]=ve===0?0:ve}}return J}function $0(o){return typeof o=="number"?o:Di(o)?ee:+o}function Si(o){if(typeof o=="string")return o;if(Nt(o))return Cn(o,Si)+"";if(Di(o))return Xy?Xy.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}function Go(o,l,m){var w=-1,O=Ra,J=o.length,ve=!0,we=[],Ae=we;if(m)ve=!1,O=bu;else if(J>=i){var Ue=l?null:xP(o);if(Ue)return Uo(Ue);ve=!1,O=Tn,Ae=new Fs}else Ae=l?[]:we;e:for(;++w<J;){var He=o[w],Ze=l?l(He):He;if(He=m||He!==0?He:0,ve&&Ze===Ze){for(var ot=Ae.length;ot--;)if(Ae[ot]===Ze)continue e;l&&Ae.push(Ze),we.push(He)}else O(Ae,Ze,m)||(Ae!==we&&Ae.push(Ze),we.push(He))}return we}function mp(o,l){return l=qo(l,o),o=q0(o,l),o==null||delete o[Na(ji(l))]}function w0(o,l,m,w){return ql(o,l,m(Os(o,l)),w)}function Af(o,l,m,w){for(var O=o.length,J=w?O:-1;(w?J--:++J<O)&&l(o[J],J,o););return m?Ni(o,w?0:J,w?J+1:O):Ni(o,w?J+1:0,w?O:J)}function x0(o,l){var m=o;return m instanceof en&&(m=m.value()),$u(l,function(w,O){return O.func.apply(O.thisArg,aa([w],O.args))},m)}function gp(o,l,m){var w=o.length;if(w<2)return w?Go(o[0]):[];for(var O=-1,J=z(w);++O<w;)for(var ve=o[O],we=-1;++we<w;)we!=O&&(J[O]=Wl(J[O]||ve,o[we],l,m));return Go(Wr(J,1),l,m)}function E0(o,l,m){for(var w=-1,O=o.length,J=l.length,ve={};++w<O;){var we=w<J?l[w]:n;m(ve,o[w],we)}return ve}function vp(o){return dr(o)?o:[]}function yp(o){return typeof o=="function"?o:gi}function qo(o,l){return Nt(o)?o:Ap(o,l)?[o]:X0(gn(o))}var dP=qt;function Yo(o,l,m){var w=o.length;return m=m===n?w:m,!l&&m>=w?o:Ni(o,l,m)}var C0=fr||function(o){return jn.clearTimeout(o)};function S0(o,l){if(l)return o.slice();var m=o.length,w=lt?lt(m):new o.constructor(m);return o.copy(w),w}function bp(o){var l=new o.constructor(o.byteLength);return new Re(l).set(new Re(o)),l}function hP(o,l){var m=l?bp(o.buffer):o.buffer;return new o.constructor(m,o.byteOffset,o.byteLength)}function pP(o){var l=new o.constructor(o.source,ln.exec(o));return l.lastIndex=o.lastIndex,l}function mP(o){return zl?M(zl.call(o)):{}}function D0(o,l){var m=l?bp(o.buffer):o.buffer;return new o.constructor(m,o.byteOffset,o.length)}function A0(o,l){if(o!==l){var m=o!==n,w=o===null,O=o===o,J=Di(o),ve=l!==n,we=l===null,Ae=l===l,Ue=Di(l);if(!we&&!Ue&&!J&&o>l||J&&ve&&Ae&&!we&&!Ue||w&&ve&&Ae||!m&&Ae||!O)return 1;if(!w&&!J&&!Ue&&o<l||Ue&&m&&O&&!w&&!J||we&&m&&O||!ve&&O||!Ae)return-1}return 0}function gP(o,l,m){for(var w=-1,O=o.criteria,J=l.criteria,ve=O.length,we=m.length;++w<ve;){var Ae=A0(O[w],J[w]);if(Ae){if(w>=we)return Ae;var Ue=m[w];return Ae*(Ue=="desc"?-1:1)}}return o.index-l.index}function P0(o,l,m,w){for(var O=-1,J=o.length,ve=m.length,we=-1,Ae=l.length,Ue=on(J-ve,0),He=z(Ae+Ue),Ze=!w;++we<Ae;)He[we]=l[we];for(;++O<ve;)(Ze||O<J)&&(He[m[O]]=o[O]);for(;Ue--;)He[we++]=o[O++];return He}function T0(o,l,m,w){for(var O=-1,J=o.length,ve=-1,we=m.length,Ae=-1,Ue=l.length,He=on(J-we,0),Ze=z(He+Ue),ot=!w;++O<He;)Ze[O]=o[O];for(var vt=O;++Ae<Ue;)Ze[vt+Ae]=l[Ae];for(;++ve<we;)(ot||O<J)&&(Ze[vt+m[ve]]=o[O++]);return Ze}function hi(o,l){var m=-1,w=o.length;for(l||(l=z(w));++m<w;)l[m]=o[m];return l}function Va(o,l,m,w){var O=!m;m||(m={});for(var J=-1,ve=l.length;++J<ve;){var we=l[J],Ae=w?w(m[we],o[we],we,m,o):n;Ae===n&&(Ae=o[we]),O?mo(m,we,Ae):Ul(m,we,Ae)}return m}function vP(o,l){return Va(o,Dp(o),l)}function yP(o,l){return Va(o,K0(o),l)}function Pf(o,l){return function(m,w){var O=Nt(m)?ka:NA,J=l?l():{};return O(m,o,Pt(w,2),J)}}function Pu(o){return qt(function(l,m){var w=-1,O=m.length,J=O>1?m[O-1]:n,ve=O>2?m[2]:n;for(J=o.length>3&&typeof J=="function"?(O--,J):n,ve&&ai(m[0],m[1],ve)&&(J=O<3?n:J,O=1),l=M(l);++w<O;){var we=m[w];we&&o(l,we,w,J)}return l})}function _0(o,l){return function(m,w){if(m==null)return m;if(!pi(m))return o(m,w);for(var O=m.length,J=l?O:-1,ve=M(m);(l?J--:++J<O)&&w(ve[J],J,ve)!==!1;);return m}}function k0(o){return function(l,m,w){for(var O=-1,J=M(l),ve=w(l),we=ve.length;we--;){var Ae=ve[o?we:++O];if(m(J[Ae],Ae,J)===!1)break}return l}}function bP(o,l,m){var w=l&R,O=Yl(o);function J(){var ve=this&&this!==jn&&this instanceof J?O:o;return ve.apply(w?m:this,arguments)}return J}function R0(o){return function(l){l=gn(l);var m=Zr(l)?x(l):n,w=m?m[0]:l.charAt(0),O=m?Yo(m,1).join(""):l.slice(1);return w[o]()+O}}function Tu(o){return function(l){return $u(_b(Tb(l).replace(ra,"")),o,"")}}function Yl(o){return function(){var l=arguments;switch(l.length){case 0:return new o;case 1:return new o(l[0]);case 2:return new o(l[0],l[1]);case 3:return new o(l[0],l[1],l[2]);case 4:return new o(l[0],l[1],l[2],l[3]);case 5:return new o(l[0],l[1],l[2],l[3],l[4]);case 6:return new o(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new o(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var m=Au(o.prototype),w=o.apply(m,l);return Wn(w)?w:m}}function $P(o,l,m){var w=Yl(o);function O(){for(var J=arguments.length,ve=z(J),we=J,Ae=_u(O);we--;)ve[we]=arguments[we];var Ue=J<3&&ve[0]!==Ae&&ve[J-1]!==Ae?[]:fi(ve,Ae);if(J-=Ue.length,J<m)return L0(o,l,Tf,O.placeholder,n,ve,Ue,n,n,m-J);var He=this&&this!==jn&&this instanceof O?w:o;return tr(He,this,ve)}return O}function F0(o){return function(l,m,w){var O=M(l);if(!pi(l)){var J=Pt(m,3);l=Vr(l),m=function(we){return J(O[we],we,O)}}var ve=o(l,m,w);return ve>-1?O[J?l[ve]:ve]:n}}function M0(o){return vo(function(l){var m=l.length,w=m,O=Bi.prototype.thru;for(o&&l.reverse();w--;){var J=l[w];if(typeof J!="function")throw new Z(s);if(O&&!ve&&Ff(J)=="wrapper")var ve=new Bi([],!0)}for(w=ve?w:m;++w<m;){J=l[w];var we=Ff(J),Ae=we=="wrapper"?Cp(J):n;Ae&&Pp(Ae[0])&&Ae[1]==(X|_|k|F)&&!Ae[4].length&&Ae[9]==1?ve=ve[Ff(Ae[0])].apply(ve,Ae[3]):ve=J.length==1&&Pp(J)?ve[we]():ve.thru(J)}return function(){var Ue=arguments,He=Ue[0];if(ve&&Ue.length==1&&Nt(He))return ve.plant(He).value();for(var Ze=0,ot=m?l[Ze].apply(this,Ue):He;++Ze<m;)ot=l[Ze].call(this,ot);return ot}})}function Tf(o,l,m,w,O,J,ve,we,Ae,Ue){var He=l&X,Ze=l&R,ot=l&D,vt=l&(_|B),kt=l&ge,Ht=ot?n:Yl(o);function Rt(){for(var Jt=arguments.length,nn=z(Jt),Ai=Jt;Ai--;)nn[Ai]=arguments[Ai];if(vt)var oi=_u(Rt),Pi=Qh(nn,oi);if(w&&(nn=P0(nn,w,O,vt)),J&&(nn=T0(nn,J,ve,vt)),Jt-=Pi,vt&&Jt<Ue){var hr=fi(nn,oi);return L0(o,l,Tf,Rt.placeholder,m,nn,hr,we,Ae,Ue-Jt)}var ha=Ze?m:this,wo=ot?ha[o]:o;return Jt=nn.length,we?nn=NP(nn,we):kt&&Jt>1&&nn.reverse(),He&&Ae<Jt&&(nn.length=Ae),this&&this!==jn&&this instanceof Rt&&(wo=Ht||Yl(wo)),wo.apply(ha,nn)}return Rt}function O0(o,l){return function(m,w){return qA(m,o,l(w),{})}}function _f(o,l){return function(m,w){var O;if(m===n&&w===n)return l;if(m!==n&&(O=m),w!==n){if(O===n)return w;typeof m=="string"||typeof w=="string"?(m=Si(m),w=Si(w)):(m=$0(m),w=$0(w)),O=o(m,w)}return O}}function $p(o){return vo(function(l){return l=Cn(l,Yr(Pt())),qt(function(m){var w=this;return o(l,function(O){return tr(O,w,m)})})})}function kf(o,l){l=l===n?" ":Si(l);var m=l.length;if(m<2)return m?hp(l,o):l;var w=hp(l,Sn(o/b(l)));return Zr(l)?Yo(x(w),0,o).join(""):w.slice(0,o)}function wP(o,l,m,w){var O=l&R,J=Yl(o);function ve(){for(var we=-1,Ae=arguments.length,Ue=-1,He=w.length,Ze=z(He+Ae),ot=this&&this!==jn&&this instanceof ve?J:o;++Ue<He;)Ze[Ue]=w[Ue];for(;Ae--;)Ze[Ue++]=arguments[++we];return tr(ot,O?m:this,Ze)}return ve}function I0(o){return function(l,m,w){return w&&typeof w!="number"&&ai(l,m,w)&&(m=w=n),l=$o(l),m===n?(m=l,l=0):m=$o(m),w=w===n?l<m?1:-1:$o(w),oP(l,m,w,o)}}function Rf(o){return function(l,m){return typeof l=="string"&&typeof m=="string"||(l=Ki(l),m=Ki(m)),o(l,m)}}function L0(o,l,m,w,O,J,ve,we,Ae,Ue){var He=l&_,Ze=He?ve:n,ot=He?n:ve,vt=He?J:n,kt=He?n:J;l|=He?k:L,l&=~(He?L:k),l&C||(l&=-4);var Ht=[o,l,O,vt,Ze,kt,ot,we,Ae,Ue],Rt=m.apply(n,Ht);return Pp(o)&&Y0(Rt,Ht),Rt.placeholder=w,Z0(Rt,o,l)}function wp(o){var l=U[o];return function(m,w){if(m=Ki(m),w=w==null?0:On(zt(w),292),w&&xi(m)){var O=(gn(m)+"e").split("e"),J=l(O[0]+"e"+(+O[1]+w));return O=(gn(J)+"e").split("e"),+(O[0]+"e"+(+O[1]-w))}return l(m)}}var xP=Su&&1/Uo(new Su([,-0]))[1]==K?function(o){return new Su(o)}:zp;function B0(o){return function(l){var m=Jr(l);return m==wt?nr(l):m==At?u(l):Xh(l,o(l))}}function go(o,l,m,w,O,J,ve,we){var Ae=l&D;if(!Ae&&typeof o!="function")throw new Z(s);var Ue=w?w.length:0;if(Ue||(l&=-97,w=O=n),ve=ve===n?ve:on(zt(ve),0),we=we===n?we:zt(we),Ue-=O?O.length:0,l&L){var He=w,Ze=O;w=O=n}var ot=Ae?n:Cp(o),vt=[o,l,m,w,O,He,Ze,J,ve,we];if(ot&&LP(vt,ot),o=vt[0],l=vt[1],m=vt[2],w=vt[3],O=vt[4],we=vt[9]=vt[9]===n?Ae?0:o.length:on(vt[9]-Ue,0),!we&&l&(_|B)&&(l&=-25),!l||l==R)var kt=bP(o,l,m);else l==_||l==B?kt=$P(o,l,we):(l==k||l==(R|k))&&!O.length?kt=wP(o,l,m,w):kt=Tf.apply(n,vt);var Ht=ot?y0:Y0;return Z0(Ht(kt,vt),o,l)}function V0(o,l,m,w){return o===n||da(o,Fe[m])&&!Le.call(w,m)?l:o}function N0(o,l,m,w,O,J){return Wn(o)&&Wn(l)&&(J.set(l,o),Sf(o,l,n,N0,J),J.delete(l)),o}function EP(o){return Xl(o)?n:o}function j0(o,l,m,w,O,J){var ve=m&P,we=o.length,Ae=l.length;if(we!=Ae&&!(ve&&Ae>we))return!1;var Ue=J.get(o),He=J.get(l);if(Ue&&He)return Ue==l&&He==o;var Ze=-1,ot=!0,vt=m&T?new Fs:n;for(J.set(o,l),J.set(l,o);++Ze<we;){var kt=o[Ze],Ht=l[Ze];if(w)var Rt=ve?w(Ht,kt,Ze,l,o,J):w(kt,Ht,Ze,o,l,J);if(Rt!==n){if(Rt)continue;ot=!1;break}if(vt){if(!Fa(l,function(Jt,nn){if(!Tn(vt,nn)&&(kt===Jt||O(kt,Jt,m,w,J)))return vt.push(nn)})){ot=!1;break}}else if(!(kt===Ht||O(kt,Ht,m,w,J))){ot=!1;break}}return J.delete(o),J.delete(l),ot}function CP(o,l,m,w,O,J,ve){switch(m){case Qt:if(o.byteLength!=l.byteLength||o.byteOffset!=l.byteOffset)return!1;o=o.buffer,l=l.buffer;case Jn:return!(o.byteLength!=l.byteLength||!J(new Re(o),new Re(l)));case xe:case Be:case Lt:return da(+o,+l);case Ke:return o.name==l.name&&o.message==l.message;case Et:case Bn:return o==l+"";case wt:var we=nr;case At:var Ae=w&P;if(we||(we=Uo),o.size!=l.size&&!Ae)return!1;var Ue=ve.get(o);if(Ue)return Ue==l;w|=T,ve.set(o,l);var He=j0(we(o),we(l),w,O,J,ve);return ve.delete(o),He;case ar:if(zl)return zl.call(o)==zl.call(l)}return!1}function SP(o,l,m,w,O,J){var ve=m&P,we=xp(o),Ae=we.length,Ue=xp(l),He=Ue.length;if(Ae!=He&&!ve)return!1;for(var Ze=Ae;Ze--;){var ot=we[Ze];if(!(ve?ot in l:Le.call(l,ot)))return!1}var vt=J.get(o),kt=J.get(l);if(vt&&kt)return vt==l&&kt==o;var Ht=!0;J.set(o,l),J.set(l,o);for(var Rt=ve;++Ze<Ae;){ot=we[Ze];var Jt=o[ot],nn=l[ot];if(w)var Ai=ve?w(nn,Jt,ot,l,o,J):w(Jt,nn,ot,o,l,J);if(!(Ai===n?Jt===nn||O(Jt,nn,m,w,J):Ai)){Ht=!1;break}Rt||(Rt=ot=="constructor")}if(Ht&&!Rt){var oi=o.constructor,Pi=l.constructor;oi!=Pi&&"constructor"in o&&"constructor"in l&&!(typeof oi=="function"&&oi instanceof oi&&typeof Pi=="function"&&Pi instanceof Pi)&&(Ht=!1)}return J.delete(o),J.delete(l),Ht}function vo(o){return _p(G0(o,n,nb),o+"")}function xp(o){return s0(o,Vr,Dp)}function Ep(o){return s0(o,mi,K0)}var Cp=bf?function(o){return bf.get(o)}:zp;function Ff(o){for(var l=o.name+"",m=Du[l],w=Le.call(Du,l)?m.length:0;w--;){var O=m[w],J=O.func;if(J==null||J==o)return O.name}return l}function _u(o){var l=Le.call(W,"placeholder")?W:o;return l.placeholder}function Pt(){var o=W.iteratee||jp;return o=o===jp?c0:o,arguments.length?o(arguments[0],arguments[1]):o}function Mf(o,l){var m=o.__data__;return FP(l)?m[typeof l=="string"?"string":"hash"]:m.map}function Sp(o){for(var l=Vr(o),m=l.length;m--;){var w=l[m],O=o[w];l[m]=[w,O,W0(O)]}return l}function Is(o,l){var m=tp(o,l);return l0(m)?m:n}function DP(o){var l=Le.call(o,rr),m=o[rr];try{o[rr]=n;var w=!0}catch{}var O=Ie.call(o);return w&&(l?o[rr]=m:delete o[rr]),O}var Dp=Li?function(o){return o==null?[]:(o=M(o),qr(Li(o),function(l){return Mn.call(o,l)}))}:Up,K0=Li?function(o){for(var l=[];o;)aa(l,Dp(o)),o=It(o);return l}:Up,Jr=ii;(ca&&Jr(new ca(new ArrayBuffer(1)))!=Qt||La&&Jr(new La)!=wt||Wo&&Jr(Wo.resolve())!=Yn||Su&&Jr(new Su)!=At||jl&&Jr(new jl)!=Vn)&&(Jr=function(o){var l=ii(o),m=l==xt?o.constructor:n,w=m?Ls(m):"";if(w)switch(w){case uA:return Qt;case lA:return wt;case cA:return Yn;case fA:return At;case dA:return Vn}return l});function AP(o,l,m){for(var w=-1,O=m.length;++w<O;){var J=m[w],ve=J.size;switch(J.type){case"drop":o+=ve;break;case"dropRight":l-=ve;break;case"take":l=On(l,o+ve);break;case"takeRight":o=on(o,l-ve);break}}return{start:o,end:l}}function PP(o){var l=o.match(pn);return l?l[1].split(Nn):[]}function z0(o,l,m){l=qo(l,o);for(var w=-1,O=l.length,J=!1;++w<O;){var ve=Na(l[w]);if(!(J=o!=null&&m(o,ve)))break;o=o[ve]}return J||++w!=O?J:(O=o==null?0:o.length,!!O&&jf(O)&&yo(ve,O)&&(Nt(o)||Bs(o)))}function TP(o){var l=o.length,m=new o.constructor(l);return l&&typeof o[0]=="string"&&Le.call(o,"index")&&(m.index=o.index,m.input=o.input),m}function U0(o){return typeof o.constructor=="function"&&!Zl(o)?Au(It(o)):{}}function _P(o,l,m){var w=o.constructor;switch(l){case Jn:return bp(o);case xe:case Be:return new w(+o);case Qt:return hP(o,m);case or:case xr:case Wt:case Dt:case Tt:case Ct:case zn:case Er:case sr:return D0(o,m);case wt:return new w;case Lt:case Bn:return new w(o);case Et:return pP(o);case At:return new w;case ar:return mP(o)}}function kP(o,l){var m=l.length;if(!m)return o;var w=m-1;return l[w]=(m>1?"& ":"")+l[w],l=l.join(m>2?", ":" "),o.replace(Cr,`{
|
|
66
|
+
/* [wrapped with `+l+`] */
|
|
67
|
+
`)}function RP(o){return Nt(o)||Bs(o)||!!(Br&&o&&o[Br])}function yo(o,l){var m=typeof o;return l=l??oe,!!l&&(m=="number"||m!="symbol"&&er.test(o))&&o>-1&&o%1==0&&o<l}function ai(o,l,m){if(!Wn(m))return!1;var w=typeof l;return(w=="number"?pi(m)&&yo(l,m.length):w=="string"&&l in m)?da(m[l],o):!1}function Ap(o,l){if(Nt(o))return!1;var m=typeof o;return m=="number"||m=="symbol"||m=="boolean"||o==null||Di(o)?!0:Hr.test(o)||!kn.test(o)||l!=null&&o in M(l)}function FP(o){var l=typeof o;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?o!=="__proto__":o===null}function Pp(o){var l=Ff(o),m=W[l];if(typeof m!="function"||!(l in en.prototype))return!1;if(o===m)return!0;var w=Cp(m);return!!w&&o===w[0]}function MP(o){return!!ct&&ct in o}var OP=Qe?bo:Wp;function Zl(o){var l=o&&o.constructor,m=typeof l=="function"&&l.prototype||Fe;return o===m}function W0(o){return o===o&&!Wn(o)}function H0(o,l){return function(m){return m==null?!1:m[o]===l&&(l!==n||o in M(m))}}function IP(o){var l=Vf(o,function(w){return m.size===h&&m.clear(),w}),m=l.cache;return l}function LP(o,l){var m=o[1],w=l[1],O=m|w,J=O<(R|D|X),ve=w==X&&m==_||w==X&&m==F&&o[7].length<=l[8]||w==(X|F)&&l[7].length<=l[8]&&m==_;if(!(J||ve))return o;w&R&&(o[2]=l[2],O|=m&R?0:C);var we=l[3];if(we){var Ae=o[3];o[3]=Ae?P0(Ae,we,l[4]):we,o[4]=Ae?fi(o[3],g):l[4]}return we=l[5],we&&(Ae=o[5],o[5]=Ae?T0(Ae,we,l[6]):we,o[6]=Ae?fi(o[5],g):l[6]),we=l[7],we&&(o[7]=we),w&X&&(o[8]=o[8]==null?l[8]:On(o[8],l[8])),o[9]==null&&(o[9]=l[9]),o[0]=l[0],o[1]=O,o}function BP(o){var l=[];if(o!=null)for(var m in M(o))l.push(m);return l}function VP(o){return Ie.call(o)}function G0(o,l,m){return l=on(l===n?o.length-1:l,0),function(){for(var w=arguments,O=-1,J=on(w.length-l,0),ve=z(J);++O<J;)ve[O]=w[l+O];O=-1;for(var we=z(l+1);++O<l;)we[O]=w[O];return we[l]=m(ve),tr(o,this,we)}}function q0(o,l){return l.length<2?o:Os(o,Ni(l,0,-1))}function NP(o,l){for(var m=o.length,w=On(l.length,m),O=hi(o);w--;){var J=l[w];o[w]=yo(J,m)?O[J]:n}return o}function Tp(o,l){if(!(l==="constructor"&&typeof o[l]=="function")&&l!="__proto__")return o[l]}var Y0=J0(y0),Jl=dt||function(o,l){return jn.setTimeout(o,l)},_p=J0(lP);function Z0(o,l,m){var w=l+"";return _p(o,kP(w,jP(PP(w),m)))}function J0(o){var l=0,m=0;return function(){var w=Ia(),O=me-(w-m);if(m=w,O>0){if(++l>=De)return arguments[0]}else l=0;return o.apply(n,arguments)}}function Of(o,l){var m=-1,w=o.length,O=w-1;for(l=l===n?w:l;++m<l;){var J=dp(m,O),ve=o[J];o[J]=o[m],o[m]=ve}return o.length=l,o}var X0=IP(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(rt,function(m,w,O,J){l.push(O?J.replace(Qn,"$1"):w||m)}),l});function Na(o){if(typeof o=="string"||Di(o))return o;var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}function Ls(o){if(o!=null){try{return Xe.call(o)}catch{}try{return o+""}catch{}}return""}function jP(o,l){return Dn(Ve,function(m){var w="_."+m[0];l&m[1]&&!Ra(o,w)&&o.push(w)}),o.sort()}function Q0(o){if(o instanceof en)return o.clone();var l=new Bi(o.__wrapped__,o.__chain__);return l.__actions__=hi(o.__actions__),l.__index__=o.__index__,l.__values__=o.__values__,l}function KP(o,l,m){(m?ai(o,l,m):l===n)?l=1:l=on(zt(l),0);var w=o==null?0:o.length;if(!w||l<1)return[];for(var O=0,J=0,ve=z(Sn(w/l));O<w;)ve[J++]=Ni(o,O,O+=l);return ve}function zP(o){for(var l=-1,m=o==null?0:o.length,w=0,O=[];++l<m;){var J=o[l];J&&(O[w++]=J)}return O}function UP(){var o=arguments.length;if(!o)return[];for(var l=z(o-1),m=arguments[0],w=o;w--;)l[w-1]=arguments[w];return aa(Nt(m)?hi(m):[m],Wr(l,1))}var WP=qt(function(o,l){return dr(o)?Wl(o,Wr(l,1,dr,!0)):[]}),HP=qt(function(o,l){var m=ji(l);return dr(m)&&(m=n),dr(o)?Wl(o,Wr(l,1,dr,!0),Pt(m,2)):[]}),GP=qt(function(o,l){var m=ji(l);return dr(m)&&(m=n),dr(o)?Wl(o,Wr(l,1,dr,!0),n,m):[]});function qP(o,l,m){var w=o==null?0:o.length;return w?(l=m||l===n?1:zt(l),Ni(o,l<0?0:l,w)):[]}function YP(o,l,m){var w=o==null?0:o.length;return w?(l=m||l===n?1:zt(l),l=w-l,Ni(o,0,l<0?0:l)):[]}function ZP(o,l){return o&&o.length?Af(o,Pt(l,3),!0,!0):[]}function JP(o,l){return o&&o.length?Af(o,Pt(l,3),!0):[]}function XP(o,l,m,w){var O=o==null?0:o.length;return O?(m&&typeof m!="number"&&ai(o,l,m)&&(m=0,w=O),UA(o,l,m,w)):[]}function eb(o,l,m){var w=o==null?0:o.length;if(!w)return-1;var O=m==null?0:zt(m);return O<0&&(O=on(w+O,0)),Ts(o,Pt(l,3),O)}function tb(o,l,m){var w=o==null?0:o.length;if(!w)return-1;var O=w-1;return m!==n&&(O=zt(m),O=m<0?on(w+O,0):On(O,w-1)),Ts(o,Pt(l,3),O,!0)}function nb(o){var l=o==null?0:o.length;return l?Wr(o,1):[]}function QP(o){var l=o==null?0:o.length;return l?Wr(o,K):[]}function eT(o,l){var m=o==null?0:o.length;return m?(l=l===n?1:zt(l),Wr(o,l)):[]}function tT(o){for(var l=-1,m=o==null?0:o.length,w={};++l<m;){var O=o[l];w[O[0]]=O[1]}return w}function rb(o){return o&&o.length?o[0]:n}function nT(o,l,m){var w=o==null?0:o.length;if(!w)return-1;var O=m==null?0:zt(m);return O<0&&(O=on(w+O,0)),co(o,l,O)}function rT(o){var l=o==null?0:o.length;return l?Ni(o,0,-1):[]}var iT=qt(function(o){var l=Cn(o,vp);return l.length&&l[0]===o[0]?sp(l):[]}),aT=qt(function(o){var l=ji(o),m=Cn(o,vp);return l===ji(m)?l=n:m.pop(),m.length&&m[0]===o[0]?sp(m,Pt(l,2)):[]}),oT=qt(function(o){var l=ji(o),m=Cn(o,vp);return l=typeof l=="function"?l:n,l&&m.pop(),m.length&&m[0]===o[0]?sp(m,n,l):[]});function sT(o,l){return o==null?"":sa.call(o,l)}function ji(o){var l=o==null?0:o.length;return l?o[l-1]:n}function uT(o,l,m){var w=o==null?0:o.length;if(!w)return-1;var O=w;return m!==n&&(O=zt(m),O=O<0?on(w+O,0):On(O,w-1)),l===l?p(o,l,O):Ts(o,Ll,O,!0)}function lT(o,l){return o&&o.length?p0(o,zt(l)):n}var cT=qt(ib);function ib(o,l){return o&&o.length&&l&&l.length?fp(o,l):o}function fT(o,l,m){return o&&o.length&&l&&l.length?fp(o,l,Pt(m,2)):o}function dT(o,l,m){return o&&o.length&&l&&l.length?fp(o,l,n,m):o}var hT=vo(function(o,l){var m=o==null?0:o.length,w=rp(o,l);return v0(o,Cn(l,function(O){return yo(O,m)?+O:O}).sort(A0)),w});function pT(o,l){var m=[];if(!(o&&o.length))return m;var w=-1,O=[],J=o.length;for(l=Pt(l,3);++w<J;){var ve=o[w];l(ve,w,o)&&(m.push(ve),O.push(w))}return v0(o,O),m}function kp(o){return o==null?o:Ci.call(o)}function mT(o,l,m){var w=o==null?0:o.length;return w?(m&&typeof m!="number"&&ai(o,l,m)?(l=0,m=w):(l=l==null?0:zt(l),m=m===n?w:zt(m)),Ni(o,l,m)):[]}function gT(o,l){return Df(o,l)}function vT(o,l,m){return pp(o,l,Pt(m,2))}function yT(o,l){var m=o==null?0:o.length;if(m){var w=Df(o,l);if(w<m&&da(o[w],l))return w}return-1}function bT(o,l){return Df(o,l,!0)}function $T(o,l,m){return pp(o,l,Pt(m,2),!0)}function wT(o,l){var m=o==null?0:o.length;if(m){var w=Df(o,l,!0)-1;if(da(o[w],l))return w}return-1}function xT(o){return o&&o.length?b0(o):[]}function ET(o,l){return o&&o.length?b0(o,Pt(l,2)):[]}function CT(o){var l=o==null?0:o.length;return l?Ni(o,1,l):[]}function ST(o,l,m){return o&&o.length?(l=m||l===n?1:zt(l),Ni(o,0,l<0?0:l)):[]}function DT(o,l,m){var w=o==null?0:o.length;return w?(l=m||l===n?1:zt(l),l=w-l,Ni(o,l<0?0:l,w)):[]}function AT(o,l){return o&&o.length?Af(o,Pt(l,3),!1,!0):[]}function PT(o,l){return o&&o.length?Af(o,Pt(l,3)):[]}var TT=qt(function(o){return Go(Wr(o,1,dr,!0))}),_T=qt(function(o){var l=ji(o);return dr(l)&&(l=n),Go(Wr(o,1,dr,!0),Pt(l,2))}),kT=qt(function(o){var l=ji(o);return l=typeof l=="function"?l:n,Go(Wr(o,1,dr,!0),n,l)});function RT(o){return o&&o.length?Go(o):[]}function FT(o,l){return o&&o.length?Go(o,Pt(l,2)):[]}function MT(o,l){return l=typeof l=="function"?l:n,o&&o.length?Go(o,n,l):[]}function Rp(o){if(!(o&&o.length))return[];var l=0;return o=qr(o,function(m){if(dr(m))return l=on(m.length,l),!0}),Eu(l,function(m){return Cn(o,wu(m))})}function ab(o,l){if(!(o&&o.length))return[];var m=Rp(o);return l==null?m:Cn(m,function(w){return tr(l,n,w)})}var OT=qt(function(o,l){return dr(o)?Wl(o,l):[]}),IT=qt(function(o){return gp(qr(o,dr))}),LT=qt(function(o){var l=ji(o);return dr(l)&&(l=n),gp(qr(o,dr),Pt(l,2))}),BT=qt(function(o){var l=ji(o);return l=typeof l=="function"?l:n,gp(qr(o,dr),n,l)}),VT=qt(Rp);function NT(o,l){return E0(o||[],l||[],Ul)}function jT(o,l){return E0(o||[],l||[],ql)}var KT=qt(function(o){var l=o.length,m=l>1?o[l-1]:n;return m=typeof m=="function"?(o.pop(),m):n,ab(o,m)});function ob(o){var l=W(o);return l.__chain__=!0,l}function zT(o,l){return l(o),o}function If(o,l){return l(o)}var UT=vo(function(o){var l=o.length,m=l?o[0]:0,w=this.__wrapped__,O=function(J){return rp(J,o)};return l>1||this.__actions__.length||!(w instanceof en)||!yo(m)?this.thru(O):(w=w.slice(m,+m+(l?1:0)),w.__actions__.push({func:If,args:[O],thisArg:n}),new Bi(w,this.__chain__).thru(function(J){return l&&!J.length&&J.push(n),J}))});function WT(){return ob(this)}function HT(){return new Bi(this.value(),this.__chain__)}function GT(){this.__values__===n&&(this.__values__=$b(this.value()));var o=this.__index__>=this.__values__.length,l=o?n:this.__values__[this.__index__++];return{done:o,value:l}}function qT(){return this}function YT(o){for(var l,m=this;m instanceof wf;){var w=Q0(m);w.__index__=0,w.__values__=n,l?O.__wrapped__=w:l=w;var O=w;m=m.__wrapped__}return O.__wrapped__=o,l}function ZT(){var o=this.__wrapped__;if(o instanceof en){var l=o;return this.__actions__.length&&(l=new en(this)),l=l.reverse(),l.__actions__.push({func:If,args:[kp],thisArg:n}),new Bi(l,this.__chain__)}return this.thru(kp)}function JT(){return x0(this.__wrapped__,this.__actions__)}var XT=Pf(function(o,l,m){Le.call(o,m)?++o[m]:mo(o,m,1)});function QT(o,l,m){var w=Nt(o)?lo:zA;return m&&ai(o,l,m)&&(l=n),w(o,Pt(l,3))}function e6(o,l){var m=Nt(o)?qr:a0;return m(o,Pt(l,3))}var t6=F0(eb),n6=F0(tb);function r6(o,l){return Wr(Lf(o,l),1)}function i6(o,l){return Wr(Lf(o,l),K)}function a6(o,l,m){return m=m===n?1:zt(m),Wr(Lf(o,l),m)}function sb(o,l){var m=Nt(o)?Dn:Ho;return m(o,Pt(l,3))}function ub(o,l){var m=Nt(o)?Ir:i0;return m(o,Pt(l,3))}var o6=Pf(function(o,l,m){Le.call(o,m)?o[m].push(l):mo(o,m,[l])});function s6(o,l,m,w){o=pi(o)?o:Ru(o),m=m&&!w?zt(m):0;var O=o.length;return m<0&&(m=on(O+m,0)),Kf(o)?m<=O&&o.indexOf(l,m)>-1:!!O&&co(o,l,m)>-1}var u6=qt(function(o,l,m){var w=-1,O=typeof l=="function",J=pi(o)?z(o.length):[];return Ho(o,function(ve){J[++w]=O?tr(l,ve,m):Hl(ve,l,m)}),J}),l6=Pf(function(o,l,m){mo(o,m,l)});function Lf(o,l){var m=Nt(o)?Cn:f0;return m(o,Pt(l,3))}function c6(o,l,m,w){return o==null?[]:(Nt(l)||(l=l==null?[]:[l]),m=w?n:m,Nt(m)||(m=m==null?[]:[m]),m0(o,l,m))}var f6=Pf(function(o,l,m){o[m?0:1].push(l)},function(){return[[],[]]});function d6(o,l,m){var w=Nt(o)?$u:Bl,O=arguments.length<3;return w(o,Pt(l,4),m,O,Ho)}function h6(o,l,m){var w=Nt(o)?Ds:Bl,O=arguments.length<3;return w(o,Pt(l,4),m,O,i0)}function p6(o,l){var m=Nt(o)?qr:a0;return m(o,Nf(Pt(l,3)))}function m6(o){var l=Nt(o)?e0:sP;return l(o)}function g6(o,l,m){(m?ai(o,l,m):l===n)?l=1:l=zt(l);var w=Nt(o)?BA:uP;return w(o,l)}function v6(o){var l=Nt(o)?VA:cP;return l(o)}function y6(o){if(o==null)return 0;if(pi(o))return Kf(o)?b(o):o.length;var l=Jr(o);return l==wt||l==At?o.size:lp(o).length}function b6(o,l,m){var w=Nt(o)?Fa:fP;return m&&ai(o,l,m)&&(l=n),w(o,Pt(l,3))}var $6=qt(function(o,l){if(o==null)return[];var m=l.length;return m>1&&ai(o,l[0],l[1])?l=[]:m>2&&ai(l[0],l[1],l[2])&&(l=[l[0]]),m0(o,Wr(l,1),[])}),Bf=Ur||function(){return jn.Date.now()};function w6(o,l){if(typeof l!="function")throw new Z(s);return o=zt(o),function(){if(--o<1)return l.apply(this,arguments)}}function lb(o,l,m){return l=m?n:l,l=o&&l==null?o.length:l,go(o,X,n,n,n,n,l)}function cb(o,l){var m;if(typeof l!="function")throw new Z(s);return o=zt(o),function(){return--o>0&&(m=l.apply(this,arguments)),o<=1&&(l=n),m}}var Fp=qt(function(o,l,m){var w=R;if(m.length){var O=fi(m,_u(Fp));w|=k}return go(o,w,l,m,O)}),fb=qt(function(o,l,m){var w=R|D;if(m.length){var O=fi(m,_u(fb));w|=k}return go(l,w,o,m,O)});function db(o,l,m){l=m?n:l;var w=go(o,_,n,n,n,n,n,l);return w.placeholder=db.placeholder,w}function hb(o,l,m){l=m?n:l;var w=go(o,B,n,n,n,n,n,l);return w.placeholder=hb.placeholder,w}function pb(o,l,m){var w,O,J,ve,we,Ae,Ue=0,He=!1,Ze=!1,ot=!0;if(typeof o!="function")throw new Z(s);l=Ki(l)||0,Wn(m)&&(He=!!m.leading,Ze="maxWait"in m,J=Ze?on(Ki(m.maxWait)||0,l):J,ot="trailing"in m?!!m.trailing:ot);function vt(hr){var ha=w,wo=O;return w=O=n,Ue=hr,ve=o.apply(wo,ha),ve}function kt(hr){return Ue=hr,we=Jl(Jt,l),He?vt(hr):ve}function Ht(hr){var ha=hr-Ae,wo=hr-Ue,Fb=l-ha;return Ze?On(Fb,J-wo):Fb}function Rt(hr){var ha=hr-Ae,wo=hr-Ue;return Ae===n||ha>=l||ha<0||Ze&&wo>=J}function Jt(){var hr=Bf();if(Rt(hr))return nn(hr);we=Jl(Jt,Ht(hr))}function nn(hr){return we=n,ot&&w?vt(hr):(w=O=n,ve)}function Ai(){we!==n&&C0(we),Ue=0,w=Ae=O=we=n}function oi(){return we===n?ve:nn(Bf())}function Pi(){var hr=Bf(),ha=Rt(hr);if(w=arguments,O=this,Ae=hr,ha){if(we===n)return kt(Ae);if(Ze)return C0(we),we=Jl(Jt,l),vt(Ae)}return we===n&&(we=Jl(Jt,l)),ve}return Pi.cancel=Ai,Pi.flush=oi,Pi}var x6=qt(function(o,l){return r0(o,1,l)}),E6=qt(function(o,l,m){return r0(o,Ki(l)||0,m)});function C6(o){return go(o,ge)}function Vf(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new Z(s);var m=function(){var w=arguments,O=l?l.apply(this,w):w[0],J=m.cache;if(J.has(O))return J.get(O);var ve=o.apply(this,w);return m.cache=J.set(O,ve)||J,ve};return m.cache=new(Vf.Cache||po),m}Vf.Cache=po;function Nf(o){if(typeof o!="function")throw new Z(s);return function(){var l=arguments;switch(l.length){case 0:return!o.call(this);case 1:return!o.call(this,l[0]);case 2:return!o.call(this,l[0],l[1]);case 3:return!o.call(this,l[0],l[1],l[2])}return!o.apply(this,l)}}function S6(o){return cb(2,o)}var D6=dP(function(o,l){l=l.length==1&&Nt(l[0])?Cn(l[0],Yr(Pt())):Cn(Wr(l,1),Yr(Pt()));var m=l.length;return qt(function(w){for(var O=-1,J=On(w.length,m);++O<J;)w[O]=l[O].call(this,w[O]);return tr(o,this,w)})}),Mp=qt(function(o,l){var m=fi(l,_u(Mp));return go(o,k,n,l,m)}),mb=qt(function(o,l){var m=fi(l,_u(mb));return go(o,L,n,l,m)}),A6=vo(function(o,l){return go(o,F,n,n,n,l)});function P6(o,l){if(typeof o!="function")throw new Z(s);return l=l===n?l:zt(l),qt(o,l)}function T6(o,l){if(typeof o!="function")throw new Z(s);return l=l==null?0:on(zt(l),0),qt(function(m){var w=m[l],O=Yo(m,0,l);return w&&aa(O,w),tr(o,this,O)})}function _6(o,l,m){var w=!0,O=!0;if(typeof o!="function")throw new Z(s);return Wn(m)&&(w="leading"in m?!!m.leading:w,O="trailing"in m?!!m.trailing:O),pb(o,l,{leading:w,maxWait:l,trailing:O})}function k6(o){return lb(o,1)}function R6(o,l){return Mp(yp(l),o)}function F6(){if(!arguments.length)return[];var o=arguments[0];return Nt(o)?o:[o]}function M6(o){return Vi(o,y)}function O6(o,l){return l=typeof l=="function"?l:n,Vi(o,y,l)}function I6(o){return Vi(o,v|y)}function L6(o,l){return l=typeof l=="function"?l:n,Vi(o,v|y,l)}function B6(o,l){return l==null||n0(o,l,Vr(l))}function da(o,l){return o===l||o!==o&&l!==l}var V6=Rf(op),N6=Rf(function(o,l){return o>=l}),Bs=u0(function(){return arguments}())?u0:function(o){return ir(o)&&Le.call(o,"callee")&&!Mn.call(o,"callee")},Nt=z.isArray,j6=uo?Yr(uo):YA;function pi(o){return o!=null&&jf(o.length)&&!bo(o)}function dr(o){return ir(o)&&pi(o)}function K6(o){return o===!0||o===!1||ir(o)&&ii(o)==xe}var Zo=oa||Wp,z6=mf?Yr(mf):ZA;function U6(o){return ir(o)&&o.nodeType===1&&!Xl(o)}function W6(o){if(o==null)return!0;if(pi(o)&&(Nt(o)||typeof o=="string"||typeof o.splice=="function"||Zo(o)||ku(o)||Bs(o)))return!o.length;var l=Jr(o);if(l==wt||l==At)return!o.size;if(Zl(o))return!lp(o).length;for(var m in o)if(Le.call(o,m))return!1;return!0}function H6(o,l){return Gl(o,l)}function G6(o,l,m){m=typeof m=="function"?m:n;var w=m?m(o,l):n;return w===n?Gl(o,l,n,m):!!w}function Op(o){if(!ir(o))return!1;var l=ii(o);return l==Ke||l==qe||typeof o.message=="string"&&typeof o.name=="string"&&!Xl(o)}function q6(o){return typeof o=="number"&&xi(o)}function bo(o){if(!Wn(o))return!1;var l=ii(o);return l==Oe||l==et||l==Ge||l==tt}function gb(o){return typeof o=="number"&&o==zt(o)}function jf(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=oe}function Wn(o){var l=typeof o;return o!=null&&(l=="object"||l=="function")}function ir(o){return o!=null&&typeof o=="object"}var vb=gf?Yr(gf):XA;function Y6(o,l){return o===l||up(o,l,Sp(l))}function Z6(o,l,m){return m=typeof m=="function"?m:n,up(o,l,Sp(l),m)}function J6(o){return yb(o)&&o!=+o}function X6(o){if(OP(o))throw new ue(a);return l0(o)}function Q6(o){return o===null}function e_(o){return o==null}function yb(o){return typeof o=="number"||ir(o)&&ii(o)==Lt}function Xl(o){if(!ir(o)||ii(o)!=xt)return!1;var l=It(o);if(l===null)return!0;var m=Le.call(l,"constructor")&&l.constructor;return typeof m=="function"&&m instanceof m&&Xe.call(m)==be}var Ip=Ol?Yr(Ol):QA;function t_(o){return gb(o)&&o>=-9007199254740991&&o<=oe}var bb=zo?Yr(zo):eP;function Kf(o){return typeof o=="string"||!Nt(o)&&ir(o)&&ii(o)==Bn}function Di(o){return typeof o=="symbol"||ir(o)&&ii(o)==ar}var ku=ia?Yr(ia):tP;function n_(o){return o===n}function r_(o){return ir(o)&&Jr(o)==Vn}function i_(o){return ir(o)&&ii(o)==_r}var a_=Rf(cp),o_=Rf(function(o,l){return o<=l});function $b(o){if(!o)return[];if(pi(o))return Kf(o)?x(o):hi(o);if(br&&o[br])return Oa(o[br]());var l=Jr(o),m=l==wt?nr:l==At?Uo:Ru;return m(o)}function $o(o){if(!o)return o===0?o:0;if(o=Ki(o),o===K||o===-1/0){var l=o<0?-1:1;return l*Ce}return o===o?o:0}function zt(o){var l=$o(o),m=l%1;return l===l?m?l-m:l:0}function wb(o){return o?Ms(zt(o),0,pe):0}function Ki(o){if(typeof o=="number")return o;if(Di(o))return ee;if(Wn(o)){var l=typeof o.valueOf=="function"?o.valueOf():o;o=Wn(l)?l+"":l}if(typeof o!="string")return o===0?o:+o;o=yf(o);var m=Rr.test(o);return m||Yt.test(o)?Ar(o.slice(2),m?2:8):Gr.test(o)?ee:+o}function xb(o){return Va(o,mi(o))}function s_(o){return o?Ms(zt(o),-9007199254740991,oe):o===0?o:0}function gn(o){return o==null?"":Si(o)}var u_=Pu(function(o,l){if(Zl(l)||pi(l)){Va(l,Vr(l),o);return}for(var m in l)Le.call(l,m)&&Ul(o,m,l[m])}),Eb=Pu(function(o,l){Va(l,mi(l),o)}),zf=Pu(function(o,l,m,w){Va(l,mi(l),o,w)}),l_=Pu(function(o,l,m,w){Va(l,Vr(l),o,w)}),c_=vo(rp);function f_(o,l){var m=Au(o);return l==null?m:t0(m,l)}var d_=qt(function(o,l){o=M(o);var m=-1,w=l.length,O=w>2?l[2]:n;for(O&&ai(l[0],l[1],O)&&(w=1);++m<w;)for(var J=l[m],ve=mi(J),we=-1,Ae=ve.length;++we<Ae;){var Ue=ve[we],He=o[Ue];(He===n||da(He,Fe[Ue])&&!Le.call(o,Ue))&&(o[Ue]=J[Ue])}return o}),h_=qt(function(o){return o.push(n,N0),tr(Cb,n,o)});function p_(o,l){return Il(o,Pt(l,3),Ba)}function m_(o,l){return Il(o,Pt(l,3),ap)}function g_(o,l){return o==null?o:ip(o,Pt(l,3),mi)}function v_(o,l){return o==null?o:o0(o,Pt(l,3),mi)}function y_(o,l){return o&&Ba(o,Pt(l,3))}function b_(o,l){return o&&ap(o,Pt(l,3))}function $_(o){return o==null?[]:Cf(o,Vr(o))}function w_(o){return o==null?[]:Cf(o,mi(o))}function Lp(o,l,m){var w=o==null?n:Os(o,l);return w===n?m:w}function x_(o,l){return o!=null&&z0(o,l,WA)}function Bp(o,l){return o!=null&&z0(o,l,HA)}var E_=O0(function(o,l,m){l!=null&&typeof l.toString!="function"&&(l=Ie.call(l)),o[l]=m},Np(gi)),C_=O0(function(o,l,m){l!=null&&typeof l.toString!="function"&&(l=Ie.call(l)),Le.call(o,l)?o[l].push(m):o[l]=[m]},Pt),S_=qt(Hl);function Vr(o){return pi(o)?Qy(o):lp(o)}function mi(o){return pi(o)?Qy(o,!0):nP(o)}function D_(o,l){var m={};return l=Pt(l,3),Ba(o,function(w,O,J){mo(m,l(w,O,J),w)}),m}function A_(o,l){var m={};return l=Pt(l,3),Ba(o,function(w,O,J){mo(m,O,l(w,O,J))}),m}var P_=Pu(function(o,l,m){Sf(o,l,m)}),Cb=Pu(function(o,l,m,w){Sf(o,l,m,w)}),T_=vo(function(o,l){var m={};if(o==null)return m;var w=!1;l=Cn(l,function(J){return J=qo(J,o),w||(w=J.length>1),J}),Va(o,Ep(o),m),w&&(m=Vi(m,v|$|y,EP));for(var O=l.length;O--;)mp(m,l[O]);return m});function __(o,l){return Sb(o,Nf(Pt(l)))}var k_=vo(function(o,l){return o==null?{}:iP(o,l)});function Sb(o,l){if(o==null)return{};var m=Cn(Ep(o),function(w){return[w]});return l=Pt(l),g0(o,m,function(w,O){return l(w,O[0])})}function R_(o,l,m){l=qo(l,o);var w=-1,O=l.length;for(O||(O=1,o=n);++w<O;){var J=o==null?n:o[Na(l[w])];J===n&&(w=O,J=m),o=bo(J)?J.call(o):J}return o}function F_(o,l,m){return o==null?o:ql(o,l,m)}function M_(o,l,m,w){return w=typeof w=="function"?w:n,o==null?o:ql(o,l,m,w)}var Db=B0(Vr),Ab=B0(mi);function O_(o,l,m){var w=Nt(o),O=w||Zo(o)||ku(o);if(l=Pt(l,4),m==null){var J=o&&o.constructor;O?m=w?new J:[]:Wn(o)?m=bo(J)?Au(It(o)):{}:m={}}return(O?Dn:Ba)(o,function(ve,we,Ae){return l(m,ve,we,Ae)}),m}function I_(o,l){return o==null?!0:mp(o,l)}function L_(o,l,m){return o==null?o:w0(o,l,yp(m))}function B_(o,l,m,w){return w=typeof w=="function"?w:n,o==null?o:w0(o,l,yp(m),w)}function Ru(o){return o==null?[]:Vl(o,Vr(o))}function V_(o){return o==null?[]:Vl(o,mi(o))}function N_(o,l,m){return m===n&&(m=l,l=n),m!==n&&(m=Ki(m),m=m===m?m:0),l!==n&&(l=Ki(l),l=l===l?l:0),Ms(Ki(o),l,m)}function j_(o,l,m){return l=$o(l),m===n?(m=l,l=0):m=$o(m),o=Ki(o),GA(o,l,m)}function K_(o,l,m){if(m&&typeof m!="boolean"&&ai(o,l,m)&&(l=m=n),m===n&&(typeof l=="boolean"?(m=l,l=n):typeof o=="boolean"&&(m=o,o=n)),o===n&&l===n?(o=0,l=1):(o=$o(o),l===n?(l=o,o=0):l=$o(l)),o>l){var w=o;o=l,l=w}if(m||o%1||l%1){var O=la();return On(o+O*(l-o+Fn("1e-"+((O+"").length-1))),l)}return dp(o,l)}var z_=Tu(function(o,l,m){return l=l.toLowerCase(),o+(m?Pb(l):l)});function Pb(o){return Vp(gn(o).toLowerCase())}function Tb(o){return o=gn(o),o&&o.replace(Sr,ep).replace(ao,"")}function U_(o,l,m){o=gn(o),l=Si(l);var w=o.length;m=m===n?w:Ms(zt(m),0,w);var O=m;return m-=l.length,m>=0&&o.slice(m,O)==l}function W_(o){return o=gn(o),o&&xn.test(o)?o.replace(Un,fo):o}function H_(o){return o=gn(o),o&&Ye.test(o)?o.replace(gt,"\\$&"):o}var G_=Tu(function(o,l,m){return o+(m?"-":"")+l.toLowerCase()}),q_=Tu(function(o,l,m){return o+(m?" ":"")+l.toLowerCase()}),Y_=R0("toLowerCase");function Z_(o,l,m){o=gn(o),l=zt(l);var w=l?b(o):0;if(!l||w>=l)return o;var O=(l-w)/2;return kf(di(O),m)+o+kf(Sn(O),m)}function J_(o,l,m){o=gn(o),l=zt(l);var w=l?b(o):0;return l&&w<l?o+kf(l-w,m):o}function X_(o,l,m){o=gn(o),l=zt(l);var w=l?b(o):0;return l&&w<l?kf(l-w,m)+o:o}function Q_(o,l,m){return m||l==null?l=0:l&&(l=+l),Ei(gn(o).replace(Ot,""),l||0)}function e7(o,l,m){return(m?ai(o,l,m):l===n)?l=1:l=zt(l),hp(gn(o),l)}function t7(){var o=arguments,l=gn(o[0]);return o.length<3?l:l.replace(o[1],o[2])}var n7=Tu(function(o,l,m){return o+(m?"_":"")+l.toLowerCase()});function r7(o,l,m){return m&&typeof m!="number"&&ai(o,l,m)&&(l=m=n),m=m===n?pe:m>>>0,m?(o=gn(o),o&&(typeof l=="string"||l!=null&&!Ip(l))&&(l=Si(l),!l&&Zr(o))?Yo(x(o),0,m):o.split(l,m)):[]}var i7=Tu(function(o,l,m){return o+(m?" ":"")+Vp(l)});function a7(o,l,m){return o=gn(o),m=m==null?0:Ms(zt(m),0,o.length),l=Si(l),o.slice(m,m+l.length)==l}function o7(o,l,m){var w=W.templateSettings;m&&ai(o,l,m)&&(l=n),o=gn(o),l=zf({},l,w,V0);var O=zf({},l.imports,w.imports,V0),J=Vr(O),ve=Vl(O,J),we,Ae,Ue=0,He=l.interpolate||cn,Ze="__p += '",ot=I((l.escape||cn).source+"|"+He.source+"|"+(He===Vt?it:cn).source+"|"+(l.evaluate||cn).source+"|$","g"),vt="//# sourceURL="+(Le.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++so+"]")+`
|
|
68
|
+
`;o.replace(ot,function(Rt,Jt,nn,Ai,oi,Pi){return nn||(nn=Ai),Ze+=o.slice(Ue,Pi).replace($i,wi),Jt&&(we=!0,Ze+=`' +
|
|
69
|
+
__e(`+Jt+`) +
|
|
70
|
+
'`),oi&&(Ae=!0,Ze+=`';
|
|
71
|
+
`+oi+`;
|
|
72
|
+
__p += '`),nn&&(Ze+=`' +
|
|
73
|
+
((__t = (`+nn+`)) == null ? '' : __t) +
|
|
74
|
+
'`),Ue=Pi+Rt.length,Rt}),Ze+=`';
|
|
75
|
+
`;var kt=Le.call(l,"variable")&&l.variable;if(!kt)Ze=`with (obj) {
|
|
76
|
+
`+Ze+`
|
|
77
|
+
}
|
|
78
|
+
`;else if(un.test(kt))throw new ue(c);Ze=(Ae?Ze.replace(gr,""):Ze).replace(Xn,"$1").replace(Kr,"$1;"),Ze="function("+(kt||"obj")+`) {
|
|
79
|
+
`+(kt?"":`obj || (obj = {});
|
|
80
|
+
`)+"var __t, __p = ''"+(we?", __e = _.escape":"")+(Ae?`, __j = Array.prototype.join;
|
|
81
|
+
function print() { __p += __j.call(arguments, '') }
|
|
82
|
+
`:`;
|
|
83
|
+
`)+Ze+`return __p
|
|
84
|
+
}`;var Ht=kb(function(){return N(J,vt+"return "+Ze).apply(n,ve)});if(Ht.source=Ze,Op(Ht))throw Ht;return Ht}function s7(o){return gn(o).toLowerCase()}function u7(o){return gn(o).toUpperCase()}function l7(o,l,m){if(o=gn(o),o&&(m||l===n))return yf(o);if(!o||!(l=Si(l)))return o;var w=x(o),O=x(l),J=Cu(w,O),ve=Lr(w,O)+1;return Yo(w,J,ve).join("")}function c7(o,l,m){if(o=gn(o),o&&(m||l===n))return o.slice(0,E(o)+1);if(!o||!(l=Si(l)))return o;var w=x(o),O=Lr(w,x(l))+1;return Yo(w,0,O).join("")}function f7(o,l,m){if(o=gn(o),o&&(m||l===n))return o.replace(Ot,"");if(!o||!(l=Si(l)))return o;var w=x(o),O=Cu(w,x(l));return Yo(w,O).join("")}function d7(o,l){var m=te,w=ie;if(Wn(l)){var O="separator"in l?l.separator:O;m="length"in l?zt(l.length):m,w="omission"in l?Si(l.omission):w}o=gn(o);var J=o.length;if(Zr(o)){var ve=x(o);J=ve.length}if(m>=J)return o;var we=m-b(w);if(we<1)return w;var Ae=ve?Yo(ve,0,we).join(""):o.slice(0,we);if(O===n)return Ae+w;if(ve&&(we+=Ae.length-we),Ip(O)){if(o.slice(we).search(O)){var Ue,He=Ae;for(O.global||(O=I(O.source,gn(ln.exec(O))+"g")),O.lastIndex=0;Ue=O.exec(He);)var Ze=Ue.index;Ae=Ae.slice(0,Ze===n?we:Ze)}}else if(o.indexOf(Si(O),we)!=we){var ot=Ae.lastIndexOf(O);ot>-1&&(Ae=Ae.slice(0,ot))}return Ae+w}function h7(o){return o=gn(o),o&&kr.test(o)?o.replace(ft,V):o}var p7=Tu(function(o,l,m){return o+(m?" ":"")+l.toUpperCase()}),Vp=R0("toUpperCase");function _b(o,l,m){return o=gn(o),l=m?n:l,l===n?Nl(o)?ye(o):Jh(o):o.match(l)||[]}var kb=qt(function(o,l){try{return tr(o,n,l)}catch(m){return Op(m)?m:new ue(m)}}),m7=vo(function(o,l){return Dn(l,function(m){m=Na(m),mo(o,m,Fp(o[m],o))}),o});function g7(o){var l=o==null?0:o.length,m=Pt();return o=l?Cn(o,function(w){if(typeof w[1]!="function")throw new Z(s);return[m(w[0]),w[1]]}):[],qt(function(w){for(var O=-1;++O<l;){var J=o[O];if(tr(J[0],this,w))return tr(J[1],this,w)}})}function v7(o){return KA(Vi(o,v))}function Np(o){return function(){return o}}function y7(o,l){return o==null||o!==o?l:o}var b7=M0(),$7=M0(!0);function gi(o){return o}function jp(o){return c0(typeof o=="function"?o:Vi(o,v))}function w7(o){return d0(Vi(o,v))}function x7(o,l){return h0(o,Vi(l,v))}var E7=qt(function(o,l){return function(m){return Hl(m,o,l)}}),C7=qt(function(o,l){return function(m){return Hl(o,m,l)}});function Kp(o,l,m){var w=Vr(l),O=Cf(l,w);m==null&&!(Wn(l)&&(O.length||!w.length))&&(m=l,l=o,o=this,O=Cf(l,Vr(l)));var J=!(Wn(m)&&"chain"in m)||!!m.chain,ve=bo(o);return Dn(O,function(we){var Ae=l[we];o[we]=Ae,ve&&(o.prototype[we]=function(){var Ue=this.__chain__;if(J||Ue){var He=o(this.__wrapped__),Ze=He.__actions__=hi(this.__actions__);return Ze.push({func:Ae,args:arguments,thisArg:o}),He.__chain__=Ue,He}return Ae.apply(o,aa([this.value()],arguments))})}),o}function S7(){return jn._===this&&(jn._=se),this}function zp(){}function D7(o){return o=zt(o),qt(function(l){return p0(l,o)})}var A7=$p(Cn),P7=$p(lo),T7=$p(Fa);function Rb(o){return Ap(o)?wu(Na(o)):aP(o)}function _7(o){return function(l){return o==null?n:Os(o,l)}}var k7=I0(),R7=I0(!0);function Up(){return[]}function Wp(){return!1}function F7(){return{}}function M7(){return""}function O7(){return!0}function I7(o,l){if(o=zt(o),o<1||o>oe)return[];var m=pe,w=On(o,pe);l=Pt(l),o-=pe;for(var O=Eu(w,l);++m<o;)l(m);return O}function L7(o){return Nt(o)?Cn(o,Na):Di(o)?[o]:hi(X0(gn(o)))}function B7(o){var l=++st;return gn(o)+l}var V7=_f(function(o,l){return o+l},0),N7=wp("ceil"),j7=_f(function(o,l){return o/l},1),K7=wp("floor");function z7(o){return o&&o.length?Ef(o,gi,op):n}function U7(o,l){return o&&o.length?Ef(o,Pt(l,2),op):n}function W7(o){return _s(o,gi)}function H7(o,l){return _s(o,Pt(l,2))}function G7(o){return o&&o.length?Ef(o,gi,cp):n}function q7(o,l){return o&&o.length?Ef(o,Pt(l,2),cp):n}var Y7=_f(function(o,l){return o*l},1),Z7=wp("round"),J7=_f(function(o,l){return o-l},0);function X7(o){return o&&o.length?Ma(o,gi):0}function Q7(o,l){return o&&o.length?Ma(o,Pt(l,2)):0}return W.after=w6,W.ary=lb,W.assign=u_,W.assignIn=Eb,W.assignInWith=zf,W.assignWith=l_,W.at=c_,W.before=cb,W.bind=Fp,W.bindAll=m7,W.bindKey=fb,W.castArray=F6,W.chain=ob,W.chunk=KP,W.compact=zP,W.concat=UP,W.cond=g7,W.conforms=v7,W.constant=Np,W.countBy=XT,W.create=f_,W.curry=db,W.curryRight=hb,W.debounce=pb,W.defaults=d_,W.defaultsDeep=h_,W.defer=x6,W.delay=E6,W.difference=WP,W.differenceBy=HP,W.differenceWith=GP,W.drop=qP,W.dropRight=YP,W.dropRightWhile=ZP,W.dropWhile=JP,W.fill=XP,W.filter=e6,W.flatMap=r6,W.flatMapDeep=i6,W.flatMapDepth=a6,W.flatten=nb,W.flattenDeep=QP,W.flattenDepth=eT,W.flip=C6,W.flow=b7,W.flowRight=$7,W.fromPairs=tT,W.functions=$_,W.functionsIn=w_,W.groupBy=o6,W.initial=rT,W.intersection=iT,W.intersectionBy=aT,W.intersectionWith=oT,W.invert=E_,W.invertBy=C_,W.invokeMap=u6,W.iteratee=jp,W.keyBy=l6,W.keys=Vr,W.keysIn=mi,W.map=Lf,W.mapKeys=D_,W.mapValues=A_,W.matches=w7,W.matchesProperty=x7,W.memoize=Vf,W.merge=P_,W.mergeWith=Cb,W.method=E7,W.methodOf=C7,W.mixin=Kp,W.negate=Nf,W.nthArg=D7,W.omit=T_,W.omitBy=__,W.once=S6,W.orderBy=c6,W.over=A7,W.overArgs=D6,W.overEvery=P7,W.overSome=T7,W.partial=Mp,W.partialRight=mb,W.partition=f6,W.pick=k_,W.pickBy=Sb,W.property=Rb,W.propertyOf=_7,W.pull=cT,W.pullAll=ib,W.pullAllBy=fT,W.pullAllWith=dT,W.pullAt=hT,W.range=k7,W.rangeRight=R7,W.rearg=A6,W.reject=p6,W.remove=pT,W.rest=P6,W.reverse=kp,W.sampleSize=g6,W.set=F_,W.setWith=M_,W.shuffle=v6,W.slice=mT,W.sortBy=$6,W.sortedUniq=xT,W.sortedUniqBy=ET,W.split=r7,W.spread=T6,W.tail=CT,W.take=ST,W.takeRight=DT,W.takeRightWhile=AT,W.takeWhile=PT,W.tap=zT,W.throttle=_6,W.thru=If,W.toArray=$b,W.toPairs=Db,W.toPairsIn=Ab,W.toPath=L7,W.toPlainObject=xb,W.transform=O_,W.unary=k6,W.union=TT,W.unionBy=_T,W.unionWith=kT,W.uniq=RT,W.uniqBy=FT,W.uniqWith=MT,W.unset=I_,W.unzip=Rp,W.unzipWith=ab,W.update=L_,W.updateWith=B_,W.values=Ru,W.valuesIn=V_,W.without=OT,W.words=_b,W.wrap=R6,W.xor=IT,W.xorBy=LT,W.xorWith=BT,W.zip=VT,W.zipObject=NT,W.zipObjectDeep=jT,W.zipWith=KT,W.entries=Db,W.entriesIn=Ab,W.extend=Eb,W.extendWith=zf,Kp(W,W),W.add=V7,W.attempt=kb,W.camelCase=z_,W.capitalize=Pb,W.ceil=N7,W.clamp=N_,W.clone=M6,W.cloneDeep=I6,W.cloneDeepWith=L6,W.cloneWith=O6,W.conformsTo=B6,W.deburr=Tb,W.defaultTo=y7,W.divide=j7,W.endsWith=U_,W.eq=da,W.escape=W_,W.escapeRegExp=H_,W.every=QT,W.find=t6,W.findIndex=eb,W.findKey=p_,W.findLast=n6,W.findLastIndex=tb,W.findLastKey=m_,W.floor=K7,W.forEach=sb,W.forEachRight=ub,W.forIn=g_,W.forInRight=v_,W.forOwn=y_,W.forOwnRight=b_,W.get=Lp,W.gt=V6,W.gte=N6,W.has=x_,W.hasIn=Bp,W.head=rb,W.identity=gi,W.includes=s6,W.indexOf=nT,W.inRange=j_,W.invoke=S_,W.isArguments=Bs,W.isArray=Nt,W.isArrayBuffer=j6,W.isArrayLike=pi,W.isArrayLikeObject=dr,W.isBoolean=K6,W.isBuffer=Zo,W.isDate=z6,W.isElement=U6,W.isEmpty=W6,W.isEqual=H6,W.isEqualWith=G6,W.isError=Op,W.isFinite=q6,W.isFunction=bo,W.isInteger=gb,W.isLength=jf,W.isMap=vb,W.isMatch=Y6,W.isMatchWith=Z6,W.isNaN=J6,W.isNative=X6,W.isNil=e_,W.isNull=Q6,W.isNumber=yb,W.isObject=Wn,W.isObjectLike=ir,W.isPlainObject=Xl,W.isRegExp=Ip,W.isSafeInteger=t_,W.isSet=bb,W.isString=Kf,W.isSymbol=Di,W.isTypedArray=ku,W.isUndefined=n_,W.isWeakMap=r_,W.isWeakSet=i_,W.join=sT,W.kebabCase=G_,W.last=ji,W.lastIndexOf=uT,W.lowerCase=q_,W.lowerFirst=Y_,W.lt=a_,W.lte=o_,W.max=z7,W.maxBy=U7,W.mean=W7,W.meanBy=H7,W.min=G7,W.minBy=q7,W.stubArray=Up,W.stubFalse=Wp,W.stubObject=F7,W.stubString=M7,W.stubTrue=O7,W.multiply=Y7,W.nth=lT,W.noConflict=S7,W.noop=zp,W.now=Bf,W.pad=Z_,W.padEnd=J_,W.padStart=X_,W.parseInt=Q_,W.random=K_,W.reduce=d6,W.reduceRight=h6,W.repeat=e7,W.replace=t7,W.result=R_,W.round=Z7,W.runInContext=A,W.sample=m6,W.size=y6,W.snakeCase=n7,W.some=b6,W.sortedIndex=gT,W.sortedIndexBy=vT,W.sortedIndexOf=yT,W.sortedLastIndex=bT,W.sortedLastIndexBy=$T,W.sortedLastIndexOf=wT,W.startCase=i7,W.startsWith=a7,W.subtract=J7,W.sum=X7,W.sumBy=Q7,W.template=o7,W.times=I7,W.toFinite=$o,W.toInteger=zt,W.toLength=wb,W.toLower=s7,W.toNumber=Ki,W.toSafeInteger=s_,W.toString=gn,W.toUpper=u7,W.trim=l7,W.trimEnd=c7,W.trimStart=f7,W.truncate=d7,W.unescape=h7,W.uniqueId=B7,W.upperCase=p7,W.upperFirst=Vp,W.each=sb,W.eachRight=ub,W.first=rb,Kp(W,function(){var o={};return Ba(W,function(l,m){Le.call(W.prototype,m)||(o[m]=l)}),o}(),{chain:!1}),W.VERSION=r,Dn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){W[o].placeholder=W}),Dn(["drop","take"],function(o,l){en.prototype[o]=function(m){m=m===n?1:on(zt(m),0);var w=this.__filtered__&&!l?new en(this):this.clone();return w.__filtered__?w.__takeCount__=On(m,w.__takeCount__):w.__views__.push({size:On(m,pe),type:o+(w.__dir__<0?"Right":"")}),w},en.prototype[o+"Right"]=function(m){return this.reverse()[o](m).reverse()}}),Dn(["filter","map","takeWhile"],function(o,l){var m=l+1,w=m==de||m==re;en.prototype[o]=function(O){var J=this.clone();return J.__iteratees__.push({iteratee:Pt(O,3),type:m}),J.__filtered__=J.__filtered__||w,J}}),Dn(["head","last"],function(o,l){var m="take"+(l?"Right":"");en.prototype[o]=function(){return this[m](1).value()[0]}}),Dn(["initial","tail"],function(o,l){var m="drop"+(l?"":"Right");en.prototype[o]=function(){return this.__filtered__?new en(this):this[m](1)}}),en.prototype.compact=function(){return this.filter(gi)},en.prototype.find=function(o){return this.filter(o).head()},en.prototype.findLast=function(o){return this.reverse().find(o)},en.prototype.invokeMap=qt(function(o,l){return typeof o=="function"?new en(this):this.map(function(m){return Hl(m,o,l)})}),en.prototype.reject=function(o){return this.filter(Nf(Pt(o)))},en.prototype.slice=function(o,l){o=zt(o);var m=this;return m.__filtered__&&(o>0||l<0)?new en(m):(o<0?m=m.takeRight(-o):o&&(m=m.drop(o)),l!==n&&(l=zt(l),m=l<0?m.dropRight(-l):m.take(l-o)),m)},en.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},en.prototype.toArray=function(){return this.take(pe)},Ba(en.prototype,function(o,l){var m=/^(?:filter|find|map|reject)|While$/.test(l),w=/^(?:head|last)$/.test(l),O=W[w?"take"+(l=="last"?"Right":""):l],J=w||/^find/.test(l);O&&(W.prototype[l]=function(){var ve=this.__wrapped__,we=w?[1]:arguments,Ae=ve instanceof en,Ue=we[0],He=Ae||Nt(ve),Ze=function(Jt){var nn=O.apply(W,aa([Jt],we));return w&&ot?nn[0]:nn};He&&m&&typeof Ue=="function"&&Ue.length!=1&&(Ae=He=!1);var ot=this.__chain__,vt=!!this.__actions__.length,kt=J&&!ot,Ht=Ae&&!vt;if(!J&&He){ve=Ht?ve:new en(this);var Rt=o.apply(ve,we);return Rt.__actions__.push({func:If,args:[Ze],thisArg:n}),new Bi(Rt,ot)}return kt&&Ht?o.apply(this,we):(Rt=this.thru(Ze),kt?w?Rt.value()[0]:Rt.value():Rt)})}),Dn(["pop","push","shift","sort","splice","unshift"],function(o){var l=ae[o],m=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",w=/^(?:pop|shift)$/.test(o);W.prototype[o]=function(){var O=arguments;if(w&&!this.__chain__){var J=this.value();return l.apply(Nt(J)?J:[],O)}return this[m](function(ve){return l.apply(Nt(ve)?ve:[],O)})}}),Ba(en.prototype,function(o,l){var m=W[l];if(m){var w=m.name+"";Le.call(Du,w)||(Du[w]=[]),Du[w].push({name:l,func:m})}}),Du[Tf(n,D).name]=[{name:"wrapper",func:n}],en.prototype.clone=hA,en.prototype.reverse=pA,en.prototype.value=mA,W.prototype.at=UT,W.prototype.chain=WT,W.prototype.commit=HT,W.prototype.next=GT,W.prototype.plant=YT,W.prototype.reverse=ZT,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=JT,W.prototype.first=W.prototype.head,br&&(W.prototype[br]=qT),W},ke=$e();Oi?((Oi.exports=ke)._=ke,Mi._=ke):jn._=ke}).call(zR)}(fc,fc.exports)),fc.exports}var Y$=UR();const WR=bs(Y$);var Xp={exports:{}};/*!
|
|
85
|
+
Copyright (c) 2018 Jed Watson.
|
|
86
|
+
Licensed under the MIT License (MIT), see
|
|
87
|
+
http://jedwatson.github.io/classnames
|
|
88
|
+
*/var n1;function HR(){return n1||(n1=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",s=0;s<arguments.length;s++){var c=arguments[s];c&&(a=i(a,r(c)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var s="";for(var c in a)t.call(a,c)&&a[c]&&(s=i(s,c));return s}function i(a,s){return s?a?a+" "+s:a+s:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Xp)),Xp.exports}var GR=HR();const og=bs(GR);/*
|
|
89
|
+
* React Tooltip
|
|
90
|
+
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
91
|
+
* @copyright ReactTooltip Team
|
|
92
|
+
* @license MIT
|
|
93
|
+
*/const qR="react-tooltip-core-styles",YR="react-tooltip-base-styles",r1={core:!1,base:!1};function i1({css:e,id:t=YR,type:n="base",ref:r}){var i,a;if(!e||typeof document>"u"||r1[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"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=qR),r||(r={});const{insertAt:s}=r;if(document.getElementById(t))return;const c=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.id=t,d.type="text/css",s==="top"&&c.firstChild?c.insertBefore(d,c.firstChild):c.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e)),r1[n]=!0}const a1=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:a="absolute",middlewares:s=[H$(Number(i)),G$({fallbackAxisSideDirection:"start"}),BR({padding:5})],border:c})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const d=s;return n?(d.push(VR({element:n,padding:5})),ag(e,t,{placement:r,strategy:a,middleware:d}).then(({x:h,y:g,placement:v,middlewareData:$})=>{var y,P;const T={left:`${h}px`,top:`${g}px`,border:c},{x:R,y:D}=(y=$.arrow)!==null&&y!==void 0?y:{x:0,y:0},C=(P={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]])!==null&&P!==void 0?P:"bottom",_=c&&{borderBottom:c,borderRight:c};let B=0;if(c){const k=`${c}`.match(/(\d+)px/);B=k!=null&&k[1]?Number(k[1]):1}return{tooltipStyles:T,tooltipArrowStyles:{left:R!=null?`${R}px`:"",top:D!=null?`${D}px`:"",right:"",bottom:"",..._,[C]:`-${4+B}px`},place:v}})):ag(e,t,{placement:"bottom",strategy:a,middleware:d}).then(({x:h,y:g,placement:v})=>({tooltipStyles:{left:`${h}px`,top:`${g}px`},tooltipArrowStyles:{},place:v}))},o1=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),s1=(e,t,n)=>{let r=null;const i=function(...a){const s=()=>{r=null};!r&&(e.apply(this,a),r=setTimeout(s,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},u1=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",sg=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,a)=>sg(i,t[a]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!u1(e)||!u1(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>sg(e[i],t[i]))},ZR=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"})},l1=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(ZR(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},JR=typeof window<"u"?S.useLayoutEffect:S.useEffect,zi=e=>{e.current&&(clearTimeout(e.current),e.current=null)},XR="DEFAULT_TOOLTIP_ID",QR={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},eF=S.createContext({getTooltipData:()=>QR});function Z$(e=XR){return S.useContext(eF).getTooltipData(e)}var Mu={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"},Qp={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 tF=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:a,anchorSelect:s,place:c="top",offset:d=10,events:h=["hover"],openOnClick:g=!1,positionStrategy:v="absolute",middlewares:$,wrapper:y,delayShow:P=0,delayHide:T=0,float:R=!1,hidden:D=!1,noArrow:C=!1,clickable:_=!1,closeOnEsc:B=!1,closeOnScroll:k=!1,closeOnResize:L=!1,openEvents:X,closeEvents:F,globalCloseEvents:ge,imperativeModeOnly:te,style:ie,position:De,afterShow:me,afterHide:de,disableTooltip:ne,content:re,contentWrapperRef:K,isOpen:oe,defaultIsOpen:Ce=!1,setIsOpen:ee,activeAnchor:pe,setActiveAnchor:Pe,border:Te,opacity:Ve,arrowColor:Se,role:Je="tooltip"})=>{var Ge;const xe=S.useRef(null),Be=S.useRef(null),qe=S.useRef(null),Ke=S.useRef(null),Oe=S.useRef(null),[et,wt]=S.useState({tooltipStyles:{},tooltipArrowStyles:{},place:c}),[Lt,yt]=S.useState(!1),[xt,Yn]=S.useState(!1),[tt,Et]=S.useState(null),At=S.useRef(!1),Bn=S.useRef(null),{anchorRefs:ar,setActiveAnchor:Zn}=Z$(t),Vn=S.useRef(!1),[_r,Jn]=S.useState([]),Qt=S.useRef(!1),or=g||h.includes("click"),xr=or||(X==null?void 0:X.click)||(X==null?void 0:X.dblclick)||(X==null?void 0:X.mousedown),Wt=X?{...X}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!X&&or&&Object.assign(Wt,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Dt=F?{...F}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!F&&or&&Object.assign(Dt,{mouseleave:!1,blur:!1,mouseout:!1});const Tt=ge?{...ge}:{escape:B||!1,scroll:k||!1,resize:L||!1,clickOutsideAnchor:xr||!1};te&&(Object.assign(Wt,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Dt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Tt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),JR(()=>(Qt.current=!0,()=>{Qt.current=!1}),[]);const Ct=rt=>{Qt.current&&(rt&&Yn(!0),setTimeout(()=>{Qt.current&&(ee==null||ee(rt),oe===void 0&&yt(rt))},10))};S.useEffect(()=>{if(oe===void 0)return()=>null;oe&&Yn(!0);const rt=setTimeout(()=>{yt(oe)},10);return()=>{clearTimeout(rt)}},[oe]),S.useEffect(()=>{if(Lt!==At.current)if(zi(Oe),At.current=Lt,Lt)me==null||me();else{const rt=(gt=>{const Ye=gt.match(/^([\d.]+)(ms|s)$/);if(!Ye)return 0;const[,Ot,En]=Ye;return Number(Ot)*(En==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));Oe.current=setTimeout(()=>{Yn(!1),Et(null),de==null||de()},rt+25)}},[Lt]);const zn=rt=>{wt(gt=>sg(gt,rt)?gt:rt)},Er=(rt=P)=>{zi(qe),xt?Ct(!0):qe.current=setTimeout(()=>{Ct(!0)},rt)},sr=(rt=T)=>{zi(Ke),Ke.current=setTimeout(()=>{Vn.current||Ct(!1)},rt)},gr=rt=>{var gt;if(!rt)return;const Ye=(gt=rt.currentTarget)!==null&>!==void 0?gt:rt.target;if(!(Ye!=null&&Ye.isConnected))return Pe(null),void Zn({current:null});P?Er():Ct(!0),Pe(Ye),Zn({current:Ye}),zi(Ke)},Xn=()=>{_?sr(T||100):T?sr():Ct(!1),zi(qe)},Kr=({x:rt,y:gt})=>{var Ye;const Ot={getBoundingClientRect:()=>({x:rt,y:gt,width:0,height:0,top:gt,left:rt,right:rt,bottom:gt})};a1({place:(Ye=tt==null?void 0:tt.place)!==null&&Ye!==void 0?Ye:c,offset:d,elementReference:Ot,tooltipReference:xe.current,tooltipArrowReference:Be.current,strategy:v,middlewares:$,border:Te}).then(En=>{zn(En)})},ft=rt=>{if(!rt)return;const gt=rt,Ye={x:gt.clientX,y:gt.clientY};Kr(Ye),Bn.current=Ye},Un=rt=>{var gt;if(!Lt)return;const Ye=rt.target;Ye.isConnected&&(!((gt=xe.current)===null||gt===void 0)&>.contains(Ye)||[document.querySelector(`[id='${a}']`),..._r].some(Ot=>Ot==null?void 0:Ot.contains(Ye))||(Ct(!1),zi(qe)))},kr=s1(gr,50),xn=s1(Xn,50),ur=rt=>{xn.cancel(),kr(rt)},$t=()=>{kr.cancel(),xn()},Vt=S.useCallback(()=>{var rt,gt;const Ye=(rt=tt==null?void 0:tt.position)!==null&&rt!==void 0?rt:De;Ye?Kr(Ye):R?Bn.current&&Kr(Bn.current):pe!=null&&pe.isConnected&&a1({place:(gt=tt==null?void 0:tt.place)!==null&>!==void 0?gt:c,offset:d,elementReference:pe,tooltipReference:xe.current,tooltipArrowReference:Be.current,strategy:v,middlewares:$,border:Te}).then(Ot=>{Qt.current&&zn(Ot)})},[Lt,pe,re,ie,c,tt==null?void 0:tt.place,d,v,De,tt==null?void 0:tt.position,R]);S.useEffect(()=>{var rt,gt;const Ye=new Set(ar);_r.forEach(Yt=>{ne!=null&&ne(Yt)||Ye.add({current:Yt})});const Ot=document.querySelector(`[id='${a}']`);Ot&&!(ne!=null&&ne(Ot))&&Ye.add({current:Ot});const En=()=>{Ct(!1)},Cr=l1(pe),pn=l1(xe.current);Tt.scroll&&(window.addEventListener("scroll",En),Cr==null||Cr.addEventListener("scroll",En),pn==null||pn.addEventListener("scroll",En));let Nn=null;Tt.resize?window.addEventListener("resize",En):pe&&xe.current&&(Nn=W$(pe,xe.current,Vt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const mn=Yt=>{Yt.key==="Escape"&&Ct(!1)};Tt.escape&&window.addEventListener("keydown",mn),Tt.clickOutsideAnchor&&window.addEventListener("click",Un);const un=[],Qn=Yt=>{Lt&&(Yt==null?void 0:Yt.target)===pe||gr(Yt)},it=Yt=>{Lt&&(Yt==null?void 0:Yt.target)===pe&&Xn()},ln=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Gr=["click","dblclick","mousedown","mouseup"];Object.entries(Wt).forEach(([Yt,er])=>{er&&(ln.includes(Yt)?un.push({event:Yt,listener:ur}):Gr.includes(Yt)&&un.push({event:Yt,listener:Qn}))}),Object.entries(Dt).forEach(([Yt,er])=>{er&&(ln.includes(Yt)?un.push({event:Yt,listener:$t}):Gr.includes(Yt)&&un.push({event:Yt,listener:it}))}),R&&un.push({event:"pointermove",listener:ft});const Rr=()=>{Vn.current=!0},Rn=()=>{Vn.current=!1,Xn()};return _&&!xr&&((rt=xe.current)===null||rt===void 0||rt.addEventListener("mouseenter",Rr),(gt=xe.current)===null||gt===void 0||gt.addEventListener("mouseleave",Rn)),un.forEach(({event:Yt,listener:er})=>{Ye.forEach(Sr=>{var cn;(cn=Sr.current)===null||cn===void 0||cn.addEventListener(Yt,er)})}),()=>{var Yt,er;Tt.scroll&&(window.removeEventListener("scroll",En),Cr==null||Cr.removeEventListener("scroll",En),pn==null||pn.removeEventListener("scroll",En)),Tt.resize?window.removeEventListener("resize",En):Nn==null||Nn(),Tt.clickOutsideAnchor&&window.removeEventListener("click",Un),Tt.escape&&window.removeEventListener("keydown",mn),_&&!xr&&((Yt=xe.current)===null||Yt===void 0||Yt.removeEventListener("mouseenter",Rr),(er=xe.current)===null||er===void 0||er.removeEventListener("mouseleave",Rn)),un.forEach(({event:Sr,listener:cn})=>{Ye.forEach($i=>{var Kt;(Kt=$i.current)===null||Kt===void 0||Kt.removeEventListener(Sr,cn)})})}},[pe,Vt,xt,ar,_r,X,F,ge,or,P,T]),S.useEffect(()=>{var rt,gt;let Ye=(gt=(rt=tt==null?void 0:tt.anchorSelect)!==null&&rt!==void 0?rt:s)!==null&>!==void 0?gt:"";!Ye&&t&&(Ye=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const Ot=new MutationObserver(En=>{const Cr=[],pn=[];En.forEach(Nn=>{if(Nn.type==="attributes"&&Nn.attributeName==="data-tooltip-id"&&(Nn.target.getAttribute("data-tooltip-id")===t?Cr.push(Nn.target):Nn.oldValue===t&&pn.push(Nn.target)),Nn.type==="childList"){if(pe){const mn=[...Nn.removedNodes].filter(un=>un.nodeType===1);if(Ye)try{pn.push(...mn.filter(un=>un.matches(Ye))),pn.push(...mn.flatMap(un=>[...un.querySelectorAll(Ye)]))}catch{}mn.some(un=>{var Qn;return!!(!((Qn=un==null?void 0:un.contains)===null||Qn===void 0)&&Qn.call(un,pe))&&(Yn(!1),Ct(!1),Pe(null),zi(qe),zi(Ke),!0)})}if(Ye)try{const mn=[...Nn.addedNodes].filter(un=>un.nodeType===1);Cr.push(...mn.filter(un=>un.matches(Ye))),Cr.push(...mn.flatMap(un=>[...un.querySelectorAll(Ye)]))}catch{}}}),(Cr.length||pn.length)&&Jn(Nn=>[...Nn.filter(mn=>!pn.includes(mn)),...Cr])});return Ot.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Ot.disconnect()}},[t,s,tt==null?void 0:tt.anchorSelect,pe]),S.useEffect(()=>{Vt()},[Vt]),S.useEffect(()=>{if(!(K!=null&&K.current))return()=>null;const rt=new ResizeObserver(()=>{setTimeout(()=>Vt())});return rt.observe(K.current),()=>{rt.disconnect()}},[re,K==null?void 0:K.current]),S.useEffect(()=>{var rt;const gt=document.querySelector(`[id='${a}']`),Ye=[..._r,gt];pe&&Ye.includes(pe)||Pe((rt=_r[0])!==null&&rt!==void 0?rt:gt)},[a,_r,pe]),S.useEffect(()=>(Ce&&Ct(!0),()=>{zi(qe),zi(Ke)}),[]),S.useEffect(()=>{var rt;let gt=(rt=tt==null?void 0:tt.anchorSelect)!==null&&rt!==void 0?rt:s;if(!gt&&t&&(gt=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),gt)try{const Ye=Array.from(document.querySelectorAll(gt));Jn(Ye)}catch{Jn([])}},[t,s,tt==null?void 0:tt.anchorSelect]),S.useEffect(()=>{qe.current&&(zi(qe),Er(P))},[P]);const kn=(Ge=tt==null?void 0:tt.content)!==null&&Ge!==void 0?Ge:re,Hr=Lt&&Object.keys(et.tooltipStyles).length>0;return S.useImperativeHandle(e,()=>({open:rt=>{if(rt!=null&&rt.anchorSelect)try{document.querySelector(rt.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${rt.anchorSelect}" is not a valid CSS selector`)}Et(rt??null),rt!=null&&rt.delay?Er(rt.delay):Ct(!0)},close:rt=>{rt!=null&&rt.delay?sr(rt.delay):Ct(!1)},activeAnchor:pe,place:et.place,isOpen:!!(xt&&!D&&kn&&Hr)})),xt&&!D&&kn?S.createElement(y,{id:t,role:Je,className:og("react-tooltip",Mu.tooltip,Qp.tooltip,Qp[i],n,`react-tooltip__place-${et.place}`,Mu[Hr?"show":"closing"],Hr?"react-tooltip__show":"react-tooltip__closing",v==="fixed"&&Mu.fixed,_&&Mu.clickable),onTransitionEnd:rt=>{zi(Oe),Lt||rt.propertyName!=="opacity"||(Yn(!1),Et(null),de==null||de())},style:{...ie,...et.tooltipStyles,opacity:Ve!==void 0&&Hr?Ve:void 0},ref:xe},kn,S.createElement(y,{className:og("react-tooltip-arrow",Mu.arrow,Qp.arrow,r,C&&Mu.noArrow),style:{...et.tooltipArrowStyles,background:Se?`linear-gradient(to right bottom, transparent 50%, ${Se} 50%)`:void 0},ref:Be})):null},nF=({content:e})=>S.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),rF=S.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:a,className:s,classNameArrow:c,variant:d="dark",place:h="top",offset:g=10,wrapper:v="div",children:$=null,events:y=["hover"],openOnClick:P=!1,positionStrategy:T="absolute",middlewares:R,delayShow:D=0,delayHide:C=0,float:_=!1,hidden:B=!1,noArrow:k=!1,clickable:L=!1,closeOnEsc:X=!1,closeOnScroll:F=!1,closeOnResize:ge=!1,openEvents:te,closeEvents:ie,globalCloseEvents:De,imperativeModeOnly:me=!1,style:de,position:ne,isOpen:re,defaultIsOpen:K=!1,disableStyleInjection:oe=!1,border:Ce,opacity:ee,arrowColor:pe,setIsOpen:Pe,afterShow:Te,afterHide:Ve,disableTooltip:Se,role:Je="tooltip"},Ge)=>{const[xe,Be]=S.useState(r),[qe,Ke]=S.useState(i),[Oe,et]=S.useState(h),[wt,Lt]=S.useState(d),[yt,xt]=S.useState(g),[Yn,tt]=S.useState(D),[Et,At]=S.useState(C),[Bn,ar]=S.useState(_),[Zn,Vn]=S.useState(B),[_r,Jn]=S.useState(v),[Qt,or]=S.useState(y),[xr,Wt]=S.useState(T),[Dt,Tt]=S.useState(null),[Ct,zn]=S.useState(null),Er=S.useRef(oe),{anchorRefs:sr,activeAnchor:gr}=Z$(e),Xn=xn=>xn==null?void 0:xn.getAttributeNames().reduce((ur,$t)=>{var Vt;return $t.startsWith("data-tooltip-")&&(ur[$t.replace(/^data-tooltip-/,"")]=(Vt=xn==null?void 0:xn.getAttribute($t))!==null&&Vt!==void 0?Vt:null),ur},{}),Kr=xn=>{const ur={place:$t=>{var Vt;et((Vt=$t)!==null&&Vt!==void 0?Vt:h)},content:$t=>{Be($t??r)},html:$t=>{Ke($t??i)},variant:$t=>{var Vt;Lt((Vt=$t)!==null&&Vt!==void 0?Vt:d)},offset:$t=>{xt($t===null?g:Number($t))},wrapper:$t=>{var Vt;Jn((Vt=$t)!==null&&Vt!==void 0?Vt:v)},events:$t=>{const Vt=$t==null?void 0:$t.split(" ");or(Vt??y)},"position-strategy":$t=>{var Vt;Wt((Vt=$t)!==null&&Vt!==void 0?Vt:T)},"delay-show":$t=>{tt($t===null?D:Number($t))},"delay-hide":$t=>{At($t===null?C:Number($t))},float:$t=>{ar($t===null?_:$t==="true")},hidden:$t=>{Vn($t===null?B:$t==="true")},"class-name":$t=>{Tt($t)}};Object.values(ur).forEach($t=>$t(null)),Object.entries(xn).forEach(([$t,Vt])=>{var kn;(kn=ur[$t])===null||kn===void 0||kn.call(ur,Vt)})};S.useEffect(()=>{Be(r)},[r]),S.useEffect(()=>{Ke(i)},[i]),S.useEffect(()=>{et(h)},[h]),S.useEffect(()=>{Lt(d)},[d]),S.useEffect(()=>{xt(g)},[g]),S.useEffect(()=>{tt(D)},[D]),S.useEffect(()=>{At(C)},[C]),S.useEffect(()=>{ar(_)},[_]),S.useEffect(()=>{Vn(B)},[B]),S.useEffect(()=>{Wt(T)},[T]),S.useEffect(()=>{Er.current!==oe&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[oe]),S.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:oe==="core",disableBase:oe}}))},[]),S.useEffect(()=>{var xn;const ur=new Set(sr);let $t=n;if(!$t&&e&&($t=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),$t)try{document.querySelectorAll($t).forEach(gt=>{ur.add({current:gt})})}catch{console.warn(`[react-tooltip] "${$t}" is not a valid CSS selector`)}const Vt=document.querySelector(`[id='${t}']`);if(Vt&&ur.add({current:Vt}),!ur.size)return()=>null;const kn=(xn=Ct??Vt)!==null&&xn!==void 0?xn:gr.current,Hr=new MutationObserver(gt=>{gt.forEach(Ye=>{var Ot;if(!kn||Ye.type!=="attributes"||!(!((Ot=Ye.attributeName)===null||Ot===void 0)&&Ot.startsWith("data-tooltip-")))return;const En=Xn(kn);Kr(En)})}),rt={attributes:!0,childList:!1,subtree:!1};if(kn){const gt=Xn(kn);Kr(gt),Hr.observe(kn,rt)}return()=>{Hr.disconnect()}},[sr,gr,Ct,t,n]),S.useEffect(()=>{de!=null&&de.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Ce&&!o1("border",`${Ce}`)&&console.warn(`[react-tooltip] "${Ce}" is not a valid \`border\`.`),de!=null&&de.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),ee&&!o1("opacity",`${ee}`)&&console.warn(`[react-tooltip] "${ee}" is not a valid \`opacity\`.`)},[]);let ft=$;const Un=S.useRef(null);if(a){const xn=a({content:(Ct==null?void 0:Ct.getAttribute("data-tooltip-content"))||xe||null,activeAnchor:Ct});ft=xn?S.createElement("div",{ref:Un,className:"react-tooltip-content-wrapper"},xn):null}else xe&&(ft=xe);qe&&(ft=S.createElement(nF,{content:qe}));const kr={forwardRef:Ge,id:e,anchorId:t,anchorSelect:n,className:og(s,Dt),classNameArrow:c,content:ft,contentWrapperRef:Un,place:Oe,variant:wt,offset:yt,wrapper:_r,events:Qt,openOnClick:P,positionStrategy:xr,middlewares:R,delayShow:Yn,delayHide:Et,float:Bn,hidden:Zn,noArrow:k,clickable:L,closeOnEsc:X,closeOnScroll:F,closeOnResize:ge,openEvents:te,closeEvents:ie,globalCloseEvents:De,imperativeModeOnly:me,style:de,position:ne,isOpen:re,defaultIsOpen:K,border:Ce,opacity:ee,arrowColor:pe,setIsOpen:Pe,afterShow:Te,afterHide:Ve,disableTooltip:Se,activeAnchor:Ct,setActiveAnchor:xn=>zn(xn),role:Je};return S.createElement(tF,{...kr})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||i1({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||i1({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 Ln=typeof document<"u"?S.useLayoutEffect:()=>{};function Tr(e){const t=S.useRef(null);return Ln(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function iF(e){let[t,n]=S.useState(e),r=S.useRef(null),i=Tr(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}t===s.value?i():n(s.value)});Ln(()=>{r.current&&i()});let a=Tr(s=>{r.current=s(t),i()});return[t,a]}const Md={prefix:String(Math.round(Math.random()*1e10)),current:0},J$=S.createContext(Md),aF=S.createContext(!1);let oF=!!(typeof window<"u"&&window.document&&window.document.createElement),em=new WeakMap;function sF(e=!1){let t=S.useContext(J$),n=S.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=S.__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(a){let s=em.get(a);s==null?em.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==s.state&&(t.current=s.id,em.delete(a))}n.current=++t.current}return n.current}function uF(e){let t=S.useContext(J$);t===Md&&!oF&&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=sF(!!e),r=t===Md&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function lF(e){let t=S.useId(),[n]=S.useState(Sv()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Md.prefix}`;return e||`${r}-${t}`}const cF=typeof S.useId=="function"?lF:uF;function fF(){return!1}function dF(){return!0}function hF(e){return()=>{}}function Sv(){return typeof S.useSyncExternalStore=="function"?S.useSyncExternalStore(hF,fF,dF):S.useContext(aF)}let pF=!!(typeof window<"u"&&window.document&&window.document.createElement),ts=new Map;function _i(e){let[t,n]=S.useState(e),r=S.useRef(null),i=cF(t),a=S.useCallback(s=>{r.current=s},[]);return pF&&(ts.has(i)&&!ts.get(i).includes(a)?ts.set(i,[...ts.get(i),a]):ts.set(i,[a])),Ln(()=>{let s=i;return()=>{ts.delete(s)}},[i]),S.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),i}function mF(e,t){if(e===t)return e;let n=ts.get(e);if(n)return n.forEach(i=>i(t)),t;let r=ts.get(t);return r?(r.forEach(i=>i(e)),e):t}function ll(e=[]){let t=_i(),[n,r]=iF(t),i=S.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Ln(i,[t,i,...e]),n}function au(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const An=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},ms=e=>e&&"window"in e&&e.window===e?e:An(e).defaultView||window;function X$(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=X$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gF(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=X$(e))&&(r&&(r+=" "),r+=t);return r}function hn(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],s=r[i];typeof a=="function"&&typeof s=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=au(a,s):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof s=="string"?t[i]=gF(a,s):i==="id"&&a&&s?t.id=mF(a,s):t[i]=s!==void 0?s:a}}return t}const vF=new Set(["id"]),yF=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),bF=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),$F=/^(data-.*)$/;function Fo(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(vF.has(s)||n&&yF.has(s)||r&&bF.has(s)||i!=null&&i.has(s)||$F.test(s))&&(a[s]=e[s]);return a}function ga(e){if(wF())e.focus({preventScroll:!0});else{let t=xF(e);e.focus(),EF(t)}}let Yf=null;function wF(){if(Yf==null){Yf=!1;try{document.createElement("div").focus({get preventScroll(){return Yf=!0,!0}})}catch{}}return Yf}function xF(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 EF(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function $h(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 Dv(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 Mo(e){let t=null;return()=>(t==null&&(t=e()),t)}const Ro=Mo(function(){return Dv(/^Mac/i)}),CF=Mo(function(){return Dv(/^iPhone/i)}),Q$=Mo(function(){return Dv(/^iPad/i)||Ro()&&navigator.maxTouchPoints>1}),zc=Mo(function(){return CF()||Q$()}),yd=Mo(function(){return Ro()||zc()}),Av=Mo(function(){return $h(/AppleWebKit/i)&&!SF()}),SF=Mo(function(){return $h(/Chrome/i)}),ew=Mo(function(){return $h(/Android/i)}),DF=Mo(function(){return $h(/Firefox/i)}),AF=S.createContext({isNative:!0,open:TF,useHref:e=>e});function wh(){return S.useContext(AF)}function ou(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:s,altKey:c,shiftKey:d}=t;DF()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Ro()?a=!0:s=!0);let h=Av()&&Ro()&&!Q$()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:s,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:a,ctrlKey:s,altKey:c,shiftKey:d,bubbles:!0,cancelable:!0});ou.isOpening=n,ga(e),e.dispatchEvent(h),ou.isOpening=!1}ou.isOpening=!1;function PF(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 TF(e,t){PF(e,n=>ou(n,t))}function _F(e){let t=wh();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 Vu=new Map,ug=new Set;function c1(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=Vu.get(r.target);i||(i=new Set,Vu.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=Vu.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),Vu.delete(r.target)),Vu.size===0)){for(let a of ug)a();ug.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?c1():document.addEventListener("DOMContentLoaded",c1));function tw(e){requestAnimationFrame(()=>{Vu.size===0?e():ug.add(e)})}function El(){let e=S.useRef(new Map),t=S.useCallback((i,a,s,c)=>{let d=c!=null&&c.once?(...h)=>{e.current.delete(s),s(...h)}:s;e.current.set(s,{type:a,eventTarget:i,fn:d,options:c}),i.addEventListener(a,s,c)},[]),n=S.useCallback((i,a,s,c)=>{var d;let h=((d=e.current.get(s))===null||d===void 0?void 0:d.fn)||s;i.removeEventListener(a,h,c),e.current.delete(s)},[]),r=S.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return S.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function cl(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=_i(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 f1(e,t){const n=S.useRef(!0),r=S.useRef(null);S.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),S.useEffect(()=>{n.current?n.current=!1:(!r.current||t.some((i,a)=>!Object.is(i,r[a])))&&e(),r.current=t},t)}function kF(){return typeof window.ResizeObserver<"u"}function d1(e){const{ref:t,box:n,onResize:r}=e;S.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(kF()){const a=new window.ResizeObserver(s=>{s.length&&r()});return a.observe(i,{box:n}),()=>{i&&a.unobserve(i)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t,n])}function nw(e,t){Ln(()=>{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 xh(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 RF(e,t){const n=[];for(;e&&e!==document.documentElement;)Dc(e,t)&&n.push(e),e=e.parentElement;return n}let FF=0;const tm=new Map;function Uc(e){let[t,n]=S.useState();return Ln(()=>{if(!e)return;let r=tm.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${FF++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},tm.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),tm.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function cs(e,t,n,r){let i=Tr(n),a=n==null;S.useEffect(()=>{if(a||!e.current)return;let s=e.current;return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[e,t,r,a,i])}function rw(e,t){let n=h1(e,t,"left"),r=h1(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,c=e.scrollTop,{borderTopWidth:d,borderLeftWidth:h}=getComputedStyle(e),g=e.scrollLeft+parseInt(h,10),v=e.scrollTop+parseInt(d,10),$=g+e.clientWidth,y=v+e.clientHeight;n<=s?s=n-parseInt(h,10):n+i>$&&(s+=n+i-$),r<=v?c=r-parseInt(d,10):r+a>y&&(c+=r+a-y),e.scrollLeft=s,e.scrollTop=c}function h1(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 Od(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(window.getComputedStyle(s).overflow==="hidden"){let d=RF(e);for(let h of d)rw(h,e)}else{var n;let{left:d,top:h}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:g,top:v}=e.getBoundingClientRect();if(Math.abs(d-g)>1||Math.abs(h-v)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function lg(e){return e.mozInputSource===0&&e.isTrusted?!0:ew()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function MF(e){return!ew()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function iw(e,t){let n=S.useRef(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function Pv(e,t,n){let r=S.useRef(t),i=Tr(()=>{n&&n(r.current)});S.useEffect(()=>{var a;let s=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return s==null||s.addEventListener("reset",i),()=>{s==null||s.removeEventListener("reset",i)}},[e,i])}function ki(e,t,n){let[r,i]=S.useState(e||t),a=S.useRef(e!==void 0),s=e!==void 0;S.useEffect(()=>{let h=a.current;h!==s&&console.warn(`WARN: A component changed from ${h?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let c=s?e:r,d=S.useCallback((h,...g)=>{let v=($,...y)=>{n&&(Object.is(c,$)||n($,...y)),s||(c=$)};typeof h=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((y,...P)=>{let T=h(s?c:y,...P);return v(T,...g),s?y:T})):(s||i(h),v(h,...g))},[s,c,n]);return[c,d]}function fl(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Zf(e,t){let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let s=Math.pow(10,a);n=Math.round(n*s)/s}return n}function Ql(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=Zf(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(Zf(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(Zf((n-t)/r,r))*r),a=Zf(a,r),a}let Ku="default",cg="",bd=new WeakMap;function fg(e){if(zc()){if(Ku==="default"){const t=An(e);cg=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ku="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(bd.set(e,e.style.userSelect),e.style.userSelect="none")}function dc(e){if(zc()){if(Ku!=="disabled")return;Ku="restoring",setTimeout(()=>{tw(()=>{if(Ku==="restoring"){const t=An(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=cg||""),cg="",Ku="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&bd.has(e)){let t=bd.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),bd.delete(e)}}const Tv=S.createContext({register:()=>{}});Tv.displayName="PressResponderContext";function OF(e,t){return t.get?t.get.call(e):t.value}function aw(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function IF(e,t){var n=aw(e,t,"get");return OF(e,n)}function LF(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Wc(e,t,n){LF(e,t),t.set(e,n)}function BF(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 p1(e,t,n){var r=aw(e,t,"set");return BF(e,r,n),n}function VF(e){let t=S.useContext(Tv);if(t){let{register:n,...r}=t;e=hn(r,e),n()}return nw(t,e.ref),e}var Jf=new WeakMap;class Xf{continuePropagation(){p1(this,Jf,!1)}get shouldStopPropagation(){return IF(this,Jf)}constructor(t,n,r,i){Wc(this,Jf,{writable:!0,value:void 0}),p1(this,Jf,!0);var a;let s=(a=i==null?void 0:i.target)!==null&&a!==void 0?a:r.currentTarget;const c=s==null?void 0:s.getBoundingClientRect();let d,h=0,g,v=null;r.clientX!=null&&r.clientY!=null&&(g=r.clientX,v=r.clientY),c&&(g!=null&&v!=null?(d=g-c.left,h=v-c.top):(d=c.width/2,h=c.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=d,this.y=h}}const m1=Symbol("linkClicked");function Hc(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:s,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:g,ref:v,...$}=VF(e),[y,P]=S.useState(!1),T=S.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:R,removeAllGlobalListeners:D}=El(),C=Tr((F,ge)=>{let te=T.current;if(s||te.didFirePressStart)return!1;let ie=!0;if(te.isTriggeringEvent=!0,r){let De=new Xf("pressstart",ge,F);r(De),ie=De.shouldStopPropagation}return n&&n(!0),te.isTriggeringEvent=!1,te.didFirePressStart=!0,P(!0),ie}),_=Tr((F,ge,te=!0)=>{let ie=T.current;if(!ie.didFirePressStart)return!1;ie.ignoreClickAfterPress=!0,ie.didFirePressStart=!1,ie.isTriggeringEvent=!0;let De=!0;if(i){let me=new Xf("pressend",ge,F);i(me),De=me.shouldStopPropagation}if(n&&n(!1),P(!1),t&&te&&!s){let me=new Xf("press",ge,F);t(me),De&&(De=me.shouldStopPropagation)}return ie.isTriggeringEvent=!1,De}),B=Tr((F,ge)=>{let te=T.current;if(s)return!1;if(a){te.isTriggeringEvent=!0;let ie=new Xf("pressup",ge,F);return a(ie),te.isTriggeringEvent=!1,ie.shouldStopPropagation}return!0}),k=Tr(F=>{let ge=T.current;ge.isPressed&&ge.target&&(ge.isOverTarget&&ge.pointerType!=null&&_(xo(ge.target,F),ge.pointerType,!1),ge.isPressed=!1,ge.isOverTarget=!1,ge.activePointerId=null,ge.pointerType=null,D(),g||dc(ge.target))}),L=Tr(F=>{h&&k(F)}),X=S.useMemo(()=>{let F=T.current,ge={onKeyDown(ie){if(nm(ie.nativeEvent,ie.currentTarget)&&ie.currentTarget.contains(ie.target)){var De;v1(ie.target,ie.key)&&ie.preventDefault();let me=!0;if(!F.isPressed&&!ie.repeat){F.target=ie.currentTarget,F.isPressed=!0,me=C(ie,"keyboard");let de=ie.currentTarget,ne=re=>{nm(re,de)&&!re.repeat&&de.contains(re.target)&&F.target&&B(xo(F.target,re),"keyboard")};R(An(ie.currentTarget),"keyup",au(ne,te),!0)}me&&ie.stopPropagation(),ie.metaKey&&Ro()&&((De=F.metaKeyEvents)===null||De===void 0||De.set(ie.key,ie.nativeEvent))}else ie.key==="Meta"&&(F.metaKeyEvents=new Map)},onClick(ie){if(!(ie&&!ie.currentTarget.contains(ie.target))&&ie&&ie.button===0&&!F.isTriggeringEvent&&!ou.isOpening){let De=!0;if(s&&ie.preventDefault(),!F.ignoreClickAfterPress&&!F.ignoreEmulatedMouseEvents&&!F.isPressed&&(F.pointerType==="virtual"||lg(ie.nativeEvent))){!s&&!d&&ga(ie.currentTarget);let me=C(ie,"virtual"),de=B(ie,"virtual"),ne=_(ie,"virtual");De=me&&de&&ne}F.ignoreEmulatedMouseEvents=!1,F.ignoreClickAfterPress=!1,De&&ie.stopPropagation()}}},te=ie=>{var De;if(F.isPressed&&F.target&&nm(ie,F.target)){var me;v1(ie.target,ie.key)&&ie.preventDefault();let ne=ie.target;_(xo(F.target,ie),"keyboard",F.target.contains(ne)),D(),ie.key!=="Enter"&&_v(F.target)&&F.target.contains(ne)&&!ie[m1]&&(ie[m1]=!0,ou(F.target,ie,!1)),F.isPressed=!1,(me=F.metaKeyEvents)===null||me===void 0||me.delete(ie.key)}else if(ie.key==="Meta"&&(!((De=F.metaKeyEvents)===null||De===void 0)&&De.size)){var de;let ne=F.metaKeyEvents;F.metaKeyEvents=void 0;for(let re of ne.values())(de=F.target)===null||de===void 0||de.dispatchEvent(new KeyboardEvent("keyup",re))}};if(typeof PointerEvent<"u"){ge.onPointerDown=ne=>{if(ne.button!==0||!ne.currentTarget.contains(ne.target))return;if(MF(ne.nativeEvent)){F.pointerType="virtual";return}rm(ne.currentTarget)&&ne.preventDefault(),F.pointerType=ne.pointerType;let re=!0;F.isPressed||(F.isPressed=!0,F.isOverTarget=!0,F.activePointerId=ne.pointerId,F.target=ne.currentTarget,!s&&!d&&ga(ne.currentTarget),g||fg(F.target),re=C(ne,F.pointerType),R(An(ne.currentTarget),"pointermove",ie,!1),R(An(ne.currentTarget),"pointerup",De,!1),R(An(ne.currentTarget),"pointercancel",de,!1)),re&&ne.stopPropagation()},ge.onMouseDown=ne=>{ne.currentTarget.contains(ne.target)&&ne.button===0&&(rm(ne.currentTarget)&&ne.preventDefault(),ne.stopPropagation())},ge.onPointerUp=ne=>{!ne.currentTarget.contains(ne.target)||F.pointerType==="virtual"||ne.button===0&&Ou(ne,ne.currentTarget)&&B(ne,F.pointerType||ne.pointerType)};let ie=ne=>{ne.pointerId===F.activePointerId&&(F.target&&Ou(ne,F.target)?!F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!0,C(xo(F.target,ne),F.pointerType)):F.target&&F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!1,_(xo(F.target,ne),F.pointerType,!1),L(ne)))},De=ne=>{ne.pointerId===F.activePointerId&&F.isPressed&&ne.button===0&&F.target&&(Ou(ne,F.target)&&F.pointerType!=null?_(xo(F.target,ne),F.pointerType):F.isOverTarget&&F.pointerType!=null&&_(xo(F.target,ne),F.pointerType,!1),F.isPressed=!1,F.isOverTarget=!1,F.activePointerId=null,F.pointerType=null,D(),g||dc(F.target),"ontouchend"in F.target&&ne.pointerType!=="mouse"&&R(F.target,"touchend",me,{once:!0}))},me=ne=>{ow(ne.currentTarget)&&ne.preventDefault()},de=ne=>{k(ne)};ge.onDragStart=ne=>{ne.currentTarget.contains(ne.target)&&k(ne)}}else{ge.onMouseDown=me=>{if(me.button!==0||!me.currentTarget.contains(me.target))return;if(rm(me.currentTarget)&&me.preventDefault(),F.ignoreEmulatedMouseEvents){me.stopPropagation();return}F.isPressed=!0,F.isOverTarget=!0,F.target=me.currentTarget,F.pointerType=lg(me.nativeEvent)?"virtual":"mouse",!s&&!d&&ga(me.currentTarget),C(me,F.pointerType)&&me.stopPropagation(),R(An(me.currentTarget),"mouseup",ie,!1)},ge.onMouseEnter=me=>{if(!me.currentTarget.contains(me.target))return;let de=!0;F.isPressed&&!F.ignoreEmulatedMouseEvents&&F.pointerType!=null&&(F.isOverTarget=!0,de=C(me,F.pointerType)),de&&me.stopPropagation()},ge.onMouseLeave=me=>{if(!me.currentTarget.contains(me.target))return;let de=!0;F.isPressed&&!F.ignoreEmulatedMouseEvents&&F.pointerType!=null&&(F.isOverTarget=!1,de=_(me,F.pointerType,!1),L(me)),de&&me.stopPropagation()},ge.onMouseUp=me=>{me.currentTarget.contains(me.target)&&!F.ignoreEmulatedMouseEvents&&me.button===0&&B(me,F.pointerType||"mouse")};let ie=me=>{if(me.button===0){if(F.isPressed=!1,D(),F.ignoreEmulatedMouseEvents){F.ignoreEmulatedMouseEvents=!1;return}F.target&&Ou(me,F.target)&&F.pointerType!=null?_(xo(F.target,me),F.pointerType):F.target&&F.isOverTarget&&F.pointerType!=null&&_(xo(F.target,me),F.pointerType,!1),F.isOverTarget=!1}};ge.onTouchStart=me=>{if(!me.currentTarget.contains(me.target))return;let de=NF(me.nativeEvent);if(!de)return;F.activePointerId=de.identifier,F.ignoreEmulatedMouseEvents=!0,F.isOverTarget=!0,F.isPressed=!0,F.target=me.currentTarget,F.pointerType="touch",!s&&!d&&ga(me.currentTarget),g||fg(F.target),C(Jo(F.target,me),F.pointerType)&&me.stopPropagation(),R(ms(me.currentTarget),"scroll",De,!0)},ge.onTouchMove=me=>{if(!me.currentTarget.contains(me.target))return;if(!F.isPressed){me.stopPropagation();return}let de=g1(me.nativeEvent,F.activePointerId),ne=!0;de&&Ou(de,me.currentTarget)?!F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!0,ne=C(Jo(F.target,me),F.pointerType)):F.isOverTarget&&F.pointerType!=null&&(F.isOverTarget=!1,ne=_(Jo(F.target,me),F.pointerType,!1),L(Jo(F.target,me))),ne&&me.stopPropagation()},ge.onTouchEnd=me=>{if(!me.currentTarget.contains(me.target))return;if(!F.isPressed){me.stopPropagation();return}let de=g1(me.nativeEvent,F.activePointerId),ne=!0;de&&Ou(de,me.currentTarget)&&F.pointerType!=null?(B(Jo(F.target,me),F.pointerType),ne=_(Jo(F.target,me),F.pointerType)):F.isOverTarget&&F.pointerType!=null&&(ne=_(Jo(F.target,me),F.pointerType,!1)),ne&&me.stopPropagation(),F.isPressed=!1,F.activePointerId=null,F.isOverTarget=!1,F.ignoreEmulatedMouseEvents=!0,F.target&&!g&&dc(F.target),D()},ge.onTouchCancel=me=>{me.currentTarget.contains(me.target)&&(me.stopPropagation(),F.isPressed&&k(Jo(F.target,me)))};let De=me=>{F.isPressed&&me.target.contains(F.target)&&k({currentTarget:F.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};ge.onDragStart=me=>{me.currentTarget.contains(me.target)&&k(me)}}return ge},[R,s,d,D,g,k,L,_,C,B]);return S.useEffect(()=>()=>{var F;g||dc((F=T.current.target)!==null&&F!==void 0?F:void 0)},[g]),{isPressed:c||y,pressProps:hn($,X)}}function _v(e){return e.tagName==="A"&&e.hasAttribute("href")}function nm(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof ms(i).HTMLInputElement&&!sw(i,n)||i instanceof ms(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&_v(i))&&n!=="Enter")}function NF(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function g1(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 Jo(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 xo(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 jF(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 KF(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ou(e,t){let n=t.getBoundingClientRect(),r=jF(e);return KF(n,r)}function rm(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function ow(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!_v(e)}function v1(e,t){return e instanceof HTMLInputElement?!sw(e,t):ow(e)}const zF=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sw(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":zF.has(e.type)}function UF({children:e}){let t=S.useMemo(()=>({register:()=>{}}),[]);return S.createElement(Tv.Provider,{value:t},e)}class WF{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 uw(e){let t=S.useRef({isFocused:!1,observer:null});Ln(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Tr(r=>{e==null||e(r)});return S.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,a=s=>{t.current.isFocused=!1,i.disabled&&n(new WF("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let c=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function HF(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=S.useCallback(d=>{if(d.target===d.currentTarget)return r&&r(d),i&&i(!1),!0},[r,i]),s=uw(a),c=S.useCallback(d=>{const h=An(d.target);d.target===d.currentTarget&&h.activeElement===d.target&&(n&&n(d),i&&i(!0),s(d))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?c:void 0,onBlur:!t&&(r||i)?a:void 0}}}let du=null,GF=new Set,$c=new Map,su=!1,dg=!1;function Eh(e,t){for(let n of GF)n(e,t)}function qF(e){return!(e.metaKey||!Ro()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Id(e){su=!0,qF(e)&&(du="keyboard",Eh("keyboard",e))}function qi(e){du="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(su=!0,Eh("pointer",e))}function lw(e){lg(e)&&(su=!0,du="virtual")}function cw(e){e.target===window||e.target===document||(!su&&!dg&&(du="virtual",Eh("virtual",e)),su=!1,dg=!1)}function fw(){su=!1,dg=!0}function y1(e){if(typeof window>"u"||$c.get(ms(e)))return;const t=ms(e),n=An(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){su=!0,r.apply(this,arguments)},n.addEventListener("keydown",Id,!0),n.addEventListener("keyup",Id,!0),n.addEventListener("click",lw,!0),t.addEventListener("focus",cw,!0),t.addEventListener("blur",fw,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",qi,!0),n.addEventListener("pointermove",qi,!0),n.addEventListener("pointerup",qi,!0)):(n.addEventListener("mousedown",qi,!0),n.addEventListener("mousemove",qi,!0),n.addEventListener("mouseup",qi,!0)),t.addEventListener("beforeunload",()=>{dw(e)},{once:!0}),$c.set(t,{focus:r})}const dw=(e,t)=>{const n=ms(e),r=An(e);t&&r.removeEventListener("DOMContentLoaded",t),$c.has(n)&&(n.HTMLElement.prototype.focus=$c.get(n).focus,r.removeEventListener("keydown",Id,!0),r.removeEventListener("keyup",Id,!0),r.removeEventListener("click",lw,!0),n.removeEventListener("focus",cw,!0),n.removeEventListener("blur",fw,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",qi,!0),r.removeEventListener("pointermove",qi,!0),r.removeEventListener("pointerup",qi,!0)):(r.removeEventListener("mousedown",qi,!0),r.removeEventListener("mousemove",qi,!0),r.removeEventListener("mouseup",qi,!0)),$c.delete(n))};function YF(e){const t=An(e);let n;return t.readyState!=="loading"?y1(e):(n=()=>{y1(e)},t.addEventListener("DOMContentLoaded",n)),()=>dw(e,n)}typeof document<"u"&&YF();function b1(){return du!=="pointer"}function Ld(){return du}function hw(e){du=e,Eh(e,null)}function Cl(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=S.useRef({isFocusWithin:!1}),s=S.useCallback(h=>{a.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(h),i&&i(!1))},[n,i,a]),c=uw(s),d=S.useCallback(h=>{!a.current.isFocusWithin&&document.activeElement===h.target&&(r&&r(h),i&&i(!0),a.current.isFocusWithin=!0,c(h))},[r,i,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:s}}}let Bd=!1,im=0;function hg(){Bd=!0,setTimeout(()=>{Bd=!1},50)}function $1(e){e.pointerType==="touch"&&hg()}function ZF(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",$1):document.addEventListener("touchend",hg),im++,()=>{im--,!(im>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",$1):document.removeEventListener("touchend",hg))}}function JF(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,s]=S.useState(!1),c=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(ZF,[]);let{hoverProps:d,triggerHoverEnd:h}=S.useMemo(()=>{let g=(y,P)=>{if(c.pointerType=P,i||P==="touch"||c.isHovered||!y.currentTarget.contains(y.target))return;c.isHovered=!0;let T=y.currentTarget;c.target=T,t&&t({type:"hoverstart",target:T,pointerType:P}),n&&n(!0),s(!0)},v=(y,P)=>{if(c.pointerType="",c.target=null,P==="touch"||!c.isHovered)return;c.isHovered=!1;let T=y.currentTarget;r&&r({type:"hoverend",target:T,pointerType:P}),n&&n(!1),s(!1)},$={};return typeof PointerEvent<"u"?($.onPointerEnter=y=>{Bd&&y.pointerType==="mouse"||g(y,y.pointerType)},$.onPointerLeave=y=>{!i&&y.currentTarget.contains(y.target)&&v(y,y.pointerType)}):($.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},$.onMouseEnter=y=>{!c.ignoreEmulatedMouseEvents&&!Bd&&g(y,"mouse"),c.ignoreEmulatedMouseEvents=!1},$.onMouseLeave=y=>{!i&&y.currentTarget.contains(y.target)&&v(y,"mouse")}),{hoverProps:$,triggerHoverEnd:v}},[t,n,r,i,c]);return S.useEffect(()=>{i&&h({currentTarget:c.target},c.pointerType)},[i]),{hoverProps:d,isHovered:a}}function XF(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=S.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Tr(d=>{n&&Qf(d,t)&&(i&&i(d),a.current.isPointerDown=!0)}),c=Tr(d=>{n&&n(d)});S.useEffect(()=>{let d=a.current;if(r)return;const h=t.current,g=An(h);if(typeof PointerEvent<"u"){let v=$=>{d.isPointerDown&&Qf($,t)&&c($),d.isPointerDown=!1};return g.addEventListener("pointerdown",s,!0),g.addEventListener("pointerup",v,!0),()=>{g.removeEventListener("pointerdown",s,!0),g.removeEventListener("pointerup",v,!0)}}else{let v=y=>{d.ignoreEmulatedMouseEvents?d.ignoreEmulatedMouseEvents=!1:d.isPointerDown&&Qf(y,t)&&c(y),d.isPointerDown=!1},$=y=>{d.ignoreEmulatedMouseEvents=!0,d.isPointerDown&&Qf(y,t)&&c(y),d.isPointerDown=!1};return g.addEventListener("mousedown",s,!0),g.addEventListener("mouseup",v,!0),g.addEventListener("touchstart",s,!0),g.addEventListener("touchend",$,!0),()=>{g.removeEventListener("mousedown",s,!0),g.removeEventListener("mouseup",v,!0),g.removeEventListener("touchstart",s,!0),g.removeEventListener("touchend",$,!0)}}},[t,r,s,c])}function Qf(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 w1(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 pw(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:w1(e.onKeyDown),onKeyUp:w1(e.onKeyUp)}}}function mw(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=S.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:s}=El(),c=Tr((g,v,$,y)=>{$===0&&y===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:v,shiftKey:g.shiftKey,metaKey:g.metaKey,ctrlKey:g.ctrlKey,altKey:g.altKey})),n==null||n({type:"move",pointerType:v,deltaX:$,deltaY:y,shiftKey:g.shiftKey,metaKey:g.metaKey,ctrlKey:g.ctrlKey,altKey:g.altKey}))}),d=Tr((g,v)=>{dc(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:v,shiftKey:g.shiftKey,metaKey:g.metaKey,ctrlKey:g.ctrlKey,altKey:g.altKey}))});return{moveProps:S.useMemo(()=>{let g={},v=()=>{fg(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let y=D=>{if(D.button===0){var C,_,B,k;c(D,"mouse",D.pageX-((B=(C=i.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&B!==void 0?B:0),D.pageY-((k=(_=i.current.lastPosition)===null||_===void 0?void 0:_.pageY)!==null&&k!==void 0?k:0)),i.current.lastPosition={pageX:D.pageX,pageY:D.pageY}}},P=D=>{D.button===0&&(d(D,"mouse"),s(window,"mousemove",y,!1),s(window,"mouseup",P,!1))};g.onMouseDown=D=>{D.button===0&&(v(),D.stopPropagation(),D.preventDefault(),i.current.lastPosition={pageX:D.pageX,pageY:D.pageY},a(window,"mousemove",y,!1),a(window,"mouseup",P,!1))};let T=D=>{let C=[...D.changedTouches].findIndex(({identifier:X})=>X===i.current.id);if(C>=0){var _,B;let{pageX:X,pageY:F}=D.changedTouches[C];var k,L;c(D,"touch",X-((k=(_=i.current.lastPosition)===null||_===void 0?void 0:_.pageX)!==null&&k!==void 0?k:0),F-((L=(B=i.current.lastPosition)===null||B===void 0?void 0:B.pageY)!==null&&L!==void 0?L:0)),i.current.lastPosition={pageX:X,pageY:F}}},R=D=>{[...D.changedTouches].findIndex(({identifier:_})=>_===i.current.id)>=0&&(d(D,"touch"),i.current.id=null,s(window,"touchmove",T),s(window,"touchend",R),s(window,"touchcancel",R))};g.onTouchStart=D=>{if(D.changedTouches.length===0||i.current.id!=null)return;let{pageX:C,pageY:_,identifier:B}=D.changedTouches[0];v(),D.stopPropagation(),D.preventDefault(),i.current.lastPosition={pageX:C,pageY:_},i.current.id=B,a(window,"touchmove",T,!1),a(window,"touchend",R,!1),a(window,"touchcancel",R,!1)}}else{let y=T=>{if(T.pointerId===i.current.id){var R,D;let B=T.pointerType||"mouse";var C,_;c(T,B,T.pageX-((C=(R=i.current.lastPosition)===null||R===void 0?void 0:R.pageX)!==null&&C!==void 0?C:0),T.pageY-((_=(D=i.current.lastPosition)===null||D===void 0?void 0:D.pageY)!==null&&_!==void 0?_:0)),i.current.lastPosition={pageX:T.pageX,pageY:T.pageY}}},P=T=>{if(T.pointerId===i.current.id){let R=T.pointerType||"mouse";d(T,R),i.current.id=null,s(window,"pointermove",y,!1),s(window,"pointerup",P,!1),s(window,"pointercancel",P,!1)}};g.onPointerDown=T=>{T.button===0&&i.current.id==null&&(v(),T.stopPropagation(),T.preventDefault(),i.current.lastPosition={pageX:T.pageX,pageY:T.pageY},i.current.id=T.pointerId,a(window,"pointermove",y,!1),a(window,"pointerup",P,!1),a(window,"pointercancel",P,!1))}}let $=(y,P,T)=>{v(),c(y,"keyboard",P,T),d(y,"keyboard")};return g.onKeyDown=y=>{switch(y.key){case"Left":case"ArrowLeft":y.preventDefault(),y.stopPropagation(),$(y,-1,0);break;case"Right":case"ArrowRight":y.preventDefault(),y.stopPropagation(),$(y,1,0);break;case"Up":case"ArrowUp":y.preventDefault(),y.stopPropagation(),$(y,0,-1);break;case"Down":case"ArrowDown":y.preventDefault(),y.stopPropagation(),$(y,0,1);break}},g},[i,a,s,c,d])}}const QF=500;function gw(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=QF,accessibilityDescription:s}=e;const c=S.useRef(void 0);let{addGlobalListener:d,removeGlobalListener:h}=El(),{pressProps:g}=Hc({isDisabled:t,onPressStart($){if($.continuePropagation(),($.pointerType==="mouse"||$.pointerType==="touch")&&(n&&n({...$,type:"longpressstart"}),c.current=setTimeout(()=>{$.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...$,type:"longpress"}),c.current=void 0},a),$.pointerType==="touch")){let y=P=>{P.preventDefault()};d($.target,"contextmenu",y,{once:!0}),d(window,"pointerup",()=>{setTimeout(()=>{h($.target,"contextmenu",y)},30)},{once:!0})}},onPressEnd($){c.current&&clearTimeout(c.current),r&&($.pointerType==="mouse"||$.pointerType==="touch")&&r({...$,type:"longpressend"})}}),v=Uc(i&&!t?s:void 0);return{longPressProps:hn(g,v)}}function uu(e){const t=An(e);if(Ld()==="virtual"){let n=t.activeElement;tw(()=>{t.activeElement===n&&e.isConnected&&ga(e)})}else ga(e)}function eM(e){const t=ms(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:a}=e.ownerDocument.defaultView;let{display:s,visibility:c}=a(e);i=s!=="none"&&c!=="hidden"&&c!=="collapse"}return i}function tM(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 vw(e,t){return e.nodeName!=="#comment"&&eM(e)&&tM(e,t)&&(!e.parentElement||vw(e.parentElement,e))}const x1=S.createContext(null),pg="react-aria-focus-scope-restore";let _n=null;function nM(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=S.useRef(null),s=S.useRef(null),c=S.useRef([]),{parentNode:d}=S.useContext(x1)||{},h=S.useMemo(()=>new gg({scopeRef:c}),[c]);Ln(()=>{let $=d||$r.root;if($r.getTreeNode($.scopeRef)&&_n&&!Vd(_n,$.scopeRef)){let y=$r.getTreeNode(_n);y&&($=y)}$.addChild(h),$r.addNode(h)},[h,d]),Ln(()=>{let $=$r.getTreeNode(c);$&&($.contain=!!n)},[n]),Ln(()=>{var $;let y=($=a.current)===null||$===void 0?void 0:$.nextSibling,P=[],T=R=>R.stopPropagation();for(;y&&y!==s.current;)P.push(y),y.addEventListener(pg,T),y=y.nextSibling;return c.current=P,()=>{for(let R of P)R.removeEventListener(pg,T)}},[t]),lM(c,r,n),oM(c,n),cM(c,r,n),uM(c,i),S.useEffect(()=>{const $=An(c.current?c.current[0]:void 0).activeElement;let y=null;if(ea($,c.current)){for(let P of $r.traverse())P.scopeRef&&ea($,P.scopeRef.current)&&(y=P);y===$r.getTreeNode(c)&&(_n=y.scopeRef)}},[c]),Ln(()=>()=>{var $,y,P;let T=(P=(y=$r.getTreeNode(c))===null||y===void 0||($=y.parent)===null||$===void 0?void 0:$.scopeRef)!==null&&P!==void 0?P:null;(c===_n||Vd(c,_n))&&(!T||$r.getTreeNode(T))&&(_n=T),$r.removeTreeNode(c)},[c]);let g=S.useMemo(()=>rM(c),[]),v=S.useMemo(()=>({focusManager:g,parentNode:h}),[h,g]);return S.createElement(x1.Provider,{value:v},S.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,S.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function rM(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,c=r||An(n[0]).activeElement,d=n[0].previousElementSibling,h=Ws(n),g=yi(h,{tabbable:i,accept:s},n);g.currentNode=ea(c,n)?c:d;let v=g.nextNode();return!v&&a&&(g.currentNode=d,v=g.nextNode()),v&&vi(v,!0),v},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:s}=t,c=r||An(n[0]).activeElement,d=n[n.length-1].nextElementSibling,h=Ws(n),g=yi(h,{tabbable:i,accept:s},n);g.currentNode=ea(c,n)?c:d;let v=g.previousNode();return!v&&a&&(g.currentNode=d,v=g.previousNode()),v&&vi(v,!0),v},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Ws(n),s=yi(a,{tabbable:r,accept:i},n);s.currentNode=n[0].previousElementSibling;let c=s.nextNode();return c&&vi(c,!0),c},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Ws(n),s=yi(a,{tabbable:r,accept:i},n);s.currentNode=n[n.length-1].nextElementSibling;let c=s.previousNode();return c&&vi(c,!0),c}}}const kv=["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]"],iM=kv.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";kv.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const aM=kv.join(':not([hidden]):not([tabindex="-1"]),');function Ws(e){return e[0].parentElement}function hc(e){let t=$r.getTreeNode(_n);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function oM(e,t){let n=S.useRef(void 0),r=S.useRef(void 0);Ln(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=An(i?i[0]:void 0);let s=h=>{if(h.key!=="Tab"||h.altKey||h.ctrlKey||h.metaKey||!hc(e)||h.isComposing)return;let g=a.activeElement,v=e.current;if(!v||!ea(g,v))return;let $=Ws(v),y=yi($,{tabbable:!0},v);if(!g)return;y.currentNode=g;let P=h.shiftKey?y.previousNode():y.nextNode();P||(y.currentNode=h.shiftKey?v[v.length-1].nextElementSibling:v[0].previousElementSibling,P=h.shiftKey?y.previousNode():y.nextNode()),h.preventDefault(),P&&vi(P,!0)},c=h=>{(!_n||Vd(_n,e))&&ea(h.target,e.current)?(_n=e,n.current=h.target):hc(e)&&!as(h.target,e)?n.current?n.current.focus():_n&&_n.current&&mg(_n.current):hc(e)&&(n.current=h.target)},d=h=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&hc(e)&&!as(a.activeElement,e))if(_n=e,a.body.contains(h.target)){var g;n.current=h.target,(g=n.current)===null||g===void 0||g.focus()}else _n.current&&mg(_n.current)})};return a.addEventListener("keydown",s,!1),a.addEventListener("focusin",c,!1),i==null||i.forEach(h=>h.addEventListener("focusin",c,!1)),i==null||i.forEach(h=>h.addEventListener("focusout",d,!1)),()=>{a.removeEventListener("keydown",s,!1),a.removeEventListener("focusin",c,!1),i==null||i.forEach(h=>h.removeEventListener("focusin",c,!1)),i==null||i.forEach(h=>h.removeEventListener("focusout",d,!1))}},[e,t]),Ln(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function yw(e){return as(e)}function ea(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function as(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of $r.traverse($r.getTreeNode(t)))if(n&&ea(e,n.current))return!0;return!1}function sM(e){return as(e,_n)}function Vd(e,t){var n;let r=(n=$r.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function vi(e,t=!1){if(e!=null&&!t)try{uu(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function bw(e,t=!0){let n=e[0].previousElementSibling,r=Ws(e),i=yi(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();return t&&!a&&(r=Ws(e),i=yi(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),a}function mg(e,t=!0){vi(bw(e,t))}function uM(e,t){const n=S.useRef(t);S.useEffect(()=>{if(n.current){_n=e;const r=An(e.current?e.current[0]:void 0);!ea(r.activeElement,_n.current)&&e.current&&mg(e.current)}n.current=!1},[e])}function lM(e,t,n){Ln(()=>{if(t||n)return;let r=e.current;const i=An(r?r[0]:void 0);let a=s=>{let c=s.target;ea(c,e.current)?_n=e:yw(c)||(_n=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,t,n])}function E1(e){let t=$r.getTreeNode(_n);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function cM(e,t,n){const r=S.useRef(typeof document<"u"?An(e.current?e.current[0]:void 0).activeElement:null);Ln(()=>{let i=e.current;const a=An(i?i[0]:void 0);if(!t||n)return;let s=()=>{(!_n||Vd(_n,e))&&ea(a.activeElement,e.current)&&(_n=e)};return a.addEventListener("focusin",s,!1),i==null||i.forEach(c=>c.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),i==null||i.forEach(c=>c.removeEventListener("focusin",s,!1))}},[e,n]),Ln(()=>{const i=An(e.current?e.current[0]:void 0);if(!t)return;let a=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!hc(e)||s.isComposing)return;let c=i.activeElement;if(!as(c,e)||!E1(e))return;let d=$r.getTreeNode(e);if(!d)return;let h=d.nodeToRestore,g=yi(i.body,{tabbable:!0});g.currentNode=c;let v=s.shiftKey?g.previousNode():g.nextNode();if((!h||!i.body.contains(h)||h===i.body)&&(h=void 0,d.nodeToRestore=void 0),(!v||!as(v,e))&&h){g.currentNode=h;do v=s.shiftKey?g.previousNode():g.nextNode();while(as(v,e));s.preventDefault(),s.stopPropagation(),v?vi(v,!0):yw(h)?vi(h,!0):c.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),Ln(()=>{const i=An(e.current?e.current[0]:void 0);if(!t)return;let a=$r.getTreeNode(e);if(a){var s;return a.nodeToRestore=(s=r.current)!==null&&s!==void 0?s:void 0,()=>{let c=$r.getTreeNode(e);if(!c)return;let d=c.nodeToRestore;if(t&&d&&(i.activeElement&&as(i.activeElement,e)||i.activeElement===i.body&&E1(e))){let h=$r.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let g=h.getTreeNode(e);for(;g;){if(g.nodeToRestore&&g.nodeToRestore.isConnected){C1(g.nodeToRestore);return}g=g.parent}for(g=h.getTreeNode(e);g;){if(g.scopeRef&&g.scopeRef.current&&$r.getTreeNode(g.scopeRef)){let v=bw(g.scopeRef.current,!0);C1(v);return}g=g.parent}}})}}}},[e,t])}function C1(e){e.dispatchEvent(new CustomEvent(pg,{bubbles:!0,cancelable:!0}))&&vi(e)}function yi(e,t,n){let r=t!=null&&t.tabbable?aM:iM,i=An(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var s;return!(t==null||(s=t.from)===null||s===void 0)&&s.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&vw(a)&&(!n||ea(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Ch(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:c=t.accept}=n,d=i||An(r).activeElement,h=yi(r,{tabbable:a,accept:c});r.contains(d)&&(h.currentNode=d);let g=h.nextNode();return!g&&s&&(h.currentNode=r,g=h.nextNode()),g&&vi(g,!0),g},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:i,tabbable:a=t.tabbable,wrap:s=t.wrap,accept:c=t.accept}=n,d=i||An(r).activeElement,h=yi(r,{tabbable:a,accept:c});if(r.contains(d))h.currentNode=d;else{let v=am(h);return v&&vi(v,!0),v??null}let g=h.previousNode();if(!g&&s){h.currentNode=r;let v=am(h);if(!v)return null;g=v}return g&&vi(g,!0),g??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,c=yi(r,{tabbable:i,accept:a}).nextNode();return c&&vi(c,!0),c},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:a=t.accept}=n,s=yi(r,{tabbable:i,accept:a}),c=am(s);return c&&vi(c,!0),c??null}}}function am(e){let t,n;do n=e.lastChild(),n&&(t=n);while(n);return t}class Rv{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 a=new gg({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.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 a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&ea(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),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 Rv;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 gg({scopeRef:null}),this.fastMap.set(null,this.root)}}class gg{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 $r=new Rv,fM=S.createContext(null);function dM(e){let t=S.useContext(fM)||{};nw(t,e);let{ref:n,...r}=t;return r}function Fv(e,t){let{focusProps:n}=HF(e),{keyboardProps:r}=pw(e),i=hn(n,r),a=dM(t),s=e.isDisabled?{}:a,c=S.useRef(e.autoFocus);return S.useEffect(()=>{c.current&&t.current&&uu(t.current),c.current=!1},[t]),{focusableProps:hn({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const hM=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),pM=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function mM(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 hM.has(n.script)}let t=e.split("-")[0];return pM.has(t)}const gM=Symbol.for("react-aria.i18n.locale");function $w(){let e=typeof window<"u"&&window[gM]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:mM(e)?"rtl":"ltr"}}let vg=$w(),pc=new Set;function S1(){vg=$w();for(let e of pc)e(vg)}function vM(){let e=Sv(),[t,n]=S.useState(vg);return S.useEffect(()=>(pc.size===0&&window.addEventListener("languagechange",S1),pc.add(n),()=>{pc.delete(n),pc.size===0&&window.removeEventListener("languagechange",S1)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const yM=S.createContext(null);function ni(){let e=vM();return S.useContext(yM)||e}const bM=Symbol.for("react-aria.i18n.locale"),$M=Symbol.for("react-aria.i18n.strings");let Iu;class $s{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=wM(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[bM];if(Iu===void 0){let i=window[$M];if(!i)return null;Iu={};for(let a in i)Iu[a]=new $s({[n]:i[a]},n)}let r=Iu==null?void 0:Iu[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 wM(e,t,n="en-US"){if(t[e])return t[e];let r=xM(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function xM(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const D1=new Map,A1=new Map;class ww{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 a=this.locale+":"+r,s=D1.get(a);s||(s=new Intl.PluralRules(this.locale,{type:r}),D1.set(a,s));let c=s.select(t);return i=n[c]||n.other,typeof i=="function"?i():i}number(t){let n=A1.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),A1.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 P1=new WeakMap;function EM(e){let t=P1.get(e);return t||(t=new $s(e),P1.set(e,t)),t}function xw(e,t){return t&&$s.getGlobalDictionaryForPackage(t)||EM(e)}function Xa(e,t){let{locale:n}=ni(),r=xw(e,t);return S.useMemo(()=>new ww(n,r),[n,r])}function Yu(e,t){return e-t*Math.floor(e/t)}const Ew=1721426;function Hs(e,t,n,r){t=Gc(e,t);let i=t-1,a=-2;return n<=2?a=0:os(t)&&(a=-1),Ew-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function os(e){return e%4===0&&(e%100!==0||e%400===0)}function Gc(e,t){return e==="BC"?1-t:t}function Sh(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const CM={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 ci{fromJulianDay(t){let n=t,r=n-Ew,i=Math.floor(r/146097),a=Yu(r,146097),s=Math.floor(a/36524),c=Yu(a,36524),d=Math.floor(c/1461),h=Yu(c,1461),g=Math.floor(h/365),v=i*400+s*100+d*4+g+(s!==4&&g!==4?1:0),[$,y]=Sh(v),P=n-Hs($,y,1,1),T=2;n<Hs($,y,3,1)?T=0:os(y)&&(T=1);let R=Math.floor(((P+T)*12+373)/367),D=n-Hs($,y,R,1)+1;return new mr($,y,R,D)}toJulianDay(t){return Hs(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return CM[os(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return os(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 SM={"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 Pr(e,t){return t=Gn(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function yg(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 Cw(e,t){return Pr(e,Dh(t))}function Mv(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-kM(t))%7;return r<0&&(r+=7),r}function Sw(e){return Ao(Date.now(),e)}function Dh(e){return li(Sw(e))}function Dw(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Aw(e,t){return T1(e)-T1(t)}function T1(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let om=null;function qc(){return om==null&&(om=new Intl.DateTimeFormat().resolvedOptions().timeZone),om}function Yc(e){return e.subtract({days:e.day-1})}function bg(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function DM(e){return Yc(e.subtract({months:e.month-1}))}function AM(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function PM(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Ac(e,t){let n=Mv(e,t);return e.subtract({days:n})}function TM(e,t){return Ac(e,t).add({days:6})}const _1=new Map;function _M(e){if(Intl.Locale){let n=_1.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&_1.set(e,n)),n}let t=e.split("-")[1];return t==="u"?void 0:t}function kM(e){let t=_M(e);return t&&SM[t]||0}function RM(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((Mv(Yc(e),t)+n)/7)}function Ov(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function Iv(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function dl(e){e=Gn(e,new ci);let t=Gc(e.era,e.year);return Pw(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Pw(e,t,n,r,i,a,s){let c=new Date;return c.setUTCHours(r,i,a,s),c.setUTCFullYear(e,t-1,n),c.getTime()}function $g(e,t){if(t==="UTC")return 0;if(e>0&&t===qc())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:s,second:c}=Tw(e,t);return Pw(n,r,i,a,s,c,0)-Math.floor(e/1e3)*1e3}const k1=new Map;function Tw(e,t){let n=k1.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"}),k1.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let a of r)a.type!=="literal"&&(i[a.type]=a.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 R1=864e5;function FM(e,t,n,r){return(n===r?[n]:[n,r]).filter(a=>MM(e,t,a))}function MM(e,t,n){let r=Tw(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 Do(e,t,n="compatible"){let r=wa(e);if(t==="UTC")return dl(r);if(t===qc()&&n==="compatible"){r=Gn(r,new ci);let d=new Date,h=Gc(r.era,r.year);return d.setFullYear(h,r.month-1,r.day),d.setHours(r.hour,r.minute,r.second,r.millisecond),d.getTime()}let i=dl(r),a=$g(i-R1,t),s=$g(i+R1,t),c=FM(r,t,i-a,i-s);if(c.length===1)return c[0];if(c.length>1)switch(n){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(i-a,i-s);case"compatible":case"later":return Math.max(i-a,i-s);case"reject":throw new RangeError("No such absolute time found")}}function _w(e,t,n="compatible"){return new Date(Do(e,t,n))}function Ao(e,t){let n=$g(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,s=r.getUTCDate(),c=r.getUTCHours(),d=r.getUTCMinutes(),h=r.getUTCSeconds(),g=r.getUTCMilliseconds();return new Tc(i<1?"BC":"AD",i<1?-i+1:i,a,s,t,n,c,d,h,g)}function li(e){return new mr(e.calendar,e.era,e.year,e.month,e.day)}function wa(e,t){let n=0,r=0,i=0,a=0;if("timeZone"in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Nd(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function F1(e){return new Zc(e.hour,e.minute,e.second,e.millisecond)}function Gn(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,lu(r),r}function kw(e,t,n){if(e instanceof Tc)return e.timeZone===t?e:IM(e,t);let r=Do(e,t,n);return Ao(r,t)}function OM(e){let t=dl(e)-e.offset;return new Date(t)}function IM(e,t){let n=dl(e)-e.offset;return Gn(Ao(n,t),e.calendar)}const ec=36e5;function Ah(e,t){let n=e.copy(),r="hour"in n?Ow(n,t):0;wg(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,xg(n),Rw(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,LM(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 a,s;let d=(a=(s=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(s,n);n.year=i,n.month=d?1:n.calendar.getMonthsInYear(n),n.day=d?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let c=n.calendar.getMonthsInYear(n);return n.month>c&&(n.month=c,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function wg(e,t){var n,r;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function xg(e){for(;e.month<1;)wg(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,wg(e,1)}function LM(e){for(;e.day<1;)e.month--,xg(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,xg(e)}function Rw(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 lu(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Rw(e)}function Lv(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Fw(e,t){return Ah(e,Lv(t))}function Bv(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),lu(n),n}function Pc(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),Mw(n),n}function BM(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ed(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ed(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ed(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ed(e.hour,24),t}function Mw(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 ed(e,t){let n=e%t;return n<0&&(n+=t),n}function Ow(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,BM(e)}function Iw(e,t){let n=e.copy();return Ow(n,t),n}function VM(e,t){return Iw(e,Lv(t))}function Vv(e,t,n,r){let i=e.copy();switch(t){case"era":{let c=e.calendar.getEras(),d=c.indexOf(e.era);if(d<0)throw new Error("Invalid era: "+e.era);d=Po(d,n,0,c.length-1,r==null?void 0:r.round),i.era=c[d],lu(i);break}case"year":var a,s;!((a=(s=i.calendar).isInverseEra)===null||a===void 0)&&a.call(s,i)&&(n=-n),i.year=Po(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=Po(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":i.day=Po(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),lu(i),i}function Nv(e,t,n,r){let i=e.copy();switch(t){case"hour":{let a=e.hour,s=0,c=23;if((r==null?void 0:r.hourCycle)===12){let d=a>=12;s=d?12:0,c=d?23:11}i.hour=Po(a,n,s,c,r==null?void 0:r.round);break}case"minute":i.minute=Po(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":i.second=Po(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":i.millisecond=Po(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return i}function Po(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let a=Math.abs(t);t>0?e=Math.ceil(e/a)*a:e=Math.floor(e/a)*a,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Lw(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=Ah(wa(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=Do(i,e.timeZone)}else n=dl(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let r=Ao(n,e.timeZone);return Gn(r,e.calendar)}function NM(e,t){return Lw(e,Lv(t))}function jM(e,t,n,r){switch(t){case"hour":{let i=0,a=23;if((r==null?void 0:r.hourCycle)===12){let P=e.hour>=12;i=P?12:0,a=P?23:11}let s=wa(e),c=Gn(Pc(s,{hour:i}),new ci),d=[Do(c,e.timeZone,"earlier"),Do(c,e.timeZone,"later")].filter(P=>Ao(P,e.timeZone).day===c.day)[0],h=Gn(Pc(s,{hour:a}),new ci),g=[Do(h,e.timeZone,"earlier"),Do(h,e.timeZone,"later")].filter(P=>Ao(P,e.timeZone).day===h.day).pop(),v=dl(e)-e.offset,$=Math.floor(v/ec),y=v%ec;return v=Po($,n,Math.floor(d/ec),Math.floor(g/ec),r==null?void 0:r.round)*ec+y,Gn(Ao(v,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Nv(e,t,n,r);case"era":case"year":case"month":case"day":{let i=Vv(wa(e),t,n,r),a=Do(i,e.timeZone);return Gn(Ao(a,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function KM(e,t,n){let r=wa(e),i=Pc(Bv(r,t),t);if(i.compare(r)===0)return e;let a=Do(i,e.timeZone,n);return Gn(Ao(a,e.timeZone),e.calendar)}const zM=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/;function UM(e){let t=e.match(zM);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new mr(sm(t[1],0,9999),sm(t[2],1,12),1);return n.day=sm(t[3],0,n.calendar.getDaysInMonth(n)),n}function sm(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 Bw(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 Vw(e){let t=Gn(e,new ci),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 Nw(e){return`${Vw(e)}T${Bw(e)}`}function WM(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 HM(e){return`${Nw(e)}${WM(e.offset)}[${e.timeZone}]`}function jv(e){let t=typeof e[0]=="object"?e.shift():new ci,n;if(typeof e[0]=="string")n=e.shift();else{let s=t.getEras();n=s[s.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var GM=new WeakMap;class mr{copy(){return this.era?new mr(this.calendar,this.era,this.year,this.month,this.day):new mr(this.calendar,this.year,this.month,this.day)}add(t){return Ah(this,t)}subtract(t){return Fw(this,t)}set(t){return Bv(this,t)}cycle(t,n,r){return Vv(this,t,n,r)}toDate(t){return _w(this,t)}toString(){return Vw(this)}compare(t){return Dw(this,t)}constructor(...t){Wc(this,GM,{writable:!0,value:void 0});let[n,r,i,a,s]=jv(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,lu(this)}}var qM=new WeakMap;class Zc{copy(){return new Zc(this.hour,this.minute,this.second,this.millisecond)}add(t){return Iw(this,t)}subtract(t){return VM(this,t)}set(t){return Pc(this,t)}cycle(t,n,r){return Nv(this,t,n,r)}toString(){return Bw(this)}compare(t){return Aw(this,t)}constructor(t=0,n=0,r=0,i=0){Wc(this,qM,{writable:!0,value:void 0}),this.hour=t,this.minute=n,this.second=r,this.millisecond=i,Mw(this)}}var YM=new WeakMap;class Nd{copy(){return this.era?new Nd(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Nd(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ah(this,t)}subtract(t){return Fw(this,t)}set(t){return Bv(Pc(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return Vv(this,t,n,r);default:return Nv(this,t,n,r)}}toDate(t,n){return _w(this,t,n)}toString(){return Nw(this)}compare(t){let n=Dw(this,t);return n===0?Aw(this,wa(t)):n}constructor(...t){Wc(this,YM,{writable:!0,value:void 0});let[n,r,i,a,s]=jv(t);this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,lu(this)}}var ZM=new WeakMap;class Tc{copy(){return this.era?new Tc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Tc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Lw(this,t)}subtract(t){return NM(this,t)}set(t,n){return KM(this,t,n)}cycle(t,n,r){return jM(this,t,n,r)}toDate(){return OM(this)}toString(){return HM(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-kw(t,this.timeZone).toDate().getTime()}constructor(...t){Wc(this,ZM,{writable:!0,value:void 0});let[n,r,i,a,s]=jv(t),c=t.shift(),d=t.shift();this.calendar=n,this.era=r,this.year=i,this.month=a,this.day=s,this.timeZone=c,this.offset=d,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,lu(this)}}const Zu=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],JM=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],$d=[1867,1911,1925,1988,2018],ns=["meiji","taisho","showa","heisei","reiwa"];function M1(e){const t=Zu.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?Zu.length-1:t===0?0:t-1}function um(e){let t=$d[ns.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new mr(e.year+t,e.month,e.day)}class XM extends ci{fromJulianDay(t){let n=super.fromJulianDay(t),r=M1(n);return new mr(this,ns[r],n.year-$d[r],n.month,n.day)}toJulianDay(t){return super.toJulianDay(um(t))}balanceDate(t){let n=um(t),r=M1(n);ns[r]!==t.era&&(t.era=ns[r],t.year=n.year-$d[r]),this.constrainDate(t)}constrainDate(t){let n=ns.indexOf(t.era),r=JM[n];if(r!=null){let[i,a,s]=r,c=i-$d[n];t.year=Math.max(1,Math.min(c,t.year)),t.year===c&&(t.month=Math.min(a,t.month),t.month===a&&(t.day=Math.min(s,t.day)))}if(t.year===1&&n>=0){let[,i,a]=Zu[n];t.month=Math.max(i,t.month),t.month===i&&(t.day=Math.max(a,t.day))}}getEras(){return ns}getYearsInEra(t){let n=ns.indexOf(t.era),r=Zu[n],i=Zu[n+1];if(i==null)return 9999-r[0]+1;let a=i[0]-r[0];return(t.month<i[1]||t.month===i[1]&&t.day<i[2])&&a++,a}getDaysInMonth(t){return super.getDaysInMonth(um(t))}getMinimumMonthInYear(t){let n=O1(t);return n?n[1]:1}getMinimumDayInMonth(t){let n=O1(t);return n&&t.month===n[1]?n[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function O1(e){if(e.year===1){let t=ns.indexOf(e.era);return Zu[t]}}const jw=-543;class QM extends ci{fromJulianDay(t){let n=super.fromJulianDay(t),r=Gc(n.era,n.year);return new mr(this,r-jw,n.month,n.day)}toJulianDay(t){return super.toJulianDay(I1(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(I1(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function I1(e){let[t,n]=Sh(e.year+jw);return new mr(t,n,e.month,e.day)}const jd=1911;function Kw(e){return e.era==="minguo"?e.year+jd:1-e.year+jd}function L1(e){let t=e-jd;return t>0?["minguo",t]:["before_minguo",1-t]}class e9 extends ci{fromJulianDay(t){let n=super.fromJulianDay(t),r=Gc(n.era,n.year),[i,a]=L1(r);return new mr(this,i,a,n.month,n.day)}toJulianDay(t){return super.toJulianDay(B1(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,r]=L1(Kw(t));t.era=n,t.year=r}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(B1(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-jd}constructor(...t){super(...t),this.identifier="roc"}}function B1(e){let[t,n]=Sh(Kw(e));return new mr(t,n,e.month,e.day)}const V1=1948320,N1=[0,31,62,93,124,155,186,216,246,276,306,336];class t9{fromJulianDay(t){let n=t-V1,r=1+Math.floor((33*n+3)/12053),i=365*(r-1)+Math.floor((8*r+21)/33),a=n-i,s=a<216?Math.floor(a/31):Math.floor((a-6)/30),c=a-N1[s]+1;return new mr(this,r,s+1,c)}toJulianDay(t){let n=V1-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=N1[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Yu(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const lm=78,j1=80;class n9 extends ci{fromJulianDay(t){let n=super.fromJulianDay(t),r=n.year-lm,i=t-Hs(n.era,n.year,1,1),a;i<j1?(r--,a=os(n.year-1)?31:30,i+=a+155+90+10):(a=os(n.year)?31:30,i-=j1);let s,c;if(i<a)s=1,c=i+1;else{let d=i-a;d<155?(s=Math.floor(d/31)+2,c=d%31+1):(d-=155,s=Math.floor(d/30)+7,c=d%30+1)}return new mr(this,r,s,c)}toJulianDay(t){let n=t.year+lm,[r,i]=Sh(n),a,s;return os(i)?(a=31,s=Hs(r,i,3,21)):(a=30,s=Hs(r,i,3,22)),t.month===1?s+t.day-1:(s+=a+Math.min(t.month-2,5)*31,t.month>=8&&(s+=(t.month-7)*30),s+=t.day-1,s)}getDaysInMonth(t){return t.month===1&&os(t.year+lm)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Kd=1948440,K1=1948439,Gi=1300,Lu=1600,r9=460322;function zd(e,t,n,r){return r+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function zw(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),i=Math.min(12,Math.ceil((n-(29+zd(t,r,1,1)))/29.5)+1),a=n-zd(t,r,i,1)+1;return new mr(e,r,i,a)}function z1(e){return(14+11*e)%30<11}class Kv{fromJulianDay(t){return zw(this,Kd,t)}toJulianDay(t){return zd(Kd,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&z1(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return z1(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class i9 extends Kv{fromJulianDay(t){return zw(this,K1,t)}toJulianDay(t){return zd(K1,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const a9="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Eg,Ju;function wd(e){return r9+Ju[e-Gi]}function mc(e,t){let n=e-Gi,r=1<<11-(t-1);return Eg[n]&r?30:29}function U1(e,t){let n=wd(e);for(let r=1;r<t;r++)n+=mc(e,r);return n}function W1(e){return Ju[e+1-Gi]-Ju[e-Gi]}class o9 extends Kv{fromJulianDay(t){let n=t-Kd,r=wd(Gi),i=wd(Lu);if(n<r||n>i)return super.fromJulianDay(t);{let a=Gi-1,s=1,c=1;for(;c>0;){a++,c=n-wd(a)+1;let d=W1(a);if(c===d){s=12;break}else if(c<d){let h=mc(a,s);for(s=1;c>h;)c-=h,s++,h=mc(a,s);break}}return new mr(this,a,s,n-U1(a,s)+1)}}toJulianDay(t){return t.year<Gi||t.year>Lu?super.toJulianDay(t):Kd+U1(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Gi||t.year>Lu?super.getDaysInMonth(t):mc(t.year,t.month)}getDaysInYear(t){return t.year<Gi||t.year>Lu?super.getDaysInYear(t):W1(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Eg||(Eg=new Uint16Array(Uint8Array.from(atob(a9),t=>t.charCodeAt(0)).buffer)),!Ju){Ju=new Uint32Array(Lu-Gi+1);let t=0;for(let n=Gi;n<=Lu;n++){Ju[n-Gi]=t;for(let r=1;r<=12;r++)t+=mc(n,r)}}}}const H1=347997,Uw=1080,Ww=24*Uw,s9=29,u9=12*Uw+793,l9=s9*Ww+u9;function Ks(e){return Yu(e*7+1,19)<7}function xd(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=t*29+Math.floor(n/25920);return Yu(3*(r+1),7)<3&&(r+=1),r}function c9(e){let t=xd(e-1),n=xd(e);return xd(e+1)-n===356?2:n-t===382?1:0}function wc(e){return xd(e)+c9(e)}function Hw(e){return wc(e+1)-wc(e)}function f9(e){let t=Hw(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function td(e,t){if(t>=6&&!Ks(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=f9(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Ks(e)?30:0:30}class d9{fromJulianDay(t){let n=t-H1,r=n*Ww/l9,i=Math.floor((19*r+234)/235)+1,a=wc(i),s=Math.floor(n-a);for(;s<1;)i--,a=wc(i),s=Math.floor(n-a);let c=1,d=0;for(;d<s;)d+=td(i,c),c++;c--,d-=td(i,c);let h=s-d;return new mr(this,i,c,h)}toJulianDay(t){let n=wc(t.year);for(let r=1;r<t.month;r++)n+=td(t.year,r);return n+t.day+H1}getDaysInMonth(t){return td(t.year,t.month)}getMonthsInYear(t){return Ks(t.year)?13:12}getDaysInYear(t){return Hw(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,n){n.year!==t.year&&(Ks(n.year)&&!Ks(t.year)&&n.month>6?t.month--:!Ks(n.year)&&Ks(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Cg=1723856,G1=1824665,Sg=5500;function Ud(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function zv(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-Ud(e,n,1,1))/30),i=t+1-Ud(e,n,r,1);return[n,r,i]}function Gw(e){return Math.floor(e%4/3)}function qw(e,t){return t%13!==0?30:Gw(e)+5}class Uv{fromJulianDay(t){let[n,r,i]=zv(Cg,t),a="AM";return n<=0&&(a="AA",n+=Sg),new mr(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=Sg),Ud(Cg,n,t.month,t.day)}getDaysInMonth(t){return qw(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Gw(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class h9 extends Uv{fromJulianDay(t){let[n,r,i]=zv(Cg,t);return n+=Sg,new mr(this,"AA",n,r,i)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class p9 extends Uv{fromJulianDay(t){let[n,r,i]=zv(G1,t),a="CE";return n<=0&&(a="BCE",n=1-n),new mr(this,a,n,r,i)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Ud(G1,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),qw(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 m9(e){switch(e){case"buddhist":return new QM;case"ethiopic":return new Uv;case"ethioaa":return new h9;case"coptic":return new p9;case"hebrew":return new d9;case"indian":return new n9;case"islamic-civil":return new Kv;case"islamic-tbla":return new i9;case"islamic-umalqura":return new o9;case"japanese":return new XM;case"persian":return new t9;case"roc":return new e9;case"gregory":default:return new ci}}let cm=new Map;class Zi{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(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return y9()&&(this.resolvedHourCycle||(this.resolvedHourCycle=b9(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=Yw(t,n),this.options=n}}const g9={true:{ja:"h11"},false:{}};function Yw(e,t={}){if(typeof t.hour12=="boolean"&&v9()){t={...t};let i=g9[String(t.hour12)][e.split("-")[0]],a=t.hour12?"h12":"h23";t.hourCycle=i??a,delete t.hour12}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(cm.has(n))return cm.get(n);let r=new Intl.DateTimeFormat(e,t);return cm.set(n,r),r}let fm=null;function v9(){return fm==null&&(fm=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),fm}let dm=null;function y9(){return dm==null&&(dm=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),dm}function b9(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=Yw(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(a=>a.type==="hour").value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(a=>a.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 Ua(e){e=iw(e??{},$9);let{locale:t}=ni();return S.useMemo(()=>new Zi(t,e),[t,e])}function $9(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 hm=new Map,Dg=!1;try{Dg=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Wd=!1;try{Wd=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Zw={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Jw{format(t){let n="";if(!Dg&&this.options.signDisplay!=null?n=x9(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Wd){var r;let{unit:i,unitDisplay:a="short",locale:s}=this.resolvedOptions();if(!i)return n;let c=(r=Zw[i])===null||r===void 0?void 0:r[a];n+=c[s]||c.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(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Dg&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Wd&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=w9(t,n),this.options=n}}function w9(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Wd){var r;let{unit:s,unitDisplay:c="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Zw[s])===null||r===void 0)&&r[c]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${c}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,c)=>s[0]<c[0]?-1:1).join():"");if(hm.has(i))return hm.get(i);let a=new Intl.NumberFormat(e,t);return hm.set(i,a),a}function x9(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),a=e.format(n),s=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(s,"+").replace("!!!",a)}else return e.format(n)}}const E9=new RegExp("^.*\\(.*\\).*$"),C9=["latn","arab","hanidec","deva","beng"];class Xw{parse(t){return pm(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return pm(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return pm(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const q1=new Map;function pm(e,t,n){let r=Y1(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of C9)if(i!==r.options.numberingSystem){let a=Y1(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(a.isValidPartialNumber(n))return a}}return r}function Y1(e,t){let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():""),r=q1.get(n);return r||(r=new S9(e,t),q1.set(n,r)),r}class S9{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=nd(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 s=n.indexOf("-");n=n.replace("-","");let c=n.indexOf(".");c===-1&&(c=n.length),n=n.replace(".",""),c-2===0?n=`0.${n}`:c-2===-1?n=`0.0${n}`:c-2===-2?n="0.00":n=`${n.slice(0,c-2)}.${n.slice(c-2)}`,s>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,a;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((a=this.options.maximumFractionDigits)!==null&&a!==void 0?a:0)+2,20)};return new Xw(this.locale,s).parse(new Jw(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&E9.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=nd(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&(t=nd(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=nd(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=A9(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 Z1=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),D9=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function A9(e,t,n,r){var i,a,s,c;let d=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),h=d.formatToParts(-10000.111),g=d.formatToParts(10000.111),v=D9.map(te=>d.formatToParts(te));var $;let y=($=(i=h.find(te=>te.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&$!==void 0?$:"-",P=(a=g.find(te=>te.type==="plusSign"))===null||a===void 0?void 0:a.value;!P&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(P="+");let R=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(te=>te.type==="decimal"))===null||s===void 0?void 0:s.value,D=(c=h.find(te=>te.type==="group"))===null||c===void 0?void 0:c.value,C=h.filter(te=>!Z1.has(te.type)).map(te=>J1(te.value)),_=v.flatMap(te=>te.filter(ie=>!Z1.has(ie.type)).map(ie=>J1(ie.value))),B=[...new Set([...C,..._])].sort((te,ie)=>ie.length-te.length),k=B.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${B.join("|")}|[\\p{White_Space}]`,"gu"),L=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),X=new Map(L.map((te,ie)=>[te,ie])),F=new RegExp(`[${L.join("")}]`,"g");return{minusSign:y,plusSign:P,decimal:R,group:D,literals:k,numeral:F,index:te=>String(X.get(te))}}function nd(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function J1(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P9(e={}){let{locale:t}=ni();return S.useMemo(()=>new Jw(t,e),[t,e])}let mm=new Map;function Qw(e){let{locale:t}=ni(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(mm.has(n))return mm.get(n);let r=new Intl.Collator(t,e);return mm.set(n,r),r}function ex(e){let t=Qw({usage:"search",...e}),n=S.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(0,s.length),s)===0),[t]),r=S.useCallback((a,s)=>s.length===0?!0:(a=a.normalize("NFC"),s=s.normalize("NFC"),t.compare(a.slice(-s.length),s)===0),[t]),i=S.useCallback((a,s)=>{if(s.length===0)return!0;a=a.normalize("NFC"),s=s.normalize("NFC");let c=0,d=s.length;for(;c+d<=a.length;c++){let h=a.slice(c,c+d);if(t.compare(s,h)===0)return!0}return!1},[t]);return S.useMemo(()=>({startsWith:n,endsWith:r,contains:i}),[n,r,i])}function T9(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:s,onPressUp:c,onPressChange:d,preventFocusOnPress:h,allowFocusWhenDisabled:g,onClick:v,href:$,target:y,rel:P,type:T="button"}=e,R;n==="button"?R={type:T,disabled:r}:R={role:"button",tabIndex:r?void 0:0,href:n==="a"&&!r?$:void 0,target:n==="a"?y:void 0,type:n==="input"?T:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?P:void 0};let{pressProps:D,isPressed:C}=Hc({onPressStart:a,onPressEnd:s,onPressChange:d,onPress:i,onPressUp:c,isDisabled:r,preventFocusOnPress:h,ref:t}),{focusableProps:_}=Fv(e,t);g&&(_.tabIndex=r?-1:_.tabIndex);let B=hn(_,D,Fo(e,{labelable:!0}));return{isPressed:C,buttonProps:hn(R,B,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:k=>{v&&(v(k),console.warn("onClick is deprecated, please use onPress"))}})}}var tx={};tx={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var nx={};nx={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var rx={};rx={dateRange:e=>`${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 ix={};ix={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 ax={};ax={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 ox={};ox={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var sx={};sx={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 ux={};ux={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 lx={};lx={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 cx={};cx={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 fx={};fx={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 dx={};dx={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var hx={};hx={dateRange:e=>`${e.startDate} 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 px={};px={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 mx={};mx={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 gx={};gx={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var vx={};vx={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var yx={};yx={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 bx={};bx={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 $x={};$x={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 wx={};wx={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 xx={};xx={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 Ex={};Ex={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 Cx={};Cx={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 Sx={};Sx={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 Dx={};Dx={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 Ax={};Ax={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 Px={};Px={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 Tx={};Tx={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 _x={};_x={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 kx={};kx={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 Rx={};Rx={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 Fx={};Fx={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var Mx={};Mx={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var Jc={};Jc={"ar-AE":tx,"bg-BG":nx,"cs-CZ":rx,"da-DK":ix,"de-DE":ax,"el-GR":ox,"en-US":sx,"es-ES":ux,"et-EE":lx,"fi-FI":cx,"fr-FR":fx,"he-IL":dx,"hr-HR":hx,"hu-HU":px,"it-IT":mx,"ja-JP":gx,"ko-KR":vx,"lt-LT":yx,"lv-LV":bx,"nb-NO":$x,"nl-NL":wx,"pl-PL":xx,"pt-BR":Ex,"pt-PT":Cx,"ro-RO":Sx,"ru-RU":Dx,"sk-SK":Ax,"sl-SI":Px,"sr-SP":Tx,"sv-SE":_x,"tr-TR":kx,"uk-UA":Rx,"zh-CN":Fx,"zh-TW":Mx};function Ox(e){return e&&e.__esModule?e.default:e}const Wv=new WeakMap;function _c(e){return(e==null?void 0:e.calendar.identifier)==="gregory"&&e.era==="BC"?"short":void 0}function _9(e){let t=Xa(Ox(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 a=Ua({weekday:"long",month:"long",year:"numeric",day:"numeric",era:_c(n)||_c(r),timeZone:e.timeZone}),s="anchorDate"in e?e.anchorDate:null;return S.useMemo(()=>{if(!s&&n&&r)if(Pr(n,r)){let c=a.format(n.toDate(e.timeZone));return t.format("selectedDateDescription",{date:c})}else{let c=Pg(a,t,n,r,e.timeZone);return t.format("selectedRangeDescription",{dateRange:c})}return""},[n,r,s,e.timeZone,t,a])}function Ag(e,t,n,r){let i=Xa(Ox(Jc),"@react-aria/calendar"),a=_c(e)||_c(t),s=Ua({month:"long",year:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n}),c=Ua({month:"long",year:"numeric",day:"numeric",era:a,calendar:e.calendar.identifier,timeZone:n});return S.useMemo(()=>{if(Pr(e,Yc(e))){if(Pr(t,bg(e)))return s.format(e.toDate(n));if(Pr(t,bg(t)))return r?Pg(s,i,e,t,n):s.formatRange(e.toDate(n),t.toDate(n))}return r?Pg(c,i,e,t,n):c.formatRange(e.toDate(n),t.toDate(n))},[e,t,s,c,i,n,r])}function Pg(e,t,n,r,i){let a=e.formatRangeToParts(n.toDate(i),r.toDate(i)),s=-1;for(let h=0;h<a.length;h++){let g=a[h];if(g.source==="shared"&&g.type==="literal")s=h;else if(g.source==="endRange")break}let c="",d="";for(let h=0;h<a.length;h++)h<s?c+=a[h].value:h>s&&(d+=a[h].value);return t.format("dateRange",{startDate:c,endDate:d})}const Ix=7e3;let Hi=null;function Xu(e,t="assertive",n=Ix){Hi?Hi.announce(e,t,n):(Hi=new R9,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Hi.announce(e,t,n):setTimeout(()=>{Hi!=null&&Hi.isAttached()&&(Hi==null||Hi.announce(e,t,n))},100))}function k9(e){Hi&&Hi.clear(e)}class R9{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=Ix){var i,a;if(!this.node)return;let s=document.createElement("div");typeof t=="object"?(s.setAttribute("role","img"),s.setAttribute("aria-labelledby",t["aria-labelledby"])):s.textContent=t,n==="assertive"?(i=this.assertiveLog)===null||i===void 0||i.appendChild(s):(a=this.politeLog)===null||a===void 0||a.appendChild(s),t!==""&&setTimeout(()=>{s.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 F9(e){return e&&e.__esModule?e.default:e}function Lx(e,t){let n=Xa(F9(Jc),"@react-aria/calendar"),r=Fo(e),i=Ag(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),a=Ag(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);f1(()=>{t.isFocused||Xu(a)},[a]);let s=_9(t);f1(()=>{s&&Xu(s,"polite",4e3)},[s]);let c=ll([!!e.errorMessage,e.isInvalid,e.validationState]);Wv.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:c,selectedDateDescription:s});let[d,h]=S.useState(!1),g=e.isDisabled||t.isNextVisibleRangeInvalid();g&&d&&(h(!1),t.setFocused(!0));let[v,$]=S.useState(!1),y=e.isDisabled||t.isPreviousVisibleRangeInvalid();y&&v&&($(!1),t.setFocused(!0));let P=cl({id:e.id,"aria-label":[e["aria-label"],a].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]});return{calendarProps:hn(r,P,{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:g,onFocusChange:h},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:y,onFocusChange:$},errorMessageProps:{id:c},title:i}}function M9(e,t){return Lx(e,t)}function O9(e,t,n){let r=Lx(e,t),i=S.useRef(!1),a=S.useRef(typeof window<"u"?window:null);return cs(a,"pointerdown",c=>{i.current=c.width===0&&c.height===0}),cs(a,"pointerup",c=>{if(i.current){i.current=!1;return}if(t.setDragging(!1),!t.anchorDate)return;let d=c.target;n.current&&n.current.contains(document.activeElement)&&(!n.current.contains(d)||!d.closest('button, [role="button"]'))&&t.selectFocusedDate()}),r.calendarProps.onBlur=c=>{n.current&&(!c.relatedTarget||!n.current.contains(c.relatedTarget))&&t.anchorDate&&t.selectFocusedDate()},cs(n,"touchmove",c=>{t.isDragging&&c.preventDefault()},{passive:!1,capture:!0}),r}function I9(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:i}=ni(),a=y=>{switch(y.key){case"Enter":case" ":y.preventDefault(),t.selectFocusedDate();break;case"PageUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousSection(y.shiftKey);break;case"PageDown":y.preventDefault(),y.stopPropagation(),t.focusNextSection(y.shiftKey);break;case"End":y.preventDefault(),y.stopPropagation(),t.focusSectionEnd();break;case"Home":y.preventDefault(),y.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":y.preventDefault(),y.stopPropagation(),i==="rtl"?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":y.preventDefault(),y.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":y.preventDefault(),y.stopPropagation(),i==="rtl"?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":y.preventDefault(),y.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(y.preventDefault(),t.setAnchorDate(null));break}},s=Ag(n,r,t.timeZone,!0),{ariaLabel:c,ariaLabelledBy:d}=Wv.get(t),h=cl({"aria-label":[c,s].filter(Boolean).join(", "),"aria-labelledby":d}),g=Ua({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:v}=ni(),$=S.useMemo(()=>{let y=Ac(Dh(t.timeZone),v);return[...new Array(7).keys()].map(P=>{let R=y.add({days:P}).toDate(t.timeZone);return g.format(R)})},[v,t.timeZone,g]);return{gridProps:hn(h,{role:"grid","aria-readonly":t.isReadOnly||void 0,"aria-disabled":t.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:a,onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:$}}function L9(e){return e&&e.__esModule?e.default:e}function B9(e,t,n){let{date:r,isDisabled:i}=e,{errorMessageId:a,selectedDateDescription:s}=Wv.get(t),c=Xa(L9(Jc),"@react-aria/calendar"),d=Ua({weekday:"long",day:"numeric",month:"long",year:"numeric",era:_c(r),timeZone:t.timeZone}),h=t.isSelected(r),g=t.isCellFocused(r);i=i||t.isCellDisabled(r);let v=t.isCellUnavailable(r),$=!i&&!v,y=t.isValueInvalid&&!!("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&Pr(t.value,r));y&&(h=!0),r=iw(r,yg);let P=S.useMemo(()=>r.toDate(t.timeZone),[r,t.timeZone]),T=Cw(r,t.timeZone),R=S.useMemo(()=>{let ie="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(Pr(r,t.value.start)||Pr(r,t.value.end))&&(ie=s+", "),ie+=d.format(P),T?ie=c.format(h?"todayDateSelected":"todayDate",{date:ie}):h&&(ie=c.format("dateSelected",{date:ie})),t.minValue&&Pr(r,t.minValue)?ie+=", "+c.format("minimumDate"):t.maxValue&&Pr(r,t.maxValue)&&(ie+=", "+c.format("maximumDate")),ie},[d,P,c,h,T,r,t,s]),D="";"anchorDate"in t&&g&&!t.isReadOnly&&$&&(t.anchorDate?D=c.format("finishRangeSelectionPrompt"):D=c.format("startRangeSelectionPrompt"));let C=Uc(D),_=S.useRef(!1),B=S.useRef(!1),k=S.useRef(void 0),{pressProps:L,isPressed:X}=Hc({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!$||t.isReadOnly,onPressStart(ie){if(t.isReadOnly){t.setFocusedDate(r);return}if("highlightedRange"in t&&!t.anchorDate&&(ie.pointerType==="mouse"||ie.pointerType==="touch")){if(t.highlightedRange&&!y){if(Pr(r,t.highlightedRange.start)){t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),B.current=!0;return}else if(Pr(r,t.highlightedRange.end)){t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),B.current=!0;return}}let De=()=>{t.setDragging(!0),k.current=void 0,t.selectDate(r),t.setFocusedDate(r),_.current=!0};ie.pointerType==="touch"?k.current=setTimeout(De,200):De()}},onPressEnd(){B.current=!1,_.current=!1,clearTimeout(k.current),k.current=void 0},onPress(){!("anchorDate"in t)&&!t.isReadOnly&&(t.selectDate(r),t.setFocusedDate(r))},onPressUp(ie){if(!t.isReadOnly&&("anchorDate"in t&&k.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(B.current)t.setAnchorDate(r);else if(t.anchorDate&&!_.current)t.selectDate(r),t.setFocusedDate(r);else if(ie.pointerType==="keyboard"&&!t.anchorDate){t.selectDate(r);let De=r.add({days:1});t.isInvalid(De)&&(De=r.subtract({days:1})),t.isInvalid(De)||t.setFocusedDate(De)}else ie.pointerType==="virtual"&&(t.selectDate(r),t.setFocusedDate(r))}}),F;i||(F=Pr(r,t.focusedDate)?0:-1),S.useEffect(()=>{g&&n.current&&(ga(n.current),Ld()!=="pointer"&&document.activeElement===n.current&&Od(n.current,{containingElement:xh(n.current)}))},[g,n]);let ge=Ua({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),te=S.useMemo(()=>ge.formatToParts(P).find(ie=>ie.type==="day").value,[ge,P]);return{cellProps:{role:"gridcell","aria-disabled":!$||void 0,"aria-selected":h||void 0,"aria-invalid":y||void 0},buttonProps:hn(L,{onFocus(){i||t.setFocusedDate(r)},tabIndex:F,role:"button","aria-disabled":!$||void 0,"aria-label":R,"aria-invalid":y||void 0,"aria-describedby":[y?a:void 0,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(ie){"highlightDate"in t&&(ie.pointerType!=="touch"||t.isDragging)&&$&&t.highlightDate(r)},onPointerDown(ie){"releasePointerCapture"in ie.target&&ie.target.releasePointerCapture(ie.pointerId)},onContextMenu(ie){ie.preventDefault()}}),isPressed:X,isFocused:g,isSelected:h,isDisabled:i,isUnavailable:v,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:y,formattedDate:te}}const Ph={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Bx={...Ph,customError:!0,valid:!1},zs={isInvalid:!1,validationDetails:Ph,validationErrors:[]},V9=S.createContext({}),hl="__formValidationState"+Date.now();function Xc(e){if(e[hl]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[hl];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return N9(e)}function N9(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:s,validationBehavior:c="aria"}=e;n&&(t||(t=n==="invalid"));let d=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Bx}:null,h=S.useMemo(()=>{if(!s||i==null)return null;let te=j9(s,i);return X1(te)},[s,i]);a!=null&&a.validationDetails.valid&&(a=void 0);let g=S.useContext(V9),v=S.useMemo(()=>r?Array.isArray(r)?r.flatMap(te=>Tg(g[te])):Tg(g[r]):[],[g,r]),[$,y]=S.useState(g),[P,T]=S.useState(!1);g!==$&&(y(g),T(!1));let R=S.useMemo(()=>X1(P?[]:v),[P,v]),D=S.useRef(zs),[C,_]=S.useState(zs),B=S.useRef(zs),k=()=>{if(!L)return;X(!1);let te=h||a||D.current;gm(te,B.current)||(B.current=te,_(te))},[L,X]=S.useState(!1);return S.useEffect(k),{realtimeValidation:d||R||h||a||zs,displayValidation:c==="native"?d||R||C:d||R||h||a||C,updateValidation(te){c==="aria"&&!gm(C,te)?_(te):D.current=te},resetValidation(){let te=zs;gm(te,B.current)||(B.current=te,_(te)),c==="native"&&X(!1),T(!0)},commitValidation(){c==="native"&&X(!0),T(!0)}}}function Tg(e){return e?Array.isArray(e)?e:[e]:[]}function j9(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return Tg(n)}return[]}function X1(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Bx}:null}function gm(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 Hd(...e){let t=new Set,n=!1,r={...Ph};for(let s of e){var i,a;for(let c of s.validationErrors)t.add(c);n||(n=s.isInvalid);for(let c in r)(i=r)[a=c]||(i[a]=s.validationDetails[c])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Vx(e,t,n){let{validationBehavior:r,focus:i}=e;Ln(()=>{if(r==="native"&&(n!=null&&n.current)){let d=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(d),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(z9(n.current))}});let a=Tr(()=>{t.resetValidation()}),s=Tr(d=>{var h;t.displayValidation.isInvalid||t.commitValidation();let g=n==null||(h=n.current)===null||h===void 0?void 0:h.form;if(!d.defaultPrevented&&n&&g&&U9(g)===n.current){var v;i?i():(v=n.current)===null||v===void 0||v.focus(),hw("keyboard")}d.preventDefault()}),c=Tr(()=>{t.commitValidation()});S.useEffect(()=>{let d=n==null?void 0:n.current;if(!d)return;let h=d.form;return d.addEventListener("invalid",s),d.addEventListener("change",c),h==null||h.addEventListener("reset",a),()=>{d.removeEventListener("invalid",s),d.removeEventListener("change",c),h==null||h.removeEventListener("reset",a)}},[n,s,c,a,r])}function K9(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 z9(e){return{isInvalid:!e.validity.valid,validationDetails:K9(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function U9(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function Th(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=_i(t);let s=_i(),c={};n?(r=r?`${s} ${r}`:s,c={id:s,htmlFor:a==="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 d=cl({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:c,fieldProps:d}}function _h(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:s}=Th(e),c=ll([!!t,!!n,r,i]),d=ll([!!t,!!n,r,i]);return s=hn(s,{"aria-describedby":[c,d,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:s,descriptionProps:{id:c},errorMessageProps:{id:d}}}const W9=0,H9=100,G9=1;function q9(e){const{isDisabled:t=!1,minValue:n=W9,maxValue:r=H9,numberFormatter:i,step:a=G9,orientation:s="horizontal"}=e;let c=S.useMemo(()=>{let pe=(r-n)/10;return pe=Ql(pe,0,pe+a,a),Math.max(pe,a)},[a,r,n]),d=S.useCallback(pe=>pe==null?void 0:pe.map((Pe,Te)=>{let Ve=Te===0?n:pe[Te-1],Se=Te===pe.length-1?r:pe[Te+1];return Ql(Pe,Ve,Se,a)}),[n,r,a]),h=S.useMemo(()=>d(e4(e.value)),[e.value]),g=S.useMemo(()=>{var pe;return d((pe=e4(e.defaultValue))!==null&&pe!==void 0?pe:[n])},[e.defaultValue,n]),v=t4(e.value,e.defaultValue,e.onChange),$=t4(e.value,e.defaultValue,e.onChangeEnd);const[y,P]=ki(h,g,v),[T,R]=S.useState(new Array(y.length).fill(!1)),D=S.useRef(new Array(y.length).fill(!0)),[C,_]=S.useState(void 0),B=S.useRef(y),k=S.useRef(T);let L=pe=>{B.current=pe,P(pe)},X=pe=>{k.current=pe,R(pe)};function F(pe){return(pe-n)/(r-n)}function ge(pe){return pe===0?n:y[pe-1]}function te(pe){return pe===y.length-1?r:y[pe+1]}function ie(pe){return D.current[pe]}function De(pe,Pe){D.current[pe]=Pe}function me(pe,Pe){if(t||!ie(pe))return;const Te=ge(pe),Ve=te(pe);Pe=Ql(Pe,Te,Ve,a);let Se=Q1(B.current,pe,Pe);L(Se)}function de(pe,Pe){if(t||!ie(pe))return;Pe&&(B.current=y);const Te=k.current[pe];k.current=Q1(k.current,pe,Pe),X(k.current),Te&&!k.current.some(Boolean)&&$(B.current)}function ne(pe){return i.format(pe)}function re(pe,Pe){me(pe,oe(Pe))}function K(pe){return Math.round((pe-n)/a)*a+n}function oe(pe){const Pe=pe*(r-n)+n;return fl(K(Pe),n,r)}function Ce(pe,Pe=1){let Te=Math.max(Pe,a);me(pe,Ql(y[pe]+Te,n,r,a))}function ee(pe,Pe=1){let Te=Math.max(Pe,a);me(pe,Ql(y[pe]-Te,n,r,a))}return{values:y,getThumbValue:pe=>y[pe],setThumbValue:me,setThumbPercent:re,isThumbDragging:pe=>T[pe],setThumbDragging:de,focusedThumb:C,setFocusedThumb:_,getThumbPercent:pe=>F(y[pe]),getValuePercent:F,getThumbValueLabel:pe=>ne(y[pe]),getFormattedValue:ne,getThumbMinValue:ge,getThumbMaxValue:te,getPercentValue:oe,isThumbEditable:ie,setThumbEditable:De,incrementThumb:Ce,decrementThumb:ee,step:a,pageSize:c,orientation:s,isDisabled:t}}function Q1(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function e4(e){if(e!=null)return Array.isArray(e)?e:[e]}function t4(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const n4={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 Y9(e={}){let{style:t,isFocusable:n}=e,[r,i]=S.useState(!1),{focusWithinProps:a}=Cl({isDisabled:!n,onFocusWithinChange:c=>i(c)}),s=S.useMemo(()=>r?t:t?{...n4,...t}:n4,[r]);return{visuallyHiddenProps:{...a,style:s}}}function Z9(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:s}=Y9(e);return S.createElement(n,hn(a,s),t)}const Hv=new WeakMap;function _g(e,t){let n=Hv.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function J9(e,t,n){let{labelProps:r,fieldProps:i}=Th(e),a=e.orientation==="vertical";var s;Hv.set(t,{id:(s=r.id)!==null&&s!==void 0?s:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:c}=ni(),{addGlobalListener:d,removeGlobalListener:h}=El();const g=S.useRef(null),v=c==="rtl",$=S.useRef(null),{moveProps:y}=mw({onMoveStart(){$.current=null},onMove({deltaX:D,deltaY:C}){if(!n.current)return;let{height:_,width:B}=n.current.getBoundingClientRect(),k=a?_:B;$.current==null&&g.current!=null&&($.current=t.getThumbPercent(g.current)*k);let L=a?C:D;if((a||v)&&(L=-L),$.current+=L,g.current!=null&&n.current){const X=fl($.current/k,0,1);t.setThumbPercent(g.current,X)}},onMoveEnd(){g.current!=null&&(t.setThumbDragging(g.current,!1),g.current=null)}});let P=S.useRef(void 0),T=(D,C,_,B)=>{if(n.current&&!e.isDisabled&&t.values.every((k,L)=>!t.isThumbDragging(L))){let{height:k,width:L,top:X,left:F}=n.current.getBoundingClientRect(),ge=a?k:L,me=((a?B:_)-(a?X:F))/ge;(c==="rtl"||a)&&(me=1-me);let de=t.getPercentValue(me),ne,re=t.values.findIndex(K=>de-K<0);if(re===0)ne=re;else if(re===-1)ne=t.values.length-1;else{let K=t.values[re-1],oe=t.values[re];Math.abs(K-de)<Math.abs(oe-de)?ne=re-1:ne=re}ne>=0&&t.isThumbEditable(ne)?(D.preventDefault(),g.current=ne,t.setFocusedThumb(ne),P.current=C,t.setThumbDragging(g.current,!0),t.setThumbValue(ne,de),d(window,"mouseup",R,!1),d(window,"touchend",R,!1),d(window,"pointerup",R,!1)):g.current=null}},R=D=>{var C,_;((_=D.pointerId)!==null&&_!==void 0?_:(C=D.changedTouches)===null||C===void 0?void 0:C[0].identifier)===P.current&&(g.current!=null&&(t.setThumbDragging(g.current,!1),g.current=null),h(window,"mouseup",R,!1),h(window,"touchend",R,!1),h(window,"pointerup",R,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var D;(D=document.getElementById(_g(t,0)))===null||D===void 0||D.focus(),hw("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:hn({onMouseDown(D){D.button!==0||D.altKey||D.ctrlKey||D.metaKey||T(D,void 0,D.clientX,D.clientY)},onPointerDown(D){D.pointerType==="mouse"&&(D.button!==0||D.altKey||D.ctrlKey||D.metaKey)||T(D,D.pointerId,D.clientX,D.clientY)},onTouchStart(D){T(D,D.changedTouches[0].identifier,D.changedTouches[0].clientX,D.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},y),outputProps:{htmlFor:t.values.map((D,C)=>_g(t,C)).join(" "),"aria-live":"off"}}}function X9(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:s,inputRef:c,orientation:d=t.orientation,name:h}=e,g=e.isDisabled||t.isDisabled,v=d==="vertical",{direction:$}=ni(),{addGlobalListener:y,removeGlobalListener:P}=El(),T=Hv.get(t);var R;const{labelProps:D,fieldProps:C}=Th({...e,id:_g(t,n),"aria-labelledby":`${T.id} ${(R=e["aria-labelledby"])!==null&&R!==void 0?R:""}`.trim()}),_=t.values[n],B=S.useCallback(()=>{c.current&&ga(c.current)},[c]),k=t.focusedThumb===n;S.useEffect(()=>{k&&B()},[k,B]);let L=$==="rtl",X=S.useRef(null),{keyboardProps:F}=pw({onKeyDown(re){let{getThumbMaxValue:K,getThumbMinValue:oe,decrementThumb:Ce,incrementThumb:ee,setThumbValue:pe,setThumbDragging:Pe,pageSize:Te}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(re.key)){re.continuePropagation();return}switch(re.preventDefault(),Pe(n,!0),re.key){case"PageUp":ee(n,Te);break;case"PageDown":Ce(n,Te);break;case"Home":pe(n,oe(n));break;case"End":pe(n,K(n));break}Pe(n,!1)}}),{moveProps:ge}=mw({onMoveStart(){X.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:re,deltaY:K,pointerType:oe,shiftKey:Ce}){const{getThumbPercent:ee,setThumbPercent:pe,decrementThumb:Pe,incrementThumb:Te,step:Ve,pageSize:Se}=t;if(!s.current)return;let{width:Je,height:Ge}=s.current.getBoundingClientRect(),xe=v?Ge:Je;if(X.current==null&&(X.current=ee(n)*xe),oe==="keyboard")re>0&&L||re<0&&!L||K>0?Pe(n,Ce?Se:Ve):Te(n,Ce?Se:Ve);else{let Be=v?K:re;(v||L)&&(Be=-Be),X.current+=Be,pe(n,fl(X.current/xe,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!g);const{focusableProps:te}=Fv(hn(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),c);let ie=S.useRef(void 0),De=re=>{B(),ie.current=re,t.setThumbDragging(n,!0),y(window,"mouseup",me,!1),y(window,"touchend",me,!1),y(window,"pointerup",me,!1)},me=re=>{var K,oe;((oe=re.pointerId)!==null&&oe!==void 0?oe:(K=re.changedTouches)===null||K===void 0?void 0:K[0].identifier)===ie.current&&(B(),t.setThumbDragging(n,!1),P(window,"mouseup",me,!1),P(window,"touchend",me,!1),P(window,"pointerup",me,!1))},de=t.getThumbPercent(n);(v||$==="rtl")&&(de=1-de);let ne=g?{}:hn(F,ge,{onMouseDown:re=>{re.button!==0||re.altKey||re.ctrlKey||re.metaKey||De()},onPointerDown:re=>{re.button!==0||re.altKey||re.ctrlKey||re.metaKey||De(re.pointerId)},onTouchStart:re=>{De(re.changedTouches[0].identifier)}});return Pv(c,_,re=>{t.setThumbValue(n,re)}),{inputProps:hn(te,C,{type:"range",tabIndex:g?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:_,name:h,disabled:g,"aria-orientation":d,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[T["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[T["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:re=>{t.setThumbValue(n,parseFloat(re.target.value))}}),thumbProps:{...ne,style:{position:"absolute",[v?"top":"left"]:`${de*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:D,isDragging:t.isThumbDragging(n),isDisabled:g,isFocused:k}}function Q9(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:s="text",validationBehavior:c="aria"}=e,[d,h]=ki(e.value,e.defaultValue||"",e.onChange),{focusableProps:g}=Fv(e,t),v=Xc({...e,value:d}),{isInvalid:$,validationErrors:y,validationDetails:P}=v.displayValidation,{labelProps:T,fieldProps:R,descriptionProps:D,errorMessageProps:C}=_h({...e,isInvalid:$,errorMessage:e.errorMessage||y}),_=Fo(e,{labelable:!0});const B={type:s,pattern:e.pattern};return Pv(t,d,h),Vx(e,v,t),S.useEffect(()=>{if(t.current instanceof ms(t.current).HTMLTextAreaElement){let k=t.current;Object.defineProperty(k,"defaultValue",{get:()=>k.value,set:()=>{},configurable:!0})}},[t]),{labelProps:T,inputProps:hn(_,n==="input"?B:void 0,{disabled:r,readOnly:a,required:i&&c==="native","aria-required":i&&c==="aria"||void 0,"aria-invalid":$||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:d,onChange:k=>h(k.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,...g,...R}),descriptionProps:D,errorMessageProps:C,isInvalid:$,validationErrors:y,validationDetails:P}}var Nx={};Nx={Empty:"فارغ"};var jx={};jx={Empty:"Изпразни"};var Kx={};Kx={Empty:"Prázdné"};var zx={};zx={Empty:"Tom"};var Ux={};Ux={Empty:"Leer"};var Wx={};Wx={Empty:"Άδειο"};var Hx={};Hx={Empty:"Empty"};var Gx={};Gx={Empty:"Vacío"};var qx={};qx={Empty:"Tühjenda"};var Yx={};Yx={Empty:"Tyhjä"};var Zx={};Zx={Empty:"Vide"};var Jx={};Jx={Empty:"ריק"};var Xx={};Xx={Empty:"Prazno"};var Qx={};Qx={Empty:"Üres"};var eE={};eE={Empty:"Vuoto"};var tE={};tE={Empty:"空"};var nE={};nE={Empty:"비어 있음"};var rE={};rE={Empty:"Tuščias"};var iE={};iE={Empty:"Tukšs"};var aE={};aE={Empty:"Tom"};var oE={};oE={Empty:"Leeg"};var sE={};sE={Empty:"Pusty"};var uE={};uE={Empty:"Vazio"};var lE={};lE={Empty:"Vazio"};var cE={};cE={Empty:"Gol"};var fE={};fE={Empty:"Не заполнено"};var dE={};dE={Empty:"Prázdne"};var hE={};hE={Empty:"Prazen"};var pE={};pE={Empty:"Prazno"};var mE={};mE={Empty:"Tomt"};var gE={};gE={Empty:"Boş"};var vE={};vE={Empty:"Пусто"};var yE={};yE={Empty:"空"};var bE={};bE={Empty:"空白"};var $E={};$E={"ar-AE":Nx,"bg-BG":jx,"cs-CZ":Kx,"da-DK":zx,"de-DE":Ux,"el-GR":Wx,"en-US":Hx,"es-ES":Gx,"et-EE":qx,"fi-FI":Yx,"fr-FR":Zx,"he-IL":Jx,"hr-HR":Xx,"hu-HU":Qx,"it-IT":eE,"ja-JP":tE,"ko-KR":nE,"lt-LT":rE,"lv-LV":iE,"nb-NO":aE,"nl-NL":oE,"pl-PL":sE,"pt-BR":uE,"pt-PT":lE,"ro-RO":cE,"ru-RU":fE,"sk-SK":dE,"sl-SI":hE,"sr-SP":pE,"sv-SE":mE,"tr-TR":gE,"uk-UA":vE,"zh-CN":yE,"zh-TW":bE};function eO(e){return e&&e.__esModule?e.default:e}function tO(e){const t=S.useRef(void 0);let{value:n,textValue:r,minValue:i,maxValue:a,isDisabled:s,isReadOnly:c,isRequired:d,onIncrement:h,onIncrementPage:g,onDecrement:v,onDecrementPage:$,onDecrementToMin:y,onIncrementToMax:P}=e;const T=Xa(eO($E),"@react-aria/spinbutton"),R=()=>clearTimeout(t.current);S.useEffect(()=>()=>R(),[]);let D=ie=>{if(!(ie.ctrlKey||ie.metaKey||ie.shiftKey||ie.altKey||c))switch(ie.key){case"PageUp":if(g){ie.preventDefault(),g==null||g();break}case"ArrowUp":case"Up":h&&(ie.preventDefault(),h==null||h());break;case"PageDown":if($){ie.preventDefault(),$==null||$();break}case"ArrowDown":case"Down":v&&(ie.preventDefault(),v==null||v());break;case"Home":y&&(ie.preventDefault(),y==null||y());break;case"End":P&&(ie.preventDefault(),P==null||P());break}},C=S.useRef(!1),_=()=>{C.current=!0},B=()=>{C.current=!1},k=r===""?T.format("Empty"):(r||`${n}`).replace("-","−");S.useEffect(()=>{C.current&&(k9("assertive"),Xu(k,"assertive"))},[k]);const L=Tr(ie=>{R(),h==null||h(),t.current=window.setTimeout(()=>{(a===void 0||isNaN(a)||n===void 0||isNaN(n)||n<a)&&L(60)},ie)}),X=Tr(ie=>{R(),v==null||v(),t.current=window.setTimeout(()=>{(i===void 0||isNaN(i)||n===void 0||isNaN(n)||n>i)&&X(60)},ie)});let F=ie=>{ie.preventDefault()},{addGlobalListener:ge,removeAllGlobalListeners:te}=El();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":k,"aria-valuemin":i,"aria-valuemax":a,"aria-disabled":s||void 0,"aria-readonly":c||void 0,"aria-required":d||void 0,onKeyDown:D,onFocus:_,onBlur:B},incrementButtonProps:{onPressStart:()=>{L(400),ge(window,"contextmenu",F)},onPressEnd:()=>{R(),te()},onFocus:_,onBlur:B},decrementButtonProps:{onPressStart:()=>{X(400),ge(window,"contextmenu",F)},onPressEnd:()=>{R(),te()},onFocus:_,onBlur:B}}}var wE={};wE={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 xE={};xE={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 EE={};EE={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 CE={};CE={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 SE={};SE={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 DE={};DE={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 AE={};AE={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 PE={};PE={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 TE={};TE={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 _E={};_E={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 kE={};kE={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 RE={};RE={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 FE={};FE={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 ME={};ME={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 OE={};OE={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 IE={};IE={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 LE={};LE={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 BE={};BE={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 VE={};VE={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 NE={};NE={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 jE={};jE={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 KE={};KE={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 zE={};zE={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 UE={};UE={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 WE={};WE={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 HE={};HE={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 GE={};GE={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 qE={};qE={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 YE={};YE={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 ZE={};ZE={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 JE={};JE={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 XE={};XE={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 QE={};QE={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 eC={};eC={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 tC={};tC={"ar-AE":wE,"bg-BG":xE,"cs-CZ":EE,"da-DK":CE,"de-DE":SE,"el-GR":DE,"en-US":AE,"es-ES":PE,"et-EE":TE,"fi-FI":_E,"fr-FR":kE,"he-IL":RE,"hr-HR":FE,"hu-HU":ME,"it-IT":OE,"ja-JP":IE,"ko-KR":LE,"lt-LT":BE,"lv-LV":VE,"nb-NO":NE,"nl-NL":jE,"pl-PL":KE,"pt-BR":zE,"pt-PT":UE,"ro-RO":WE,"ru-RU":HE,"sk-SK":GE,"sl-SI":qE,"sr-SP":YE,"sv-SE":ZE,"tr-TR":JE,"uk-UA":XE,"zh-CN":QE,"zh-TW":eC};const Wa={top:"top",bottom:"top",left:"left",right:"left"},Gd={top:"bottom",bottom:"top",left:"right",right:"left"},nO={top:"left",left:"top"},kg={top:"height",left:"width"},nC={width:"totalWidth",height:"totalHeight"},rd={};let Nr=typeof document<"u"?window.visualViewport:null;function r4(e){let t=0,n=0,r=0,i=0,a=0,s=0,c={};var d;let h=((d=Nr==null?void 0:Nr.scale)!==null&&d!==void 0?d:1)>1;if(e.tagName==="BODY"){let P=document.documentElement;r=P.clientWidth,i=P.clientHeight;var g;t=(g=Nr==null?void 0:Nr.width)!==null&&g!==void 0?g:r;var v;n=(v=Nr==null?void 0:Nr.height)!==null&&v!==void 0?v:i,c.top=P.scrollTop||e.scrollTop,c.left=P.scrollLeft||e.scrollLeft,Nr&&(a=Nr.offsetTop,s=Nr.offsetLeft)}else({width:t,height:n,top:a,left:s}=Qu(e)),c.top=e.scrollTop,c.left=e.scrollLeft,r=t,i=n;if(Av()&&(e.tagName==="BODY"||e.tagName==="HTML")&&h){c.top=0,c.left=0;var $;a=($=Nr==null?void 0:Nr.pageTop)!==null&&$!==void 0?$:0;var y;s=(y=Nr==null?void 0:Nr.pageLeft)!==null&&y!==void 0?y:0}return{width:t,height:n,totalWidth:r,totalHeight:i,scroll:c,top:a,left:s}}function rO(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function i4(e,t,n,r,i,a,s){var c;let d=(c=i.scroll[e])!==null&&c!==void 0?c:0,h=r[kg[e]],g=r.scroll[Wa[e]]+a,v=h+r.scroll[Wa[e]]-a,$=t-d+s[e]-r[Wa[e]],y=t-d+n+s[e]-r[Wa[e]];return $<g?g-$:y>v?Math.max(v-y,g-$):0}function iO(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 a4(e){if(rd[e])return rd[e];let[t,n]=e.split(" "),r=Wa[t]||"right",i=nO[r];Wa[n]||(n="center");let a=kg[r],s=kg[i];return rd[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:s},rd[e]}function vm(e,t,n,r,i,a,s,c,d,h){let{placement:g,crossPlacement:v,axis:$,crossAxis:y,size:P,crossSize:T}=r,R={};var D;R[y]=(D=e[y])!==null&&D!==void 0?D:0;var C,_,B,k;v==="center"?R[y]+=(((C=e[T])!==null&&C!==void 0?C:0)-((_=n[T])!==null&&_!==void 0?_:0))/2:v!==y&&(R[y]+=((B=e[T])!==null&&B!==void 0?B:0)-((k=n[T])!==null&&k!==void 0?k:0)),R[y]+=a;const L=e[y]-n[T]+d+h,X=e[y]+e[T]-d-h;if(R[y]=fl(R[y],L,X),g===$){const F=c?s[P]:t[nC[P]];R[Gd[$]]=Math.floor(F-e[$]+i)}else R[$]=Math.floor(e[$]+e[P]+i);return R}function aO(e,t,n,r,i,a,s,c){const d=r?n.height:t[nC.height];var h;let g=e.top!=null?n.top+e.top:n.top+(d-((h=e.bottom)!==null&&h!==void 0?h:0)-s);var v,$,y,P,T,R;let D=c!=="top"?Math.max(0,t.height+t.top+((v=t.scroll.top)!==null&&v!==void 0?v:0)-g-((($=i.top)!==null&&$!==void 0?$:0)+((y=i.bottom)!==null&&y!==void 0?y:0)+a)):Math.max(0,g+s-(t.top+((P=t.scroll.top)!==null&&P!==void 0?P:0))-(((T=i.top)!==null&&T!==void 0?T:0)+((R=i.bottom)!==null&&R!==void 0?R:0)+a));return Math.min(t.height-a*2,D)}function o4(e,t,n,r,i,a){let{placement:s,axis:c,size:d}=a;var h,g;if(s===c)return Math.max(0,n[c]-e[c]-((h=e.scroll[c])!==null&&h!==void 0?h:0)+t[c]-((g=r[c])!==null&&g!==void 0?g:0)-r[Gd[c]]-i);var v;return Math.max(0,e[d]+e[c]+e.scroll[c]-t[c]-n[c]-n[d]-((v=r[c])!==null&&v!==void 0?v:0)-r[Gd[c]]-i)}function oO(e,t,n,r,i,a,s,c,d,h,g,v,$,y,P,T){let R=a4(e),{size:D,crossAxis:C,crossSize:_,placement:B,crossPlacement:k}=R,L=vm(t,c,n,R,g,v,h,$,P,T),X=g,F=o4(c,h,t,i,a+g,R);if(s&&r[D]>F){let Ve=a4(`${Gd[B]} ${k}`),Se=vm(t,c,n,Ve,g,v,h,$,P,T);o4(c,h,t,i,a+g,Ve)>F&&(R=Ve,L=Se,X=g)}let ge="bottom";R.axis==="top"?R.placement==="top"?ge="top":R.placement==="bottom"&&(ge="bottom"):R.crossAxis==="top"&&(R.crossPlacement==="top"?ge="bottom":R.crossPlacement==="bottom"&&(ge="top"));let te=i4(C,L[C],n[_],c,d,a,h);L[C]+=te;let ie=aO(L,c,h,$,i,a,n.height,ge);y&&y<ie&&(ie=y),n.height=Math.min(n.height,ie),L=vm(t,c,n,R,X,v,h,$,P,T),te=i4(C,L[C],n[_],c,d,a,h),L[C]+=te;let De={},me=t[C]+.5*t[_]-L[C]-i[Wa[C]];const de=P/2+T;var ne,re,K,oe;const Ce=Wa[C]==="left"?((ne=i.left)!==null&&ne!==void 0?ne:0)+((re=i.right)!==null&&re!==void 0?re:0):((K=i.top)!==null&&K!==void 0?K:0)+((oe=i.bottom)!==null&&oe!==void 0?oe:0),ee=n[_]-Ce-P/2-T,pe=t[C]+P/2-(L[C]+i[Wa[C]]),Pe=t[C]+t[_]-P/2-(L[C]+i[Wa[C]]),Te=fl(me,pe,Pe);return De[C]=fl(Te,de,ee),{position:L,maxHeight:ie,arrowOffsetLeft:De.left,arrowOffsetTop:De.top,placement:R.placement}}function sO(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:s,boundaryElement:c,offset:d,crossOffset:h,maxHeight:g,arrowSize:v=0,arrowBoundaryOffset:$=0}=e,y=r instanceof HTMLElement?uO(r):document.documentElement,P=y===document.documentElement;const T=window.getComputedStyle(y).position;let R=!!T&&T!=="static",D=P?Qu(n):s4(n,y);if(!P){let{marginTop:De,marginLeft:me}=window.getComputedStyle(n);D.top+=parseInt(De,10)||0,D.left+=parseInt(me,10)||0}let C=Qu(r),_=iO(r);var B,k;C.width+=((B=_.left)!==null&&B!==void 0?B:0)+((k=_.right)!==null&&k!==void 0?k:0);var L,X;C.height+=((L=_.top)!==null&&L!==void 0?L:0)+((X=_.bottom)!==null&&X!==void 0?X:0);let F=rO(i),ge=r4(c),te=r4(y),ie=c.tagName==="BODY"?Qu(y):s4(y,c);return y.tagName==="HTML"&&c.tagName==="BODY"&&(te.scroll.top=0,te.scroll.left=0),oO(t,D,C,F,_,a,s,ge,te,ie,d,h,R,g,v,$)}function Qu(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:c,clientLeft:d}=document.documentElement;return{top:t+a-c,left:n+s-d,width:r,height:i}}function s4(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:s,height:c}=e.getBoundingClientRect();r={top:i,left:a,width:s,height:c}}else{r=Qu(e);let i=Qu(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.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 uO(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!u4(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!u4(t);)t=t.parentElement;return t||document.documentElement}function u4(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 rC=new WeakMap;function lO(e){let{triggerRef:t,isOpen:n,onClose:r}=e;S.useEffect(()=>{if(!n||r===null)return;let i=a=>{let s=a.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||a.target instanceof HTMLInputElement||a.target instanceof HTMLTextAreaElement)return;let c=r||rC.get(t.current);c&&c()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}let pr=typeof document<"u"?window.visualViewport:null;function cO(e){let{direction:t}=ni(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:s="bottom",containerPadding:c=12,shouldFlip:d=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:g=0,crossOffset:v=0,shouldUpdatePosition:$=!0,isOpen:y=!0,onClose:P,maxHeight:T,arrowBoundaryOffset:R=0}=e,[D,C]=S.useState(null),_=[$,s,i.current,r.current,a.current,c,d,h,g,v,y,t,T,R,n],B=S.useRef(pr==null?void 0:pr.scale);S.useEffect(()=>{y&&(B.current=pr==null?void 0:pr.scale)},[y]);let k=S.useCallback(()=>{if($===!1||!y||!i.current||!r.current||!h||(pr==null?void 0:pr.scale)!==B.current)return;let te=null;if(a.current&&a.current.contains(document.activeElement)){var ie;let oe=(ie=document.activeElement)===null||ie===void 0?void 0:ie.getBoundingClientRect(),Ce=a.current.getBoundingClientRect();var De;if(te={type:"top",offset:((De=oe==null?void 0:oe.top)!==null&&De!==void 0?De:0)-Ce.top},te.offset>Ce.height/2){te.type="bottom";var me;te.offset=((me=oe==null?void 0:oe.bottom)!==null&&me!==void 0?me:0)-Ce.bottom}}let de=i.current;if(!T&&i.current){var ne;de.style.top="0px",de.style.bottom="";var re;de.style.maxHeight=((re=(ne=window.visualViewport)===null||ne===void 0?void 0:ne.height)!==null&&re!==void 0?re:window.innerHeight)+"px"}let K=sO({placement:dO(s,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current||i.current,padding:c,shouldFlip:d,boundaryElement:h,offset:g,crossOffset:v,maxHeight:T,arrowSize:n,arrowBoundaryOffset:R});if(K.position){if(de.style.top="",de.style.bottom="",de.style.left="",de.style.right="",Object.keys(K.position).forEach(oe=>de.style[oe]=K.position[oe]+"px"),de.style.maxHeight=K.maxHeight!=null?K.maxHeight+"px":"",te&&document.activeElement&&a.current){let oe=document.activeElement.getBoundingClientRect(),Ce=a.current.getBoundingClientRect(),ee=oe[te.type]-Ce[te.type];a.current.scrollTop+=ee-te.offset}C(K)}},_);Ln(k,_),fO(k),d1({ref:i,onResize:k}),d1({ref:r,onResize:k});let L=S.useRef(!1);Ln(()=>{let te,ie=()=>{L.current=!0,clearTimeout(te),te=setTimeout(()=>{L.current=!1},500),k()},De=()=>{L.current&&ie()};return pr==null||pr.addEventListener("resize",ie),pr==null||pr.addEventListener("scroll",De),()=>{pr==null||pr.removeEventListener("resize",ie),pr==null||pr.removeEventListener("scroll",De)}},[k]);let X=S.useCallback(()=>{L.current||P==null||P()},[P,L]);lO({triggerRef:r,isOpen:y,onClose:P&&X});var F,ge;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...D==null?void 0:D.position,maxHeight:(F=D==null?void 0:D.maxHeight)!==null&&F!==void 0?F:"100vh"}},placement:(ge=D==null?void 0:D.placement)!==null&&ge!==void 0?ge:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:D==null?void 0:D.arrowOffsetLeft,top:D==null?void 0:D.arrowOffsetTop}},updatePosition:k}}function fO(e){Ln(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function dO(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Eo=[];function hO(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:c}=e;S.useEffect(()=>(i&&Eo.push(t),()=>{let P=Eo.indexOf(t);P>=0&&Eo.splice(P,1)}),[i,t]);let d=()=>{Eo[Eo.length-1]===t&&n&&n()},h=P=>{(!c||c(P.target))&&Eo[Eo.length-1]===t&&(P.stopPropagation(),P.preventDefault())},g=P=>{(!c||c(P.target))&&(Eo[Eo.length-1]===t&&(P.stopPropagation(),P.preventDefault()),d())},v=P=>{P.key==="Escape"&&!s&&!P.nativeEvent.isComposing&&(P.stopPropagation(),P.preventDefault(),d())};XF({ref:t,onInteractOutside:a&&i?g:void 0,onInteractOutsideStart:h});let{focusWithinProps:$}=Cl({isDisabled:!r,onBlurWithin:P=>{!P.relatedTarget||sM(P.relatedTarget)||(!c||c(P.relatedTarget))&&(n==null||n())}}),y=P=>{P.target===P.currentTarget&&P.preventDefault()};return{overlayProps:{onKeyDown:v,...$},underlayProps:{onPointerDown:y}}}function pO(e,t,n){let{type:r}=e,{isOpen:i}=t;S.useEffect(()=>{n&&n.current&&rC.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let s=_i();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const ym=typeof document<"u"&&window.visualViewport,mO=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let id=0,bm;function gO(e={}){let{isDisabled:t}=e;Ln(()=>{if(!t)return id++,id===1&&(zc()?bm=yO():bm=vO()),()=>{id--,id===0&&bm()}},[t])}function vO(){return au(zu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),zu(document.documentElement,"overflow","hidden"))}function yO(){let e,t,n=h=>{e=xh(h.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=zu(e,"overscrollBehavior","contain"))},r=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&h.preventDefault()},i=h=>{let g=h.target;c4(g)&&g!==document.activeElement&&(h.preventDefault(),c(),g.style.transform="translateY(-2000px)",g.focus(),requestAnimationFrame(()=>{g.style.transform=""})),t&&t()},a=h=>{let g=h.target;c4(g)&&(c(),g.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{g.style.transform="",ym&&(ym.height<window.innerHeight?requestAnimationFrame(()=>{l4(g)}):ym.addEventListener("resize",()=>l4(g),{once:!0}))}))},s=null,c=()=>{if(s)return;let h=()=>{window.scrollTo(0,0)},g=window.pageXOffset,v=window.pageYOffset;s=au(tc(window,"scroll",h),zu(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),zu(document.documentElement,"overflow","hidden"),zu(document.body,"marginTop",`-${v}px`),()=>{window.scrollTo(g,v)}),window.scrollTo(0,0)},d=au(tc(document,"touchstart",n,{passive:!1,capture:!0}),tc(document,"touchmove",r,{passive:!1,capture:!0}),tc(document,"touchend",i,{passive:!1,capture:!0}),tc(document,"focus",a,!0));return()=>{t==null||t(),s==null||s(),d()}}function zu(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function tc(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function l4(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let r=xh(n);if(r!==document.documentElement&&r!==document.body&&r!==n){let i=r.getBoundingClientRect().top,a=n.getBoundingClientRect().top;a>i+n.clientHeight&&(r.scrollTop+=a-i)}n=r.parentElement}}function c4(e){return e instanceof HTMLInputElement&&!mO.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let nc=new WeakMap,Ui=[];function iC(e,t=document.body){let n=new Set(e),r=new Set,i=d=>{for(let $ of d.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add($);let h=$=>{if(n.has($)||$.parentElement&&r.has($.parentElement)&&$.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let y of n)if($.contains(y))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},g=document.createTreeWalker(d,NodeFilter.SHOW_ELEMENT,{acceptNode:h}),v=h(d);if(v===NodeFilter.FILTER_ACCEPT&&a(d),v!==NodeFilter.FILTER_REJECT){let $=g.nextNode();for(;$!=null;)a($),$=g.nextNode()}},a=d=>{var h;let g=(h=nc.get(d))!==null&&h!==void 0?h:0;d.getAttribute("aria-hidden")==="true"&&g===0||(g===0&&d.setAttribute("aria-hidden","true"),r.add(d),nc.set(d,g+1))};Ui.length&&Ui[Ui.length-1].disconnect(),i(t);let s=new MutationObserver(d=>{for(let h of d)if(!(h.type!=="childList"||h.addedNodes.length===0)&&![...n,...r].some(g=>g.contains(h.target))){for(let g of h.removedNodes)g instanceof Element&&(n.delete(g),r.delete(g));for(let g of h.addedNodes)(g instanceof HTMLElement||g instanceof SVGElement)&&(g.dataset.liveAnnouncer==="true"||g.dataset.reactAriaTopLayer==="true")?n.add(g):g instanceof Element&&i(g)}});s.observe(t,{childList:!0,subtree:!0});let c={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Ui.push(c),()=>{s.disconnect();for(let d of r){let h=nc.get(d);h!=null&&(h===1?(d.removeAttribute("aria-hidden"),nc.delete(d)):nc.set(d,h-1))}c===Ui[Ui.length-1]?(Ui.pop(),Ui.length&&Ui[Ui.length-1].observe()):Ui.splice(Ui.indexOf(c),1)}}function bO(e,t){let{triggerRef:n,popoverRef:r,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...c}=e,{overlayProps:d,underlayProps:h}=hO({isOpen:t.isOpen&&!c["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},r),{overlayProps:g,arrowProps:v,placement:$}=cO({...c,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:i?t.close:void 0});return gO({isDisabled:i||!t.isOpen}),Ln(()=>{if(t.isOpen&&!i&&r.current)return iC([r.current])},[i,t.isOpen,r]),{popoverProps:hn(d,g),arrowProps:v,underlayProps:h,placement:$}}const $O=S.createContext({});function wO(){var e;return(e=S.useContext($O))!==null&&e!==void 0?e:{}}const aC=S.createContext(null);function xO(e){let t=Sv(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,a]=S.useState(!1),s=S.useMemo(()=>({contain:i,setContain:a}),[i,a]),{getContainer:c}=wO();if(!e.portalContainer&&c&&(n=c()),!n)return null;let d=e.children;return e.disableFocusManagement||(d=S.createElement(nM,{restoreFocus:!0,contain:i&&!r},d)),d=S.createElement(aC.Provider,{value:s},S.createElement(UF,null,d)),ls.createPortal(d,n)}function EO(){let e=S.useContext(aC),t=e==null?void 0:e.setContain;Ln(()=>{t==null||t(!0)},[t])}const kh=new WeakMap;function CO(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function oC(e,t){let n=kh.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${CO(t)}`}function Rg(e){return yd()?e.altKey:e.ctrlKey}function Nu(e){return Ro()?e.metaKey:e.ctrlKey}const SO=1e3;function DO(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=S.useRef({search:"",timeout:void 0}).current,a=s=>{let c=AO(s.key);if(!(!c||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target))){if(c===" "&&i.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),i.search+=c,t.getKeyForSearch!=null){let d=t.getKeyForSearch(i.search,n.focusedKey);d==null&&(d=t.getKeyForSearch(i.search)),d!=null&&(n.setFocusedKey(d),r&&r(d))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},SO)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:void 0}}}function AO(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function sC(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:s=!1,disallowSelectAll:c=!1,selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:g,allowsTabNavigation:v=!1,isVirtualized:$,scrollRef:y=r,linkBehavior:P="action"}=e,{direction:T}=ni(),R=wh(),D=te=>{var ie;if(te.altKey&&te.key==="Tab"&&te.preventDefault(),!(!((ie=r.current)===null||ie===void 0)&&ie.contains(te.target)))return;const De=(Se,Je)=>{if(Se!=null){if(t.isLink(Se)&&P==="selection"&&d&&!Rg(te)){var Ge;ls.flushSync(()=>{t.setFocusedKey(Se,Je)});let xe=(Ge=y.current)===null||Ge===void 0?void 0:Ge.querySelector(`[data-key="${CSS.escape(Se.toString())}"]`),Be=t.getItemProps(Se);xe&&R.open(xe,te,Be.href,Be.routerOptions);return}if(t.setFocusedKey(Se,Je),t.isLink(Se)&&P==="override")return;te.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Se):d&&!Rg(te)&&t.replaceSelection(Se)}};switch(te.key){case"ArrowDown":if(n.getKeyBelow){var me,de,ne;let Se=t.focusedKey!=null?(me=n.getKeyBelow)===null||me===void 0?void 0:me.call(n,t.focusedKey):(de=n.getFirstKey)===null||de===void 0?void 0:de.call(n);Se==null&&a&&(Se=(ne=n.getFirstKey)===null||ne===void 0?void 0:ne.call(n,t.focusedKey)),Se!=null&&(te.preventDefault(),De(Se))}break;case"ArrowUp":if(n.getKeyAbove){var re,K,oe;let Se=t.focusedKey!=null?(re=n.getKeyAbove)===null||re===void 0?void 0:re.call(n,t.focusedKey):(K=n.getLastKey)===null||K===void 0?void 0:K.call(n);Se==null&&a&&(Se=(oe=n.getLastKey)===null||oe===void 0?void 0:oe.call(n,t.focusedKey)),Se!=null&&(te.preventDefault(),De(Se))}break;case"ArrowLeft":if(n.getKeyLeftOf){var Ce,ee,pe;let Se=t.focusedKey!=null?(Ce=n.getKeyLeftOf)===null||Ce===void 0?void 0:Ce.call(n,t.focusedKey):null;Se==null&&a&&(Se=T==="rtl"?(ee=n.getFirstKey)===null||ee===void 0?void 0:ee.call(n,t.focusedKey):(pe=n.getLastKey)===null||pe===void 0?void 0:pe.call(n,t.focusedKey)),Se!=null&&(te.preventDefault(),De(Se,T==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var Pe,Te,Ve;let Se=t.focusedKey!=null?(Pe=n.getKeyRightOf)===null||Pe===void 0?void 0:Pe.call(n,t.focusedKey):null;Se==null&&a&&(Se=T==="rtl"?(Te=n.getLastKey)===null||Te===void 0?void 0:Te.call(n,t.focusedKey):(Ve=n.getFirstKey)===null||Ve===void 0?void 0:Ve.call(n,t.focusedKey)),Se!=null&&(te.preventDefault(),De(Se,T==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){te.preventDefault();let Se=n.getFirstKey(t.focusedKey,Nu(te));t.setFocusedKey(Se),Se!=null&&(Nu(te)&&te.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Se):d&&t.replaceSelection(Se))}break;case"End":if(n.getLastKey){te.preventDefault();let Se=n.getLastKey(t.focusedKey,Nu(te));t.setFocusedKey(Se),Se!=null&&(Nu(te)&&te.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Se):d&&t.replaceSelection(Se))}break;case"PageDown":if(n.getKeyPageBelow&&t.focusedKey!=null){let Se=n.getKeyPageBelow(t.focusedKey);Se!=null&&(te.preventDefault(),De(Se))}break;case"PageUp":if(n.getKeyPageAbove&&t.focusedKey!=null){let Se=n.getKeyPageAbove(t.focusedKey);Se!=null&&(te.preventDefault(),De(Se))}break;case"a":Nu(te)&&t.selectionMode==="multiple"&&c!==!0&&(te.preventDefault(),t.selectAll());break;case"Escape":!s&&t.selectedKeys.size!==0&&(te.stopPropagation(),te.preventDefault(),t.clearSelection());break;case"Tab":if(!v){if(te.shiftKey)r.current.focus();else{let Se=yi(r.current,{tabbable:!0}),Je,Ge;do Ge=Se.lastChild(),Ge&&(Je=Ge);while(Ge);Je&&!Je.contains(document.activeElement)&&ga(Je)}break}}},C=S.useRef({top:0,left:0});cs(y,"scroll",$?void 0:()=>{var te,ie,De,me;C.current={top:(De=(te=y.current)===null||te===void 0?void 0:te.scrollTop)!==null&&De!==void 0?De:0,left:(me=(ie=y.current)===null||ie===void 0?void 0:ie.scrollLeft)!==null&&me!==void 0?me:0}});let _=te=>{if(t.isFocused){te.currentTarget.contains(te.target)||t.setFocused(!1);return}if(te.currentTarget.contains(te.target)){if(t.setFocused(!0),t.focusedKey==null){var ie,De;let ne=K=>{K!=null&&(t.setFocusedKey(K),d&&t.replaceSelection(K))},re=te.relatedTarget;var me,de;re&&te.currentTarget.compareDocumentPosition(re)&Node.DOCUMENT_POSITION_FOLLOWING?ne((me=t.lastSelectedKey)!==null&&me!==void 0?me:(ie=n.getLastKey)===null||ie===void 0?void 0:ie.call(n)):ne((de=t.firstSelectedKey)!==null&&de!==void 0?de:(De=n.getFirstKey)===null||De===void 0?void 0:De.call(n))}else!$&&y.current&&(y.current.scrollTop=C.current.top,y.current.scrollLeft=C.current.left);if(t.focusedKey!=null&&y.current){let ne=y.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);ne&&(ne.contains(document.activeElement)||ga(ne),Ld()==="keyboard"&&Od(ne,{containingElement:r.current}))}}},B=te=>{te.currentTarget.contains(te.relatedTarget)||t.setFocused(!1)};const k=S.useRef(i);S.useEffect(()=>{if(k.current){var te,ie;let de=null;var De;i==="first"&&(de=(De=(te=n.getFirstKey)===null||te===void 0?void 0:te.call(n))!==null&&De!==void 0?De:null);var me;i==="last"&&(de=(me=(ie=n.getLastKey)===null||ie===void 0?void 0:ie.call(n))!==null&&me!==void 0?me:null);let ne=t.selectedKeys;if(ne.size){for(let re of ne)if(t.canSelectItem(re)){de=re;break}}t.setFocused(!0),t.setFocusedKey(de),de==null&&!g&&r.current&&uu(r.current)}},[]);let L=S.useRef(t.focusedKey);S.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==L.current||k.current)&&y.current&&r.current){let te=Ld(),ie=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!ie)return;(te==="keyboard"||k.current)&&(rw(y.current,ie),te!=="virtual"&&Od(ie,{containingElement:r.current}))}!g&&t.isFocused&&t.focusedKey==null&&L.current!=null&&r.current&&uu(r.current),L.current=t.focusedKey,k.current=!1}),cs(r,"react-aria-focus-scope-restore",te=>{te.preventDefault(),t.setFocused(!0)});let X={onKeyDown:D,onFocus:_,onBlur:B,onMouseDown(te){y.current===te.target&&te.preventDefault()}},{typeSelectProps:F}=DO({keyboardDelegate:n,selectionManager:t});h||(X=hn(F,X));let ge;return g||(ge=t.focusedKey==null?0:-1),{collectionProps:{...X,tabIndex:ge}}}function PO(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:c,onAction:d,allowsDifferentPressOrigin:h,linkBehavior:g="action"}=e,v=wh(),$=K=>{if(K.pointerType==="keyboard"&&Rg(K))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(g==="selection"&&r.current){let oe=t.getItemProps(n);v.open(r.current,K,oe.href,oe.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(g==="override"||g==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):K&&K.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||K&&(Nu(K)||K.pointerType==="touch"||K.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};S.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!a&&(s?s():document.activeElement!==r.current&&r.current&&uu(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),c=c||t.isDisabled(n);let y={};!a&&!c?y={tabIndex:n===t.focusedKey?0:-1,onFocus(K){K.target===r.current&&t.setFocusedKey(n)}}:c&&(y.onMouseDown=K=>{K.preventDefault()});let P=t.isLink(n)&&g==="override",T=t.isLink(n)&&g!=="selection"&&g!=="none",R=!c&&t.canSelectItem(n)&&!P,D=(d||T)&&!c,C=D&&(t.selectionBehavior==="replace"?!R:!R||t.isEmpty),_=D&&R&&t.selectionBehavior==="replace",B=C||_,k=S.useRef(null),L=B&&R,X=S.useRef(!1),F=S.useRef(!1),ge=K=>{if(d&&d(),T&&r.current){let oe=t.getItemProps(n);v.open(r.current,K,oe.href,oe.routerOptions)}},te={};i?(te.onPressStart=K=>{k.current=K.pointerType,X.current=L,K.pointerType==="keyboard"&&(!B||d4())&&$(K)},h?(te.onPressUp=C?void 0:K=>{K.pointerType!=="keyboard"&&R&&$(K)},te.onPress=C?ge:void 0):te.onPress=K=>{if(C||_&&K.pointerType!=="mouse"){if(K.pointerType==="keyboard"&&!f4())return;ge(K)}else K.pointerType!=="keyboard"&&R&&$(K)}):(te.onPressStart=K=>{k.current=K.pointerType,X.current=L,F.current=C,R&&(K.pointerType==="mouse"&&!C||K.pointerType==="keyboard"&&(!D||d4()))&&$(K)},te.onPress=K=>{(K.pointerType==="touch"||K.pointerType==="pen"||K.pointerType==="virtual"||K.pointerType==="keyboard"&&B&&f4()||K.pointerType==="mouse"&&F.current)&&(B?ge(K):R&&$(K))}),y["data-key"]=n,te.preventFocusOnPress=a;let{pressProps:ie,isPressed:De}=Hc(te),me=_?K=>{k.current==="mouse"&&(K.stopPropagation(),K.preventDefault(),ge(K))}:void 0,{longPressProps:de}=gw({isDisabled:!L,onLongPress(K){K.pointerType==="touch"&&($(K),t.setSelectionBehavior("toggle"))}}),ne=K=>{k.current==="touch"&&X.current&&K.preventDefault()},re=t.isLink(n)?K=>{ou.isOpening||K.preventDefault()}:void 0;return{itemProps:hn(y,R||C?ie:{},L?de:{},{onDoubleClick:me,onDragStartCapture:ne,onClick:re}),isPressed:De,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:c,allowsSelection:R,hasAction:B}}function f4(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function d4(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class h4{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(),a=r.getBoundingClientRect();return{x:a.left-i.left+n.scrollLeft,y:a.top-i.top+n.scrollTop,width:a.width,height:a.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,a;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:(a=t==null?void 0:t.offsetHeight)!==null&&a!==void 0?a:0}}constructor(t){this.ref=t}}class uC{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,a=this.layoutDelegate.getItemRect(i);if(!a||i==null)return null;let s=a;do{if(i=n(i),i==null)break;a=this.layoutDelegate.getItemRect(i)}while(a&&r(s,a)&&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 a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&i!=null;)i=this.getKeyAbove(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&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 a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&i!=null;)i=this.getKeyBelow(i),r=i==null?null:this.layoutDelegate.getItemRect(i)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&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 a=r.getItem(i);if(!a)return null;let s=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(s,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 h4(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 h4(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function TO(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,layoutDelegate:s}=e,c=Qw({usage:"search",sensitivity:"base"}),d=t.disabledBehavior,h=S.useMemo(()=>a||new uC({collection:n,disabledKeys:r,disabledBehavior:d,ref:i,collator:c,layoutDelegate:s}),[a,s,n,r,i,c,d]),{collectionProps:g}=sC({...e,ref:i,selectionManager:t,keyboardDelegate:h});return{listProps:g}}function _O(e,t,n){let r=Fo(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:s}=TO({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:c}=Cl({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),d=_i(e.id);kh.set(t,{id:d,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:h,fieldProps:g}=Th({...e,id:d,labelElementType:"span"});return{labelProps:h,listBoxProps:hn(r,c,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...hn(g,s)})}}function lC(e){return null}lC.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,s=t.title||t.children,c=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!c&&!(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:s,textValue:c,"aria-label":t["aria-label"],hasChildNodes:kO(t),*childNodes(){if(r)for(let d of r)yield{type:"item",value:d};else if(i){let d=[];S.Children.forEach(a,h=>{d.push({type:"item",element:h})}),yield*d}}}};function kO(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&S.Children.count(e.children)>0)}let RO=lC;class FO{build(t,n){return this.context=n,p4(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(S.isValidElement(n)&&n.type===S.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 a of r)yield*this.getFullNode({value:a,index:i},{renderer:n}),i++}else{let i=[];S.Children.forEach(n,s=>{s&&i.push(s)});let a=0;for(let s of i){let c=this.getFullNode({element:s,index:a},{});for(let d of c)a++,yield d}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var s;let c=(s=a.key)!==null&&s!==void 0?s:a.id;if(c==null)throw new Error("No key found for item");return c}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){if(S.isValidElement(t.element)&&t.element.type===S.Fragment){let R=[];S.Children.forEach(t.element.props.children,C=>{R.push(C)});var a;let D=(a=t.index)!==null&&a!==void 0?a:0;for(const C of R)yield*this.getFullNode({element:C,index:D++},n,r,i);return}let s=t.element;if(!s&&t.value&&n&&n.renderer){let R=this.cache.get(t.value);if(R&&(!R.shouldInvalidate||!R.shouldInvalidate(this.context))){R.index=t.index,R.parentKey=i?i.key:null,yield R;return}s=n.renderer(t.value)}if(S.isValidElement(s)){let R=s.type;if(typeof R!="function"&&typeof R.getCollectionNode!="function"){let B=s.type;throw new Error(`Unknown element <${B}> in collection.`)}let D=R.getCollectionNode(s.props,this.context);var c;let C=(c=t.index)!==null&&c!==void 0?c:0,_=D.next();for(;!_.done&&_.value;){let B=_.value;t.index=C;var d;let k=(d=B.key)!==null&&d!==void 0?d:null;k==null&&(k=B.element?null:this.getKey(s,t,n,r));let X=[...this.getFullNode({...B,key:k,index:C,wrapper:MO(t.wrapper,B.wrapper)},this.getChildState(n,B),r?`${r}${s.key}`:s.key,i)];for(let F of X){var h,g;F.value=(g=(h=B.value)!==null&&h!==void 0?h:t.value)!==null&&g!==void 0?g:null,F.value&&this.cache.set(F.value,F);var v;if(t.type&&F.type!==t.type)throw new Error(`Unsupported type <${$m(F.type)}> in <${$m((v=i==null?void 0:i.type)!==null&&v!==void 0?v:"unknown parent type")}>. Only <${$m(t.type)}> is supported.`);C++,yield F}_=D.next(X)}return}if(t.key==null||t.type==null)return;let $=this;var y,P;let T={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:(y=t.value)!==null&&y!==void 0?y:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:(P=t.textValue)!==null&&P!==void 0?P:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:p4(function*(){if(!t.hasChildNodes||!t.childNodes)return;let R=0;for(let D of t.childNodes()){D.key!=null&&(D.key=`${T.key}${D.key}`);let C=$.getFullNode({...D,index:R},$.getChildState(n,D),T.key,T);for(let _ of C)R++,yield _}})};yield T}constructor(){this.cache=new WeakMap}}function p4(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 MO(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function $m(e){return e[0].toUpperCase()+e.slice(1)}function OO(e,t,n){let r=S.useMemo(()=>new FO,[]),{children:i,items:a,collection:s}=e;return S.useMemo(()=>{if(s)return s;let d=r.build({children:i,items:a},n);return t(d)},[r,i,a,s,n,t])}function Rh(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function IO(e){return LO(e)}function LO(e,t){for(let n of e)return n}function wm(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...m4(e,t),t],i=[...m4(e,n),n],a=r.slice(0,i.length).findIndex((s,c)=>s!==i[c]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(s=>s===n)>=0?1:(i.findIndex(s=>s===t)>=0,-1)}function m4(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 g4=new WeakMap;function cC(e){let t=g4.get(e);if(t!=null)return t;let n=0,r=i=>{for(let a of i)a.type==="section"?r(Rh(a,e)):n++};return r(e),g4.set(e,n),n}function BO(e,t,n){var r,i;let{key:a}=e,s=kh.get(t);var c;let d=(c=e.isDisabled)!==null&&c!==void 0?c:t.selectionManager.isDisabled(a);var h;let g=(h=e.isSelected)!==null&&h!==void 0?h:t.selectionManager.isSelected(a);var v;let $=(v=e.shouldSelectOnPressUp)!==null&&v!==void 0?v:s==null?void 0:s.shouldSelectOnPressUp;var y;let P=(y=e.shouldFocusOnHover)!==null&&y!==void 0?y:s==null?void 0:s.shouldFocusOnHover;var T;let R=(T=e.shouldUseVirtualFocus)!==null&&T!==void 0?T:s==null?void 0:s.shouldUseVirtualFocus;var D;let C=(D=e.isVirtualized)!==null&&D!==void 0?D:s==null?void 0:s.isVirtualized,_=ll(),B=ll(),k={role:"option","aria-disabled":d||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?g:void 0};Ro()&&Av()||(k["aria-label"]=e["aria-label"],k["aria-labelledby"]=_,k["aria-describedby"]=B);let L=t.collection.getItem(a);if(C){let re=Number(L==null?void 0:L.index);k["aria-posinset"]=Number.isNaN(re)?void 0:re+1,k["aria-setsize"]=cC(t.collection)}let X=s!=null&&s.onAction?()=>{var re;return s==null||(re=s.onAction)===null||re===void 0?void 0:re.call(s,a)}:void 0,{itemProps:F,isPressed:ge,isFocused:te,hasAction:ie,allowsSelection:De}=PO({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:$,allowsDifferentPressOrigin:$&&P,isVirtualized:C,shouldUseVirtualFocus:R,isDisabled:d,onAction:X||!(L==null||(r=L.props)===null||r===void 0)&&r.onAction?au(L==null||(i=L.props)===null||i===void 0?void 0:i.onAction,X):void 0,linkBehavior:s==null?void 0:s.linkBehavior}),{hoverProps:me}=JF({isDisabled:d||!P,onHoverStart(){b1()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),de=Fo(L==null?void 0:L.props);delete de.id;let ne=_F(L==null?void 0:L.props);return{optionProps:{...k,...hn(de,F,me,ne),id:oC(t,a)},labelProps:{id:_},descriptionProps:{id:B},isFocused:te,isFocusVisible:te&&b1(),isSelected:g,isDisabled:d,isPressed:ge,allowsSelection:De,hasAction:ie}}var fC={};fC={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var dC={};dC={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var hC={};hC={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var pC={};pC={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var mC={};mC={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var gC={};gC={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var vC={};vC={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var yC={};yC={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var bC={};bC={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var $C={};$C={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var wC={};wC={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var xC={};xC={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var EC={};EC={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var CC={};CC={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var SC={};SC={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var DC={};DC={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var AC={};AC={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var PC={};PC={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var TC={};TC={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var _C={};_C={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var kC={};kC={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var RC={};RC={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var FC={};FC={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var MC={};MC={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var OC={};OC={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var IC={};IC={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var LC={};LC={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var BC={};BC={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var VC={};VC={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var NC={};NC={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var jC={};jC={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var KC={};KC={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var zC={};zC={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var UC={};UC={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var WC={};WC={"ar-AE":fC,"bg-BG":dC,"cs-CZ":hC,"da-DK":pC,"de-DE":mC,"el-GR":gC,"en-US":vC,"es-ES":yC,"et-EE":bC,"fi-FI":$C,"fr-FR":wC,"he-IL":xC,"hr-HR":EC,"hu-HU":CC,"it-IT":SC,"ja-JP":DC,"ko-KR":AC,"lt-LT":PC,"lv-LV":TC,"nb-NO":_C,"nl-NL":kC,"pl-PL":RC,"pt-BR":FC,"pt-PT":MC,"ro-RO":OC,"ru-RU":IC,"sk-SK":LC,"sl-SI":BC,"sr-SP":VC,"sv-SE":NC,"tr-TR":jC,"uk-UA":KC,"zh-CN":zC,"zh-TW":UC};function VO(e){return e&&e.__esModule?e.default:e}function NO(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,s=_i(),{triggerProps:c,overlayProps:d}=pO({type:r},t,n),h=y=>{if(!i&&!(a==="longPress"&&!y.altKey)&&n&&n.current)switch(y.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in y||y.stopPropagation(),y.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in y||y.stopPropagation(),y.preventDefault(),t.toggle("last");break;default:"continuePropagation"in y&&y.continuePropagation()}},g=Xa(VO(WC),"@react-aria/menu"),{longPressProps:v}=gw({isDisabled:i||a!=="longPress",accessibilityDescription:g.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),$={onPressStart(y){y.pointerType!=="touch"&&y.pointerType!=="keyboard"&&!i&&t.open(y.pointerType==="virtual"?"first":null)},onPress(y){y.pointerType==="touch"&&!i&&t.toggle()}};return delete c.onPress,{menuTriggerProps:{...c,...a==="press"?$:v,id:s,onKeyDown:h},menuProps:{...d,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function jO(e){return e&&e.__esModule?e.default:e}function KO(e,t){let{buttonRef:n,popoverRef:r,inputRef:i,listBoxRef:a,keyboardDelegate:s,layoutDelegate:c,shouldFocusWrap:d,isReadOnly:h,isDisabled:g}=e,v=S.useRef(null);n=n??v;let $=Xa(jO(tC),"@react-aria/combobox"),{menuTriggerProps:y,menuProps:P}=NO({type:"listbox",isDisabled:g||h},t,n);kh.set(t,{id:P.id});let{collection:T}=t,{disabledKeys:R}=t.selectionManager,D=S.useMemo(()=>s||new uC({collection:T,disabledKeys:R,ref:a,layoutDelegate:c}),[s,c,T,R,a]),{collectionProps:C}=sC({selectionManager:t.selectionManager,keyboardDelegate:D,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:d,ref:i,isVirtualized:!0}),_=wh(),B=Ke=>{if(!Ke.nativeEvent.isComposing)switch(Ke.key){case"Enter":case"Tab":if(t.isOpen&&Ke.key==="Enter"&&Ke.preventDefault(),t.isOpen&&a.current&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){let Oe=a.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(Ke.key==="Enter"&&Oe instanceof HTMLAnchorElement){let et=t.collection.getItem(t.selectionManager.focusedKey);et&&_.open(Oe,Ke,et.props.href,et.props.routerOptions)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ke.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}},k=Ke=>{var Oe;let et=(n==null?void 0:n.current)&&n.current===Ke.relatedTarget,wt=(Oe=r.current)===null||Oe===void 0?void 0:Oe.contains(Ke.relatedTarget);et||wt||(e.onBlur&&e.onBlur(Ke),t.setFocused(!1))},L=Ke=>{t.isFocused||(e.onFocus&&e.onFocus(Ke),t.setFocused(!0))},{isInvalid:X,validationErrors:F,validationDetails:ge}=t.displayValidation,{labelProps:te,inputProps:ie,descriptionProps:De,errorMessageProps:me}=Q9({...e,onChange:t.setInputValue,onKeyDown:h?e.onKeyDown:au(t.isOpen&&C.onKeyDown,B,e.onKeyDown),onBlur:k,value:t.inputValue,onFocus:L,autoComplete:"off",validate:void 0,[hl]:t},i),de=Ke=>{if(Ke.pointerType==="touch"){var Oe;(Oe=i.current)===null||Oe===void 0||Oe.focus(),t.toggle(null,"manual")}},ne=Ke=>{if(Ke.pointerType!=="touch"){var Oe;(Oe=i.current)===null||Oe===void 0||Oe.focus(),t.toggle(Ke.pointerType==="keyboard"||Ke.pointerType==="virtual"?"first":null,"manual")}},re=cl({id:y.id,"aria-label":$.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||te.id}),K=cl({id:P.id,"aria-label":$.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||te.id}),oe=S.useRef(0),Ce=Ke=>{if(g||h)return;if(Ke.timeStamp-oe.current<500){var Oe;Ke.preventDefault(),(Oe=i.current)===null||Oe===void 0||Oe.focus();return}let et=Ke.target.getBoundingClientRect(),wt=Ke.changedTouches[0],Lt=Math.ceil(et.left+.5*et.width),yt=Math.ceil(et.top+.5*et.height);if(wt.clientX===Lt&&wt.clientY===yt){var xt;Ke.preventDefault(),(xt=i.current)===null||xt===void 0||xt.focus(),t.toggle(null,"manual"),oe.current=Ke.timeStamp}},ee=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var pe;let Pe=(pe=ee==null?void 0:ee.parentKey)!==null&&pe!==void 0?pe:null;var Te;let Ve=(Te=t.selectionManager.focusedKey)!==null&&Te!==void 0?Te:null,Se=S.useRef(Pe),Je=S.useRef(Ve);S.useEffect(()=>{if(yd()&&ee!=null&&Ve!=null&&Ve!==Je.current){let Oe=t.selectionManager.isSelected(Ve),et=Pe!=null?t.collection.getItem(Pe):null,wt=(et==null?void 0:et["aria-label"])||(typeof(et==null?void 0:et.rendered)=="string"?et.rendered:"")||"";var Ke;let Lt=$.format("focusAnnouncement",{isGroupChange:(Ke=et&&Pe!==Se.current)!==null&&Ke!==void 0?Ke:!1,groupTitle:wt,groupCount:et?[...Rh(et,t.collection)].length:0,optionText:ee["aria-label"]||ee.textValue||"",isSelected:Oe});Xu(Lt)}Se.current=Pe,Je.current=Ve});let Ge=cC(t.collection),xe=S.useRef(Ge),Be=S.useRef(t.isOpen);S.useEffect(()=>{let Ke=t.isOpen!==Be.current&&(t.selectionManager.focusedKey==null||yd());if(t.isOpen&&(Ke||Ge!==xe.current)){let Oe=$.format("countAnnouncement",{optionCount:Ge});Xu(Oe)}xe.current=Ge,Be.current=t.isOpen});let qe=S.useRef(t.selectedKey);return S.useEffect(()=>{if(yd()&&t.isFocused&&t.selectedItem&&t.selectedKey!==qe.current){let Ke=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Oe=$.format("selectedAnnouncement",{optionText:Ke});Xu(Oe)}qe.current=t.selectedKey}),S.useEffect(()=>{if(t.isOpen)return iC([i.current,r.current].filter(Ke=>Ke!=null))},[t.isOpen,i,r]),{labelProps:te,buttonProps:{...y,...re,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:de,onPressStart:ne,isDisabled:g||h},inputProps:hn(ie,{role:"combobox","aria-expanded":y["aria-expanded"],"aria-controls":t.isOpen?P.id:void 0,"aria-autocomplete":"list","aria-activedescendant":ee?oC(t,ee.key):void 0,onTouchEnd:Ce,autoCorrect:"off",spellCheck:"false"}),listBoxProps:hn(P,K,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:De,errorMessageProps:me,isInvalid:X,validationErrors:F,validationDetails:ge}}var HC={};HC={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var GC={};GC={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 qC={};qC={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 YC={};YC={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 ZC={};ZC={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 JC={};JC={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 XC={};XC={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 QC={};QC={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 eS={};eS={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 tS={};tS={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 nS={};nS={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 rS={};rS={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 iS={};iS={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 aS={};aS={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 oS={};oS={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 sS={};sS={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 uS={};uS={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 lS={};lS={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 cS={};cS={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 fS={};fS={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 dS={};dS={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 hS={};hS={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 pS={};pS={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 mS={};mS={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 gS={};gS={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 vS={};vS={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 yS={};yS={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 bS={};bS={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 $S={};$S={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 wS={};wS={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 xS={};xS={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 ES={};ES={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 CS={};CS={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 SS={};SS={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 Qc={};Qc={"ar-AE":HC,"bg-BG":GC,"cs-CZ":qC,"da-DK":YC,"de-DE":ZC,"el-GR":JC,"en-US":XC,"es-ES":QC,"et-EE":eS,"fi-FI":tS,"fr-FR":nS,"he-IL":rS,"hr-HR":iS,"hu-HU":aS,"it-IT":oS,"ja-JP":sS,"ko-KR":uS,"lt-LT":lS,"lv-LV":cS,"nb-NO":fS,"nl-NL":dS,"pl-PL":hS,"pt-BR":pS,"pt-PT":mS,"ro-RO":gS,"ru-RU":vS,"sk-SK":yS,"sl-SI":bS,"sr-SP":$S,"sv-SE":wS,"tr-TR":xS,"uk-UA":ES,"zh-CN":CS,"zh-TW":SS};function Gv(e,t,n){let{direction:r}=ni(),i=S.useMemo(()=>Ch(t),[t]),a=d=>{if(d.currentTarget.contains(d.target)&&(d.altKey&&(d.key==="ArrowDown"||d.key==="ArrowUp")&&"setOpen"in e&&(d.preventDefault(),d.stopPropagation(),e.setOpen(!0)),!n))switch(d.key){case"ArrowLeft":d.preventDefault(),d.stopPropagation(),r==="rtl"?i.focusNext():i.focusPrevious();break;case"ArrowRight":d.preventDefault(),d.stopPropagation(),r==="rtl"?i.focusPrevious():i.focusNext();break}},s=()=>{var d;if(!t.current)return;let h=(d=window.event)===null||d===void 0?void 0:d.target,g=yi(t.current,{tabbable:!0});if(h&&(g.currentNode=h,h=g.previousNode()),!h){let v;do v=g.lastChild(),v&&(h=v);while(v)}for(;h!=null&&h.hasAttribute("data-placeholder");){let v=g.previousNode();if(v&&v.hasAttribute("data-placeholder"))h=v;else break}h&&h.focus()},{pressProps:c}=Hc({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&s()},onPress(d){d.pointerType!=="mouse"&&s()}});return hn(c,{onKeyDown:a})}function zO(e){return e&&e.__esModule?e.default:e}const DS=new WeakMap,xc="__role_"+Date.now(),AS="__focusManager_"+Date.now();function PS(e,t,n){var r;let{isInvalid:i,validationErrors:a,validationDetails:s}=t.displayValidation,{labelProps:c,fieldProps:d,descriptionProps:h,errorMessageProps:g}=_h({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a}),v=S.useRef(null),{focusWithinProps:$}=Cl({...e,onFocusWithin(te){var ie;v.current=t.value,(ie=e.onFocus)===null||ie===void 0||ie.call(e,te)},onBlurWithin:te=>{var ie;t.confirmPlaceholder(),t.value!==v.current&&t.commitValidation(),(ie=e.onBlur)===null||ie===void 0||ie.call(e,te)},onFocusWithinChange:e.onFocusChange}),y=Xa(zO(Qc),"@react-aria/datepicker"),P=t.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",T=t.maxGranularity==="hour"?"time":"date",R=t.value?y.format(P,{[T]:t.formatValue({month:"long"})}):"",D=Uc(R),C=e[xc]==="presentation"?d["aria-describedby"]:[D["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,_=e[AS],B=S.useMemo(()=>_||Ch(n),[_,n]),k=Gv(t,n,e[xc]==="presentation");DS.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:C,focusManager:B});let L=S.useRef(e.autoFocus),X;e[xc]==="presentation"?X={role:"presentation"}:X=hn(d,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":C}),S.useEffect(()=>{L.current&&B.focusFirst(),L.current=!1},[B]),Pv(e.inputRef,t.value,t.setValue),Vx({...e,focus(){B.focusFirst()}},t,e.inputRef);let F={type:"hidden",name:e.name,value:((r=t.value)===null||r===void 0?void 0:r.toString())||"",disabled:e.isDisabled};e.validationBehavior==="native"&&(F.type="text",F.hidden=!0,F.required=e.isRequired,F.onChange=()=>{});let ge=Fo(e);return{labelProps:{...c,onClick:()=>{B.focusFirst()}},fieldProps:hn(ge,X,k,$,{onKeyDown(te){e.onKeyDown&&e.onKeyDown(te)},onKeyUp(te){e.onKeyUp&&e.onKeyUp(te)}}),inputProps:F,descriptionProps:h,errorMessageProps:g,isInvalid:i,validationErrors:a,validationDetails:s}}function UO(e,t,n){var r;let i=PS(e,t,n);return i.inputProps.value=((r=t.timeValue)===null||r===void 0?void 0:r.toString())||"",i}function WO(e){return e&&e.__esModule?e.default:e}function HO(e,t,n){let r=_i(),i=_i(),a=_i(),s=Xa(WO(Qc),"@react-aria/datepicker"),{isInvalid:c,validationErrors:d,validationDetails:h}=t.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:$,errorMessageProps:y}=_h({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||d}),P=Gv(t,n),T=v["aria-labelledby"]||v.id,{locale:R}=ni(),D=t.formatValue(R,{month:"long"}),C=D?s.format("selectedDateDescription",{date:D}):"",_=Uc(C),B=[_["aria-describedby"],v["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=Fo(e),L=S.useMemo(()=>Ch(n),[n]),{focusWithinProps:X}=Cl({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:hn(k,P,v,_,X,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":T,"aria-describedby":B,onKeyDown(F){t.isOpen||e.onKeyDown&&e.onKeyDown(F)},onKeyUp(F){t.isOpen||e.onKeyUp&&e.onKeyUp(F)}}),labelProps:{...g,onClick:()=>{L.focusFirst()}},fieldProps:{...v,id:a,[xc]:"presentation","aria-describedby":B,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,[hl]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:$,errorMessageProps:y,buttonProps:{..._,id:r,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${r} ${T}`,"aria-describedby":B,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:i,"aria-labelledby":`${r} ${T}`},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:c,validationErrors:d,validationDetails:h}}function GO(e){return e&&e.__esModule?e.default:e}function qO(){let{locale:e}=ni(),t=xw(GO(Qc),"@react-aria/datepicker");return S.useMemo(()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch{return new YO(e,t)}},[e,t])}class YO{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,n){this.locale=t,this.dictionary=n}}function ZO(e,t,n){let r=S.useRef(""),{locale:i}=ni(),a=qO(),{ariaLabel:s,ariaLabelledBy:c,ariaDescribedBy:d,focusManager:h}=DS.get(t),g=e.isPlaceholder?"":e.text,v=S.useMemo(()=>t.dateFormatter.resolvedOptions(),[t.dateFormatter]),$=Ua({month:"long",timeZone:v.timeZone}),y=Ua({hour:"numeric",hour12:v.hour12,timeZone:v.timeZone});if(e.type==="month"&&!e.isPlaceholder){let oe=$.format(t.dateValue);g=oe!==g?`${g} – ${oe}`:oe}else e.type==="hour"&&!e.isPlaceholder&&(g=y.format(t.dateValue));let{spinButtonProps:P}=tO({value:e.value,textValue:g,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)}}),T=S.useMemo(()=>new Xw(i,{maximumFractionDigits:0}),[i]),R=()=>{if(e.text===e.placeholder&&h.focusPrevious(),T.isValidPartialNumber(e.text)&&!t.isReadOnly&&!e.isPlaceholder){let oe=e.text.slice(0,-1),Ce=T.parse(oe);oe=Ce===0?"":oe,oe.length===0||Ce===0?t.clearSegment(e.type):t.setSegment(e.type,Ce),r.current=oe}else e.type==="dayPeriod"&&t.clearSegment(e.type)},D=oe=>{if(oe.key==="a"&&(Ro()?oe.metaKey:oe.ctrlKey)&&oe.preventDefault(),!(oe.ctrlKey||oe.metaKey||oe.shiftKey||oe.altKey))switch(oe.key){case"Backspace":case"Delete":oe.preventDefault(),oe.stopPropagation(),R();break}},{startsWith:C}=ex({sensitivity:"base"}),_=Ua({hour:"numeric",hour12:!0}),B=S.useMemo(()=>{let oe=new Date;return oe.setHours(0),_.formatToParts(oe).find(Ce=>Ce.type==="dayPeriod").value},[_]),k=S.useMemo(()=>{let oe=new Date;return oe.setHours(12),_.formatToParts(oe).find(Ce=>Ce.type==="dayPeriod").value},[_]),L=Ua({year:"numeric",era:"narrow",timeZone:"UTC"}),X=S.useMemo(()=>{if(e.type!=="era")return[];let oe=Gn(new mr(1,1,1),t.calendar),Ce=t.calendar.getEras().map(pe=>{let Pe=oe.set({year:1,month:1,day:1,era:pe}).toDate("UTC"),Ve=L.formatToParts(Pe).find(Se=>Se.type==="era").value;return{era:pe,formatted:Ve}}),ee=JO(Ce.map(pe=>pe.formatted));if(ee)for(let pe of Ce)pe.formatted=pe.formatted.slice(ee);return Ce},[L,t.calendar,e.type]),F=oe=>{if(t.isDisabled||t.isReadOnly)return;let Ce=r.current+oe;switch(e.type){case"dayPeriod":if(C(B,oe))t.setSegment("dayPeriod",0);else if(C(k,oe))t.setSegment("dayPeriod",12);else break;h.focusNext();break;case"era":{let ee=X.find(pe=>C(pe.formatted,oe));ee&&(t.setSegment("era",ee.era),h.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!T.isValidPartialNumber(Ce))return;let ee=T.parse(Ce),pe=ee,Pe=e.minValue===0;if(e.type==="hour"&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":ee>11&&(pe=T.parse(oe));break;case"h12":Pe=!1,ee>12&&(pe=T.parse(oe));break}e.value!==void 0&&e.value>=12&&ee>1&&(ee+=12)}else e.maxValue!==void 0&&ee>e.maxValue&&(pe=T.parse(oe));if(isNaN(ee))return;let Te=pe!==0||Pe;Te&&t.setSegment(e.type,pe),e.maxValue!==void 0&&(+(ee+"0")>e.maxValue||Ce.length>=String(e.maxValue).length)?(r.current="",Te&&h.focusNext()):r.current=Ce;break}}},ge=()=>{r.current="",n.current&&Od(n.current,{containingElement:xh(n.current)});let oe=window.getSelection();oe==null||oe.collapse(n.current)},te=S.useRef(typeof document<"u"?document:null);cs(te,"selectionchange",()=>{var oe;let Ce=window.getSelection();Ce!=null&&Ce.anchorNode&&(!((oe=n.current)===null||oe===void 0)&&oe.contains(Ce==null?void 0:Ce.anchorNode))&&Ce.collapse(n.current)});let ie=S.useRef("");cs(n,"beforeinput",oe=>{if(n.current)switch(oe.preventDefault(),oe.inputType){case"deleteContentBackward":case"deleteContentForward":T.isValidPartialNumber(e.text)&&!t.isReadOnly&&R();break;case"insertCompositionText":ie.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:oe.data!=null&&F(oe.data);break}}),cs(n,"input",oe=>{let{inputType:Ce,data:ee}=oe;switch(Ce){case"insertCompositionText":n.current&&(n.current.textContent=ie.current),ee!=null&&(C(B,ee)||C(k,ee))&&F(ee);break}}),Ln(()=>{let oe=n.current;return()=>{document.activeElement===oe&&(h.focusPrevious()||h.focusNext())}},[n,h]);let De=zc()||e.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},me=S.useMemo(()=>t.segments.find(oe=>oe.isEditable),[t.segments]);e!==me&&!t.isInvalid&&(d=void 0);let de=_i(),ne=!t.isDisabled&&!t.isReadOnly&&e.isEditable,re=e.type==="literal"?"":a.of(e.type),K=cl({"aria-label":`${re}${s?`, ${s}`:""}${c?", ":""}`,"aria-labelledby":c});return e.type==="literal"?{segmentProps:{"aria-hidden":!0}}:{segmentProps:hn(P,K,{id:de,...De,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":d,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:ne,suppressContentEditableWarning:ne,spellCheck:ne?"false":void 0,autoCorrect:ne?"off":void 0,[parseInt(S.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ne?"next":void 0,inputMode:t.isDisabled||e.type==="dayPeriod"||e.type==="era"||!ne?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:D,onFocus:ge,style:{caretColor:"transparent"},onPointerDown(oe){oe.stopPropagation()},onMouseDown(oe){oe.stopPropagation()}})}}function JO(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 XO(e){return e&&e.__esModule?e.default:e}function QO(e,t,n){var r,i,a;let s=Xa(XO(Qc),"@react-aria/datepicker"),{isInvalid:c,validationErrors:d,validationDetails:h}=t.displayValidation,{labelProps:g,fieldProps:v,descriptionProps:$,errorMessageProps:y}=_h({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||d}),P=v["aria-labelledby"]||v.id,{locale:T}=ni(),R=t.formatValue(T,{month:"long"}),D=R?s.format("selectedRangeDescription",{startDate:R.start,endDate:R.end}):"",C=Uc(D),_={"aria-label":s.format("startDate"),"aria-labelledby":P},B={"aria-label":s.format("endDate"),"aria-labelledby":P},k=_i(),L=_i(),X=Gv(t,n),F=[C["aria-describedby"],v["aria-describedby"]].filter(Boolean).join(" ")||void 0,ge=S.useMemo(()=>Ch(n,{accept:K=>K.id!==k}),[n,k]),te={[AS]:ge,[xc]:"presentation","aria-describedby":F,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},ie=Fo(e),{focusWithinProps:De}=Cl({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),me=S.useRef(zs),de=S.useRef(zs);var ne,re;return{groupProps:hn(ie,X,v,C,De,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(K){t.isOpen||e.onKeyDown&&e.onKeyDown(K)},onKeyUp(K){t.isOpen||e.onKeyUp&&e.onKeyUp(K)}}),labelProps:{...g,onClick:()=>{ge.focusFirst()}},buttonProps:{...C,id:k,"aria-haspopup":"dialog","aria-label":s.format("calendar"),"aria-labelledby":`${k} ${P}`,"aria-describedby":F,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:L,"aria-labelledby":`${k} ${P}`},startFieldProps:{..._,...te,value:(ne=(r=t.value)===null||r===void 0?void 0:r.start)!==null&&ne!==void 0?ne:null,onChange:K=>t.setDateTime("start",K),autoFocus:e.autoFocus,name:e.startName,[hl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(K){me.current=K,t.updateValidation(Hd(K,de.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...B,...te,value:(re=(i=t.value)===null||i===void 0?void 0:i.end)!==null&&re!==void 0?re:null,onChange:K=>t.setDateTime("end",K),name:e.endName,[hl]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(K){de.current=K,t.updateValidation(Hd(me.current,K))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:$,errorMessageProps:y,calendarProps:{autoFocus:!0,value:!((a=t.dateRange)===null||a===void 0)&&a.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:c,validationErrors:d,validationDetails:h}}function e8(e,t){let{role:n="dialog"}=e,r=ll();r=e["aria-label"]?void 0:r;let i=S.useRef(!1);return S.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){uu(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),uu(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),EO(),{dialogProps:{...Fo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function el(e,t,n){return t!=null&&e.compare(t)<0||n!=null&&e.compare(n)>0}function Fg(e,t,n,r,i){let a={};for(let c in t)a[c]=Math.floor(t[c]/2),a[c]>0&&t[c]%2===0&&a[c]--;let s=Gs(e,t,n).subtract(a);return kc(e,s,t,n,r,i)}function Gs(e,t,n,r,i){let a=e;return t.years?a=DM(e):t.months?a=Yc(e):t.weeks&&(a=Ac(e,n)),kc(e,a,t,n,r,i)}function Mg(e,t,n,r,i){let a={...t};a.days?a.days--:a.weeks?a.weeks--:a.months?a.months--:a.years&&a.years--;let s=Gs(e,t,n).subtract(a);return kc(e,s,t,n,r,i)}function kc(e,t,n,r,i,a){if(i&&e.compare(i)>=0){let s=Iv(t,Gs(li(i),n,r));s&&(t=s)}if(a&&e.compare(a)<=0){let s=Ov(t,Mg(li(a),n,r));s&&(t=s)}return t}function Qo(e,t,n){if(t){let r=Iv(e,li(t));r&&(e=r)}if(n){let r=Ov(e,li(n));r&&(e=r)}return e}function TS(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 _S(e){let t=S.useMemo(()=>new Zi(e.locale),[e.locale]),n=S.useMemo(()=>t.resolvedOptions(),[t]),{locale:r,createCalendar:i,visibleDuration:a={months:1},minValue:s,maxValue:c,selectionAlignment:d,isDateUnavailable:h,pageBehavior:g="visible"}=e,v=S.useMemo(()=>i(n.calendar),[i,n.calendar]);var $;let[y,P]=ki(e.value,($=e.defaultValue)!==null&&$!==void 0?$:null,e.onChange),T=S.useMemo(()=>y?Gn(li(y),v):null,[y,v]),R=S.useMemo(()=>y&&"timeZone"in y?y.timeZone:n.timeZone,[y,n.timeZone]),D=S.useMemo(()=>e.focusedValue?Qo(Gn(li(e.focusedValue),v),s,c):void 0,[e.focusedValue,v,s,c]),C=S.useMemo(()=>Qo(e.defaultFocusedValue?Gn(li(e.defaultFocusedValue),v):T||Gn(Dh(R),v),s,c),[e.defaultFocusedValue,T,R,v,s,c]),[_,B]=ki(D,C,e.onFocusChange),[k,L]=S.useState(()=>{switch(d){case"start":return Gs(_,a,r,s,c);case"end":return Mg(_,a,r,s,c);case"center":default:return Fg(_,a,r,s,c)}}),[X,F]=S.useState(e.autoFocus||!1),ge=S.useMemo(()=>{let ee={...a};return ee.days?ee.days--:ee.days=-1,k.add(ee)},[k,a]),[te,ie]=S.useState(v.identifier);if(v.identifier!==te){let ee=Gn(_,v);L(Fg(ee,a,r,s,c)),B(ee),ie(v.identifier)}el(_,s,c)?B(Qo(_,s,c)):_.compare(k)<0?L(Mg(_,a,r,s,c)):_.compare(ge)>0&&L(Gs(_,a,r,s,c));function De(ee){ee=Qo(ee,s,c),B(ee)}function me(ee){if(!e.isDisabled&&!e.isReadOnly){let pe=ee;if(pe===null){P(null);return}if(pe=Qo(pe,s,c),pe=TS(pe,k,h),!pe)return;pe=Gn(pe,(y==null?void 0:y.calendar)||new ci),y&&"hour"in y?P(y.set(pe)):P(pe)}}let de=S.useMemo(()=>T?h&&h(T)?!0:el(T,s,c):!1,[T,h,s,c]),ne=e.isInvalid||e.validationState==="invalid"||de,re=ne?"invalid":null,K=S.useMemo(()=>g==="visible"?a:xm(a),[g,a]);var oe,Ce;return{isDisabled:(oe=e.isDisabled)!==null&&oe!==void 0?oe:!1,isReadOnly:(Ce=e.isReadOnly)!==null&&Ce!==void 0?Ce:!1,value:T,setValue:me,visibleRange:{start:k,end:ge},minValue:s,maxValue:c,focusedDate:_,timeZone:R,validationState:re,isValueInvalid:ne,setFocusedDate(ee){De(ee),F(!0)},focusNextDay(){De(_.add({days:1}))},focusPreviousDay(){De(_.subtract({days:1}))},focusNextRow(){a.days?this.focusNextPage():(a.weeks||a.months||a.years)&&De(_.add({weeks:1}))},focusPreviousRow(){a.days?this.focusPreviousPage():(a.weeks||a.months||a.years)&&De(_.subtract({weeks:1}))},focusNextPage(){let ee=k.add(K);B(Qo(_.add(K),s,c)),L(Gs(kc(_,ee,K,r,s,c),K,r))},focusPreviousPage(){let ee=k.subtract(K);B(Qo(_.subtract(K),s,c)),L(Gs(kc(_,ee,K,r,s,c),K,r))},focusSectionStart(){a.days?De(k):a.weeks?De(Ac(_,r)):(a.months||a.years)&&De(Yc(_))},focusSectionEnd(){a.days?De(ge):a.weeks?De(TM(_,r)):(a.months||a.years)&&De(bg(_))},focusNextSection(ee){if(!ee&&!a.days){De(_.add(xm(a)));return}a.days?this.focusNextPage():a.weeks?De(_.add({months:1})):(a.months||a.years)&&De(_.add({years:1}))},focusPreviousSection(ee){if(!ee&&!a.days){De(_.subtract(xm(a)));return}a.days?this.focusPreviousPage():a.weeks?De(_.subtract({months:1})):(a.months||a.years)&&De(_.subtract({years:1}))},selectFocusedDate(){me(_)},selectDate(ee){me(ee)},isFocused:X,setFocused:F,isInvalid(ee){return el(ee,s,c)},isSelected(ee){return T!=null&&Pr(ee,T)&&!this.isCellDisabled(ee)&&!this.isCellUnavailable(ee)},isCellFocused(ee){return X&&_&&Pr(ee,_)},isCellDisabled(ee){return e.isDisabled||ee.compare(k)<0||ee.compare(ge)>0||this.isInvalid(ee)},isCellUnavailable(ee){return e.isDateUnavailable?e.isDateUnavailable(ee):!1},isPreviousVisibleRangeInvalid(){let ee=k.subtract({days:1});return Pr(ee,k)||this.isInvalid(ee)},isNextVisibleRangeInvalid(){let ee=ge.add({days:1});return Pr(ee,ge)||this.isInvalid(ee)},getDatesInWeek(ee,pe=k){let Pe=pe.add({weeks:ee}),Te=[];Pe=Ac(Pe,r);let Ve=Mv(Pe,r);for(let Se=0;Se<Ve;Se++)Te.push(null);for(;Te.length<7;){Te.push(Pe);let Se=Pe.add({days:1});if(Pr(Pe,Se))break;Pe=Se}for(;Te.length<7;)Te.push(null);return Te}}}function xm(e){let t={...e};for(let n in e)t[n]=1;return t}function t8(e){let{value:t,defaultValue:n,onChange:r,createCalendar:i,locale:a,visibleDuration:s={months:1},minValue:c,maxValue:d,...h}=e,[g,v]=ki(t,n||null,r),[$,y]=S.useState(null),P="center";if(g&&g.start&&g.end){let oe=Fg(li(g.start),s,a,c,d).add(s).subtract({days:1});g.end.compare(oe)>0&&(P="start")}let T=S.useRef(null),[R,D]=S.useState(null),C=S.useMemo(()=>Iv(c,R==null?void 0:R.start),[c,R]),_=S.useMemo(()=>Ov(d,R==null?void 0:R.end),[d,R]),B=_S({...h,value:g&&g.start,createCalendar:i,locale:a,visibleDuration:s,minValue:C,maxValue:_,selectionAlignment:P}),k=K=>{if(K&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const oe=y4(K,B,-1),Ce=y4(K,B,1);T.current={start:oe,end:Ce},D(T.current)}else T.current=null,D(null)},[L,X]=S.useState(B.visibleRange);(!yg(B.visibleRange.start,L.start)||!yg(B.visibleRange.end,L.end))&&(k($),X(B.visibleRange));let F=K=>{K?(y(K),k(K)):(y(null),k(null))},ge=$?Em($,B.focusedDate):g&&Em(g.start,g.end),te=K=>{if(e.isReadOnly)return;const oe=Qo(K,C,_),Ce=TS(oe,B.visibleRange.start,e.isDateUnavailable);if(Ce)if(!$)F(Ce);else{let ee=Em($,Ce);ee&&v({start:v4(ee.start,g==null?void 0:g.start),end:v4(ee.end,g==null?void 0:g.end)}),F(null)}},[ie,De]=S.useState(!1),{isDateUnavailable:me}=e,de=S.useMemo(()=>!g||$?!1:me&&(me(g.start)||me(g.end))?!0:el(g.start,c,d)||el(g.end,c,d),[me,g,$,c,d]),ne=e.isInvalid||e.validationState==="invalid"||de;return{...B,value:g,setValue:v,anchorDate:$,setAnchorDate:F,highlightedRange:ge,validationState:ne?"invalid":null,isValueInvalid:ne,selectFocusedDate(){te(B.focusedDate)},selectDate:te,highlightDate(K){$&&B.setFocusedDate(K)},isSelected(K){return!!(ge&&K.compare(ge.start)>=0&&K.compare(ge.end)<=0&&!B.isCellDisabled(K)&&!B.isCellUnavailable(K))},isInvalid(K){var oe,Ce;return B.isInvalid(K)||el(K,(oe=T.current)===null||oe===void 0?void 0:oe.start,(Ce=T.current)===null||Ce===void 0?void 0:Ce.end)},isDragging:ie,setDragging:De}}function Em(e,t){return!e||!t?null:(t.compare(e)<0&&([e,t]=[t,e]),{start:li(e),end:li(t)})}function v4(e,t){return e=Gn(e,(t==null?void 0:t.calendar)||new ci),t&&"hour"in t?t.set(e):e}function y4(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 Og{*[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=s=>{if(this.keyMap.set(s.key,s),s.childNodes&&s.type==="section")for(let c of s.childNodes)n(c)};for(let s of t)n(s);let r=null,i=0;for(let[s,c]of this.keyMap)r?(r.nextKey=s,c.prevKey=r.key):(this.firstKey=s,c.prevKey=void 0),c.type==="item"&&(c.index=i++),r=c,r.nextKey=void 0;var a;this.lastKey=(a=r==null?void 0:r.key)!==null&&a!==void 0?a:null}}class pa extends Set{constructor(t,n,r){super(t),t instanceof pa?(this.anchorKey=n??t.anchorKey,this.currentKey=r??t.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}function n8(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function r8(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,s=S.useRef(!1),[,c]=S.useState(!1),d=S.useRef(null),h=S.useRef(null),[,g]=S.useState(null),v=S.useMemo(()=>b4(e.selectedKeys),[e.selectedKeys]),$=S.useMemo(()=>b4(e.defaultSelectedKeys,new pa),[e.defaultSelectedKeys]),[y,P]=ki(v,$,e.onSelectionChange),T=S.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[R,D]=S.useState(i);i==="replace"&&R==="toggle"&&typeof y=="object"&&y.size===0&&D("replace");let C=S.useRef(i);return S.useEffect(()=>{i!==C.current&&(D(i),C.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:R,setSelectionBehavior:D,get isFocused(){return s.current},setFocused(_){s.current=_,c(_)},get focusedKey(){return d.current},get childFocusStrategy(){return h.current},setFocusedKey(_,B="first"){d.current=_,h.current=B,g(_)},selectedKeys:y,setSelectedKeys(_){(r||!n8(_,y))&&P(_)},disabledKeys:T,disabledBehavior:a}}function b4(e,t){return e?e==="all"?"all":new pa(e):t}class i8{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&&wm(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&&wm(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 pa([n],n,n);else{let s=this.state.selectedKeys;var i;let c=(i=s.anchorKey)!==null&&i!==void 0?i:n;r=new pa(s,c,n);var a;for(let d of this.getKeyRange(c,(a=s.currentKey)!==null&&a!==void 0?a:n))r.delete(d);for(let d of this.getKeyRange(n,c))this.canSelectItem(d)&&r.add(d)}this.state.setSelectedKeys(r)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?wm(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=[],a=t;for(;a!=null;){let s=this.collection.getItem(a);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&i.push(a),a===n)return i;a=this.collection.getKeyAfter(a)}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 pa(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 pa([n],n,n):new pa;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new pa;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 s=this.collection.getItem(r);(s==null?void 0:s.type)==="item"&&t.push(r);var a;s!=null&&s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&n((a=(i=IO(Rh(s,this.collection)))===null||i===void 0?void 0:i.key)!==null&&a!==void 0?a: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 pa)}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 a8(e){let{filter:t,layoutDelegate:n}=e,r=r8(e),i=S.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=S.useCallback(g=>t?new Og(t(g)):new Og(g),[t]),s=S.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),c=OO(e,a,s),d=S.useMemo(()=>new i8(c,r,{layoutDelegate:n}),[c,r,n]);const h=S.useRef(null);return S.useEffect(()=>{if(r.focusedKey!=null&&!c.getItem(r.focusedKey)&&h.current){const D=h.current.getItem(r.focusedKey),C=[...h.current.getKeys()].map(F=>{const ge=h.current.getItem(F);return(ge==null?void 0:ge.type)==="item"?ge:null}).filter(F=>F!==null),_=[...c.getKeys()].map(F=>{const ge=c.getItem(F);return(ge==null?void 0:ge.type)==="item"?ge:null}).filter(F=>F!==null);var g,v;const B=((g=C==null?void 0:C.length)!==null&&g!==void 0?g:0)-((v=_==null?void 0:_.length)!==null&&v!==void 0?v:0);var $,y,P;let k=Math.min(B>1?Math.max((($=D==null?void 0:D.index)!==null&&$!==void 0?$:0)-B+1,0):(y=D==null?void 0:D.index)!==null&&y!==void 0?y:0,((P=_==null?void 0:_.length)!==null&&P!==void 0?P:0)-1),L=null,X=!1;for(;k>=0;){if(!d.isDisabled(_[k].key)){L=_[k];break}if(k<_.length-1&&!X)k++;else{X=!0;var T,R;k>((T=D==null?void 0:D.index)!==null&&T!==void 0?T:0)&&(k=(R=D==null?void 0:D.index)!==null&&R!==void 0?R:0),k--}}r.setFocusedKey(L?L.key:null)}h.current=c},[c,d,r,r.focusedKey]),{collection:c,disabledKeys:i,selectionManager:d}}function o8(e){var t;let[n,r]=ki(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=S.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:s,selectionManager:c}=a8({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:h=>{if(h==="all")return;var g;let v=(g=h.values().next().value)!==null&&g!==void 0?g:null;v===n&&e.onSelectionChange&&e.onSelectionChange(v),r(v)}}),d=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:s,selectionManager:c,selectedKey:n,setSelectedKey:r,selectedItem:d}}function qv(e){let[t,n]=ki(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=S.useCallback(()=>{n(!0)},[n]),i=S.useCallback(()=>{n(!1)},[n]),a=S.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function s8(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:s=!0}=e,[c,d]=S.useState(!1),[h,g]=S.useState(!1),[v,$]=S.useState(null),y=tt=>{e.onSelectionChange&&e.onSelectionChange(tt),tt===D&&(Ve(),pe())};var P;let{collection:T,selectionManager:R,selectedKey:D,setSelectedKey:C,selectedItem:_,disabledKeys:B}=o8({...e,onSelectionChange:y,items:(P=e.items)!==null&&P!==void 0?P:e.defaultItems}),k=e.defaultInputValue;if(k==null){var L,X;D==null?k="":k=(X=(L=T.getItem(D))===null||L===void 0?void 0:L.textValue)!==null&&X!==void 0?X:""}let[F,ge]=ki(e.inputValue,k,e.onInputChange),te=T,ie=S.useMemo(()=>e.items!=null||!n?T:u8(T,F,n),[T,F,n,e.items]),[De,me]=S.useState(ie),de=S.useRef("focus"),re=qv({...e,onOpenChange:tt=>{e.onOpenChange&&e.onOpenChange(tt,tt?de.current:void 0),R.setFocused(tt),tt||R.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),K=(tt=null,Et)=>{let At=Et==="manual"||Et==="focus"&&r==="focus";(i||ie.size>0||At&&te.size>0||e.items)&&(At&&!re.isOpen&&e.items===void 0&&d(!0),de.current=Et,$(tt),re.open())},oe=(tt=null,Et)=>{let At=Et==="manual"||Et==="focus"&&r==="focus";!(i||ie.size>0||At&&te.size>0||e.items)&&!re.isOpen||(At&&!re.isOpen&&e.items===void 0&&d(!0),re.isOpen||(de.current=Et),ee(tt))},Ce=S.useCallback(()=>{me(c?te:ie)},[c,te,ie]),ee=S.useCallback((tt=null)=>{re.isOpen&&Ce(),$(tt),re.toggle()},[re,Ce]),pe=S.useCallback(()=>{re.isOpen&&(Ce(),re.close())},[re,Ce]),[Pe,Te]=S.useState(F),Ve=()=>{var tt,Et;let At=D!=null&&(Et=(tt=T.getItem(D))===null||tt===void 0?void 0:tt.textValue)!==null&&Et!==void 0?Et:"";Te(At),ge(At)};var Se,Je;let Ge=S.useRef((Je=(Se=e.selectedKey)!==null&&Se!==void 0?Se:e.defaultSelectedKey)!==null&&Je!==void 0?Je:null);var xe;let Be=S.useRef(D!=null&&(xe=(t=T.getItem(D))===null||t===void 0?void 0:t.textValue)!==null&&xe!==void 0?xe:"");S.useEffect(()=>{var tt;h&&(ie.size>0||i)&&!re.isOpen&&F!==Pe&&r!=="manual"&&K(null,"input"),!c&&!i&&re.isOpen&&ie.size===0&&pe(),D!=null&&D!==Ge.current&&pe(),F!==Pe&&(R.setFocusedKey(null),d(!1),F===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&C(null)),D!==Ge.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Ve():Pe!==F&&Te(F);var Et;let At=D!=null&&(Et=(tt=T.getItem(D))===null||tt===void 0?void 0:tt.textValue)!==null&&Et!==void 0?Et:"";!h&&D!=null&&e.inputValue===void 0&&D===Ge.current&&Be.current!==At&&(Te(At),ge(At)),Ge.current=D,Be.current=At});let qe=Xc({...e,value:S.useMemo(()=>({inputValue:F,selectedKey:D}),[F,D])}),Ke=()=>{a&&D==null?Oe():et()},Oe=()=>{Ge.current=null,C(null),pe()},et=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var tt,Et;(tt=e.onSelectionChange)===null||tt===void 0||tt.call(e,D);var At;let Bn=D!=null&&(At=(Et=T.getItem(D))===null||Et===void 0?void 0:Et.textValue)!==null&&At!==void 0?At:"";Te(Bn),pe()}else Ve(),pe()};const wt=()=>{if(a){var tt,Et;const At=D!=null&&(Et=(tt=T.getItem(D))===null||tt===void 0?void 0:tt.textValue)!==null&&Et!==void 0?Et:"";F===At?et():Oe()}else et()};let Lt=()=>{re.isOpen&&R.focusedKey!=null?D===R.focusedKey?et():C(R.focusedKey):wt()},yt=S.useRef(F),xt=tt=>{tt?(yt.current=F,r==="focus"&&!e.isReadOnly&&K(null,"focus")):(s&&wt(),F!==yt.current&&qe.commitValidation()),g(tt)},Yn=S.useMemo(()=>re.isOpen?c?te:ie:De,[re.isOpen,te,ie,c,De]);return{...qe,...re,focusStrategy:v,toggle:oe,open:K,close:wt,selectionManager:R,selectedKey:D,setSelectedKey:C,disabledKeys:B,isFocused:h,setFocused:xt,selectedItem:_,collection:Yn,inputValue:F,setInputValue:ge,commit:Lt,revert:Ke}}function u8(e,t,n){return new Og(kS(e,e,t,n))}function kS(e,t,n,r){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let s=kS(e,Rh(a,e),n,r);[...s].some(c=>c.type==="item")&&i.push({...a,childNodes:s})}else a.type==="item"&&r(a.textValue,n)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}var RS={};RS={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var FS={};FS={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var MS={};MS={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 OS={};OS={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 IS={};IS={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 LS={};LS={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var BS={};BS={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 VS={};VS={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 NS={};NS={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 jS={};jS={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 KS={};KS={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 zS={};zS={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var US={};US={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 WS={};WS={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 HS={};HS={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 GS={};GS={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var qS={};qS={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var YS={};YS={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 ZS={};ZS={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 JS={};JS={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 XS={};XS={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 QS={};QS={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 e2={};e2={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 t2={};t2={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 n2={};n2={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 r2={};r2={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var i2={};i2={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 a2={};a2={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 o2={};o2={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 s2={};s2={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 u2={};u2={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 l2={};l2={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var c2={};c2={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var f2={};f2={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};var d2={};d2={"ar-AE":RS,"bg-BG":FS,"cs-CZ":MS,"da-DK":OS,"de-DE":IS,"el-GR":LS,"en-US":BS,"es-ES":VS,"et-EE":NS,"fi-FI":jS,"fr-FR":KS,"he-IL":zS,"hr-HR":US,"hu-HU":WS,"it-IT":HS,"ja-JP":GS,"ko-KR":qS,"lt-LT":YS,"lv-LV":ZS,"nb-NO":JS,"nl-NL":XS,"pl-PL":QS,"pt-BR":e2,"pt-PT":t2,"ro-RO":n2,"ru-RU":r2,"sk-SK":i2,"sl-SI":a2,"sr-SP":o2,"sv-SE":s2,"tr-TR":u2,"uk-UA":l2,"zh-CN":c2,"zh-TW":f2};function l8(e){return e&&e.__esModule?e.default:e}const h2=new $s(l8(d2));function p2(){return typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US"}function qd(e,t,n,r,i){let a=e!=null&&n!=null&&e.compare(n)>0,s=e!=null&&t!=null&&e.compare(t)<0,c=e!=null&&(r==null?void 0:r(e))||!1,d=a||s||c,h=[];if(d){let g=p2(),v=$s.getGlobalDictionaryForPackage("@react-stately/datepicker")||h2,$=new ww(g,v),y=new Zi(g,_o({},i)),P=y.resolvedOptions().timeZone;s&&t!=null&&h.push($.format("rangeUnderflow",{minValue:y.format(t.toDate(P))})),a&&n!=null&&h.push($.format("rangeOverflow",{maxValue:y.format(n.toDate(P))})),c&&h.push($.format("unavailableDate"))}return{isInvalid:d,validationErrors:h,validationDetails:{badInput:c,customError:!1,patternMismatch:!1,rangeOverflow:a,rangeUnderflow:s,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!d}}}function c8(e,t,n,r,i){var a;let s=qd((a=e==null?void 0:e.start)!==null&&a!==void 0?a:null,t,n,r,i);var c;let d=qd((c=e==null?void 0:e.end)!==null&&c!==void 0?c:null,t,n,r,i),h=Hd(s,d);if((e==null?void 0:e.end)!=null&&e.start!=null&&e.end.compare(e.start)<0){let g=$s.getGlobalDictionaryForPackage("@react-stately/datepicker")||h2;h=Hd(h,{isInvalid:!0,validationErrors:[g.getStringForLocale("rangeReversed",p2())],validationDetails:{...Ph,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return h}const f8={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},d8={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function _o(e,t){e={...t.shouldForceLeadingZeros?d8:f8,...e};let r=t.granularity||"minute",i=Object.keys(e);var a;let s=i.indexOf((a=t.maxGranularity)!==null&&a!==void 0?a:"year");s<0&&(s=0);let c=i.indexOf(r);if(c<0&&(c=2),s>c)throw new Error("maxGranularity must be greater than granularity");let d=i.slice(s,c+1).reduce((g,v)=>(g[v]=e[v],g),{});return t.hourCycle!=null&&(d.hour12=t.hourCycle===12),d.timeZone=t.timeZone||"UTC",(r==="hour"||r==="minute"||r==="second")&&t.timeZone&&!t.hideTimeZone&&(d.timeZoneName="short"),t.showEra&&s===0&&(d.era="short"),d}function Uu(e){return e&&"hour"in e?e:new Zc}function m2(e,t){if(e===null)return null;if(e)return Gn(e,t)}function rc(e,t,n,r){if(e)return m2(e,n);let i=Gn(Sw(r??qc()).set({hour:0,minute:0,second:0,millisecond:0}),n);return t==="year"||t==="month"||t==="day"?li(i):r?i:wa(i)}function Yv(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,a]=S.useState([r,n]);e&&(i[0]!==r||i[1]!==n)&&a([r,n]),t||(t=e?r:i[0]);let s=e?n:i[1];return[t,s]}function h8(e){let t=qv(e),[n,r]=ki(e.value,e.defaultValue||null,e.onChange),i=n||e.placeholderValue||null,[a,s]=Yv(i,e.granularity),c=n!=null?n.toDate(s??"UTC"):null,d=a==="hour"||a==="minute"||a==="second";var h;let g=(h=e.shouldCloseOnSelect)!==null&&h!==void 0?h:!0,[v,$]=S.useState(null),[y,P]=S.useState(null);if(n&&(v=n,"hour"in n&&(y=n)),i&&!(a in i))throw new Error("Invalid granularity "+a+" for value "+i.toString());let T=(n==null?void 0:n.calendar.identifier)==="gregory"&&n.era==="BC",R=S.useMemo(()=>({granularity:a,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:T}),[a,e.hourCycle,e.shouldForceLeadingZeros,s,e.hideTimeZone,T]),{minValue:D,maxValue:C,isDateUnavailable:_}=e,B=S.useMemo(()=>qd(n,D,C,_,R),[n,D,C,_,R]),k=Xc({...e,value:n,builtinValidation:B}),L=k.displayValidation.isInvalid,X=e.validationState||(L?"invalid":null),F=(ie,De)=>{r("timeZone"in De?De.set(li(ie)):wa(ie,De)),$(null),P(null),k.commitValidation()};return{...k,value:n,setValue:r,dateValue:v,timeValue:y,setDateValue:ie=>{let De=typeof g=="function"?g():g;d?y||De?F(ie,y||Uu(e.defaultValue||e.placeholderValue)):$(ie):(r(ie),k.commitValidation()),De&&t.setOpen(!1)},setTimeValue:ie=>{v&&ie?F(v,ie):P(ie)},granularity:a,hasTime:d,...t,setOpen(ie){!ie&&!n&&v&&d&&F(v,y||Uu(e.defaultValue||e.placeholderValue)),t.setOpen(ie)},validationState:X,isInvalid:L,formatValue(ie,De){if(!c)return"";let me=_o(De,R);return new Zi(ie,me).format(c)},getDateFormatter(ie,De){let me={...R,...De},de=_o({},me);return new Zi(ie,de)}}}const p8=new $s({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 m8(e,t,n){return e==="era"||e==="dayPeriod"?t:e==="year"||e==="month"||e==="day"?p8.getStringForLocale(e,n):"––"}const ad={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},$4={year:5,month:2,day:7,hour:2,minute:15,second:15},g8={dayperiod:"dayPeriod"};function g2(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:i=!1,isReadOnly:a=!1,isRequired:s=!1,minValue:c,maxValue:d,isDateUnavailable:h}=e,g=e.value||e.defaultValue||e.placeholderValue||null,[v,$]=Yv(g,e.granularity),y=$||"UTC";if(g&&!(v in g))throw new Error("Invalid granularity "+v+" for value "+g.toString());let P=S.useMemo(()=>new Zi(t),[t]),T=S.useMemo(()=>n(P.resolvedOptions().calendar),[n,P]);var R;let[D,C]=ki(e.value,(R=e.defaultValue)!==null&&R!==void 0?R:null,e.onChange),_=S.useMemo(()=>{var xe;return(xe=m2(D,T))!==null&&xe!==void 0?xe:null},[D,T]),[B,k]=S.useState(()=>rc(e.placeholderValue,v,T,$)),L=_||B,X=T.identifier==="gregory"&&L.era==="BC",F=S.useMemo(()=>{var xe;return{granularity:v,maxGranularity:(xe=e.maxGranularity)!==null&&xe!==void 0?xe:"year",timeZone:$,hideTimeZone:r,hourCycle:e.hourCycle,showEra:X,shouldForceLeadingZeros:e.shouldForceLeadingZeros}},[e.maxGranularity,v,e.hourCycle,e.shouldForceLeadingZeros,$,r,X]),ge=S.useMemo(()=>_o({},F),[F]),te=S.useMemo(()=>new Zi(t,ge),[t,ge]),ie=S.useMemo(()=>te.resolvedOptions(),[te]),De=S.useMemo(()=>te.formatToParts(new Date).filter(xe=>ad[xe.type]).reduce((xe,Be)=>(xe[Be.type]=!0,xe),{}),[te]),[me,de]=S.useState(()=>e.value||e.defaultValue?{...De}:{}),ne=S.useRef(null),re=S.useRef(T.identifier);S.useEffect(()=>{T.identifier!==re.current&&(re.current=T.identifier,k(xe=>Object.keys(me).length>0?Gn(xe,T):rc(e.placeholderValue,v,T,$)))},[T,v,me,$,e.placeholderValue]),D&&Object.keys(me).length<Object.keys(De).length&&(me={...De},de(me)),D==null&&Object.keys(me).length===Object.keys(De).length&&(me={},de(me),k(rc(e.placeholderValue,v,T,$)));let K=_&&Object.keys(me).length>=Object.keys(De).length?_:B,oe=xe=>{if(e.isDisabled||e.isReadOnly)return;let Be=Object.keys(me),qe=Object.keys(De);xe==null?(C(null),k(rc(e.placeholderValue,v,T,$)),de({})):Be.length>=qe.length||Be.length===qe.length-1&&De.dayPeriod&&!me.dayPeriod&&ne.current!=="dayPeriod"?(xe=Gn(xe,(g==null?void 0:g.calendar)||new ci),C(xe)):k(xe),ne.current=null},Ce=S.useMemo(()=>K.toDate(y),[K,y]),ee=S.useMemo(()=>te.formatToParts(Ce).map(xe=>{let Be=ad[xe.type];xe.type==="era"&&T.getEras().length===1&&(Be=!1);let qe=ad[xe.type]&&!me[xe.type],Ke=ad[xe.type]?m8(xe.type,xe.value,t):null;return{type:g8[xe.type]||xe.type,text:qe?Ke:xe.value,...v8(K,xe.type,ie),isPlaceholder:qe,placeholder:Ke,isEditable:Be}}),[Ce,me,te,ie,K,T,t]);De.era&&me.year&&!me.era?(me.era=!0,de({...me})):!De.era&&me.era&&(delete me.era,de({...me}));let pe=xe=>{me[xe]=!0,xe==="year"&&De.era&&(me.era=!0),de({...me})},Pe=(xe,Be)=>{if(me[xe])oe(y8(K,xe,Be,ie));else{pe(xe);let qe=Object.keys(me),Ke=Object.keys(De);(qe.length>=Ke.length||qe.length===Ke.length-1&&De.dayPeriod&&!me.dayPeriod)&&oe(K)}},Te=S.useMemo(()=>qd(D,c,d,h,F),[D,c,d,h,F]),Ve=Xc({...e,value:D,builtinValidation:Te}),Se=Ve.displayValidation.isInvalid,Je=e.validationState||(Se?"invalid":null);var Ge;return{...Ve,value:_,dateValue:Ce,calendar:T,setValue:oe,segments:ee,dateFormatter:te,validationState:Je,isInvalid:Se,granularity:v,maxGranularity:(Ge=e.maxGranularity)!==null&&Ge!==void 0?Ge:"year",isDisabled:i,isReadOnly:a,isRequired:s,increment(xe){Pe(xe,1)},decrement(xe){Pe(xe,-1)},incrementPage(xe){Pe(xe,$4[xe]||1)},decrementPage(xe){Pe(xe,-($4[xe]||1))},setSegment(xe,Be){pe(xe),oe(b8(K,xe,Be,ie))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let xe=Object.keys(me),Be=Object.keys(De);xe.length===Be.length-1&&De.dayPeriod&&!me.dayPeriod&&(me={...De},de(me),oe(K.copy()))},clearSegment(xe){delete me[xe],ne.current=xe,de({...me});let Be=rc(e.placeholderValue,v,T,$),qe=K;if(xe==="dayPeriod"&&"hour"in K&&"hour"in Be){let Ke=K.hour>=12,Oe=Be.hour>=12;Ke&&!Oe?qe=K.set({hour:K.hour-12}):!Ke&&Oe&&(qe=K.set({hour:K.hour+12}))}else xe in K&&(qe=K.set({[xe]:Be[xe]}));C(null),oe(qe)},formatValue(xe){if(!_)return"";let Be=_o(xe,F);return new Zi(t,Be).format(Ce)},getDateFormatter(xe,Be){let qe={...F,...Be},Ke=_o({},qe);return new Zi(xe,Ke)}}}function v8(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:AM(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:PM(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 y8(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,a=i>=12;return e.set({hour:a?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 b8(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,a=i>=12;return n>=12===a?e:e.set({hour:a?i-12:i+12})}case"hour":if(r.hour12){let a=e.hour>=12;!a&&n===12&&(n=0),a&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}throw new Error("Unknown segment: "+t)}function $8(e){var t,n;let r=qv(e),[i,a]=ki(e.value,e.defaultValue||null,e.onChange),[s,c]=S.useState(()=>i||{start:null,end:null});i==null&&s.start&&s.end&&(s={start:null,end:null},c(s));let d=i||s,h=re=>{c(re||{start:null,end:null}),Vs(re)?a(re):a(null)},g=(d==null?void 0:d.start)||(d==null?void 0:d.end)||e.placeholderValue||null,[v,$]=Yv(g,e.granularity),y=v==="hour"||v==="minute"||v==="second";var P;let T=(P=e.shouldCloseOnSelect)!==null&&P!==void 0?P:!0,[R,D]=S.useState(null),[C,_]=S.useState(null);d&&Vs(d)&&(R=d,"hour"in d.start&&(C=d));let B=(re,K)=>{h({start:"timeZone"in K.start?K.start.set(li(re.start)):wa(re.start,K.start),end:"timeZone"in K.end?K.end.set(li(re.end)):wa(re.end,K.end)}),D(null),_(null),me.commitValidation()},k=re=>{let K=typeof T=="function"?T():T;y?Vs(re)&&(C!=null&&C.start)&&(C!=null&&C.end)?B(re,{start:(C==null?void 0:C.start)||Uu(e.placeholderValue),end:(C==null?void 0:C.end)||Uu(e.placeholderValue)}):D(re):Vs(re)?(h(re),me.commitValidation()):D(re),K&&r.setOpen(!1)},L=re=>{Vs(R)&&Vs(re)?B(R,re):_(re)},X=(d==null||(t=d.start)===null||t===void 0?void 0:t.calendar.identifier)==="gregory"&&d.start.era==="BC"||(d==null||(n=d.end)===null||n===void 0?void 0:n.calendar.identifier)==="gregory"&&d.end.era==="BC",F=S.useMemo(()=>({granularity:v,timeZone:$,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:X}),[v,e.hourCycle,e.shouldForceLeadingZeros,$,e.hideTimeZone,X]),{minValue:ge,maxValue:te,isDateUnavailable:ie}=e,De=S.useMemo(()=>c8(d,ge,te,ie,F),[d,ge,te,ie,F]),me=Xc({...e,value:i,name:S.useMemo(()=>[e.startName,e.endName].filter(re=>re!=null),[e.startName,e.endName]),builtinValidation:De}),de=me.displayValidation.isInvalid,ne=e.validationState||(de?"invalid":null);return{...me,value:d,setValue:h,dateRange:R,timeRange:C,granularity:v,hasTime:y,setDate(re,K){var oe,Ce;k(re==="start"?{start:K,end:(oe=R==null?void 0:R.end)!==null&&oe!==void 0?oe:null}:{start:(Ce=R==null?void 0:R.start)!==null&&Ce!==void 0?Ce:null,end:K})},setTime(re,K){var oe,Ce;L(re==="start"?{start:K,end:(oe=C==null?void 0:C.end)!==null&&oe!==void 0?oe:null}:{start:(Ce=C==null?void 0:C.start)!==null&&Ce!==void 0?Ce:null,end:K})},setDateTime(re,K){var oe,Ce;h(re==="start"?{start:K,end:(oe=d==null?void 0:d.end)!==null&&oe!==void 0?oe:null}:{start:(Ce=d==null?void 0:d.start)!==null&&Ce!==void 0?Ce:null,end:K})},setDateRange:k,setTimeRange:L,...r,setOpen(re){!re&&!(d!=null&&d.start&&(d!=null&&d.end))&&Vs(R)&&y&&B(R,{start:(C==null?void 0:C.start)||Uu(e.placeholderValue),end:(C==null?void 0:C.end)||Uu(e.placeholderValue)}),r.setOpen(re)},validationState:ne,isInvalid:de,formatValue(re,K){if(!d||!d.start||!d.end)return null;let oe="timeZone"in d.start?d.start.timeZone:void 0,Ce=e.granularity||(d.start&&"minute"in d.start?"minute":"day"),ee="timeZone"in d.end?d.end.timeZone:void 0,pe=e.granularity||(d.end&&"minute"in d.end?"minute":"day"),Pe=_o(K,{granularity:Ce,timeZone:oe,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:d.start.calendar.identifier==="gregory"&&d.start.era==="BC"||d.end.calendar.identifier==="gregory"&&d.end.era==="BC"}),Te=d.start.toDate(oe||"UTC"),Ve=d.end.toDate(ee||"UTC"),Se=new Zi(re,Pe),Je;if(oe===ee&&Ce===pe&&d.start.compare(d.end)!==0){try{let Ge=Se.formatRangeToParts(Te,Ve),xe=-1;for(let Ke=0;Ke<Ge.length;Ke++){let Oe=Ge[Ke];if(Oe.source==="shared"&&Oe.type==="literal")xe=Ke;else if(Oe.source==="endRange")break}let Be="",qe="";for(let Ke=0;Ke<Ge.length;Ke++)Ke<xe?Be+=Ge[Ke].value:Ke>xe&&(qe+=Ge[Ke].value);return{start:Be,end:qe}}catch{}Je=Se}else{let Ge=_o(K,{granularity:pe,timeZone:ee,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});Je=new Zi(re,Ge)}return{start:Se.format(Te),end:Je.format(Ve)}},getDateFormatter(re,K){let oe={...F,...K},Ce=_o({},oe);return new Zi(re,Ce)}}}function Vs(e){return(e==null?void 0:e.start)!=null&&e.end!=null}function w8(e){let{placeholderValue:t=new Zc,minValue:n,maxValue:r,granularity:i,validate:a}=e;var s;let[c,d]=ki(e.value,(s=e.defaultValue)!==null&&s!==void 0?s:null,e.onChange),h=c||t,g=h&&"day"in h?h:void 0,v=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,$=S.useMemo(()=>{let _=h&&"timeZone"in h?h.timeZone:void 0;return(_||v)&&t?kw(ic(t),_||v):ic(t)},[t,h,v]),y=S.useMemo(()=>ic(n,g),[n,g]),P=S.useMemo(()=>ic(r,g),[r,g]),T=S.useMemo(()=>c&&"day"in c?F1(c):c,[c]),R=S.useMemo(()=>c==null?null:ic(c),[c]);return{...g2({...e,value:R,defaultValue:void 0,minValue:y,maxValue:P,onChange:_=>{d(g||v?_:_&&F1(_))},granularity:i||"minute",maxGranularity:"hour",placeholderValue:$??void 0,createCalendar:()=>new ci,validate:S.useCallback(()=>a==null?void 0:a(c),[a,c])}),timeValue:T}}function ic(e,t=Dh(qc())){return e?"day"in e?e:wa(t,e):null}var hu=[["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"]],x8="react-international-phone-",v2=(...e)=>e.filter(t=>!!t).join(" ").trim(),E8=(...e)=>v2(...e).split(" ").map(t=>`${x8}${t}`).join(" "),ei=({addPrefix:e,rawClassNames:t})=>v2(E8(...e),...t),C8=({value:e,mask:t,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(e.length<r)return e;let a=e.slice(0,r),s=e.slice(r),c=a,d=0;for(let h of t.split("")){if(d>=s.length){if(!i&&h!==n){c+=h;continue}break}h===n?(c+=s[d],d+=1):c+=h}return c},ju=e=>e?/^\d+$/.test(e):!1,Fh=e=>e.replace(/\D/g,""),S8=(e,t)=>{let n=e.style.display;n!=="block"&&(e.style.display="block");let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.top-r.top,s=r.bottom-i.bottom;a>=0&&s>=0||(Math.abs(a)<Math.abs(s)?e.scrollTop+=a:e.scrollTop-=s),e.style.display=n},D8=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh"),A8=(e,t)=>{let n=t.disableDialCodeAndPrefix?!1:t.forceDialCode,r=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,i=e,a=h=>t.trimNonDigitsEnd?h.trim():h;if(!i)return r&&!i.length||n?a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):a(i);if(i=Fh(i),i===t.dialCode&&!t.disableDialCodeAndPrefix)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(i)&&!t.disableDialCodeAndPrefix)return a(n?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${i}`);if(!i.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(n)return a(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(i.length<t.dialCode.length)return a(`${t.prefix}${i}`)}let s=()=>{let h=t.dialCode.length,g=i.slice(0,h),v=i.slice(h);return{phoneLeftSide:g,phoneRightSide:v}},{phoneLeftSide:c,phoneRightSide:d}=s();return c=`${t.prefix}${c}${t.charAfterDialCode}`,d=C8({value:d,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd||t.disableDialCodeAndPrefix&&d.length===0}),t.disableDialCodeAndPrefix&&(c=""),a(`${c}${d}`)},P8=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:a})=>{if(r<i)return i;if(!e)return n.length;let s=null;for(let g=r-1;g>=0;g-=1)if(ju(t[g])){s=g;break}if(s===null){for(let g=0;g<t.length;g+=1)if(ju(n[g]))return g;return t.length}let c=0;for(let g=0;g<s;g+=1)ju(t[g])&&(c+=1);let d=0,h=0;for(let g=0;g<n.length&&(d+=1,ju(n[g])&&(h+=1),!(h>=c+1));g+=1);if(a!=="backward")for(;!ju(n[d])&&d<n.length;)d+=1;return d},Ed=({phone:e,prefix:t})=>e?`${t}${Fh(e)}`:"";function Ig({value:e,country:t,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:a,charAfterDialCode:s,forceDialCode:c,disableDialCodeAndPrefix:d,defaultMask:h,countryGuessingEnabled:g,disableFormatting:v}){let $=e;d&&($=$.startsWith(`${a}`)?$:`${a}${t.dialCode}${$}`);let y=g?L8({phone:$,countries:i,currentCountryIso2:t==null?void 0:t.iso2}):void 0,P=(y==null?void 0:y.country)??t,T=A8($,{prefix:a,mask:O8({phone:$,country:P,defaultMask:h,disableFormatting:v}),maskChar:y2,dialCode:P.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:c,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:d}),R=g&&!(y!=null&&y.fullDialCodeMatch)?t:P;return{phone:Ed({phone:d?`${R.dialCode}${T}`:T,prefix:a}),inputValue:T,country:R}}var T8=e=>{if((e==null?void 0:e.toLocaleLowerCase().includes("delete"))??!1)return e!=null&&e.toLocaleLowerCase().includes("forward")?"forward":"backward"},_8=(e,{country:t,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:c,countryGuessingEnabled:d,defaultMask:h,disableFormatting:g,countries:v})=>{let $=e.nativeEvent,y=$.inputType,P=T8(y),T=!!(y!=null&&y.startsWith("insertFrom")),R=y==="insertText",D=($==null?void 0:$.data)||void 0,C=e.target.value,_=e.target.selectionStart??0;if(y!=null&&y.includes("history"))return{inputValue:r,phone:Ed({phone:r,prefix:i}),cursorPosition:r.length,country:t};if(R&&!ju(D)&&C!==i)return{inputValue:r,phone:Ed({phone:c?`${t.dialCode}${r}`:r,prefix:i}),cursorPosition:_-((D==null?void 0:D.length)??0),country:t};if(s&&!C.startsWith(`${i}${t.dialCode}`)&&!T){let F=C?r:`${i}${t.dialCode}${a}`;return{inputValue:F,phone:Ed({phone:F,prefix:i}),cursorPosition:i.length+t.dialCode.length+a.length,country:t}}let{phone:B,inputValue:k,country:L}=Ig({value:C,country:t,trimNonDigitsEnd:P==="backward",insertDialCodeOnEmpty:n,countryGuessingEnabled:d,countries:v,prefix:i,charAfterDialCode:a,forceDialCode:s,disableDialCodeAndPrefix:c,disableFormatting:g,defaultMask:h}),X=P8({cursorPositionAfterInput:_,phoneBeforeInput:r,phoneAfterInput:C,phoneAfterFormatted:k,leftOffset:s?i.length+t.dialCode.length+a.length:0,deletion:P});return{phone:B,inputValue:k,cursorPosition:X,country:L}},k8=(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},R8=()=>{let e=S.useRef(),t=S.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}}},F8={size:20,overrideLastItemDebounceMS:-1};function M8(e,t){let{size:n,overrideLastItemDebounceMS:r,onChange:i}={...F8,...t},[a,s]=S.useState(e),[c,d]=S.useState([a]),[h,g]=S.useState(0),v=R8();return[a,($,y)=>{if(typeof $=="object"&&typeof a=="object"&&k8($,a)||$===a)return;let P=r>0,T=v.check(),R=P&&T!==void 0?T>r:!0;if((y==null?void 0:y.overrideLastItem)!==void 0?y.overrideLastItem:!R)d(D=>[...D.slice(0,h),$]);else{let D=c.length>=n;d(C=>[...C.slice(D?1:0,h+1),$]),D||g(C=>C+1)}s($),i==null||i($)},()=>{if(h<=0)return{success:!1};let $=c[h-1];return s($),g(y=>y-1),i==null||i($),{success:!0,value:$}},()=>{if(h+1>=c.length)return{success:!1};let $=c[h+1];return s($),g(y=>y+1),i==null||i($),{success:!0,value:$}}]}var y2=".",Wi={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:hu,preferredCountries:[]},b2=({defaultCountry:e=Wi.defaultCountry,value:t=Wi.value,countries:n=Wi.countries,prefix:r=Wi.prefix,defaultMask:i=Wi.defaultMask,charAfterDialCode:a=Wi.charAfterDialCode,historySaveDebounceMS:s=Wi.historySaveDebounceMS,disableCountryGuess:c=Wi.disableCountryGuess,disableDialCodePrefill:d=Wi.disableDialCodePrefill,forceDialCode:h=Wi.forceDialCode,disableDialCodeAndPrefix:g=Wi.disableDialCodeAndPrefix,disableFormatting:v=Wi.disableFormatting,onChange:$,inputRef:y})=>{let P={countries:n,prefix:r,charAfterDialCode:a,forceDialCode:g?!1:h,disableDialCodeAndPrefix:g,defaultMask:i,countryGuessingEnabled:!c,disableFormatting:v},T=S.useRef(null),R=y||T,D=de=>{Promise.resolve().then(()=>{var ne;typeof window>"u"||R.current!==(document==null?void 0:document.activeElement)||((ne=R.current)==null||ne.setSelectionRange(de,de))})},[{phone:C,inputValue:_,country:B},k,L,X]=M8(()=>{let de=Wu({value:e,field:"iso2",countries:n});de||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let ne=de||Wu({value:"us",field:"iso2",countries:n}),{phone:re,inputValue:K,country:oe}=Ig({value:t,country:ne,insertDialCodeOnEmpty:!d,...P});return D(K.length),{phone:re,inputValue:K,country:oe.iso2}},{overrideLastItemDebounceMS:s,onChange:({inputValue:de,phone:ne,country:re})=>{if(!$)return;let K=F(re);$({phone:ne,inputValue:de,country:K})}}),F=S.useCallback(de=>Wu({value:de,field:"iso2",countries:n}),[n]),ge=S.useMemo(()=>F(B),[B,F]);S.useEffect(()=>{let de=R.current;if(!de)return;let ne=re=>{if(!re.key)return;let K=re.ctrlKey,oe=re.metaKey,Ce=re.shiftKey;if(re.key.toLowerCase()==="z"){if(D8()){if(!oe)return}else if(!K)return;Ce?X():L()}};return de.addEventListener("keydown",ne),()=>{de.removeEventListener("keydown",ne)}},[R,L,X]);let te=de=>{de.preventDefault();let{phone:ne,inputValue:re,country:K,cursorPosition:oe}=_8(de,{country:ge,phoneBeforeInput:_,insertDialCodeOnEmpty:!1,...P});return k({inputValue:re,phone:ne,country:K.iso2}),D(oe),t},ie=(de,ne={focusOnInput:!1})=>{let re=Wu({value:de,field:"iso2",countries:n});if(!re){console.error(`[react-international-phone]: can not find a country with "${de}" iso2 code`);return}let K=g?"":`${r}${re.dialCode}${a}`;k({inputValue:K,phone:`${r}${re.dialCode}`,country:re.iso2}),ne.focusOnInput&&Promise.resolve().then(()=>{var oe;(oe=R.current)==null||oe.focus()})},[De,me]=S.useState(!1);return S.useEffect(()=>{if(!De){me(!0),t!==C&&($==null||$({inputValue:_,phone:C,country:ge}));return}if(t===C)return;let{phone:de,inputValue:ne,country:re}=Ig({value:t,country:ge,insertDialCodeOnEmpty:!d,...P});k({phone:de,inputValue:ne,country:re.iso2})},[t]),{phone:C,inputValue:_,country:ge,setCountry:ie,handlePhoneValueChange:te,inputRef:R}},O8=({phone:e,country:t,defaultMask:n="............",disableFormatting:r=!1})=>{let i=t.format,a=c=>r?c.replace(new RegExp(`[^${y2}]`,"g"),""):c;if(!i)return a(n);if(typeof i=="string")return a(i);if(!i.default)return console.error(`[react-international-phone]: default mask for ${t.iso2} is not provided`),a(n);let s=Object.keys(i).find(c=>{if(c==="default")return!1;if(!(c.charAt(0)==="/"&&c.charAt(c.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${c}" for ${t.iso2} is not valid`),!1;let d=new RegExp(c.substring(1,c.length-1)),h=e.replace(t.dialCode,"");return d.test(Fh(h))});return a(s?i[s]:i.default)},ma=e=>{let[t,n,r,i,a,s]=e;return{name:t,iso2:n,dialCode:r,format:i,priority:a,areaCodes:s}},I8=e=>`Field "${e}" is not supported`,Wu=({field:e,value:t,countries:n=hu})=>{if(["priority"].includes(e))throw new Error(I8(e));let r=n.find(i=>{let a=ma(i);return t===a[e]});if(r)return ma(r)},L8=({phone:e,countries:t=hu,currentCountryIso2:n})=>{var c;let r={country:void 0,fullDialCodeMatch:!1};if(!e)return r;let i=Fh(e);if(!i)return r;let a=r,s=({country:d,fullDialCodeMatch:h})=>{var $,y;let g=d.dialCode===(($=a.country)==null?void 0:$.dialCode),v=(d.priority??0)<(((y=a.country)==null?void 0:y.priority)??0);(!g||v)&&(a={country:d,fullDialCodeMatch:h})};for(let d of t){let h=ma(d),{dialCode:g,areaCodes:v}=h;if(i.startsWith(g)){let $=a.country?Number(g)>=Number(a.country.dialCode):!0;if(v){let y=i.substring(g.length);for(let P of v)if(y.startsWith(P))return{country:h,fullDialCodeMatch:!0}}($||g===i||!a.fullDialCodeMatch)&&s({country:h,fullDialCodeMatch:!0})}a.fullDialCodeMatch||i.length<g.length&&g.startsWith(i)&&(!a.country||Number(g)<=Number(a.country.dialCode))&&s({country:h,fullDialCodeMatch:!1})}if(n){let d=Wu({value:n,field:"iso2",countries:t});if(!d)return a;let h=d?(g=>{if(!(g!=null&&g.areaCodes))return!1;let v=i.substring(g.dialCode.length);return g.areaCodes.some($=>$.startsWith(v))})(d):!1;a&&((c=a.country)==null?void 0:c.dialCode)===d.dialCode&&a.country!==d&&a.fullDialCodeMatch&&(!d.areaCodes||h)&&(a={country:d,fullDialCodeMatch:!0})}return a},B8=(e,t)=>{let n=parseInt(e,16);return Number(n+t).toString(16)},V8="abcdefghijklmnopqrstuvwxyz",N8="1f1e6",w4=V8.split("").reduce((e,t,n)=>({...e,[t]:B8(N8,n)}),{}),j8=e=>[w4[e[0]],w4[e[1]]].join("-"),Zv=({iso2:e,size:t,src:n,protocol:r="https",disableLazyLoading:i,className:a,style:s,...c})=>{if(!e)return S.createElement("img",{className:ei({addPrefix:["flag-emoji"],rawClassNames:[a]}),width:t,height:t,...c});let d=()=>{if(n)return n;let h=j8(e);return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${h}.svg`};return S.createElement("img",{className:ei({addPrefix:["flag-emoji"],rawClassNames:[a]}),src:d(),width:t,height:t,draggable:!1,"data-country":e,loading:i?void 0:"lazy",style:{width:t,height:t,...s},alt:"",...c})},K8=1e3,z8=({show:e,dialCodePrefix:t="+",selectedCountry:n,countries:r=hu,preferredCountries:i=[],flags:a,onSelect:s,onClose:c,...d})=>{let h=S.useRef(null),g=S.useRef(),v=S.useMemo(()=>{if(!i||!i.length)return r;let L=[],X=[...r];for(let F of i){let ge=X.findIndex(te=>ma(te).iso2===F);if(ge!==-1){let te=X.splice(ge,1)[0];L.push(te)}}return L.concat(X)},[r,i]),$=S.useRef({updatedAt:void 0,value:""}),y=L=>{let X=$.current.updatedAt&&new Date().getTime()-$.current.updatedAt.getTime()>K8;$.current={value:X?L:`${$.current.value}${L}`,updatedAt:new Date};let F=v.findIndex(ge=>ma(ge).name.toLowerCase().startsWith($.current.value));F!==-1&&R(F)},P=S.useCallback(L=>v.findIndex(X=>ma(X).iso2===L),[v]),[T,R]=S.useState(P(n)),D=()=>{g.current!==n&&R(P(n))},C=S.useCallback(L=>{R(P(L.iso2)),s==null||s(L)},[s,P]),_=L=>{let X=v.length-1,F=ge=>L==="prev"?ge-1:L==="next"?ge+1:L==="last"?X:0;R(ge=>{let te=F(ge);return te<0?0:te>X?X:te})},B=L=>{if(L.stopPropagation(),L.key==="Enter"){L.preventDefault();let X=ma(v[T]);C(X);return}if(L.key==="Escape"){c==null||c();return}if(L.key==="ArrowUp"){L.preventDefault(),_("prev");return}if(L.key==="ArrowDown"){L.preventDefault(),_("next");return}if(L.key==="PageUp"){L.preventDefault(),_("first");return}if(L.key==="PageDown"){L.preventDefault(),_("last");return}L.key===" "&&L.preventDefault(),L.key.length===1&&!L.altKey&&!L.ctrlKey&&!L.metaKey&&y(L.key.toLocaleLowerCase())},k=S.useCallback(()=>{if(!h.current||T===void 0)return;let L=ma(v[T]).iso2;if(L===g.current)return;let X=h.current.querySelector(`[data-country="${L}"]`);X&&(S8(h.current,X),g.current=L)},[T,v]);return S.useEffect(()=>{k()},[T,k]),S.useEffect(()=>{h.current&&(e?h.current.focus():D())},[e]),S.useEffect(()=>{D()},[n]),S.createElement("ul",{ref:h,role:"listbox",className:ei({addPrefix:["country-selector-dropdown"],rawClassNames:[d.className]}),style:{display:e?"block":"none",...d.style},onKeyDown:B,onBlur:c,tabIndex:-1,"aria-activedescendant":`react-international-phone__${ma(v[T]).iso2}-option`},v.map((L,X)=>{let F=ma(L),ge=F.iso2===n,te=X===T,ie=i.includes(F.iso2),De=X===i.length-1,me=a==null?void 0:a.find(de=>de.iso2===F.iso2);return S.createElement(S.Fragment,{key:F.iso2},S.createElement("li",{"data-country":F.iso2,role:"option","aria-selected":ge,"aria-label":`${F.name} ${t}${F.dialCode}`,id:`react-international-phone__${F.iso2}-option`,className:ei({addPrefix:["country-selector-dropdown__list-item",ie&&"country-selector-dropdown__list-item--preferred",ge&&"country-selector-dropdown__list-item--selected",te&&"country-selector-dropdown__list-item--focused"],rawClassNames:[d.listItemClassName]}),onClick:()=>C(F),style:d.listItemStyle,title:F.name},S.createElement(Zv,{iso2:F.iso2,src:me==null?void 0:me.src,className:ei({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[d.listItemFlagClassName]}),style:d.listItemFlagStyle}),S.createElement("span",{className:ei({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[d.listItemCountryNameClassName]}),style:d.listItemCountryNameStyle},F.name),S.createElement("span",{className:ei({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[d.listItemDialCodeClassName]}),style:d.listItemDialCodeStyle},t,F.dialCode)),De?S.createElement("hr",{className:ei({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[d.preferredListDividerClassName]}),style:d.preferredListDividerStyle}):null)}))},U8=({selectedCountry:e,onSelect:t,disabled:n,hideDropdown:r,countries:i=hu,preferredCountries:a=[],flags:s,renderButtonWrapper:c,...d})=>{let[h,g]=S.useState(!1),v=S.useMemo(()=>{if(e)return Wu({value:e,field:"iso2",countries:i})},[i,e]),$=S.useRef(null),y=T=>{T.key&&["ArrowUp","ArrowDown"].includes(T.key)&&(T.preventDefault(),g(!0))},P=()=>{var D;let T={title:v==null?void 0:v.name,onClick:()=>g(C=>!C),onMouseDown:C=>C.preventDefault(),onKeyDown:y,disabled:r||n,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":h},R=S.createElement("div",{className:ei({addPrefix:["country-selector-button__button-content"],rawClassNames:[d.buttonContentWrapperClassName]}),style:d.buttonContentWrapperStyle},S.createElement(Zv,{iso2:e,src:(D=s==null?void 0:s.find(C=>C.iso2===e))==null?void 0:D.src,className:ei({addPrefix:["country-selector-button__flag-emoji",n&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[d.flagClassName]}),style:{visibility:e?"visible":"hidden",...d.flagStyle}}),!r&&S.createElement("div",{className:ei({addPrefix:["country-selector-button__dropdown-arrow",n&&"country-selector-button__dropdown-arrow--disabled",h&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[d.dropdownArrowClassName]}),style:d.dropdownArrowStyle}));return c?c({children:R,rootProps:T}):S.createElement("button",{...T,type:"button",className:ei({addPrefix:["country-selector-button",h&&"country-selector-button--active",n&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[d.buttonClassName]}),"data-country":e,style:d.buttonStyle},R)};return S.createElement("div",{className:ei({addPrefix:["country-selector"],rawClassNames:[d.className]}),style:d.style,ref:$},P(),S.createElement(z8,{show:h,countries:i,preferredCountries:a,flags:s,onSelect:T=>{g(!1),t==null||t(T)},selectedCountry:e,onClose:()=>{g(!1)},...d.dropdownStyleProps}))},W8=({dialCode:e,prefix:t,disabled:n,style:r,className:i})=>S.createElement("div",{className:ei({addPrefix:["dial-code-preview",n&&"dial-code-preview--disabled"],rawClassNames:[i]}),style:r},`${t}${e}`);S.forwardRef(({value:e,onChange:t,countries:n=hu,preferredCountries:r=[],hideDropdown:i,showDisabledDialCodeAndPrefix:a,disableFocusAfterCountrySelect:s,flags:c,style:d,className:h,inputStyle:g,inputClassName:v,countrySelectorStyleProps:$,dialCodePreviewStyleProps:y,inputProps:P,placeholder:T,disabled:R,name:D,onFocus:C,onBlur:_,required:B,autoFocus:k,...L},X)=>{let{phone:F,inputValue:ge,inputRef:te,country:ie,setCountry:De,handlePhoneValueChange:me}=b2({value:e,countries:n,...L,onChange:ne=>{t==null||t(ne.phone,{country:ne.country,inputValue:ne.inputValue})}}),de=L.disableDialCodeAndPrefix&&a&&(ie==null?void 0:ie.dialCode);return S.useImperativeHandle(X,()=>te.current?Object.assign(te.current,{setCountry:De,state:{phone:F,inputValue:ge,country:ie}}):null,[te,De,F,ge,ie]),S.createElement("div",{ref:X,className:ei({addPrefix:["input-container"],rawClassNames:[h]}),style:d},S.createElement(U8,{onSelect:ne=>De(ne.iso2,{focusOnInput:!s}),flags:c,selectedCountry:ie.iso2,countries:n,preferredCountries:r,disabled:R,hideDropdown:i,...$}),de&&S.createElement(W8,{dialCode:ie.dialCode,prefix:L.prefix??"+",disabled:R,...y}),S.createElement("input",{onChange:me,value:ge,type:"tel",ref:te,className:ei({addPrefix:["input",R&&"input--disabled"],rawClassNames:[v]}),placeholder:T,disabled:R,style:g,name:D,onFocus:C,onBlur:_,autoFocus:k,required:B,...P}))});var ss=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lg={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",g="[object Function]",v="[object GeneratorFunction]",$="[object Map]",y="[object Number]",P="[object Object]",T="[object Promise]",R="[object RegExp]",D="[object Set]",C="[object String]",_="[object Symbol]",B="[object WeakMap]",k="[object ArrayBuffer]",L="[object DataView]",X="[object Float32Array]",F="[object Float64Array]",ge="[object Int8Array]",te="[object Int16Array]",ie="[object Int32Array]",De="[object Uint8Array]",me="[object Uint8ClampedArray]",de="[object Uint16Array]",ne="[object Uint32Array]",re=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,oe=/^\[object .+?Constructor\]$/,Ce=/^(?:0|[1-9]\d*)$/,ee={};ee[a]=ee[s]=ee[k]=ee[L]=ee[c]=ee[d]=ee[X]=ee[F]=ee[ge]=ee[te]=ee[ie]=ee[$]=ee[y]=ee[P]=ee[R]=ee[D]=ee[C]=ee[_]=ee[De]=ee[me]=ee[de]=ee[ne]=!0,ee[h]=ee[g]=ee[B]=!1;var pe=typeof ss=="object"&&ss&&ss.Object===Object&&ss,Pe=typeof self=="object"&&self&&self.Object===Object&&self,Te=pe||Pe||Function("return this")(),Ve=t&&!t.nodeType&&t,Se=Ve&&!0&&e&&!e.nodeType&&e,Je=Se&&Se.exports===Ve;function Ge(Q,_e){return Q.set(_e[0],_e[1]),Q}function xe(Q,_e){return Q.add(_e),Q}function Be(Q,_e){for(var We=-1,pt=Q?Q.length:0;++We<pt&&_e(Q[We],We,Q)!==!1;);return Q}function qe(Q,_e){for(var We=-1,pt=_e.length,Fn=Q.length;++We<pt;)Q[Fn+We]=_e[We];return Q}function Ke(Q,_e,We,pt){for(var Fn=-1,Ar=Q?Q.length:0;++Fn<Ar;)We=_e(We,Q[Fn],Fn,Q);return We}function Oe(Q,_e){for(var We=-1,pt=Array(Q);++We<Q;)pt[We]=_e(We);return pt}function et(Q,_e){return Q==null?void 0:Q[_e]}function wt(Q){var _e=!1;if(Q!=null&&typeof Q.toString!="function")try{_e=!!(Q+"")}catch{}return _e}function Lt(Q){var _e=-1,We=Array(Q.size);return Q.forEach(function(pt,Fn){We[++_e]=[Fn,pt]}),We}function yt(Q,_e){return function(We){return Q(_e(We))}}function xt(Q){var _e=-1,We=Array(Q.size);return Q.forEach(function(pt){We[++_e]=pt}),We}var Yn=Array.prototype,tt=Function.prototype,Et=Object.prototype,At=Te["__core-js_shared__"],Bn=function(){var Q=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||"");return Q?"Symbol(src)_1."+Q:""}(),ar=tt.toString,Zn=Et.hasOwnProperty,Vn=Et.toString,_r=RegExp("^"+ar.call(Zn).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Jn=Je?Te.Buffer:void 0,Qt=Te.Symbol,or=Te.Uint8Array,xr=yt(Object.getPrototypeOf,Object),Wt=Object.create,Dt=Et.propertyIsEnumerable,Tt=Yn.splice,Ct=Object.getOwnPropertySymbols,zn=Jn?Jn.isBuffer:void 0,Er=yt(Object.keys,Object),sr=St(Te,"DataView"),gr=St(Te,"Map"),Xn=St(Te,"Promise"),Kr=St(Te,"Set"),ft=St(Te,"WeakMap"),Un=St(Object,"create"),kr=ri(sr),xn=ri(gr),ur=ri(Xn),$t=ri(Kr),Vt=ri(ft),kn=Qt?Qt.prototype:void 0,Hr=kn?kn.valueOf:void 0;function rt(Q){var _e=-1,We=Q?Q.length:0;for(this.clear();++_e<We;){var pt=Q[_e];this.set(pt[0],pt[1])}}function gt(){this.__data__=Un?Un(null):{}}function Ye(Q){return this.has(Q)&&delete this.__data__[Q]}function Ot(Q){var _e=this.__data__;if(Un){var We=_e[Q];return We===r?void 0:We}return Zn.call(_e,Q)?_e[Q]:void 0}function En(Q){var _e=this.__data__;return Un?_e[Q]!==void 0:Zn.call(_e,Q)}function Cr(Q,_e){var We=this.__data__;return We[Q]=Un&&_e===void 0?r:_e,this}rt.prototype.clear=gt,rt.prototype.delete=Ye,rt.prototype.get=Ot,rt.prototype.has=En,rt.prototype.set=Cr;function pn(Q){var _e=-1,We=Q?Q.length:0;for(this.clear();++_e<We;){var pt=Q[_e];this.set(pt[0],pt[1])}}function Nn(){this.__data__=[]}function mn(Q){var _e=this.__data__,We=Fi(_e,Q);if(We<0)return!1;var pt=_e.length-1;return We==pt?_e.pop():Tt.call(_e,We,1),!0}function un(Q){var _e=this.__data__,We=Fi(_e,Q);return We<0?void 0:_e[We][1]}function Qn(Q){return Fi(this.__data__,Q)>-1}function it(Q,_e){var We=this.__data__,pt=Fi(We,Q);return pt<0?We.push([Q,_e]):We[pt][1]=_e,this}pn.prototype.clear=Nn,pn.prototype.delete=mn,pn.prototype.get=un,pn.prototype.has=Qn,pn.prototype.set=it;function ln(Q){var _e=-1,We=Q?Q.length:0;for(this.clear();++_e<We;){var pt=Q[_e];this.set(pt[0],pt[1])}}function Gr(){this.__data__={hash:new rt,map:new(gr||pn),string:new rt}}function Rr(Q){return bt(this,Q).delete(Q)}function Rn(Q){return bt(this,Q).get(Q)}function Yt(Q){return bt(this,Q).has(Q)}function er(Q,_e){return bt(this,Q).set(Q,_e),this}ln.prototype.clear=Gr,ln.prototype.delete=Rr,ln.prototype.get=Rn,ln.prototype.has=Yt,ln.prototype.set=er;function Sr(Q){this.__data__=new pn(Q)}function cn(){this.__data__=new pn}function $i(Q){return this.__data__.delete(Q)}function Kt(Q){return this.__data__.get(Q)}function ws(Q){return this.__data__.has(Q)}function Qa(Q,_e){var We=this.__data__;if(We instanceof pn){var pt=We.__data__;if(!gr||pt.length<n-1)return pt.push([Q,_e]),this;We=this.__data__=new ln(pt)}return We.set(Q,_e),this}Sr.prototype.clear=cn,Sr.prototype.delete=$i,Sr.prototype.get=Kt,Sr.prototype.has=ws,Sr.prototype.set=Qa;function xs(Q,_e){var We=io(Q)||_a(Q)?Oe(Q.length,String):[],pt=We.length,Fn=!!pt;for(var Ar in Q)Zn.call(Q,Ar)&&!(Fn&&(Ar=="length"||Fr(Ar,pt)))&&We.push(Ar);return We}function Da(Q,_e,We){var pt=Q[_e];(!(Zn.call(Q,_e)&&Ta(pt,We))||We===void 0&&!(_e in Q))&&(Q[_e]=We)}function Fi(Q,_e){for(var We=Q.length;We--;)if(Ta(Q[We][0],_e))return We;return-1}function eo(Q,_e){return Q&&ze(_e,so(_e),Q)}function to(Q,_e,We,pt,Fn,Ar,Mr){var lr;if(pt&&(lr=Ar?pt(Q,Fn,Ar,Mr):pt(Q)),lr!==void 0)return lr;if(!oo(Q))return Q;var jn=io(Q);if(jn){if(lr=vr(Q),!_e)return Me(Q,lr)}else{var Mi=Pn(Q),Oi=Mi==g||Mi==v;if(jo(Q))return no(Q,_e);if(Mi==P||Mi==a||Oi&&!Ar){if(wt(Q))return Ar?Q:{};if(lr=yr(Oi?{}:Q),!_e)return at(Q,eo(lr,Q))}else{if(!ee[Mi])return Ar?Q:{};lr=rn(Q,Mi,to,_e)}}Mr||(Mr=new Sr);var Ss=Mr.get(Q);if(Ss)return Ss;if(Mr.set(Q,lr),!jn)var Ko=We?Bt(Q):so(Q);return Be(Ko||Q,function(Or,uo){Ko&&(uo=Or,Or=Q[uo]),Da(lr,uo,to(Or,_e,We,pt,uo,Q,Mr))}),lr}function Io(Q){return oo(Q)?Wt(Q):{}}function Lo(Q,_e,We){var pt=_e(Q);return io(Q)?pt:qe(pt,We(Q))}function Es(Q){return Vn.call(Q)}function Bo(Q){if(!oo(Q)||Pa(Q))return!1;var _e=yu(Q)||wt(Q)?_r:oe;return _e.test(ri(Q))}function Aa(Q){if(!ro(Q))return Er(Q);var _e=[];for(var We in Object(Q))Zn.call(Q,We)&&We!="constructor"&&_e.push(We);return _e}function no(Q,_e){if(_e)return Q.slice();var We=new Q.constructor(Q.length);return Q.copy(We),We}function ta(Q){var _e=new Q.constructor(Q.byteLength);return new or(_e).set(new or(Q)),_e}function Vo(Q,_e){var We=_e?ta(Q.buffer):Q.buffer;return new Q.constructor(We,Q.byteOffset,Q.byteLength)}function No(Q,_e,We){var pt=_e?We(Lt(Q),!0):Lt(Q);return Ke(pt,Ge,new Q.constructor)}function zr(Q){var _e=new Q.constructor(Q.source,K.exec(Q));return _e.lastIndex=Q.lastIndex,_e}function Dr(Q,_e,We){var pt=_e?We(xt(Q),!0):xt(Q);return Ke(pt,xe,new Q.constructor)}function Y(Q){return Hr?Object(Hr.call(Q)):{}}function Ee(Q,_e){var We=_e?ta(Q.buffer):Q.buffer;return new Q.constructor(We,Q.byteOffset,Q.length)}function Me(Q,_e){var We=-1,pt=Q.length;for(_e||(_e=Array(pt));++We<pt;)_e[We]=Q[We];return _e}function ze(Q,_e,We,pt){We||(We={});for(var Fn=-1,Ar=_e.length;++Fn<Ar;){var Mr=_e[Fn],lr=void 0;Da(We,Mr,lr===void 0?Q[Mr]:lr)}return We}function at(Q,_e){return ze(Q,Zt(Q),_e)}function Bt(Q){return Lo(Q,so,Zt)}function bt(Q,_e){var We=Q.__data__;return na(_e)?We[typeof _e=="string"?"string":"hash"]:We.map}function St(Q,_e){var We=et(Q,_e);return Bo(We)?We:void 0}var Zt=Ct?yt(Ct,Object):an,Pn=Es;(sr&&Pn(new sr(new ArrayBuffer(1)))!=L||gr&&Pn(new gr)!=$||Xn&&Pn(Xn.resolve())!=T||Kr&&Pn(new Kr)!=D||ft&&Pn(new ft)!=B)&&(Pn=function(Q){var _e=Vn.call(Q),We=_e==P?Q.constructor:void 0,pt=We?ri(We):void 0;if(pt)switch(pt){case kr:return L;case xn:return $;case ur:return T;case $t:return D;case Vt:return B}return _e});function vr(Q){var _e=Q.length,We=Q.constructor(_e);return _e&&typeof Q[0]=="string"&&Zn.call(Q,"index")&&(We.index=Q.index,We.input=Q.input),We}function yr(Q){return typeof Q.constructor=="function"&&!ro(Q)?Io(xr(Q)):{}}function rn(Q,_e,We,pt){var Fn=Q.constructor;switch(_e){case k:return ta(Q);case c:case d:return new Fn(+Q);case L:return Vo(Q,pt);case X:case F:case ge:case te:case ie:case De:case me:case de:case ne:return Ee(Q,pt);case $:return No(Q,pt,We);case y:case C:return new Fn(Q);case R:return zr(Q);case D:return Dr(Q,pt,We);case _:return Y(Q)}}function Fr(Q,_e){return _e=_e??i,!!_e&&(typeof Q=="number"||Ce.test(Q))&&Q>-1&&Q%1==0&&Q<_e}function na(Q){var _e=typeof Q;return _e=="string"||_e=="number"||_e=="symbol"||_e=="boolean"?Q!=="__proto__":Q===null}function Pa(Q){return!!Bn&&Bn in Q}function ro(Q){var _e=Q&&Q.constructor,We=typeof _e=="function"&&_e.prototype||Et;return Q===We}function ri(Q){if(Q!=null){try{return ar.call(Q)}catch{}try{return Q+""}catch{}}return""}function Cs(Q){return to(Q,!0,!0)}function Ta(Q,_e){return Q===_e||Q!==Q&&_e!==_e}function _a(Q){return ao(Q)&&Zn.call(Q,"callee")&&(!Dt.call(Q,"callee")||Vn.call(Q)==a)}var io=Array.isArray;function ra(Q){return Q!=null&&Fl(Q.length)&&!yu(Q)}function ao(Q){return Ml(Q)&&ra(Q)}var jo=zn||fn;function yu(Q){var _e=oo(Q)?Vn.call(Q):"";return _e==g||_e==v}function Fl(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=i}function oo(Q){var _e=typeof Q;return!!Q&&(_e=="object"||_e=="function")}function Ml(Q){return!!Q&&typeof Q=="object"}function so(Q){return ra(Q)?xs(Q):Aa(Q)}function an(){return[]}function fn(){return!1}e.exports=Cs})(Lg,Lg.exports);var us=Lg.exports,Bg=function(){return Bg=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Bg.apply(this,arguments)};function H8(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function c(g){try{h(r.next(g))}catch(v){s(v)}}function d(g){try{h(r.throw(g))}catch(v){s(v)}}function h(g){g.done?a(g.value):i(g.value).then(c,d)}h((r=r.apply(e,[])).next())})}function G8(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(h){return function(g){return d([h,g])}}function d(h){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,h[0]&&(n=0)),n;)try{if(r=1,i&&(a=h[0]&2?i.return:h[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,h[1])).done)return a;switch(i=0,a&&(h=[h[0]&2,a.value]),h[0]){case 0:case 1:a=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!a||h[1]>a[0]&&h[1]<a[3])){n.label=h[1];break}if(h[0]===6&&n.label<a[1]){n.label=a[1],a=h;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(h);break}a[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(g){h=[6,g],i=0}finally{r=a=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function Yd(e,t,n,r,i){return H8(this,void 0,void 0,function(){var a,s;return G8(this,function(c){switch(c.label){case 0:if(n===void 0)return[2];s=0,c.label=1;case 1:return s<n.length?[4,n[s](e,t,r,i,n)]:[3,4];case 2:if(a=c.sent(),a==="canceled")return[3,4];c.label=3;case 3:return s++,[3,1];case 4:return a!=="canceled"?[2,a]:[2]}})})}var Vg=function(e,t){return t===void 0&&(t={}),e?{trackedAnalytics:Bg({sdkCode:e.sdkCode,sdkSemver:e.sdkSemver,techVersion:e.techVersion},t)}:null},q8=function(){function e(t,n,r,i){var a=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=us(n);Yd(t,s,r,this.htmlPluginState,i).then(function(c){if(a.isMounted){a.htmlPluginState.pluginEventSubscription.forEach(function(h){h()});var d=Vg(i,c);a.imgElement.setAttribute("src",s.toURL(d))}})}return e.prototype.update=function(t,n,r){var i=this,a=us(t);Yd(this.imgElement,a,n,this.htmlPluginState).then(function(s){if(i.isMounted){var c=Vg(r,s);i.imgElement.setAttribute("src",a.toURL(c))}})},e.prototype.unmount=function(){this.isMounted=!1},e}();let qn=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}},Y8=class extends Error{constructor(t="Unsupported"){super(t)}};function Jv(e){return new Y8(e)}function Z8(){return this._qualifierModel||{error:Jv(`unsupported qualifier ${this.constructor.name}`)}}let J8=class{constructor(){this._qualifierModel={}}toJson(){return Z8.apply(this)}},Ut=class extends J8{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof qn?this.qualifierValue=n:(this.qualifierValue=new qn,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}},Xi=class extends Ut{constructor(t,n){let r;n?r=new qn([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function X8(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function Q8(){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:Jv(`unsupported action ${this.constructor.name}`)}}let eI=class{constructor(){this._actionModel={}}toJson(){return Q8.apply(this)}},xa=class extends eI{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(),X8(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 Xi(r)):this.qualifiers.set(n,new Ut(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new Xi(t)):t instanceof Xi&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}};class Xv extends xa{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Mh extends Xv{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ut("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ut("h",t)),this}static fromJson(t){const n=new Mh;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 tI(){return new Mh}function $2(){return new Xv("faces")}function nI(){return new Xv("ocr_text")}class rI extends xa{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 Ut("e",`blur_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ut("e",`blur_region${t}`)),this.addQualifier(new Ut("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ut("e",`blur_faces${t}`))):this.addQualifier(new Ut("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($2()),r&&r.regionType==="ocr_text"&&i.region(nI()),r&&r.regionType==="custom"&&i.region(Mh.fromJson(r)),i}}function pu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const w2={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},iI={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},x2={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},E2={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},aI={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},C2={444:"CHROMA_444",420:"CHROMA_420"},oI={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"},sI=pu(C2);pu(oI);const uI=pu(w2),lI=pu(iI),S2=pu(x2);pu(E2);pu(aI);class D2 extends xa{constructor(t,n){super(),this._actionModel={},this._actionModel.actionType=S2[t]||t;const r=this.createEffectQualifier(t,n);this.addQualifier(r)}createEffectQualifier(t,n){let r;return n?r=new qn([t,`${n}`]).setDelimiter(":"):r=new qn(t),new Ut("e",r)}static fromJson(t){const{actionType:n,level:r,strength:i}=t,a=x2[n]||n;return new this(a,r||i)}}class cI extends D2{constructor(t,n){super(t,n),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=S2[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 Oh(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class fI extends xa{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 qn(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new qn(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new qn(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new qn(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new qn(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ut("e",t))}static fromJson(t){const{actionType:n,paths:r,cornersLevel:i,despeckleLevel:a,detailLevel:s,numOfColors:c}=t,d=new this;return r&&d.paths(r),i&&d.cornersLevel(i),a&&d.despeckleLevel(a),s&&d.detailsLevel(s),c&&d.numOfColors(c),d}}class dI extends cI{level(t){return this._actionModel.level=t,this.setLevel(t)}}class hI extends xa{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ut("e",new qn("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ut("e",new qn(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ut("e",new qn(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:n,type:r,stripesStrength:i}=t,a=new this;return r==="xray"&&a.xray(),r==="stripes"&&i&&a.stripesStrength(i),a}}class pI extends dI{color(t){return this._actionModel.color=t,this.addQualifier(new Ut("co",new qn(Oh(t))))}static fromJson(t){const{actionType:n,level:r,color:i}=t,a=new this(n,r);return i&&a.color(i),a}}class mI extends xa{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 Ut("e",`pixelate_region${t}`)),this._region.regionType==="ocr_text"&&(this.addQualifier(new Ut("e",`pixelate_region${t}`)),this.addQualifier(new Ut("g","ocr_text"))),this._region.regionType==="faces"&&this.addQualifier(new Ut("e",`pixelate_faces${t}`))):this.addQualifier(new Ut("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($2()),n&&n.regionType==="custom"&&i.region(tI()),i}}function gI(e){return new rI(e)}function vI(){return new D2("grayscale")}function x4(e){return new pI("colorize",e)}function yI(){return new fI}function bI(){return new hI}function $I(e){return new mI(e)}let wI=class extends xa{constructor(t){super(),this._actionModel={},this.addQualifier(new Ut("b",new qn(Oh(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}},E4=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Jv(`unsupported action ${this.constructor.name}`)}}};function xI(e){const t=e;return"error"in t&&!!t.error}function EI(){return new Xi("ignore_aspect_ratio")}function CI(){return new Xi("lossy")}function SI(){return new Xi("preserve_transparency")}function DI(e){return new Xi("progressive",e)}function AI(){return new Xi("region_relative")}function PI(){return new Xi("relative")}let Qv=class extends qn{constructor(t){super(t),this.val=t}getValue(){return this.val}},A2=class extends xa{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof Qv?i=n.getValue():i=n,this._actionModel.actionType=lI[t],this._actionModel[r]=i,this.addQualifier(new Ut(t,n))}},TI=class extends Xi{constructor(t){super("progressive",t)}},Ng=class extends A2{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(CI()),this}progressive(t){return t instanceof TI?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(DI(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(SI()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),a&&s.preserveTransparency(),s}},Ih=class P2{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 E4(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof P2?this.actions=this.actions.concat(t.actions):this.actions.push(new E4(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 Ng("q",t)),this}format(t){return this.addAction(new Ng("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 wI(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new xa;let r=t;return typeof t=="string"&&(r=new Xi(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(xI(r))return r;t.push(r)}return{actions:t}}};function C4(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 _I extends qn{}class kI extends xa{constructor(t,n,r){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=uI[t]||t,this.addQualifier(new Ut("c",t)),n&&this.width(n),r&&this.height(r)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ut("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ut("w",t))}aspectRatio(t){if(t instanceof _I)return this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ut("ar",t));if(typeof t=="number"||typeof t=="string")return this._actionModel.dimensions.aspectRatio=C4(t),this.addQualifier(new Ut("ar",C4(t)));if(t instanceof Xi)return this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)}relative(){return this._actionModel.relative=!0,this.addFlag(PI())}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(AI())}static fromJson(t){const{actionType:n,dimensions:r,relative:i,regionRelative:a}=t,{aspectRatio:s,width:c,height:d}=r,h=w2[n]||n,g=new this(h,c,d);return s&&g.aspectRatio(s==="ignore_aspect_ratio"?EI():s),i&&g.relative(),a&&g.regionRelative(),g}}class ey extends Ut{constructor(t){super("g",new qn(t))}}class T2 extends ey{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class _2 extends ey{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class k2 extends ey{constructor(t){super(t)}}function RI(e){return new k2(e)}function R2(...e){const t=[...e];return new _2(t)}function F2(){return new T2}class pl extends qn{constructor(t){super(),this.name=t}toString(){return this.name}}function FI(){return new pl("ocr_text")}function MI(e){return e&&`${e}`.split(":")[0]==="auto"}function OI(e){const t=ty(e);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(t)}function ty(e){return`${e}`.replace("g_","")}function II(e){return{compass:ty(e),gravityType:"direction"}}function LI(e){return ty(e)==="ocr_text"}function BI(){return{gravityType:"ocr"}}function VI(e){return`${e.qualifierValue}`.split(":")[0]==="auto"}function NI(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 M2(e){let t;const n=e==="auto"?new T2: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(NI)}}function jI(e){const t=`${e}`.split(":").includes("auto"),n=e.qualifierValue.values,i={gravityType:"object",focusOnObjects:(t?n.slice(0,n.length-1):n).map(a=>`${a}`)};if(t){const a=n[n.length-1].values.slice(1),s=F2().autoFocus(...a);i.fallbackGravity=M2(s)}return i}function KI(e){const n=e.split(":").map(r=>new pl(r));return new _2(n)}function zI(e){return OI(e)?II(e):LI(e)?BI():MI(e)||VI(e)?M2(e):jI(typeof e=="string"?KI(e):e)}class ny extends qn{constructor(t,n){super(),this._weight=n,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,n){const r=t instanceof pl?t:new pl(t);return new ny(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 O2 extends qn{constructor(t){super(),this.val=t}toString(){return this.val}}function UI(e){return e.gravityType==="direction"}function WI(e){return e.gravityType==="ocr"}function HI(e){return e.gravityType==="auto"}function GI(e){const{object:t,weight:n,avoid:r}=e,i=new ny(new pl(t));return(n||n===0)&&i.weight(n),r&&i.avoid(),i}function I2(e){const n=(e.autoFocus||[]).map(GI);return F2().autoFocus(...n)}function qI(e){const t=(e.focusOnObjects||[]).map(r=>new pl(r)),n=R2(...t);if(e.fallbackGravity){const r=I2(e.fallbackGravity);n.fallbackGravity(r)}return n}function YI(e){return UI(e)?new k2(new O2(e.compass)):WI(e)?R2(FI()):HI(e)?I2(e):qI(e)}class ry extends kI{gravity(t){this._actionModel.gravity=zI(t);const n=typeof t=="string"?new Ut("g",t):t;return this.addQualifier(n)}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.gravity&&n.gravity(YI(t.gravity)),n}}class ef extends Ut{constructor(t){super("b"),t&&this.addValue(t)}}const L2=100,ZI=0;class JI extends ef{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}`:`:${L2}:${this.brightnessLevel}`:"";return`b_blurred${t}${n}`}}var B2=JI;class iy extends ef{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map(n=>Oh(n)),this}}class V2 extends iy{toString(){return`
|
|
95
|
+
b_auto:border
|
|
96
|
+
${this._contrast?"_contrast":""}
|
|
97
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
98
|
+
`.replace(/\s+/g,"")}}class N2 extends iy{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class j2 extends N2{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 K2 extends N2{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 z2 extends iy{toString(){return`
|
|
111
|
+
b_auto:predominant
|
|
112
|
+
${this._contrast?"_contrast":""}
|
|
113
|
+
${this._palette.length?`:palette_${this._palette.join("_")}`:""}
|
|
114
|
+
`.replace(/\s+/g,"")}}class U2 extends ef{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 W2(e){return`${e}`.replace("b_","")}function XI(){return{backgroundType:"auto"}}function QI(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 ay(e){const t=e._contrast,n=e._palette,r={backgroundType:""};return t&&(r.contrast=!0),n&&(r.palette=n),r}function eL(e){return Object.assign(Object.assign({},ay(e)),{backgroundType:"border"})}function H2(e){const t=e._gradientColors,n=`${e._gradientDirection}`,r=ay(e);return t&&(r.gradientColors=t),n&&(r.gradientDirection=n),r}function tL(e){return Object.assign(Object.assign({},H2(e)),{backgroundType:"borderGradient"})}function nL(e){return{backgroundType:"color",color:W2(e)}}function rL(e){return Object.assign(Object.assign({},ay(e)),{backgroundType:"predominant"})}function iL(e){return Object.assign(Object.assign({},H2(e)),{backgroundType:"predominantGradient"})}function aL(e){return Object.assign({backgroundType:e.getBackgroundType()},e.getPrompt()?{prompt:e.getPrompt()}:{})}function oL(e){return W2(e)==="auto"?XI():e instanceof B2?QI(e):e instanceof V2?eL(e):e instanceof j2?tL(e):e instanceof z2?rL(e):e instanceof K2?iL(e):e instanceof U2?aL(e):nL(e)}function sL(){return new Qv("svg")}function oy(){return new Qv("auto")}function G2(){return new V2}function q2(){return new ef("auto")}function Y2(){return new j2}function Z2(){return new K2}function J2(){return new z2}function X2(e){return new ef(Oh(e))}function uL(){return new B2}function Q2(){return new U2}const eD={auto:q2,border:G2,borderGradient:Y2,predominantGradient:Z2,predominant:J2,color:X2,blurred:uL,generativeFill:Q2};function lL(e){const{brightness:t,intensity:n}=e,r=eD.blurred();return r.brightness(t??ZI),r.intensity(n??L2),r}function S4(e,t){const{gradientColors:n,gradientDirection:r,contrast:i,palette:a}=t;return i&&e.contrast(),a&&e.palette(...a),n&&e.gradientColors(+n),r&&e.gradientDirection(r),e}function D4(e,t){const{contrast:n,palette:r}=t;return n&&e.contrast(),r&&e.palette(...r),e}function cL(e,t){const{prompt:n}=t;return n&&e.prompt(n),e}function fL(e){const{backgroundType:t}=e;switch(t){case"auto":return q2();case"blurred":return lL(e);case"border":return D4(G2(),e);case"borderGradient":return S4(Y2(),e);case"predominant":return D4(J2(),e);case"predominantGradient":return S4(Z2(),e);case"generativeFill":return cL(Q2(),e);default:return X2(e.color)}}class dL extends ry{background(t){return this._actionModel.background=oL(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t))}static fromJson(t){const n=super.fromJson.apply(this,[t]);return t.background&&n.background(fL(t.background)),t.x&&n.offsetX(t.x),t.y&&n.offsetY(t.y),t.zoom&&n.zoom(t.zoom),n}}class hL extends ry{x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ut("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 pL extends ry{x(t){return this._actionModel.x=t,this.addQualifier(new Ut("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ut("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 mL(e,t){return new hL("crop",e,t)}function gL(e,t){return new pL("fill",e,t)}function vL(e,t){return new dL("pad",e,t)}class yL extends A2{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=C2[t];const n=new qn([this._actionModel.level,t]);return n.setDelimiter(":"),this.addQualifier(new Ut("q",n))}quantization(t){this._actionModel.quantization=t;const n=new qn([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ut("q",n))}static fromJson(t){const{level:n,chromaSubSampling:r,quantization:i}=t,a=E2[n]||n,s=new this(a);if(r){const c=sI[r.toUpperCase()];c&&s.chromaSubSampling(+c)}return i&&s.quantization(i),s}}function Lh(e){return new Ng("f",e)}function Bh(e){return new yL(e)}function bL(){return new O2("north_east")}x4(70).color("black"),x4(40).color("white"),vI(),bI();var $L=new Ih().effect(yI()).delivery(Bh("auto")).delivery(Lh(sL())),wL=new Ih().effect($I()).delivery(Bh("auto")).delivery(Lh(oy())),xL=new Ih().effect(gI(2e3)).delivery(Bh("auto")).delivery(Lh(oy())),EL=new Ih().resize(vL("iw_div_2").aspectRatio(1).background(eD.auto())).resize(mL(1,1).gravity(RI(bL()))).resize(gL().height("ih").width("iw")).delivery(Bh("auto")).delivery(Lh(oy())),A4={vectorize:$L,pixelate:wL,blur:xL,"predominant-color":EL},P4="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",T4={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},_4="?_a=",CL=function(){function e(t,n,r,i,a,s,c){var d=this;this.mimeType="video",this.mimeSubTypes=T4,this.videoElement=t,this.originalVideo=n,this.videoOptions=c,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var h=us(n);Yd(t,n,i,this.htmlPluginState).then(function(){d.htmlPluginState.pluginEventSubscription.forEach(function(g){g()}),d.setVideoAttributes(a,s),d.handleSourceToVideo(h,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(a){r.appendSourceTag(us(t),a)})}},e.prototype.generateUserSources=function(t,n){var r=this;n.map(function(i){var a=i.type,s=i.codecs,c=i.transcode;return r.appendSourceTag(us(t).transcode(c),a,r.buildMimeType(a,s))})},e.prototype.appendSourceTag=function(t,n,r){var i,a=document.createElement("source"),s=(i=this.videoOptions)===null||i===void 0?void 0:i.useFetchFormat;s&&t.format(n);var c=t.toURL(),d=c.split(_4),h=d[1]?"".concat(_4).concat(d[1]):"",g=s?"":".".concat(n);a.src="".concat(d[0]).concat(g).concat(h),a.type=r||"video/".concat(T4[n]||n),this.videoElement.appendChild(a)},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=us(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 a=0,s=Object.entries(t);a<s.length;a++){var c=s[a],d=c[0],h=c[1];h&&this.videoElement.setAttribute(d,d==="poster"?h:"")}},e.prototype.update=function(t,n,r,i,a){var s=this;if(t!==this.originalVideo){for(var c=this.videoElement.getElementsByTagName("SOURCE");c[0];)c[0].parentNode.removeChild(c[0]);Yd(this.videoElement,t,r,this.htmlPluginState).then(function(){s.setVideoAttributes(i,a),s.handleSourceToVideo(t,n),s.videoElement.load()})}},e}(),SL=typeof ss=="object"&&ss&&ss.Object===Object&&ss,DL=typeof self=="object"&&self&&self.Object===Object&&self;SL||DL||Function("return this")();function sy(){return typeof window<"u"}function AL(e){return e instanceof HTMLImageElement}function PL(e){var t={},n=t.rootMargin,r=n===void 0?"0px":n,i=t.threshold,a=i===void 0?.1:i;return TL.bind(null,r,a)}function TL(e,t,n,r,i,a){return e===void 0&&(e="0px"),t===void 0&&(t=.1),sy()?new Promise(function(s){var c=function(){return s({lazyload:!0})},d=kL(n,c,e,t);i.cleanupCallbacks.push(function(){d(),s("canceled")})}):!1}function _L(){return window&&"IntersectionObserver"in window}function kL(e,t,n,r){try{if(!_L())return t(),function(){};var i=new IntersectionObserver(function(a){a.forEach(function(s){s.isIntersecting&&(i.unobserve(s.target),t())})},{rootMargin:n,threshold:r});return i.observe(e),function(){e&&i.observe(e)}}catch{t()}}function RL(e){var t={},n=t.mode,r=n===void 0?"vectorize":n;return FL.bind(null,r)}function FL(e,t,n,r,i,a){A4[e]||(e="vectorize");var s=A4[e].actions,c=us(n);if(s.forEach(function(h){c.addAction(h)}),!sy())return n.transformation=c.transformation,!0;if(AL(t)){c.transformation.actions.forEach(function(h,g){h instanceof xa&&h.getActionTag()==="responsive"&&delete c.transformation.actions[g]});var d=Vg(i,{placeholder:!0});return t.src=c.toURL(d),t.onerror=function(){t.src=P4},new Promise(function(h){t.onload=function(){h()}}).then(function(){return new Promise(function(h){r.cleanupCallbacks.push(function(){t.src=P4,h("canceled")});var g=new Image;g.src=n.toURL(d),g.onload=function(){h({placeholder:!0})},g.onerror=function(){h({placeholder:!0})}})})}}function ML(e,t,n){var r=us(t);if(e)for(var i=0;i<e.length;i++){var a=e[i](null,r);if(!a)break}return r.toURL({trackedAnalytics:n})}function Zd(e){e.cleanupCallbacks.forEach(function(t){t()})}var jg=function(e,t){return jg=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])},jg(e,t)};function tD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jg(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Rc=function(){return Rc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Rc.apply(this,arguments)};function nD(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 Fc={exports:{}},wn={};/*
|
|
115
|
+
object-assign
|
|
116
|
+
(c) Sindre Sorhus
|
|
117
|
+
@license MIT
|
|
118
|
+
*/var k4=Object.getOwnPropertySymbols,OL=Object.prototype.hasOwnProperty,IL=Object.prototype.propertyIsEnumerable;function LL(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function BL(){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(a){return t[a]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var rD=BL()?Object.assign:function(e,t){for(var n,r=LL(e),i,a=1;a<arguments.length;a++){n=Object(arguments[a]);for(var s in n)OL.call(n,s)&&(r[s]=n[s]);if(k4){i=k4(n);for(var c=0;c<i.length;c++)IL.call(n,i[c])&&(r[i[c]]=n[i[c]])}}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 uy=rD,Ea=typeof Symbol=="function"&&Symbol.for,tf=Ea?Symbol.for("react.element"):60103,VL=Ea?Symbol.for("react.portal"):60106,NL=Ea?Symbol.for("react.fragment"):60107,jL=Ea?Symbol.for("react.strict_mode"):60108,KL=Ea?Symbol.for("react.profiler"):60114,zL=Ea?Symbol.for("react.provider"):60109,UL=Ea?Symbol.for("react.context"):60110,WL=Ea?Symbol.for("react.forward_ref"):60112,HL=Ea?Symbol.for("react.suspense"):60113,GL=Ea?Symbol.for("react.memo"):60115,qL=Ea?Symbol.for("react.lazy"):60116,R4=typeof Symbol=="function"&&Symbol.iterator;function nf(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 iD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aD={};function Sl(e,t,n){this.props=e,this.context=t,this.refs=aD,this.updater=n||iD}Sl.prototype.isReactComponent={};Sl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(nf(85));this.updater.enqueueSetState(this,e,t,"setState")};Sl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oD(){}oD.prototype=Sl.prototype;function ly(e,t,n){this.props=e,this.context=t,this.refs=aD,this.updater=n||iD}var cy=ly.prototype=new oD;cy.constructor=ly;uy(cy,Sl.prototype);cy.isPureReactComponent=!0;var fy={current:null},sD=Object.prototype.hasOwnProperty,uD={key:!0,ref:!0,__self:!0,__source:!0};function lD(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)sD.call(t,r)&&!uD.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(c===1)i.children=n;else if(1<c){for(var d=Array(c),h=0;h<c;h++)d[h]=arguments[h+2];i.children=d}if(e&&e.defaultProps)for(r in c=e.defaultProps,c)i[r]===void 0&&(i[r]=c[r]);return{$$typeof:tf,type:e,key:a,ref:s,props:i,_owner:fy.current}}function YL(e,t){return{$$typeof:tf,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dy(e){return typeof e=="object"&&e!==null&&e.$$typeof===tf}function ZL(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(n){return t[n]})}var cD=/\/+/g,Jd=[];function fD(e,t,n,r){if(Jd.length){var i=Jd.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 dD(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>Jd.length&&Jd.push(e)}function Kg(e,t,n,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case tf:case VL:a=!0}}if(a)return n(r,e,t===""?"."+Cm(e,0):t),1;if(a=0,t=t===""?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var c=t+Cm(i,s);a+=Kg(i,c,n,r)}else if(e===null||typeof e!="object"?c=null:(c=R4&&e[R4]||e["@@iterator"],c=typeof c=="function"?c:null),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=t+Cm(i,s++),a+=Kg(i,c,n,r);else if(i==="object")throw n=""+e,Error(nf(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return a}function zg(e,t,n){return e==null?0:Kg(e,"",t,n)}function Cm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ZL(e.key):t.toString(36)}function JL(e,t){e.func.call(e.context,t,e.count++)}function XL(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Ug(e,r,n,function(a){return a}):e!=null&&(dy(e)&&(e=YL(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(cD,"$&/")+"/")+n)),r.push(e))}function Ug(e,t,n,r,i){var a="";n!=null&&(a=(""+n).replace(cD,"$&/")+"/"),t=fD(t,a,r,i),zg(e,XL,t),dD(t)}var hD={current:null};function Oo(){var e=hD.current;if(e===null)throw Error(nf(321));return e}var QL={ReactCurrentDispatcher:hD,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:fy,IsSomeRendererActing:{current:!1},assign:uy};wn.Children={map:function(e,t,n){if(e==null)return e;var r=[];return Ug(e,r,null,t,n),r},forEach:function(e,t,n){if(e==null)return e;t=fD(null,null,t,n),zg(e,JL,t),dD(t)},count:function(e){return zg(e,function(){return null},null)},toArray:function(e){var t=[];return Ug(e,t,null,function(n){return n}),t},only:function(e){if(!dy(e))throw Error(nf(143));return e}};wn.Component=Sl;wn.Fragment=NL;wn.Profiler=KL;wn.PureComponent=ly;wn.StrictMode=jL;wn.Suspense=HL;wn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QL;wn.cloneElement=function(e,t,n){if(e==null)throw Error(nf(267,e));var r=uy({},e.props),i=e.key,a=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,s=fy.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)sD.call(t,d)&&!uD.hasOwnProperty(d)&&(r[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)r.children=n;else if(1<d){c=Array(d);for(var h=0;h<d;h++)c[h]=arguments[h+2];r.children=c}return{$$typeof:tf,type:e.type,key:i,ref:a,props:r,_owner:s}};wn.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:UL,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:zL,_context:e},e.Consumer=e};wn.createElement=lD;wn.createFactory=function(e){var t=lD.bind(null,e);return t.type=e,t};wn.createRef=function(){return{current:null}};wn.forwardRef=function(e){return{$$typeof:WL,render:e}};wn.isValidElement=dy;wn.lazy=function(e){return{$$typeof:qL,_ctor:e,_status:-1,_result:null}};wn.memo=function(e,t){return{$$typeof:GL,type:e,compare:t===void 0?null:t}};wn.useCallback=function(e,t){return Oo().useCallback(e,t)};wn.useContext=function(e,t){return Oo().useContext(e,t)};wn.useDebugValue=function(){};wn.useEffect=function(e,t){return Oo().useEffect(e,t)};wn.useImperativeHandle=function(e,t,n){return Oo().useImperativeHandle(e,t,n)};wn.useLayoutEffect=function(e,t){return Oo().useLayoutEffect(e,t)};wn.useMemo=function(e,t){return Oo().useMemo(e,t)};wn.useReducer=function(e,t,n){return Oo().useReducer(e,t,n)};wn.useRef=function(e){return Oo().useRef(e)};wn.useState=function(e){return Oo().useState(e)};wn.version="16.14.0";var $n={},eB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",tB=eB,nB=Function.call.bind(Object.prototype.hasOwnProperty),Wg=function(){};if(process.env.NODE_ENV!=="production"){var rB=tB,Hg={},iB=nB;Wg=function(e){var t="Warning: "+e;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function pD(e,t,n,r,i){if(process.env.NODE_ENV!=="production"){for(var a in e)if(iB(e,a)){var s;try{if(typeof e[a]!="function"){var c=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}s=e[a](t,a,r,n,null,rB)}catch(h){s=h}if(s&&!(s instanceof Error)&&Wg((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in Hg)){Hg[s.message]=!0;var d=i?i():"";Wg("Failed "+n+" type: "+s.message+(d??""))}}}}pD.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Hg={})};var aB=pD;/** @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=rD,t=aB,n="16.14.0",r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,d=r?Symbol.for("react.profiler"):60114,h=r?Symbol.for("react.provider"):60109,g=r?Symbol.for("react.context"):60110,v=r?Symbol.for("react.concurrent_mode"):60111,$=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,P=r?Symbol.for("react.suspense_list"):60120,T=r?Symbol.for("react.memo"):60115,R=r?Symbol.for("react.lazy"):60116,D=r?Symbol.for("react.block"):60121,C=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,B=r?Symbol.for("react.scope"):60119,k=typeof Symbol=="function"&&Symbol.iterator,L="@@iterator";function X(Y){if(Y===null||typeof Y!="object")return null;var Ee=k&&Y[k]||Y[L];return typeof Ee=="function"?Ee:null}var F={current:null},ge={suspense:null},te={current:null},ie=/^(.*)[\\\/]/;function De(Y,Ee,Me){var ze="";if(Ee){var at=Ee.fileName,Bt=at.replace(ie,"");if(/^index\./.test(Bt)){var bt=at.match(ie);if(bt){var St=bt[1];if(St){var Zt=St.replace(ie,"");Bt=Zt+"/"+Bt}}}ze=" (at "+Bt+":"+Ee.lineNumber+")"}else Me&&(ze=" (created by "+Me+")");return`
|
|
133
|
+
in `+(Y||"Unknown")+ze}var me=1;function de(Y){return Y._status===me?Y._result:null}function ne(Y,Ee,Me){var ze=Ee.displayName||Ee.name||"";return Y.displayName||(ze!==""?Me+"("+ze+")":Me)}function re(Y){if(Y==null)return null;if(typeof Y.tag=="number"&&Te("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof Y=="function")return Y.displayName||Y.name||null;if(typeof Y=="string")return Y;switch(Y){case s:return"Fragment";case a:return"Portal";case d:return"Profiler";case c:return"StrictMode";case y:return"Suspense";case P:return"SuspenseList"}if(typeof Y=="object")switch(Y.$$typeof){case g:return"Context.Consumer";case h:return"Context.Provider";case $:return ne(Y,Y.render,"ForwardRef");case T:return re(Y.type);case D:return re(Y.render);case R:{var Ee=Y,Me=de(Ee);if(Me)return re(Me);break}}return null}var K={},oe=null;function Ce(Y){oe=Y}K.getCurrentStack=null,K.getStackAddendum=function(){var Y="";if(oe){var Ee=re(oe.type),Me=oe._owner;Y+=De(Ee,oe._source,Me&&re(Me.type))}var ze=K.getCurrentStack;return ze&&(Y+=ze()||""),Y};var ee={current:!1},pe={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:ge,ReactCurrentOwner:te,IsSomeRendererActing:ee,assign:e};e(pe,{ReactDebugCurrentFrame:K,ReactComponentTreeHook:{}});function Pe(Y){{for(var Ee=arguments.length,Me=new Array(Ee>1?Ee-1:0),ze=1;ze<Ee;ze++)Me[ze-1]=arguments[ze];Ve("warn",Y,Me)}}function Te(Y){{for(var Ee=arguments.length,Me=new Array(Ee>1?Ee-1:0),ze=1;ze<Ee;ze++)Me[ze-1]=arguments[ze];Ve("error",Y,Me)}}function Ve(Y,Ee,Me){{var ze=Me.length>0&&typeof Me[Me.length-1]=="string"&&Me[Me.length-1].indexOf(`
|
|
134
|
+
in`)===0;if(!ze){var at=pe.ReactDebugCurrentFrame,Bt=at.getStackAddendum();Bt!==""&&(Ee+="%s",Me=Me.concat([Bt]))}var bt=Me.map(function(Pn){return""+Pn});bt.unshift("Warning: "+Ee),Function.prototype.apply.call(console[Y],console,bt);try{var St=0,Zt="Warning: "+Ee.replace(/%s/g,function(){return Me[St++]});throw new Error(Zt)}catch{}}}var Se={};function Je(Y,Ee){{var Me=Y.constructor,ze=Me&&(Me.displayName||Me.name)||"ReactClass",at=ze+"."+Ee;if(Se[at])return;Te("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.",Ee,ze),Se[at]=!0}}var Ge={isMounted:function(Y){return!1},enqueueForceUpdate:function(Y,Ee,Me){Je(Y,"forceUpdate")},enqueueReplaceState:function(Y,Ee,Me,ze){Je(Y,"replaceState")},enqueueSetState:function(Y,Ee,Me,ze){Je(Y,"setState")}},xe={};Object.freeze(xe);function Be(Y,Ee,Me){this.props=Y,this.context=Ee,this.refs=xe,this.updater=Me||Ge}Be.prototype.isReactComponent={},Be.prototype.setState=function(Y,Ee){if(!(typeof Y=="object"||typeof Y=="function"||Y==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,Y,Ee,"setState")},Be.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};{var qe={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)."]},Ke=function(Y,Ee){Object.defineProperty(Be.prototype,Y,{get:function(){Pe("%s(...) is deprecated in plain JavaScript React classes. %s",Ee[0],Ee[1])}})};for(var Oe in qe)qe.hasOwnProperty(Oe)&&Ke(Oe,qe[Oe])}function et(){}et.prototype=Be.prototype;function wt(Y,Ee,Me){this.props=Y,this.context=Ee,this.refs=xe,this.updater=Me||Ge}var Lt=wt.prototype=new et;Lt.constructor=wt,e(Lt,Be.prototype),Lt.isPureReactComponent=!0;function yt(){var Y={current:null};return Object.seal(Y),Y}var xt=Object.prototype.hasOwnProperty,Yn={key:!0,ref:!0,__self:!0,__source:!0},tt,Et,At;At={};function Bn(Y){if(xt.call(Y,"ref")){var Ee=Object.getOwnPropertyDescriptor(Y,"ref").get;if(Ee&&Ee.isReactWarning)return!1}return Y.ref!==void 0}function ar(Y){if(xt.call(Y,"key")){var Ee=Object.getOwnPropertyDescriptor(Y,"key").get;if(Ee&&Ee.isReactWarning)return!1}return Y.key!==void 0}function Zn(Y,Ee){var Me=function(){tt||(tt=!0,Te("%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)",Ee))};Me.isReactWarning=!0,Object.defineProperty(Y,"key",{get:Me,configurable:!0})}function Vn(Y,Ee){var Me=function(){Et||(Et=!0,Te("%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)",Ee))};Me.isReactWarning=!0,Object.defineProperty(Y,"ref",{get:Me,configurable:!0})}function _r(Y){if(typeof Y.ref=="string"&&te.current&&Y.__self&&te.current.stateNode!==Y.__self){var Ee=re(te.current.type);At[Ee]||(Te('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',re(te.current.type),Y.ref),At[Ee]=!0)}}var Jn=function(Y,Ee,Me,ze,at,Bt,bt){var St={$$typeof:i,type:Y,key:Ee,ref:Me,props:bt,_owner:Bt};return St._store={},Object.defineProperty(St._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(St,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ze}),Object.defineProperty(St,"_source",{configurable:!1,enumerable:!1,writable:!1,value:at}),Object.freeze&&(Object.freeze(St.props),Object.freeze(St)),St};function Qt(Y,Ee,Me){var ze,at={},Bt=null,bt=null,St=null,Zt=null;if(Ee!=null){Bn(Ee)&&(bt=Ee.ref,_r(Ee)),ar(Ee)&&(Bt=""+Ee.key),St=Ee.__self===void 0?null:Ee.__self,Zt=Ee.__source===void 0?null:Ee.__source;for(ze in Ee)xt.call(Ee,ze)&&!Yn.hasOwnProperty(ze)&&(at[ze]=Ee[ze])}var Pn=arguments.length-2;if(Pn===1)at.children=Me;else if(Pn>1){for(var vr=Array(Pn),yr=0;yr<Pn;yr++)vr[yr]=arguments[yr+2];Object.freeze&&Object.freeze(vr),at.children=vr}if(Y&&Y.defaultProps){var rn=Y.defaultProps;for(ze in rn)at[ze]===void 0&&(at[ze]=rn[ze])}if(Bt||bt){var Fr=typeof Y=="function"?Y.displayName||Y.name||"Unknown":Y;Bt&&Zn(at,Fr),bt&&Vn(at,Fr)}return Jn(Y,Bt,bt,St,Zt,te.current,at)}function or(Y,Ee){var Me=Jn(Y.type,Ee,Y.ref,Y._self,Y._source,Y._owner,Y.props);return Me}function xr(Y,Ee,Me){if(Y==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Y+".");var ze,at=e({},Y.props),Bt=Y.key,bt=Y.ref,St=Y._self,Zt=Y._source,Pn=Y._owner;if(Ee!=null){Bn(Ee)&&(bt=Ee.ref,Pn=te.current),ar(Ee)&&(Bt=""+Ee.key);var vr;Y.type&&Y.type.defaultProps&&(vr=Y.type.defaultProps);for(ze in Ee)xt.call(Ee,ze)&&!Yn.hasOwnProperty(ze)&&(Ee[ze]===void 0&&vr!==void 0?at[ze]=vr[ze]:at[ze]=Ee[ze])}var yr=arguments.length-2;if(yr===1)at.children=Me;else if(yr>1){for(var rn=Array(yr),Fr=0;Fr<yr;Fr++)rn[Fr]=arguments[Fr+2];at.children=rn}return Jn(Y.type,Bt,bt,St,Zt,Pn,at)}function Wt(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===i}var Dt=".",Tt=":";function Ct(Y){var Ee=/[=:]/g,Me={"=":"=0",":":"=2"},ze=(""+Y).replace(Ee,function(at){return Me[at]});return"$"+ze}var zn=!1,Er=/\/+/g;function sr(Y){return(""+Y).replace(Er,"$&/")}var gr=10,Xn=[];function Kr(Y,Ee,Me,ze){if(Xn.length){var at=Xn.pop();return at.result=Y,at.keyPrefix=Ee,at.func=Me,at.context=ze,at.count=0,at}else return{result:Y,keyPrefix:Ee,func:Me,context:ze,count:0}}function ft(Y){Y.result=null,Y.keyPrefix=null,Y.func=null,Y.context=null,Y.count=0,Xn.length<gr&&Xn.push(Y)}function Un(Y,Ee,Me,ze){var at=typeof Y;(at==="undefined"||at==="boolean")&&(Y=null);var Bt=!1;if(Y===null)Bt=!0;else switch(at){case"string":case"number":Bt=!0;break;case"object":switch(Y.$$typeof){case i:case a:Bt=!0}}if(Bt)return Me(ze,Y,Ee===""?Dt+xn(Y,0):Ee),1;var bt,St,Zt=0,Pn=Ee===""?Dt:Ee+Tt;if(Array.isArray(Y))for(var vr=0;vr<Y.length;vr++)bt=Y[vr],St=Pn+xn(bt,vr),Zt+=Un(bt,St,Me,ze);else{var yr=X(Y);if(typeof yr=="function"){yr===Y.entries&&(zn||Pe("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."),zn=!0);for(var rn=yr.call(Y),Fr,na=0;!(Fr=rn.next()).done;)bt=Fr.value,St=Pn+xn(bt,na++),Zt+=Un(bt,St,Me,ze)}else if(at==="object"){var Pa="";Pa=" If you meant to render a collection of children, use an array instead."+K.getStackAddendum();var ro=""+Y;throw Error("Objects are not valid as a React child (found: "+(ro==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":ro)+")."+Pa)}}return Zt}function kr(Y,Ee,Me){return Y==null?0:Un(Y,"",Ee,Me)}function xn(Y,Ee){return typeof Y=="object"&&Y!==null&&Y.key!=null?Ct(Y.key):Ee.toString(36)}function ur(Y,Ee,Me){var ze=Y.func,at=Y.context;ze.call(at,Ee,Y.count++)}function $t(Y,Ee,Me){if(Y==null)return Y;var ze=Kr(null,null,Ee,Me);kr(Y,ur,ze),ft(ze)}function Vt(Y,Ee,Me){var ze=Y.result,at=Y.keyPrefix,Bt=Y.func,bt=Y.context,St=Bt.call(bt,Ee,Y.count++);Array.isArray(St)?kn(St,ze,Me,function(Zt){return Zt}):St!=null&&(Wt(St)&&(St=or(St,at+(St.key&&(!Ee||Ee.key!==St.key)?sr(St.key)+"/":"")+Me)),ze.push(St))}function kn(Y,Ee,Me,ze,at){var Bt="";Me!=null&&(Bt=sr(Me)+"/");var bt=Kr(Ee,Bt,ze,at);kr(Y,Vt,bt),ft(bt)}function Hr(Y,Ee,Me){if(Y==null)return Y;var ze=[];return kn(Y,ze,null,Ee,Me),ze}function rt(Y){return kr(Y,function(){return null},null)}function gt(Y){var Ee=[];return kn(Y,Ee,null,function(Me){return Me}),Ee}function Ye(Y){if(!Wt(Y))throw Error("React.Children.only expected to receive a single React element child.");return Y}function Ot(Y,Ee){Ee===void 0?Ee=null:Ee!==null&&typeof Ee!="function"&&Te("createContext: Expected the optional second argument to be a function. Instead received: %s",Ee);var Me={$$typeof:g,_calculateChangedBits:Ee,_currentValue:Y,_currentValue2:Y,_threadCount:0,Provider:null,Consumer:null};Me.Provider={$$typeof:h,_context:Me};var ze=!1,at=!1;{var Bt={$$typeof:g,_context:Me,_calculateChangedBits:Me._calculateChangedBits};Object.defineProperties(Bt,{Provider:{get:function(){return at||(at=!0,Te("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),Me.Provider},set:function(bt){Me.Provider=bt}},_currentValue:{get:function(){return Me._currentValue},set:function(bt){Me._currentValue=bt}},_currentValue2:{get:function(){return Me._currentValue2},set:function(bt){Me._currentValue2=bt}},_threadCount:{get:function(){return Me._threadCount},set:function(bt){Me._threadCount=bt}},Consumer:{get:function(){return ze||(ze=!0,Te("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),Me.Consumer}}}),Me.Consumer=Bt}return Me._currentRenderer=null,Me._currentRenderer2=null,Me}function En(Y){var Ee={$$typeof:R,_ctor:Y,_status:-1,_result:null};{var Me,ze;Object.defineProperties(Ee,{defaultProps:{configurable:!0,get:function(){return Me},set:function(at){Te("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."),Me=at,Object.defineProperty(Ee,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ze},set:function(at){Te("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."),ze=at,Object.defineProperty(Ee,"propTypes",{enumerable:!0})}}})}return Ee}function Cr(Y){return Y!=null&&Y.$$typeof===T?Te("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof Y!="function"?Te("forwardRef requires a render function but was given %s.",Y===null?"null":typeof Y):Y.length!==0&&Y.length!==2&&Te("forwardRef render functions accept exactly two parameters: props and ref. %s",Y.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),Y!=null&&(Y.defaultProps!=null||Y.propTypes!=null)&&Te("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:$,render:Y}}function pn(Y){return typeof Y=="string"||typeof Y=="function"||Y===s||Y===v||Y===d||Y===c||Y===y||Y===P||typeof Y=="object"&&Y!==null&&(Y.$$typeof===R||Y.$$typeof===T||Y.$$typeof===h||Y.$$typeof===g||Y.$$typeof===$||Y.$$typeof===C||Y.$$typeof===_||Y.$$typeof===B||Y.$$typeof===D)}function Nn(Y,Ee){return pn(Y)||Te("memo: The first argument must be a component. Instead received: %s",Y===null?"null":typeof Y),{$$typeof:T,type:Y,compare:Ee===void 0?null:Ee}}function mn(){var Y=F.current;if(Y===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 Y}function un(Y,Ee){var Me=mn();if(Ee!==void 0&&Te("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",Ee,typeof Ee=="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`:""),Y._context!==void 0){var ze=Y._context;ze.Consumer===Y?Te("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?"):ze.Provider===Y&&Te("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return Me.useContext(Y,Ee)}function Qn(Y){var Ee=mn();return Ee.useState(Y)}function it(Y,Ee,Me){var ze=mn();return ze.useReducer(Y,Ee,Me)}function ln(Y){var Ee=mn();return Ee.useRef(Y)}function Gr(Y,Ee){var Me=mn();return Me.useEffect(Y,Ee)}function Rr(Y,Ee){var Me=mn();return Me.useLayoutEffect(Y,Ee)}function Rn(Y,Ee){var Me=mn();return Me.useCallback(Y,Ee)}function Yt(Y,Ee){var Me=mn();return Me.useMemo(Y,Ee)}function er(Y,Ee,Me){var ze=mn();return ze.useImperativeHandle(Y,Ee,Me)}function Sr(Y,Ee){{var Me=mn();return Me.useDebugValue(Y,Ee)}}var cn;cn=!1;function $i(){if(te.current){var Y=re(te.current.type);if(Y)return`
|
|
141
|
+
|
|
142
|
+
Check the render method of \``+Y+"`."}return""}function Kt(Y){if(Y!==void 0){var Ee=Y.fileName.replace(/^.*[\\\/]/,""),Me=Y.lineNumber;return`
|
|
143
|
+
|
|
144
|
+
Check your code at `+Ee+":"+Me+"."}return""}function ws(Y){return Y!=null?Kt(Y.__source):""}var Qa={};function xs(Y){var Ee=$i();if(!Ee){var Me=typeof Y=="string"?Y:Y.displayName||Y.name;Me&&(Ee=`
|
|
145
|
+
|
|
146
|
+
Check the top-level render call using <`+Me+">.")}return Ee}function Da(Y,Ee){if(!(!Y._store||Y._store.validated||Y.key!=null)){Y._store.validated=!0;var Me=xs(Ee);if(!Qa[Me]){Qa[Me]=!0;var ze="";Y&&Y._owner&&Y._owner!==te.current&&(ze=" It was passed a child from "+re(Y._owner.type)+"."),Ce(Y),Te('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',Me,ze),Ce(null)}}}function Fi(Y,Ee){if(typeof Y=="object"){if(Array.isArray(Y))for(var Me=0;Me<Y.length;Me++){var ze=Y[Me];Wt(ze)&&Da(ze,Ee)}else if(Wt(Y))Y._store&&(Y._store.validated=!0);else if(Y){var at=X(Y);if(typeof at=="function"&&at!==Y.entries)for(var Bt=at.call(Y),bt;!(bt=Bt.next()).done;)Wt(bt.value)&&Da(bt.value,Ee)}}}function eo(Y){{var Ee=Y.type;if(Ee==null||typeof Ee=="string")return;var Me=re(Ee),ze;if(typeof Ee=="function")ze=Ee.propTypes;else if(typeof Ee=="object"&&(Ee.$$typeof===$||Ee.$$typeof===T))ze=Ee.propTypes;else return;ze?(Ce(Y),t(ze,Y.props,"prop",Me,K.getStackAddendum),Ce(null)):Ee.PropTypes!==void 0&&!cn&&(cn=!0,Te("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Me||"Unknown")),typeof Ee.getDefaultProps=="function"&&!Ee.getDefaultProps.isReactClassApproved&&Te("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function to(Y){{Ce(Y);for(var Ee=Object.keys(Y.props),Me=0;Me<Ee.length;Me++){var ze=Ee[Me];if(ze!=="children"&&ze!=="key"){Te("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ze);break}}Y.ref!==null&&Te("Invalid attribute `ref` supplied to `React.Fragment`."),Ce(null)}}function Io(Y,Ee,Me){var ze=pn(Y);if(!ze){var at="";(Y===void 0||typeof Y=="object"&&Y!==null&&Object.keys(Y).length===0)&&(at+=" 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 Bt=ws(Ee);Bt?at+=Bt:at+=$i();var bt;Y===null?bt="null":Array.isArray(Y)?bt="array":Y!==void 0&&Y.$$typeof===i?(bt="<"+(re(Y.type)||"Unknown")+" />",at=" Did you accidentally export a JSX literal instead of a component?"):bt=typeof Y,Te("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",bt,at)}var St=Qt.apply(this,arguments);if(St==null)return St;if(ze)for(var Zt=2;Zt<arguments.length;Zt++)Fi(arguments[Zt],Y);return Y===s?to(St):eo(St),St}var Lo=!1;function Es(Y){var Ee=Io.bind(null,Y);return Ee.type=Y,Lo||(Lo=!0,Pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(Ee,"type",{enumerable:!1,get:function(){return Pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:Y}),Y}}),Ee}function Bo(Y,Ee,Me){for(var ze=xr.apply(this,arguments),at=2;at<arguments.length;at++)Fi(arguments[at],ze.type);return eo(ze),ze}try{var Aa=Object.freeze({}),no=new Map([[Aa,null]]),ta=new Set([Aa]);no.set(0,0),ta.add(0)}catch{}var Vo=Io,No=Bo,zr=Es,Dr={map:Hr,forEach:$t,count:rt,toArray:gt,only:Ye};$n.Children=Dr,$n.Component=Be,$n.Fragment=s,$n.Profiler=d,$n.PureComponent=wt,$n.StrictMode=c,$n.Suspense=y,$n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pe,$n.cloneElement=No,$n.createContext=Ot,$n.createElement=Vo,$n.createFactory=zr,$n.createRef=yt,$n.forwardRef=Cr,$n.isValidElement=Wt,$n.lazy=En,$n.memo=Nn,$n.useCallback=Rn,$n.useContext=un,$n.useDebugValue=Sr,$n.useEffect=Gr,$n.useImperativeHandle=er,$n.useLayoutEffect=Rr,$n.useMemo=Yt,$n.useReducer=it,$n.useRef=ln,$n.useState=Qn,$n.version=n}();process.env.NODE_ENV==="production"?Fc.exports=wn:Fc.exports=$n;var Hu=Fc.exports,Sm={sdkSemver:"1.13.1",techVersion:Hu.version,sdkCode:"J"},oB=function(e){tD(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=Hu.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new q8(this.imageRef.current,this.props.cldImg,this.props.plugins,Sm)},t.prototype.componentDidUpdate=function(){Zd(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Sm)},t.prototype.componentWillUnmount=function(){Zd(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=nD(n,["cldImg","plugins"]);if(sy())return Hu.createElement("img",Rc({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=ML(this.props.plugins,this.props.cldImg,Sm);return Hu.createElement("img",Rc({},r,{src:i}))},t}(Hu.Component),sB=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){tD(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=Fc.exports.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new CL(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(){Zd(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){Zd(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return sB.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=nD(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Hu.createElement("video",Rc({},r,{ref:this.attachRef}))},t})(Fc.exports.Component);function uB(e){return!(typeof e!="object"||e instanceof Array)}class lB{filterOutNonSupportedKeys(t,n){const r=Object.create({});return uB(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 F4=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class hy extends lB{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,F4);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,F4);return new hy(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 Mc{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 cB extends Error{constructor(t="Unsupported"){super(t)}}function py(e){return new cB(e)}function fB(){return this._qualifierModel||{error:py(`unsupported qualifier ${this.constructor.name}`)}}class dB{constructor(){this._qualifierModel={}}toJson(){return fB.apply(this)}}class Vh extends dB{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Mc?this.qualifierValue=n:(this.qualifierValue=new Mc,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 fs extends Vh{constructor(t,n){let r;n?r=new Mc([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function hB(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function pB(){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:py(`unsupported action ${this.constructor.name}`)}}class mB{constructor(){this._actionModel={}}toJson(){return pB.apply(this)}}class my extends mB{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(),hB(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 fs(r)):this.qualifiers.set(n,new Vh(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new fs(t)):t instanceof fs&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function gB(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class vB extends my{constructor(t){super(),this._actionModel={},this.addQualifier(new Vh("b",new Mc(gB(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class M4{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:py(`unsupported action ${this.constructor.name}`)}}}function yB(e){const t=e;return"error"in t&&!!t.error}function bB(){return new fs("lossy")}function $B(){return new fs("preserve_transparency")}function wB(e){return new fs("progressive",e)}class xB extends Mc{constructor(t){super(t),this.val=t}getValue(){return this.val}}function mu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const EB={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},CB={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},SB={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},DB={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},AB={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},PB={444:"CHROMA_444",420:"CHROMA_420"},TB={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};mu(PB);mu(TB);mu(EB);const _B=mu(CB);mu(SB);mu(DB);mu(AB);class kB extends my{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof xB?i=n.getValue():i=n,this._actionModel.actionType=_B[t],this._actionModel[r]=i,this.addQualifier(new Vh(t,n))}}class RB extends fs{constructor(t){super("progressive",t)}}class Xd extends kB{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(bB()),this}progressive(t){return t instanceof RB?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(wB(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag($B()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),a&&s.preserveTransparency(),s}}class Nh{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 M4(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof Nh?this.actions=this.actions.concat(t.actions):this.actions.push(new M4(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 Xd("q",t)),this}format(t){return this.addAction(new Xd("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 vB(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new my;let r=t;return typeof t=="string"&&(r=new fs(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(yB(r))return r;t.push(r)}return{actions:t}}}class FB extends Nh{}class MB extends Nh{}function OB(e){return e.match(/^https?:\//)}function IB(e){return e.indexOf("/")<0}function LB(e){return e.match(/^v[0-9]+/)}function BB(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function VB(e){return e||"image"}function NB(e){return e||"upload"}function jB(e,t,n){const r=n!==!1;return t?`v${t}`:LB(e)||OB(e)||IB(e)?"":r?"v1":""}function gy(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=KB(i,r/i.length)),i.slice(0,r)+String(e))}function KB(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const zB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qd={};let O4=0;zB.split("").forEach(e=>{let t=O4.toString(2);t=gy(t,6,"0"),Qd[t]=e,O4++});function UB(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function WB(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 gy(t,2,"0")}).join(".")}function I4(e){let t="";const r=e.split(".").length*6,i=UB(e),a=WB(i);let c=parseInt(a.split(".").join("")).toString(2);if(c=gy(c,r,"0"),c.length%6!==0)throw"Version must be smaller than 43.21.26)";return c.match(/.{1,6}/g).forEach(d=>{t+=Qd[d]}),t}function HB(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 GB="1.21.0";function qB(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),s=i.padStart(6,"0");return Qd[a]+Qd[s]}function YB(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function ZB(e){const t={techVersion:YB(),sdkCode:"T",sdkSemver:GB.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 L4(e){const t=ZB(e),n=HB(t);try{const r=JB(n.techVersion),i=I4(n.sdkSemver),a=I4(r),s=qB(n.osVersion),c=n.feature,d=n.sdkCode,{product:h,osType:g}=n;return`D${h}${d}${i}${a}${g}${s}${c}`}catch{return"E"}}function JB(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const B4={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class XB{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new hy(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=VB(this.assetType),n=NB(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=B4[`${t}/${n}`],s=this.urlConfig.useRootPath,c=this.urlConfig.shorten;if(s){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(c&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(B4).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=BB(this.cloudName,this.urlConfig),i=t?t.toString():"",a=jB(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,a,s.replace(/,/g,"%2C"),this.suffix].filter(d=>d).join("/");{const c=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(g=>g).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),d=this.urlConfig.analytics!==!1&&!s.includes("?");let h="";if(typeof this.urlConfig.queryParams=="object")try{const g=new URLSearchParams(this.urlConfig.queryParams);d&&g.set("_a",L4(n)),h=g.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 h=this.urlConfig.queryParams||"",d&&(h+=`${h.length>0?"&":""}_a=${L4(n)}`);return h?`${c}?${h}`:c}}}class mD extends XB{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 Xd("q",t)),this}format(t){return this.addAction(new Xd("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 QB extends mD{constructor(t,n,r){super(t,n,r,new FB)}}class eV extends mD{constructor(t,n,r){super(t,n,r,new MB),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class tV{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new QB(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new eV(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var Dm={exports:{}},V4;function nV(){return V4||(V4=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,a=0,s={},c={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function C(_){return _ instanceof d?new d(_.type,C(_.content),_.alias):Array.isArray(_)?_.map(C):_.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(C){return Object.prototype.toString.call(C).slice(8,-1)},objId:function(C){return C.__id||Object.defineProperty(C,"__id",{value:++a}),C.__id},clone:function C(_,B){B=B||{};var k,L;switch(c.util.type(_)){case"Object":if(L=c.util.objId(_),B[L])return B[L];k={},B[L]=k;for(var X in _)_.hasOwnProperty(X)&&(k[X]=C(_[X],B));return k;case"Array":return L=c.util.objId(_),B[L]?B[L]:(k=[],B[L]=k,_.forEach(function(F,ge){k[ge]=C(F,B)}),k);default:return _}},getLanguage:function(C){for(;C;){var _=i.exec(C.className);if(_)return _[1].toLowerCase();C=C.parentElement}return"none"},setLanguage:function(C,_){C.className=C.className.replace(RegExp(i,"gi"),""),C.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(k){var C=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(C){var _=document.getElementsByTagName("script");for(var B in _)if(_[B].src==C)return _[B]}return null}},isActive:function(C,_,B){for(var k="no-"+_;C;){var L=C.classList;if(L.contains(_))return!0;if(L.contains(k))return!1;C=C.parentElement}return!!B}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(C,_){var B=c.util.clone(c.languages[C]);for(var k in _)B[k]=_[k];return B},insertBefore:function(C,_,B,k){k=k||c.languages;var L=k[C],X={};for(var F in L)if(L.hasOwnProperty(F)){if(F==_)for(var ge in B)B.hasOwnProperty(ge)&&(X[ge]=B[ge]);B.hasOwnProperty(F)||(X[F]=L[F])}var te=k[C];return k[C]=X,c.languages.DFS(c.languages,function(ie,De){De===te&&ie!=C&&(this[ie]=X)}),X},DFS:function C(_,B,k,L){L=L||{};var X=c.util.objId;for(var F in _)if(_.hasOwnProperty(F)){B.call(_,F,_[F],k||F);var ge=_[F],te=c.util.type(ge);te==="Object"&&!L[X(ge)]?(L[X(ge)]=!0,C(ge,B,null,L)):te==="Array"&&!L[X(ge)]&&(L[X(ge)]=!0,C(ge,B,F,L))}}},plugins:{},highlightAll:function(C,_){c.highlightAllUnder(document,C,_)},highlightAllUnder:function(C,_,B){var k={callback:B,container:C,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),c.hooks.run("before-all-elements-highlight",k);for(var L=0,X;X=k.elements[L++];)c.highlightElement(X,_===!0,k.callback)},highlightElement:function(C,_,B){var k=c.util.getLanguage(C),L=c.languages[k];c.util.setLanguage(C,k);var X=C.parentElement;X&&X.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(X,k);var F=C.textContent,ge={element:C,language:k,grammar:L,code:F};function te(De){ge.highlightedCode=De,c.hooks.run("before-insert",ge),ge.element.innerHTML=ge.highlightedCode,c.hooks.run("after-highlight",ge),c.hooks.run("complete",ge),B&&B.call(ge.element)}if(c.hooks.run("before-sanity-check",ge),X=ge.element.parentElement,X&&X.nodeName.toLowerCase()==="pre"&&!X.hasAttribute("tabindex")&&X.setAttribute("tabindex","0"),!ge.code){c.hooks.run("complete",ge),B&&B.call(ge.element);return}if(c.hooks.run("before-highlight",ge),!ge.grammar){te(c.util.encode(ge.code));return}if(_&&r.Worker){var ie=new Worker(c.filename);ie.onmessage=function(De){te(De.data)},ie.postMessage(JSON.stringify({language:ge.language,code:ge.code,immediateClose:!0}))}else te(c.highlight(ge.code,ge.grammar,ge.language))},highlight:function(C,_,B){var k={code:C,grammar:_,language:B};if(c.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=c.tokenize(k.code,k.grammar),c.hooks.run("after-tokenize",k),d.stringify(c.util.encode(k.tokens),k.language)},tokenize:function(C,_){var B=_.rest;if(B){for(var k in B)_[k]=B[k];delete _.rest}var L=new v;return $(L,L.head,C),g(C,L,_,L.head,0),P(L)},hooks:{all:{},add:function(C,_){var B=c.hooks.all;B[C]=B[C]||[],B[C].push(_)},run:function(C,_){var B=c.hooks.all[C];if(!(!B||!B.length))for(var k=0,L;L=B[k++];)L(_)}},Token:d};r.Prism=c;function d(C,_,B,k){this.type=C,this.content=_,this.alias=B,this.length=(k||"").length|0}d.stringify=function C(_,B){if(typeof _=="string")return _;if(Array.isArray(_)){var k="";return _.forEach(function(te){k+=C(te,B)}),k}var L={type:_.type,content:C(_.content,B),tag:"span",classes:["token",_.type],attributes:{},language:B},X=_.alias;X&&(Array.isArray(X)?Array.prototype.push.apply(L.classes,X):L.classes.push(X)),c.hooks.run("wrap",L);var F="";for(var ge in L.attributes)F+=" "+ge+'="'+(L.attributes[ge]||"").replace(/"/g,""")+'"';return"<"+L.tag+' class="'+L.classes.join(" ")+'"'+F+">"+L.content+"</"+L.tag+">"};function h(C,_,B,k){C.lastIndex=_;var L=C.exec(B);if(L&&k&&L[1]){var X=L[1].length;L.index+=X,L[0]=L[0].slice(X)}return L}function g(C,_,B,k,L,X){for(var F in B)if(!(!B.hasOwnProperty(F)||!B[F])){var ge=B[F];ge=Array.isArray(ge)?ge:[ge];for(var te=0;te<ge.length;++te){if(X&&X.cause==F+","+te)return;var ie=ge[te],De=ie.inside,me=!!ie.lookbehind,de=!!ie.greedy,ne=ie.alias;if(de&&!ie.pattern.global){var re=ie.pattern.toString().match(/[imsuy]*$/)[0];ie.pattern=RegExp(ie.pattern.source,re+"g")}for(var K=ie.pattern||ie,oe=k.next,Ce=L;oe!==_.tail&&!(X&&Ce>=X.reach);Ce+=oe.value.length,oe=oe.next){var ee=oe.value;if(_.length>C.length)return;if(!(ee instanceof d)){var pe=1,Pe;if(de){if(Pe=h(K,Ce,C,me),!Pe||Pe.index>=C.length)break;var Je=Pe.index,Te=Pe.index+Pe[0].length,Ve=Ce;for(Ve+=oe.value.length;Je>=Ve;)oe=oe.next,Ve+=oe.value.length;if(Ve-=oe.value.length,Ce=Ve,oe.value instanceof d)continue;for(var Se=oe;Se!==_.tail&&(Ve<Te||typeof Se.value=="string");Se=Se.next)pe++,Ve+=Se.value.length;pe--,ee=C.slice(Ce,Ve),Pe.index-=Ce}else if(Pe=h(K,0,ee,me),!Pe)continue;var Je=Pe.index,Ge=Pe[0],xe=ee.slice(0,Je),Be=ee.slice(Je+Ge.length),qe=Ce+ee.length;X&&qe>X.reach&&(X.reach=qe);var Ke=oe.prev;xe&&(Ke=$(_,Ke,xe),Ce+=xe.length),y(_,Ke,pe);var Oe=new d(F,De?c.tokenize(Ge,De):Ge,ne,Ge);if(oe=$(_,Ke,Oe),Be&&$(_,oe,Be),pe>1){var et={cause:F+","+te,reach:qe};g(C,_,B,oe.prev,Ce,et),X&&et.reach>X.reach&&(X.reach=et.reach)}}}}}}function v(){var C={value:null,prev:null,next:null},_={value:null,prev:C,next:null};C.next=_,this.head=C,this.tail=_,this.length=0}function $(C,_,B){var k=_.next,L={value:B,prev:_,next:k};return _.next=L,k.prev=L,C.length++,L}function y(C,_,B){for(var k=_.next,L=0;L<B&&k!==C.tail;L++)k=k.next;_.next=k,k.prev=_,C.length-=L}function P(C){for(var _=[],B=C.head.next;B!==C.tail;)_.push(B.value),B=B.next;return _}if(!r.document)return r.addEventListener&&(c.disableWorkerMessageHandler||r.addEventListener("message",function(C){var _=JSON.parse(C.data),B=_.language,k=_.code,L=_.immediateClose;r.postMessage(c.highlight(k,c.languages[B],B)),L&&r.close()},!1)),c;var T=c.util.currentScript();T&&(c.filename=T.src,T.hasAttribute("data-manual")&&(c.manual=!0));function R(){c.manual||c.highlightAll()}if(!c.manual){var D=document.readyState;D==="loading"||D==="interactive"&&T&&T.defer?document.addEventListener("DOMContentLoaded",R):window.requestAnimationFrame?window.requestAnimationFrame(R):window.setTimeout(R,16)}return c}(t);e.exports&&(e.exports=n),typeof is<"u"&&(is.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,a){var s={};s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var c={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};c["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var d={};d[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:c},n.languages.insertBefore("markup","cdata",d)}}),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 a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.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(T,R){return"✖ Error "+T+" while fetching file: "+R},a="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},c="data-src-status",d="loading",h="loaded",g="failed",v="pre[data-src]:not(["+c+'="'+h+'"]):not(['+c+'="'+d+'"])';function $(T,R,D){var C=new XMLHttpRequest;C.open("GET",T,!0),C.onreadystatechange=function(){C.readyState==4&&(C.status<400&&C.responseText?R(C.responseText):C.status>=400?D(i(C.status,C.statusText)):D(a))},C.send(null)}function y(T){var R=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(T||"");if(R){var D=Number(R[1]),C=R[2],_=R[3];return C?_?[D,Number(_)]:[D,void 0]:[D,D]}}n.hooks.add("before-highlightall",function(T){T.selector+=", "+v}),n.hooks.add("before-sanity-check",function(T){var R=T.element;if(R.matches(v)){T.code="",R.setAttribute(c,d);var D=R.appendChild(document.createElement("CODE"));D.textContent=r;var C=R.getAttribute("data-src"),_=T.language;if(_==="none"){var B=(/\.(\w+)$/.exec(C)||[,"none"])[1];_=s[B]||B}n.util.setLanguage(D,_),n.util.setLanguage(R,_);var k=n.plugins.autoloader;k&&k.loadLanguages(_),$(C,function(L){R.setAttribute(c,h);var X=y(R.getAttribute("data-range"));if(X){var F=L.split(/\r\n?|\n/g),ge=X[0],te=X[1]==null?F.length:X[1];ge<0&&(ge+=F.length),ge=Math.max(0,Math.min(ge-1,F.length)),te<0&&(te+=F.length),te=Math.max(0,Math.min(te,F.length)),L=F.slice(ge,te).join(`
|
|
154
|
+
`),R.hasAttribute("data-start")||R.setAttribute("data-start",String(ge+1))}D.textContent=L,n.highlightElement(D)},function(L){R.setAttribute(c,g),D.textContent=L})}}),n.plugins.fileHighlight={highlight:function(R){for(var D=(R||document).querySelectorAll(v),C=0,_;_=D[C++];)n.highlightElement(_)}};var P=!1;n.fileHighlight=function(){P||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),P=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(Dm)),Dm.exports}var rV=nV();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r($,y){return Array.prototype.slice.call((y||document).querySelectorAll($))}function i($,y){return $.classList.contains(y)}function a($){$()}var s=function(){var $;return function(){if(typeof $>"u"){var y=document.createElement("div");y.style.fontSize="13px",y.style.lineHeight="1.5",y.style.padding="0",y.style.border="0",y.innerHTML=" <br /> ",document.body.appendChild(y),$=y.offsetHeight===38,document.body.removeChild(y)}return $}}();function c($,y){var P=getComputedStyle($),T=getComputedStyle(y);function R(D){return+D.substr(0,D.length-2)}return y.offsetTop+R(T.borderTopWidth)+R(T.paddingTop)-R(P.paddingTop)}function d($){return!$||!/pre/i.test($.nodeName)?!1:!!($.hasAttribute("data-line")||$.id&&Prism.util.isActive($,t))}var h=!0;Prism.plugins.lineHighlight={highlightLines:function(y,P,T){P=typeof P=="string"?P:y.getAttribute("data-line")||"";var R=P.replace(/\s+/g,"").split(",").filter(Boolean),D=+y.getAttribute("data-line-offset")||0,C=s()?parseInt:parseFloat,_=C(getComputedStyle(y).lineHeight),B=Prism.util.isActive(y,e),k=y.querySelector("code"),L=B?y:k||y,X=[],F=k.textContent.match(n),ge=F?F.length+1:1,te=!k||L==k?0:c(y,k);R.forEach(function(me){var de=me.split("-"),ne=+de[0],re=+de[1]||ne;if(re=Math.min(ge+D,re),!(re<ne)){var K=y.querySelector('.line-highlight[data-range="'+me+'"]')||document.createElement("div");if(X.push(function(){K.setAttribute("aria-hidden","true"),K.setAttribute("data-range",me),K.className=(T||"")+" line-highlight"}),B&&Prism.plugins.lineNumbers){var oe=Prism.plugins.lineNumbers.getLine(y,ne),Ce=Prism.plugins.lineNumbers.getLine(y,re);if(oe){var ee=oe.offsetTop+te+"px";X.push(function(){K.style.top=ee})}if(Ce){var pe=Ce.offsetTop-oe.offsetTop+Ce.offsetHeight+"px";X.push(function(){K.style.height=pe})}}else X.push(function(){K.setAttribute("data-start",String(ne)),re>ne&&K.setAttribute("data-end",String(re)),K.style.top=(ne-D-1)*_+te+"px",K.textContent=new Array(re-ne+2).join(`
|
|
155
|
+
`)});X.push(function(){K.style.width=y.scrollWidth+"px"}),X.push(function(){L.appendChild(K)})}});var ie=y.id;if(B&&Prism.util.isActive(y,t)&&ie){i(y,t)||X.push(function(){y.classList.add(t)});var De=parseInt(y.getAttribute("data-start")||"1");r(".line-numbers-rows > span",y).forEach(function(me,de){var ne=de+De;me.onclick=function(){var re=ie+"."+ne;h=!1,location.hash=re,setTimeout(function(){h=!0},1)}})}return function(){X.forEach(a)}}};function g(){var $=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(D){D.parentNode.removeChild(D)});var y=($.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!y||document.getElementById($))){var P=$.slice(0,$.lastIndexOf(".")),T=document.getElementById(P);if(T){T.hasAttribute("data-line")||T.setAttribute("data-line","");var R=Prism.plugins.lineHighlight.highlightLines(T,y,"temporary ");R(),h&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var v=0;Prism.hooks.add("before-sanity-check",function($){var y=$.element.parentElement;if(d(y)){var P=0;r(".line-highlight",y).forEach(function(T){P+=T.textContent.length,T.parentNode.removeChild(T)}),P&&/^(?: \n)+$/.test($.code.slice(-P))&&($.code=$.code.slice(0,-P))}}),Prism.hooks.add("complete",function $(y){var P=y.element.parentElement;if(d(P)){clearTimeout(v);var T=Prism.plugins.lineNumbers,R=y.plugins&&y.plugins.lineNumbers;if(i(P,e)&&T&&!R)Prism.hooks.add("line-numbers",$);else{var D=Prism.plugins.lineHighlight.highlightLines(P);D(),v=setTimeout(g,1)}}}),window.addEventListener("hashchange",g),window.addEventListener("resize",function(){var $=r("pre").filter(d).map(function(y){return Prism.plugins.lineHighlight.highlightLines(y)});$.forEach(a)})})();var gc={exports:{}},iV=gc.exports,N4;function aV(){return N4||(N4=1,function(e,t){(function(n,r){r(t,S)})(iV,function(n,r){function i(de){return de&&typeof de=="object"&&"default"in de?de:{default:de}}var a=i(r),s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof is<"u"?is:typeof self<"u"?self:{},c={exports:{}};(function(de,ne){typeof navigator<"u"&&function(re,K){de.exports=K()}(s,function(){var re="http://www.w3.org/2000/svg",K="",oe=!1,Ce=-999999,ee=function(f){oe=!!f},pe=function(){return oe},Pe=function(f){K=f},Te=function(){return K};function Ve(u){return document.createElement(u)}function Se(u,f){var p,b=u.length,x;for(p=0;p<b;p+=1){x=u[p].prototype;for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(f.prototype[E]=x[E])}}function Je(u){function f(){}return f.prototype=u,f}var Ge=function(){function u(f){this.audios=[],this.audioFactory=f,this._volume=1,this._isMuted=!1}return u.prototype={addAudio:function(p){this.audios.push(p)},pause:function(){var p,b=this.audios.length;for(p=0;p<b;p+=1)this.audios[p].pause()},resume:function(){var p,b=this.audios.length;for(p=0;p<b;p+=1)this.audios[p].resume()},setRate:function(p){var b,x=this.audios.length;for(b=0;b<x;b+=1)this.audios[b].setRate(p)},createAudio:function(p){return this.audioFactory?this.audioFactory(p):window.Howl?new window.Howl({src:[p]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(p){this.audioFactory=p},setVolume:function(p){this._volume=p,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var p,b=this.audios.length;for(p=0;p<b;p+=1)this.audios[p].volume(this._volume*(this._isMuted?0:1))}},function(){return new u}}(),xe=function(){function u(p,b){var x=0,E=[],V;switch(p){case"int16":case"uint8c":V=1;break;default:V=1.1;break}for(x=0;x<b;x+=1)E.push(V);return E}function f(p,b){return p==="float32"?new Float32Array(b):p==="int16"?new Int16Array(b):p==="uint8c"?new Uint8ClampedArray(b):u(p,b)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?f:u}();function Be(u){return Array.apply(null,{length:u})}var qe=!0,Ke=null,Oe="",et=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),wt=Math.pow,Lt=Math.sqrt,yt=Math.floor,xt=Math.min,Yn=150,tt=Math.PI/180,Et=.5519;function At(u,f,p,b){this.type=u,this.currentTime=f,this.totalTime=p,this.direction=b<0?-1:1}function Bn(u,f){this.type=u,this.direction=f<0?-1:1}function ar(u,f,p,b){this.type=u,this.currentLoop=p,this.totalLoops=f,this.direction=b<0?-1:1}function Zn(u,f,p){this.type=u,this.firstFrame=f,this.totalFrames=p}function Vn(u,f){this.type=u,this.target=f}function _r(u,f){this.type="renderFrameError",this.nativeError=u,this.currentTime=f}function Jn(u){this.type="configError",this.nativeError=u}var Qt=function(){var u=0;return function(){return u+=1,Oe+"__lottie_element_"+u}}();function or(u,f,p){var b,x,E,V,fe,G,ye,$e;switch(V=Math.floor(u*6),fe=u*6-V,G=p*(1-f),ye=p*(1-fe*f),$e=p*(1-(1-fe)*f),V%6){case 0:b=p,x=$e,E=G;break;case 1:b=ye,x=p,E=G;break;case 2:b=G,x=p,E=$e;break;case 3:b=G,x=ye,E=p;break;case 4:b=$e,x=G,E=p;break;case 5:b=p,x=G,E=ye;break}return[b,x,E]}function xr(u,f,p){var b=Math.max(u,f,p),x=Math.min(u,f,p),E=b-x,V,fe=b===0?0:E/b,G=b/255;switch(b){case x:V=0;break;case u:V=f-p+E*(f<p?6:0),V/=6*E;break;case f:V=p-u+E*2,V/=6*E;break;case p:V=u-f+E*4,V/=6*E;break}return[V,fe,G]}function Wt(u,f){var p=xr(u[0]*255,u[1]*255,u[2]*255);return p[1]+=f,p[1]>1?p[1]=1:p[1]<=0&&(p[1]=0),or(p[0],p[1],p[2])}function Dt(u,f){var p=xr(u[0]*255,u[1]*255,u[2]*255);return p[2]+=f,p[2]>1?p[2]=1:p[2]<0&&(p[2]=0),or(p[0],p[1],p[2])}function Tt(u,f){var p=xr(u[0]*255,u[1]*255,u[2]*255);return p[0]+=f/360,p[0]>1?p[0]-=1:p[0]<0&&(p[0]+=1),or(p[0],p[1],p[2])}(function(){var u=[],f,p;for(f=0;f<256;f+=1)p=f.toString(16),u[f]=p.length===1?"0"+p:p;return function(b,x,E){return b<0&&(b=0),x<0&&(x=0),E<0&&(E=0),"#"+u[b]+u[x]+u[E]}})();var Ct=function(f){qe=!!f},zn=function(){return qe},Er=function(f){Ke=f},sr=function(){return Ke},gr=function(f){Yn=f},Xn=function(){return Yn},Kr=function(f){Oe=f};function ft(u){return document.createElementNS(re,u)}function Un(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Un=function(p){return typeof p}:Un=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Un(u)}var kr=function(){var u=1,f=[],p,b,x={onmessage:function(){},postMessage:function(q){p({data:q})}},E={postMessage:function(q){x.onmessage({data:q})}};function V(A){if(window.Worker&&window.Blob&&pe()){var q=new Blob(["var _workerSelf = self; self.onmessage = ",A.toString()],{type:"text/javascript"}),z=URL.createObjectURL(q);return new Worker(z)}return p=A,x}function fe(){b||(b=V(function(q){function z(){function ue(Ie,be){var se,H,he=Ie.length,Ne,Re,lt,It;for(H=0;H<he;H+=1)if(se=Ie[H],"ks"in se&&!se.completed){if(se.completed=!0,se.hasMask){var _t=se.masksProperties;for(Re=_t.length,Ne=0;Ne<Re;Ne+=1)if(_t[Ne].pt.k.i)j(_t[Ne].pt.k);else for(It=_t[Ne].pt.k.length,lt=0;lt<It;lt+=1)_t[Ne].pt.k[lt].s&&j(_t[Ne].pt.k[lt].s[0]),_t[Ne].pt.k[lt].e&&j(_t[Ne].pt.k[lt].e[0])}se.ty===0?(se.layers=M(se.refId,be),ue(se.layers,be)):se.ty===4?I(se.shapes):se.ty===5&&st(se)}}function N(Ie,be){if(Ie){var se=0,H=Ie.length;for(se=0;se<H;se+=1)Ie[se].t===1&&(Ie[se].data.layers=M(Ie[se].data.refId,be),ue(Ie[se].data.layers,be))}}function U(Ie,be){for(var se=0,H=be.length;se<H;){if(be[se].id===Ie)return be[se];se+=1}return null}function M(Ie,be){var se=U(Ie,be);return se?se.layers.__used?JSON.parse(JSON.stringify(se.layers)):(se.layers.__used=!0,se.layers):null}function I(Ie){var be,se=Ie.length,H,he;for(be=se-1;be>=0;be-=1)if(Ie[be].ty==="sh")if(Ie[be].ks.k.i)j(Ie[be].ks.k);else for(he=Ie[be].ks.k.length,H=0;H<he;H+=1)Ie[be].ks.k[H].s&&j(Ie[be].ks.k[H].s[0]),Ie[be].ks.k[H].e&&j(Ie[be].ks.k[H].e[0]);else Ie[be].ty==="gr"&&I(Ie[be].it)}function j(Ie){var be,se=Ie.i.length;for(be=0;be<se;be+=1)Ie.i[be][0]+=Ie.v[be][0],Ie.i[be][1]+=Ie.v[be][1],Ie.o[be][0]+=Ie.v[be][0],Ie.o[be][1]+=Ie.v[be][1]}function Z(Ie,be){var se=be?be.split("."):[100,100,100];return Ie[0]>se[0]?!0:se[0]>Ie[0]?!1:Ie[1]>se[1]?!0:se[1]>Ie[1]?!1:Ie[2]>se[2]?!0:se[2]>Ie[2]?!1:null}var ae=function(){var Ie=[4,4,14];function be(H){var he=H.t.d;H.t.d={k:[{s:he,t:0}]}}function se(H){var he,Ne=H.length;for(he=0;he<Ne;he+=1)H[he].ty===5&&be(H[he])}return function(H){if(Z(Ie,H.v)&&(se(H.layers),H.assets)){var he,Ne=H.assets.length;for(he=0;he<Ne;he+=1)H.assets[he].layers&&se(H.assets[he].layers)}}}(),ce=function(){var Ie=[4,7,99];return function(be){if(be.chars&&!Z(Ie,be.v)){var se,H=be.chars.length;for(se=0;se<H;se+=1){var he=be.chars[se];he.data&&he.data.shapes&&(I(he.data.shapes),he.data.ip=0,he.data.op=99999,he.data.st=0,he.data.sr=1,he.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},be.chars[se].t||(he.data.shapes.push({ty:"no"}),he.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Fe=function(){var Ie=[5,7,15];function be(H){var he=H.t.p;typeof he.a=="number"&&(he.a={a:0,k:he.a}),typeof he.p=="number"&&(he.p={a:0,k:he.p}),typeof he.r=="number"&&(he.r={a:0,k:he.r})}function se(H){var he,Ne=H.length;for(he=0;he<Ne;he+=1)H[he].ty===5&&be(H[he])}return function(H){if(Z(Ie,H.v)&&(se(H.layers),H.assets)){var he,Ne=H.assets.length;for(he=0;he<Ne;he+=1)H.assets[he].layers&&se(H.assets[he].layers)}}}(),Qe=function(){var Ie=[4,1,9];function be(H){var he,Ne=H.length,Re,lt;for(he=0;he<Ne;he+=1)if(H[he].ty==="gr")be(H[he].it);else if(H[he].ty==="fl"||H[he].ty==="st")if(H[he].c.k&&H[he].c.k[0].i)for(lt=H[he].c.k.length,Re=0;Re<lt;Re+=1)H[he].c.k[Re].s&&(H[he].c.k[Re].s[0]/=255,H[he].c.k[Re].s[1]/=255,H[he].c.k[Re].s[2]/=255,H[he].c.k[Re].s[3]/=255),H[he].c.k[Re].e&&(H[he].c.k[Re].e[0]/=255,H[he].c.k[Re].e[1]/=255,H[he].c.k[Re].e[2]/=255,H[he].c.k[Re].e[3]/=255);else H[he].c.k[0]/=255,H[he].c.k[1]/=255,H[he].c.k[2]/=255,H[he].c.k[3]/=255}function se(H){var he,Ne=H.length;for(he=0;he<Ne;he+=1)H[he].ty===4&&be(H[he].shapes)}return function(H){if(Z(Ie,H.v)&&(se(H.layers),H.assets)){var he,Ne=H.assets.length;for(he=0;he<Ne;he+=1)H.assets[he].layers&&se(H.assets[he].layers)}}}(),Xe=function(){var Ie=[4,4,18];function be(H){var he,Ne=H.length,Re,lt;for(he=Ne-1;he>=0;he-=1)if(H[he].ty==="sh")if(H[he].ks.k.i)H[he].ks.k.c=H[he].closed;else for(lt=H[he].ks.k.length,Re=0;Re<lt;Re+=1)H[he].ks.k[Re].s&&(H[he].ks.k[Re].s[0].c=H[he].closed),H[he].ks.k[Re].e&&(H[he].ks.k[Re].e[0].c=H[he].closed);else H[he].ty==="gr"&&be(H[he].it)}function se(H){var he,Ne,Re=H.length,lt,It,_t,Mn;for(Ne=0;Ne<Re;Ne+=1){if(he=H[Ne],he.hasMask){var tn=he.masksProperties;for(It=tn.length,lt=0;lt<It;lt+=1)if(tn[lt].pt.k.i)tn[lt].pt.k.c=tn[lt].cl;else for(Mn=tn[lt].pt.k.length,_t=0;_t<Mn;_t+=1)tn[lt].pt.k[_t].s&&(tn[lt].pt.k[_t].s[0].c=tn[lt].cl),tn[lt].pt.k[_t].e&&(tn[lt].pt.k[_t].e[0].c=tn[lt].cl)}he.ty===4&&be(he.shapes)}}return function(H){if(Z(Ie,H.v)&&(se(H.layers),H.assets)){var he,Ne=H.assets.length;for(he=0;he<Ne;he+=1)H.assets[he].layers&&se(H.assets[he].layers)}}}();function Le(Ie){Ie.__complete||(Qe(Ie),ae(Ie),ce(Ie),Fe(Ie),Xe(Ie),ue(Ie.layers,Ie.assets),N(Ie.chars,Ie.assets),Ie.__complete=!0)}function st(Ie){Ie.t.a.length===0&&"m"in Ie.t.p}var ct={};return ct.completeData=Le,ct.checkColors=Qe,ct.checkChars=ce,ct.checkPathProperties=Fe,ct.checkShapes=Xe,ct.completeLayers=ue,ct}if(E.dataManager||(E.dataManager=z()),E.assetLoader||(E.assetLoader=function(){function ue(U){var M=U.getResponseHeader("content-type");return M&&U.responseType==="json"&&M.indexOf("json")!==-1||U.response&&Un(U.response)==="object"?U.response:U.response&&typeof U.response=="string"?JSON.parse(U.response):U.responseText?JSON.parse(U.responseText):null}function N(U,M,I,j){var Z,ae=new XMLHttpRequest;try{ae.responseType="json"}catch{}ae.onreadystatechange=function(){if(ae.readyState===4)if(ae.status===200)Z=ue(ae),I(Z);else try{Z=ue(ae),I(Z)}catch(ce){j&&j(ce)}};try{ae.open(["G","E","T"].join(""),U,!0)}catch{ae.open(["G","E","T"].join(""),M+"/"+U,!0)}ae.send()}return{load:N}}()),q.data.type==="loadAnimation")E.assetLoader.load(q.data.path,q.data.fullPath,function(ue){E.dataManager.completeData(ue),E.postMessage({id:q.data.id,payload:ue,status:"success"})},function(){E.postMessage({id:q.data.id,status:"error"})});else if(q.data.type==="complete"){var le=q.data.animation;E.dataManager.completeData(le),E.postMessage({id:q.data.id,payload:le,status:"success"})}else q.data.type==="loadData"&&E.assetLoader.load(q.data.path,q.data.fullPath,function(ue){E.postMessage({id:q.data.id,payload:ue,status:"success"})},function(){E.postMessage({id:q.data.id,status:"error"})})}),b.onmessage=function(A){var q=A.data,z=q.id,le=f[z];f[z]=null,q.status==="success"?le.onComplete(q.payload):le.onError&&le.onError()})}function G(A,q){u+=1;var z="processId_"+u;return f[z]={onComplete:A,onError:q},z}function ye(A,q,z){fe();var le=G(q,z);b.postMessage({type:"loadAnimation",path:A,fullPath:window.location.origin+window.location.pathname,id:le})}function $e(A,q,z){fe();var le=G(q,z);b.postMessage({type:"loadData",path:A,fullPath:window.location.origin+window.location.pathname,id:le})}function ke(A,q,z){fe();var le=G(q,z);b.postMessage({type:"complete",animation:A,id:le})}return{loadAnimation:ye,loadData:$e,completeAnimation:ke}}(),xn=function(){var u=function(){var N=Ve("canvas");N.width=1,N.height=1;var U=N.getContext("2d");return U.fillStyle="rgba(0,0,0,0)",U.fillRect(0,0,1,1),N}();function f(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function p(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function b(N,U,M){var I="";if(N.e)I=N.p;else if(U){var j=N.p;j.indexOf("images/")!==-1&&(j=j.split("/")[1]),I=U+j}else I=M,I+=N.u?N.u:"",I+=N.p;return I}function x(N){var U=0,M=setInterval((function(){var I=N.getBBox();(I.width||U>500)&&(this._imageLoaded(),clearInterval(M)),U+=1}).bind(this),50)}function E(N){var U=b(N,this.assetsPath,this.path),M=ft("image");et?this.testImageLoaded(M):M.addEventListener("load",this._imageLoaded,!1),M.addEventListener("error",(function(){I.img=u,this._imageLoaded()}).bind(this),!1),M.setAttributeNS("http://www.w3.org/1999/xlink","href",U),this._elementHelper.append?this._elementHelper.append(M):this._elementHelper.appendChild(M);var I={img:M,assetData:N};return I}function V(N){var U=b(N,this.assetsPath,this.path),M=Ve("img");M.crossOrigin="anonymous",M.addEventListener("load",this._imageLoaded,!1),M.addEventListener("error",(function(){I.img=u,this._imageLoaded()}).bind(this),!1),M.src=U;var I={img:M,assetData:N};return I}function fe(N){var U={assetData:N},M=b(N,this.assetsPath,this.path);return kr.loadData(M,(function(I){U.img=I,this._footageLoaded()}).bind(this),(function(){U.img={},this._footageLoaded()}).bind(this)),U}function G(N,U){this.imagesLoadedCb=U;var M,I=N.length;for(M=0;M<I;M+=1)N[M].layers||(!N[M].t||N[M].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(N[M]))):N[M].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(N[M]))))}function ye(N){this.path=N||""}function $e(N){this.assetsPath=N||""}function ke(N){for(var U=0,M=this.images.length;U<M;){if(this.images[U].assetData===N)return this.images[U].img;U+=1}return null}function A(){this.imagesLoadedCb=null,this.images.length=0}function q(){return this.totalImages===this.loadedAssets}function z(){return this.totalFootages===this.loadedFootagesCount}function le(N,U){N==="svg"?(this._elementHelper=U,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function ue(){this._imageLoaded=f.bind(this),this._footageLoaded=p.bind(this),this.testImageLoaded=x.bind(this),this.createFootageData=fe.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ue.prototype={loadAssets:G,setAssetsPath:$e,setPath:ye,loadedImages:q,loadedFootages:z,destroy:A,getAsset:ke,createImgData:V,createImageData:E,imageLoaded:f,footageLoaded:p,setCacheType:le},ue}();function ur(){}ur.prototype={triggerEvent:function(f,p){if(this._cbs[f])for(var b=this._cbs[f],x=0;x<b.length;x+=1)b[x](p)},addEventListener:function(f,p){return this._cbs[f]||(this._cbs[f]=[]),this._cbs[f].push(p),(function(){this.removeEventListener(f,p)}).bind(this)},removeEventListener:function(f,p){if(!p)this._cbs[f]=null;else if(this._cbs[f]){for(var b=0,x=this._cbs[f].length;b<x;)this._cbs[f][b]===p&&(this._cbs[f].splice(b,1),b-=1,x-=1),b+=1;this._cbs[f].length||(this._cbs[f]=null)}}};var $t=function(){function u(f){for(var p=f.split(`\r
|
|
156
|
+
`),b={},x,E=0,V=0;V<p.length;V+=1)x=p[V].split(":"),x.length===2&&(b[x[0]]=x[1].trim(),E+=1);if(E===0)throw new Error;return b}return function(f){for(var p=[],b=0;b<f.length;b+=1){var x=f[b],E={time:x.tm,duration:x.dr};try{E.payload=JSON.parse(f[b].cm)}catch{try{E.payload=u(f[b].cm)}catch{E.payload={name:f[b].cm}}}p.push(E)}return p}}(),Vt=function(){function u(f){this.compositions.push(f)}return function(){function f(p){for(var b=0,x=this.compositions.length;b<x;){if(this.compositions[b].data&&this.compositions[b].data.nm===p)return this.compositions[b].prepareFrame&&this.compositions[b].data.xt&&this.compositions[b].prepareFrame(this.currentFrame),this.compositions[b].compInterface;b+=1}return null}return f.compositions=[],f.currentFrame=0,f.registerComposition=u,f}}(),kn={},Hr=function(f,p){kn[f]=p};function rt(u){return kn[u]}function gt(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gt=function(p){return typeof p}:gt=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},gt(u)}var Ye=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=Qt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=zn(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Vt(),this.imagePreloader=new xn,this.audioController=Ge(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new At("drawnFrame",0,0,0)};Se([ur],Ye),Ye.prototype.setParams=function(u){(u.wrapper||u.container)&&(this.wrapper=u.wrapper||u.container);var f="svg";u.animType?f=u.animType:u.renderer&&(f=u.renderer);var p=rt(f);this.renderer=new p(this,u.rendererSettings),this.imagePreloader.setCacheType(f,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=f,u.loop===""||u.loop===null||u.loop===void 0||u.loop===!0?this.loop=!0:u.loop===!1?this.loop=!1:this.loop=parseInt(u.loop,10),this.autoplay="autoplay"in u?u.autoplay:!0,this.name=u.name?u.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(u,"autoloadSegments")?u.autoloadSegments:!0,this.assetsPath=u.assetsPath,this.initialSegment=u.initialSegment,u.audioFactory&&this.audioController.setAudioFactory(u.audioFactory),u.animationData?this.setupAnimation(u.animationData):u.path&&(u.path.lastIndexOf("\\")!==-1?this.path=u.path.substr(0,u.path.lastIndexOf("\\")+1):this.path=u.path.substr(0,u.path.lastIndexOf("/")+1),this.fileName=u.path.substr(u.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),kr.loadAnimation(u.path,this.configAnimation,this.onSetupError))},Ye.prototype.onSetupError=function(){this.trigger("data_failed")},Ye.prototype.setupAnimation=function(u){kr.completeAnimation(u,this.configAnimation)},Ye.prototype.setData=function(u,f){f&>(f)!=="object"&&(f=JSON.parse(f));var p={wrapper:u,animationData:f},b=u.attributes;p.path=b.getNamedItem("data-animation-path")?b.getNamedItem("data-animation-path").value:b.getNamedItem("data-bm-path")?b.getNamedItem("data-bm-path").value:b.getNamedItem("bm-path")?b.getNamedItem("bm-path").value:"",p.animType=b.getNamedItem("data-anim-type")?b.getNamedItem("data-anim-type").value:b.getNamedItem("data-bm-type")?b.getNamedItem("data-bm-type").value:b.getNamedItem("bm-type")?b.getNamedItem("bm-type").value:b.getNamedItem("data-bm-renderer")?b.getNamedItem("data-bm-renderer").value:b.getNamedItem("bm-renderer")?b.getNamedItem("bm-renderer").value:"canvas";var x=b.getNamedItem("data-anim-loop")?b.getNamedItem("data-anim-loop").value:b.getNamedItem("data-bm-loop")?b.getNamedItem("data-bm-loop").value:b.getNamedItem("bm-loop")?b.getNamedItem("bm-loop").value:"";x==="false"?p.loop=!1:x==="true"?p.loop=!0:x!==""&&(p.loop=parseInt(x,10));var E=b.getNamedItem("data-anim-autoplay")?b.getNamedItem("data-anim-autoplay").value:b.getNamedItem("data-bm-autoplay")?b.getNamedItem("data-bm-autoplay").value:b.getNamedItem("bm-autoplay")?b.getNamedItem("bm-autoplay").value:!0;p.autoplay=E!=="false",p.name=b.getNamedItem("data-name")?b.getNamedItem("data-name").value:b.getNamedItem("data-bm-name")?b.getNamedItem("data-bm-name").value:b.getNamedItem("bm-name")?b.getNamedItem("bm-name").value:"";var V=b.getNamedItem("data-anim-prerender")?b.getNamedItem("data-anim-prerender").value:b.getNamedItem("data-bm-prerender")?b.getNamedItem("data-bm-prerender").value:b.getNamedItem("bm-prerender")?b.getNamedItem("bm-prerender").value:"";V==="false"&&(p.prerender=!1),this.setParams(p)},Ye.prototype.includeLayers=function(u){u.op>this.animationData.op&&(this.animationData.op=u.op,this.totalFrames=Math.floor(u.op-this.animationData.ip));var f=this.animationData.layers,p,b=f.length,x=u.layers,E,V=x.length;for(E=0;E<V;E+=1)for(p=0;p<b;){if(f[p].id===x[E].id){f[p]=x[E];break}p+=1}if((u.chars||u.fonts)&&(this.renderer.globalData.fontManager.addChars(u.chars),this.renderer.globalData.fontManager.addFonts(u.fonts,this.renderer.globalData.defs)),u.assets)for(b=u.assets.length,p=0;p<b;p+=1)this.animationData.assets.push(u.assets[p]);this.animationData.__complete=!1,kr.completeAnimation(this.animationData,this.onSegmentComplete)},Ye.prototype.onSegmentComplete=function(u){this.animationData=u;var f=sr();f&&f.initExpressions(this),this.loadNextSegment()},Ye.prototype.loadNextSegment=function(){var u=this.animationData.segments;if(!u||u.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var f=u.shift();this.timeCompleted=f.time*this.frameRate;var p=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,kr.loadData(p,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},Ye.prototype.loadSegments=function(){var u=this.animationData.segments;u||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},Ye.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},Ye.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},Ye.prototype.configAnimation=function(u){if(this.renderer)try{this.animationData=u,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(u),u.assets||(u.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(u.assets),this.markers=$t(u.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(f){this.triggerConfigError(f)}},Ye.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},Ye.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var u=sr();u&&u.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},Ye.prototype.resize=function(u,f){var p=typeof u=="number"?u:void 0,b=typeof f=="number"?f:void 0;this.renderer.updateContainerSize(p,b)},Ye.prototype.setSubframe=function(u){this.isSubframeEnabled=!!u},Ye.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},Ye.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(u){this.triggerRenderFrameError(u)}},Ye.prototype.play=function(u){u&&this.name!==u||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},Ye.prototype.pause=function(u){u&&this.name!==u||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},Ye.prototype.togglePause=function(u){u&&this.name!==u||(this.isPaused===!0?this.play():this.pause())},Ye.prototype.stop=function(u){u&&this.name!==u||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},Ye.prototype.getMarkerData=function(u){for(var f,p=0;p<this.markers.length;p+=1)if(f=this.markers[p],f.payload&&f.payload.name===u)return f;return null},Ye.prototype.goToAndStop=function(u,f,p){if(!(p&&this.name!==p)){var b=Number(u);if(isNaN(b)){var x=this.getMarkerData(u);x&&this.goToAndStop(x.time,!0)}else f?this.setCurrentRawFrameValue(u):this.setCurrentRawFrameValue(u*this.frameModifier);this.pause()}},Ye.prototype.goToAndPlay=function(u,f,p){if(!(p&&this.name!==p)){var b=Number(u);if(isNaN(b)){var x=this.getMarkerData(u);x&&(x.duration?this.playSegments([x.time,x.time+x.duration],!0):this.goToAndStop(x.time,!0))}else this.goToAndStop(b,f,p);this.play()}},Ye.prototype.advanceTime=function(u){if(!(this.isPaused===!0||this.isLoaded===!1)){var f=this.currentRawFrame+u*this.frameModifier,p=!1;f>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(f>this.totalFrames?f%this.totalFrames:0)||(p=!0,f=this.totalFrames-1):f>=this.totalFrames?(this.playCount+=1,this.checkSegments(f%this.totalFrames)||(this.setCurrentRawFrameValue(f%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(f):f<0?this.checkSegments(f%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+f%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(p=!0,f=0)):this.setCurrentRawFrameValue(f),p&&(this.setCurrentRawFrameValue(f),this.pause(),this.trigger("complete"))}},Ye.prototype.adjustSegment=function(u,f){this.playCount=0,u[1]<u[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=u[0]-u[1],this.timeCompleted=this.totalFrames,this.firstFrame=u[1],this.setCurrentRawFrameValue(this.totalFrames-.001-f)):u[1]>u[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=u[1]-u[0],this.timeCompleted=this.totalFrames,this.firstFrame=u[0],this.setCurrentRawFrameValue(.001+f)),this.trigger("segmentStart")},Ye.prototype.setSegment=function(u,f){var p=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<u?p=u:this.currentRawFrame+this.firstFrame>f&&(p=f-u)),this.firstFrame=u,this.totalFrames=f-u,this.timeCompleted=this.totalFrames,p!==-1&&this.goToAndStop(p,!0)},Ye.prototype.playSegments=function(u,f){if(f&&(this.segments.length=0),gt(u[0])==="object"){var p,b=u.length;for(p=0;p<b;p+=1)this.segments.push(u[p])}else this.segments.push(u);this.segments.length&&f&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},Ye.prototype.resetSegments=function(u){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),u&&this.checkSegments(0)},Ye.prototype.checkSegments=function(u){return this.segments.length?(this.adjustSegment(this.segments.shift(),u),!0):!1},Ye.prototype.destroy=function(u){u&&this.name!==u||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},Ye.prototype.setCurrentRawFrameValue=function(u){this.currentRawFrame=u,this.gotoFrame()},Ye.prototype.setSpeed=function(u){this.playSpeed=u,this.updaFrameModifier()},Ye.prototype.setDirection=function(u){this.playDirection=u<0?-1:1,this.updaFrameModifier()},Ye.prototype.setLoop=function(u){this.loop=u},Ye.prototype.setVolume=function(u,f){f&&this.name!==f||this.audioController.setVolume(u)},Ye.prototype.getVolume=function(){return this.audioController.getVolume()},Ye.prototype.mute=function(u){u&&this.name!==u||this.audioController.mute()},Ye.prototype.unmute=function(u){u&&this.name!==u||this.audioController.unmute()},Ye.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},Ye.prototype.getPath=function(){return this.path},Ye.prototype.getAssetsPath=function(u){var f="";if(u.e)f=u.p;else if(this.assetsPath){var p=u.p;p.indexOf("images/")!==-1&&(p=p.split("/")[1]),f=this.assetsPath+p}else f=this.path,f+=u.u?u.u:"",f+=u.p;return f},Ye.prototype.getAssetData=function(u){for(var f=0,p=this.assets.length;f<p;){if(u===this.assets[f].id)return this.assets[f];f+=1}return null},Ye.prototype.hide=function(){this.renderer.hide()},Ye.prototype.show=function(){this.renderer.show()},Ye.prototype.getDuration=function(u){return u?this.totalFrames:this.totalFrames/this.frameRate},Ye.prototype.updateDocumentData=function(u,f,p){try{var b=this.renderer.getElementByPath(u);b.updateDocumentData(f,p)}catch{}},Ye.prototype.trigger=function(u){if(this._cbs&&this._cbs[u])switch(u){case"enterFrame":this.triggerEvent(u,new At(u,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(u,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(u,new ar(u,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(u,new Bn(u,this.frameMult));break;case"segmentStart":this.triggerEvent(u,new Zn(u,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(u,new Vn(u,this));break;default:this.triggerEvent(u)}u==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new At(u,this.currentFrame,this.totalFrames,this.frameMult)),u==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new ar(u,this.loop,this.playCount,this.frameMult)),u==="complete"&&this.onComplete&&this.onComplete.call(this,new Bn(u,this.frameMult)),u==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new Zn(u,this.firstFrame,this.totalFrames)),u==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Vn(u,this))},Ye.prototype.triggerRenderFrameError=function(u){var f=new _r(u,this.currentFrame);this.triggerEvent("error",f),this.onError&&this.onError.call(this,f)},Ye.prototype.triggerConfigError=function(u){var f=new Jn(u,this.currentFrame);this.triggerEvent("error",f),this.onError&&this.onError.call(this,f)};var Ot=function(){var u={},f=[],p=0,b=0,x=0,E=!0,V=!1;function fe(be){for(var se=0,H=be.target;se<b;)f[se].animation===H&&(f.splice(se,1),se-=1,b-=1,H.isPaused||ke()),se+=1}function G(be,se){if(!be)return null;for(var H=0;H<b;){if(f[H].elem===be&&f[H].elem!==null)return f[H].animation;H+=1}var he=new Ye;return A(he,be),he.setData(be,se),he}function ye(){var be,se=f.length,H=[];for(be=0;be<se;be+=1)H.push(f[be].animation);return H}function $e(){x+=1,Qe()}function ke(){x-=1}function A(be,se){be.addEventListener("destroy",fe),be.addEventListener("_active",$e),be.addEventListener("_idle",ke),f.push({elem:se,animation:be}),b+=1}function q(be){var se=new Ye;return A(se,null),se.setParams(be),se}function z(be,se){var H;for(H=0;H<b;H+=1)f[H].animation.setSpeed(be,se)}function le(be,se){var H;for(H=0;H<b;H+=1)f[H].animation.setDirection(be,se)}function ue(be){var se;for(se=0;se<b;se+=1)f[se].animation.play(be)}function N(be){var se=be-p,H;for(H=0;H<b;H+=1)f[H].animation.advanceTime(se);p=be,x&&!V?window.requestAnimationFrame(N):E=!0}function U(be){p=be,window.requestAnimationFrame(N)}function M(be){var se;for(se=0;se<b;se+=1)f[se].animation.pause(be)}function I(be,se,H){var he;for(he=0;he<b;he+=1)f[he].animation.goToAndStop(be,se,H)}function j(be){var se;for(se=0;se<b;se+=1)f[se].animation.stop(be)}function Z(be){var se;for(se=0;se<b;se+=1)f[se].animation.togglePause(be)}function ae(be){var se;for(se=b-1;se>=0;se-=1)f[se].animation.destroy(be)}function ce(be,se,H){var he=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Ne,Re=he.length;for(Ne=0;Ne<Re;Ne+=1)H&&he[Ne].setAttribute("data-bm-type",H),G(he[Ne],be);if(se&&Re===0){H||(H="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var It=Ve("div");It.style.width="100%",It.style.height="100%",It.setAttribute("data-bm-type",H),lt.appendChild(It),G(It,be)}}function Fe(){var be;for(be=0;be<b;be+=1)f[be].animation.resize()}function Qe(){!V&&x&&E&&(window.requestAnimationFrame(U),E=!1)}function Xe(){V=!0}function Le(){V=!1,Qe()}function st(be,se){var H;for(H=0;H<b;H+=1)f[H].animation.setVolume(be,se)}function ct(be){var se;for(se=0;se<b;se+=1)f[se].animation.mute(be)}function Ie(be){var se;for(se=0;se<b;se+=1)f[se].animation.unmute(be)}return u.registerAnimation=G,u.loadAnimation=q,u.setSpeed=z,u.setDirection=le,u.play=ue,u.pause=M,u.stop=j,u.togglePause=Z,u.searchAnimations=ce,u.resize=Fe,u.goToAndStop=I,u.destroy=ae,u.freeze=Xe,u.unfreeze=Le,u.setVolume=st,u.mute=ct,u.unmute=Ie,u.getRegisteredAnimations=ye,u}(),En=function(){var u={};u.getBezierEasing=p;var f={};function p(U,M,I,j,Z){var ae=Z||("bez_"+U+"_"+M+"_"+I+"_"+j).replace(/\./g,"p");if(f[ae])return f[ae];var ce=new N([U,M,I,j]);return f[ae]=ce,ce}var b=4,x=.001,E=1e-7,V=10,fe=11,G=1/(fe-1),ye=typeof Float32Array=="function";function $e(U,M){return 1-3*M+3*U}function ke(U,M){return 3*M-6*U}function A(U){return 3*U}function q(U,M,I){return(($e(M,I)*U+ke(M,I))*U+A(M))*U}function z(U,M,I){return 3*$e(M,I)*U*U+2*ke(M,I)*U+A(M)}function le(U,M,I,j,Z){var ae,ce,Fe=0;do ce=M+(I-M)/2,ae=q(ce,j,Z)-U,ae>0?I=ce:M=ce;while(Math.abs(ae)>E&&++Fe<V);return ce}function ue(U,M,I,j){for(var Z=0;Z<b;++Z){var ae=z(M,I,j);if(ae===0)return M;var ce=q(M,I,j)-U;M-=ce/ae}return M}function N(U){this._p=U,this._mSampleValues=ye?new Float32Array(fe):new Array(fe),this._precomputed=!1,this.get=this.get.bind(this)}return N.prototype={get:function(M){var I=this._p[0],j=this._p[1],Z=this._p[2],ae=this._p[3];return this._precomputed||this._precompute(),I===j&&Z===ae?M:M===0?0:M===1?1:q(this._getTForX(M),j,ae)},_precompute:function(){var M=this._p[0],I=this._p[1],j=this._p[2],Z=this._p[3];this._precomputed=!0,(M!==I||j!==Z)&&this._calcSampleValues()},_calcSampleValues:function(){for(var M=this._p[0],I=this._p[2],j=0;j<fe;++j)this._mSampleValues[j]=q(j*G,M,I)},_getTForX:function(M){for(var I=this._p[0],j=this._p[2],Z=this._mSampleValues,ae=0,ce=1,Fe=fe-1;ce!==Fe&&Z[ce]<=M;++ce)ae+=G;--ce;var Qe=(M-Z[ce])/(Z[ce+1]-Z[ce]),Xe=ae+Qe*G,Le=z(Xe,I,j);return Le>=x?ue(M,Xe,I,j):Le===0?Xe:le(M,ae,ae+G,I,j)}},u}(),Cr=function(){function u(f){return f.concat(Be(f.length))}return{double:u}}(),pn=function(){return function(u,f,p){var b=0,x=u,E=Be(x),V={newElement:fe,release:G};function fe(){var ye;return b?(b-=1,ye=E[b]):ye=f(),ye}function G(ye){b===x&&(E=Cr.double(E),x*=2),p&&p(ye),E[b]=ye,b+=1}return V}}(),Nn=function(){function u(){return{addedLength:0,percents:xe("float32",Xn()),lengths:xe("float32",Xn())}}return pn(8,u)}(),mn=function(){function u(){return{lengths:[],totalLength:0}}function f(p){var b,x=p.lengths.length;for(b=0;b<x;b+=1)Nn.release(p.lengths[b]);p.lengths.length=0}return pn(8,u,f)}();function un(){var u=Math;function f(A,q,z,le,ue,N){var U=A*le+q*ue+z*N-ue*le-N*A-z*q;return U>-.001&&U<.001}function p(A,q,z,le,ue,N,U,M,I){if(z===0&&N===0&&I===0)return f(A,q,le,ue,U,M);var j=u.sqrt(u.pow(le-A,2)+u.pow(ue-q,2)+u.pow(N-z,2)),Z=u.sqrt(u.pow(U-A,2)+u.pow(M-q,2)+u.pow(I-z,2)),ae=u.sqrt(u.pow(U-le,2)+u.pow(M-ue,2)+u.pow(I-N,2)),ce;return j>Z?j>ae?ce=j-Z-ae:ce=ae-Z-j:ae>Z?ce=ae-Z-j:ce=Z-j-ae,ce>-1e-4&&ce<1e-4}var b=function(){return function(A,q,z,le){var ue=Xn(),N,U,M,I,j,Z=0,ae,ce=[],Fe=[],Qe=Nn.newElement();for(M=z.length,N=0;N<ue;N+=1){for(j=N/(ue-1),ae=0,U=0;U<M;U+=1)I=wt(1-j,3)*A[U]+3*wt(1-j,2)*j*z[U]+3*(1-j)*wt(j,2)*le[U]+wt(j,3)*q[U],ce[U]=I,Fe[U]!==null&&(ae+=wt(ce[U]-Fe[U],2)),Fe[U]=ce[U];ae&&(ae=Lt(ae),Z+=ae),Qe.percents[N]=j,Qe.lengths[N]=Z}return Qe.addedLength=Z,Qe}}();function x(A){var q=mn.newElement(),z=A.c,le=A.v,ue=A.o,N=A.i,U,M=A._length,I=q.lengths,j=0;for(U=0;U<M-1;U+=1)I[U]=b(le[U],le[U+1],ue[U],N[U+1]),j+=I[U].addedLength;return z&&M&&(I[U]=b(le[U],le[0],ue[U],N[0]),j+=I[U].addedLength),q.totalLength=j,q}function E(A){this.segmentLength=0,this.points=new Array(A)}function V(A,q){this.partialLength=A,this.point=q}var fe=function(){var A={};return function(q,z,le,ue){var N=(q[0]+"_"+q[1]+"_"+z[0]+"_"+z[1]+"_"+le[0]+"_"+le[1]+"_"+ue[0]+"_"+ue[1]).replace(/\./g,"p");if(!A[N]){var U=Xn(),M,I,j,Z,ae,ce=0,Fe,Qe,Xe=null;q.length===2&&(q[0]!==z[0]||q[1]!==z[1])&&f(q[0],q[1],z[0],z[1],q[0]+le[0],q[1]+le[1])&&f(q[0],q[1],z[0],z[1],z[0]+ue[0],z[1]+ue[1])&&(U=2);var Le=new E(U);for(j=le.length,M=0;M<U;M+=1){for(Qe=Be(j),ae=M/(U-1),Fe=0,I=0;I<j;I+=1)Z=wt(1-ae,3)*q[I]+3*wt(1-ae,2)*ae*(q[I]+le[I])+3*(1-ae)*wt(ae,2)*(z[I]+ue[I])+wt(ae,3)*z[I],Qe[I]=Z,Xe!==null&&(Fe+=wt(Qe[I]-Xe[I],2));Fe=Lt(Fe),ce+=Fe,Le.points[M]=new V(Fe,Qe),Xe=Qe}Le.segmentLength=ce,A[N]=Le}return A[N]}}();function G(A,q){var z=q.percents,le=q.lengths,ue=z.length,N=yt((ue-1)*A),U=A*q.addedLength,M=0;if(N===ue-1||N===0||U===le[N])return z[N];for(var I=le[N]>U?-1:1,j=!0;j;)if(le[N]<=U&&le[N+1]>U?(M=(U-le[N])/(le[N+1]-le[N]),j=!1):N+=I,N<0||N>=ue-1){if(N===ue-1)return z[N];j=!1}return z[N]+(z[N+1]-z[N])*M}function ye(A,q,z,le,ue,N){var U=G(ue,N),M=1-U,I=u.round((M*M*M*A[0]+(U*M*M+M*U*M+M*M*U)*z[0]+(U*U*M+M*U*U+U*M*U)*le[0]+U*U*U*q[0])*1e3)/1e3,j=u.round((M*M*M*A[1]+(U*M*M+M*U*M+M*M*U)*z[1]+(U*U*M+M*U*U+U*M*U)*le[1]+U*U*U*q[1])*1e3)/1e3;return[I,j]}var $e=xe("float32",8);function ke(A,q,z,le,ue,N,U){ue<0?ue=0:ue>1&&(ue=1);var M=G(ue,U);N=N>1?1:N;var I=G(N,U),j,Z=A.length,ae=1-M,ce=1-I,Fe=ae*ae*ae,Qe=M*ae*ae*3,Xe=M*M*ae*3,Le=M*M*M,st=ae*ae*ce,ct=M*ae*ce+ae*M*ce+ae*ae*I,Ie=M*M*ce+ae*M*I+M*ae*I,be=M*M*I,se=ae*ce*ce,H=M*ce*ce+ae*I*ce+ae*ce*I,he=M*I*ce+ae*I*I+M*ce*I,Ne=M*I*I,Re=ce*ce*ce,lt=I*ce*ce+ce*I*ce+ce*ce*I,It=I*I*ce+ce*I*I+I*ce*I,_t=I*I*I;for(j=0;j<Z;j+=1)$e[j*4]=u.round((Fe*A[j]+Qe*z[j]+Xe*le[j]+Le*q[j])*1e3)/1e3,$e[j*4+1]=u.round((st*A[j]+ct*z[j]+Ie*le[j]+be*q[j])*1e3)/1e3,$e[j*4+2]=u.round((se*A[j]+H*z[j]+he*le[j]+Ne*q[j])*1e3)/1e3,$e[j*4+3]=u.round((Re*A[j]+lt*z[j]+It*le[j]+_t*q[j])*1e3)/1e3;return $e}return{getSegmentsLength:x,getNewSegment:ke,getPointInSegment:ye,buildBezierData:fe,pointOnLine2D:f,pointOnLine3D:p}}var Qn=un(),it=function(){var u=Ce,f=Math.abs;function p(ue,N){var U=this.offsetTime,M;this.propType==="multidimensional"&&(M=xe("float32",this.pv.length));for(var I=N.lastIndex,j=I,Z=this.keyframes.length-1,ae=!0,ce,Fe,Qe;ae;){if(ce=this.keyframes[j],Fe=this.keyframes[j+1],j===Z-1&&ue>=Fe.t-U){ce.h&&(ce=Fe),I=0;break}if(Fe.t-U>ue){I=j;break}j<Z-1?j+=1:(I=0,ae=!1)}Qe=this.keyframesMetadata[j]||{};var Xe,Le,st,ct,Ie,be,se=Fe.t-U,H=ce.t-U,he;if(ce.to){Qe.bezierData||(Qe.bezierData=Qn.buildBezierData(ce.s,Fe.s||ce.e,ce.to,ce.ti));var Ne=Qe.bezierData;if(ue>=se||ue<H){var Re=ue>=se?Ne.points.length-1:0;for(Le=Ne.points[Re].point.length,Xe=0;Xe<Le;Xe+=1)M[Xe]=Ne.points[Re].point[Xe]}else{Qe.__fnct?be=Qe.__fnct:(be=En.getBezierEasing(ce.o.x,ce.o.y,ce.i.x,ce.i.y,ce.n).get,Qe.__fnct=be),st=be((ue-H)/(se-H));var lt=Ne.segmentLength*st,It,_t=N.lastFrame<ue&&N._lastKeyframeIndex===j?N._lastAddedLength:0;for(Ie=N.lastFrame<ue&&N._lastKeyframeIndex===j?N._lastPoint:0,ae=!0,ct=Ne.points.length;ae;){if(_t+=Ne.points[Ie].partialLength,lt===0||st===0||Ie===Ne.points.length-1){for(Le=Ne.points[Ie].point.length,Xe=0;Xe<Le;Xe+=1)M[Xe]=Ne.points[Ie].point[Xe];break}else if(lt>=_t&<<_t+Ne.points[Ie+1].partialLength){for(It=(lt-_t)/Ne.points[Ie+1].partialLength,Le=Ne.points[Ie].point.length,Xe=0;Xe<Le;Xe+=1)M[Xe]=Ne.points[Ie].point[Xe]+(Ne.points[Ie+1].point[Xe]-Ne.points[Ie].point[Xe])*It;break}Ie<ct-1?Ie+=1:ae=!1}N._lastPoint=Ie,N._lastAddedLength=_t-Ne.points[Ie].partialLength,N._lastKeyframeIndex=j}}else{var Mn,tn,Br,br,rr;if(Z=ce.s.length,he=Fe.s||ce.e,this.sh&&ce.h!==1)if(ue>=se)M[0]=he[0],M[1]=he[1],M[2]=he[2];else if(ue<=H)M[0]=ce.s[0],M[1]=ce.s[1],M[2]=ce.s[2];else{var cr=E(ce.s),fr=E(he),Ur=(ue-H)/(se-H);x(M,b(cr,fr,Ur))}else for(j=0;j<Z;j+=1)ce.h!==1&&(ue>=se?st=1:ue<H?st=0:(ce.o.x.constructor===Array?(Qe.__fnct||(Qe.__fnct=[]),Qe.__fnct[j]?be=Qe.__fnct[j]:(Mn=ce.o.x[j]===void 0?ce.o.x[0]:ce.o.x[j],tn=ce.o.y[j]===void 0?ce.o.y[0]:ce.o.y[j],Br=ce.i.x[j]===void 0?ce.i.x[0]:ce.i.x[j],br=ce.i.y[j]===void 0?ce.i.y[0]:ce.i.y[j],be=En.getBezierEasing(Mn,tn,Br,br).get,Qe.__fnct[j]=be)):Qe.__fnct?be=Qe.__fnct:(Mn=ce.o.x,tn=ce.o.y,Br=ce.i.x,br=ce.i.y,be=En.getBezierEasing(Mn,tn,Br,br).get,ce.keyframeMetadata=be),st=be((ue-H)/(se-H)))),he=Fe.s||ce.e,rr=ce.h===1?ce.s[j]:ce.s[j]+(he[j]-ce.s[j])*st,this.propType==="multidimensional"?M[j]=rr:M=rr}return N.lastIndex=I,M}function b(ue,N,U){var M=[],I=ue[0],j=ue[1],Z=ue[2],ae=ue[3],ce=N[0],Fe=N[1],Qe=N[2],Xe=N[3],Le,st,ct,Ie,be;return st=I*ce+j*Fe+Z*Qe+ae*Xe,st<0&&(st=-st,ce=-ce,Fe=-Fe,Qe=-Qe,Xe=-Xe),1-st>1e-6?(Le=Math.acos(st),ct=Math.sin(Le),Ie=Math.sin((1-U)*Le)/ct,be=Math.sin(U*Le)/ct):(Ie=1-U,be=U),M[0]=Ie*I+be*ce,M[1]=Ie*j+be*Fe,M[2]=Ie*Z+be*Qe,M[3]=Ie*ae+be*Xe,M}function x(ue,N){var U=N[0],M=N[1],I=N[2],j=N[3],Z=Math.atan2(2*M*j-2*U*I,1-2*M*M-2*I*I),ae=Math.asin(2*U*M+2*I*j),ce=Math.atan2(2*U*j-2*M*I,1-2*U*U-2*I*I);ue[0]=Z/tt,ue[1]=ae/tt,ue[2]=ce/tt}function E(ue){var N=ue[0]*tt,U=ue[1]*tt,M=ue[2]*tt,I=Math.cos(N/2),j=Math.cos(U/2),Z=Math.cos(M/2),ae=Math.sin(N/2),ce=Math.sin(U/2),Fe=Math.sin(M/2),Qe=I*j*Z-ae*ce*Fe,Xe=ae*ce*Z+I*j*Fe,Le=ae*j*Z+I*ce*Fe,st=I*ce*Z-ae*j*Fe;return[Xe,Le,st,Qe]}function V(){var ue=this.comp.renderedFrame-this.offsetTime,N=this.keyframes[0].t-this.offsetTime,U=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(ue===this._caching.lastFrame||this._caching.lastFrame!==u&&(this._caching.lastFrame>=U&&ue>=U||this._caching.lastFrame<N&&ue<N))){this._caching.lastFrame>=ue&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var M=this.interpolateValue(ue,this._caching);this.pv=M}return this._caching.lastFrame=ue,this.pv}function fe(ue){var N;if(this.propType==="unidimensional")N=ue*this.mult,f(this.v-N)>1e-5&&(this.v=N,this._mdf=!0);else for(var U=0,M=this.v.length;U<M;)N=ue[U]*this.mult,f(this.v[U]-N)>1e-5&&(this.v[U]=N,this._mdf=!0),U+=1}function G(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var ue,N=this.effectsSequence.length,U=this.kf?this.pv:this.data.k;for(ue=0;ue<N;ue+=1)U=this.effectsSequence[ue](U);this.setVValue(U),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ye(ue){this.effectsSequence.push(ue),this.container.addDynamicProperty(this)}function $e(ue,N,U,M){this.propType="unidimensional",this.mult=U||1,this.data=N,this.v=U?N.k*U:N.k,this.pv=N.k,this._mdf=!1,this.elem=ue,this.container=M,this.comp=ue.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=G,this.setVValue=fe,this.addEffect=ye}function ke(ue,N,U,M){this.propType="multidimensional",this.mult=U||1,this.data=N,this._mdf=!1,this.elem=ue,this.container=M,this.comp=ue.comp,this.k=!1,this.kf=!1,this.frameId=-1;var I,j=N.k.length;for(this.v=xe("float32",j),this.pv=xe("float32",j),this.vel=xe("float32",j),I=0;I<j;I+=1)this.v[I]=N.k[I]*this.mult,this.pv[I]=N.k[I];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=G,this.setVValue=fe,this.addEffect=ye}function A(ue,N,U,M){this.propType="unidimensional",this.keyframes=N.k,this.keyframesMetadata=[],this.offsetTime=ue.data.st,this.frameId=-1,this._caching={lastFrame:u,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=N,this.mult=U||1,this.elem=ue,this.container=M,this.comp=ue.comp,this.v=u,this.pv=u,this._isFirstFrame=!0,this.getValue=G,this.setVValue=fe,this.interpolateValue=p,this.effectsSequence=[V.bind(this)],this.addEffect=ye}function q(ue,N,U,M){this.propType="multidimensional";var I,j=N.k.length,Z,ae,ce,Fe;for(I=0;I<j-1;I+=1)N.k[I].to&&N.k[I].s&&N.k[I+1]&&N.k[I+1].s&&(Z=N.k[I].s,ae=N.k[I+1].s,ce=N.k[I].to,Fe=N.k[I].ti,(Z.length===2&&!(Z[0]===ae[0]&&Z[1]===ae[1])&&Qn.pointOnLine2D(Z[0],Z[1],ae[0],ae[1],Z[0]+ce[0],Z[1]+ce[1])&&Qn.pointOnLine2D(Z[0],Z[1],ae[0],ae[1],ae[0]+Fe[0],ae[1]+Fe[1])||Z.length===3&&!(Z[0]===ae[0]&&Z[1]===ae[1]&&Z[2]===ae[2])&&Qn.pointOnLine3D(Z[0],Z[1],Z[2],ae[0],ae[1],ae[2],Z[0]+ce[0],Z[1]+ce[1],Z[2]+ce[2])&&Qn.pointOnLine3D(Z[0],Z[1],Z[2],ae[0],ae[1],ae[2],ae[0]+Fe[0],ae[1]+Fe[1],ae[2]+Fe[2]))&&(N.k[I].to=null,N.k[I].ti=null),Z[0]===ae[0]&&Z[1]===ae[1]&&ce[0]===0&&ce[1]===0&&Fe[0]===0&&Fe[1]===0&&(Z.length===2||Z[2]===ae[2]&&ce[2]===0&&Fe[2]===0)&&(N.k[I].to=null,N.k[I].ti=null));this.effectsSequence=[V.bind(this)],this.data=N,this.keyframes=N.k,this.keyframesMetadata=[],this.offsetTime=ue.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=U||1,this.elem=ue,this.container=M,this.comp=ue.comp,this.getValue=G,this.setVValue=fe,this.interpolateValue=p,this.frameId=-1;var Qe=N.k[0].s.length;for(this.v=xe("float32",Qe),this.pv=xe("float32",Qe),I=0;I<Qe;I+=1)this.v[I]=u,this.pv[I]=u;this._caching={lastFrame:u,lastIndex:0,value:xe("float32",Qe)},this.addEffect=ye}function z(ue,N,U,M,I){var j;if(!N.k.length)j=new $e(ue,N,M,I);else if(typeof N.k[0]=="number")j=new ke(ue,N,M,I);else switch(U){case 0:j=new A(ue,N,M,I);break;case 1:j=new q(ue,N,M,I);break}return j.effectsSequence.length&&I.addDynamicProperty(j),j}var le={getProp:z};return le}();function ln(){}ln.prototype={addDynamicProperty:function(f){this.dynamicProperties.indexOf(f)===-1&&(this.dynamicProperties.push(f),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var f,p=this.dynamicProperties.length;for(f=0;f<p;f+=1)this.dynamicProperties[f].getValue(),this.dynamicProperties[f]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(f){this.container=f,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Gr=function(){function u(){return xe("float32",2)}return pn(8,u)}();function Rr(){this.c=!1,this._length=0,this._maxLength=8,this.v=Be(this._maxLength),this.o=Be(this._maxLength),this.i=Be(this._maxLength)}Rr.prototype.setPathData=function(u,f){this.c=u,this.setLength(f);for(var p=0;p<f;)this.v[p]=Gr.newElement(),this.o[p]=Gr.newElement(),this.i[p]=Gr.newElement(),p+=1},Rr.prototype.setLength=function(u){for(;this._maxLength<u;)this.doubleArrayLength();this._length=u},Rr.prototype.doubleArrayLength=function(){this.v=this.v.concat(Be(this._maxLength)),this.i=this.i.concat(Be(this._maxLength)),this.o=this.o.concat(Be(this._maxLength)),this._maxLength*=2},Rr.prototype.setXYAt=function(u,f,p,b,x){var E;switch(this._length=Math.max(this._length,b+1),this._length>=this._maxLength&&this.doubleArrayLength(),p){case"v":E=this.v;break;case"i":E=this.i;break;case"o":E=this.o;break;default:E=[];break}(!E[b]||E[b]&&!x)&&(E[b]=Gr.newElement()),E[b][0]=u,E[b][1]=f},Rr.prototype.setTripleAt=function(u,f,p,b,x,E,V,fe){this.setXYAt(u,f,"v",V,fe),this.setXYAt(p,b,"o",V,fe),this.setXYAt(x,E,"i",V,fe)},Rr.prototype.reverse=function(){var u=new Rr;u.setPathData(this.c,this._length);var f=this.v,p=this.o,b=this.i,x=0;this.c&&(u.setTripleAt(f[0][0],f[0][1],b[0][0],b[0][1],p[0][0],p[0][1],0,!1),x=1);var E=this._length-1,V=this._length,fe;for(fe=x;fe<V;fe+=1)u.setTripleAt(f[E][0],f[E][1],b[E][0],b[E][1],p[E][0],p[E][1],fe,!1),E-=1;return u},Rr.prototype.length=function(){return this._length};var Rn=function(){function u(){return new Rr}function f(x){var E=x._length,V;for(V=0;V<E;V+=1)Gr.release(x.v[V]),Gr.release(x.i[V]),Gr.release(x.o[V]),x.v[V]=null,x.i[V]=null,x.o[V]=null;x._length=0,x.c=!1}function p(x){var E=b.newElement(),V,fe=x._length===void 0?x.v.length:x._length;for(E.setLength(fe),E.c=x.c,V=0;V<fe;V+=1)E.setTripleAt(x.v[V][0],x.v[V][1],x.o[V][0],x.o[V][1],x.i[V][0],x.i[V][1],V);return E}var b=pn(4,u,f);return b.clone=p,b}();function Yt(){this._length=0,this._maxLength=4,this.shapes=Be(this._maxLength)}Yt.prototype.addShape=function(u){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Be(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=u,this._length+=1},Yt.prototype.releaseShapes=function(){var u;for(u=0;u<this._length;u+=1)Rn.release(this.shapes[u]);this._length=0};var er=function(){var u={newShapeCollection:x,release:E},f=0,p=4,b=Be(p);function x(){var V;return f?(f-=1,V=b[f]):V=new Yt,V}function E(V){var fe,G=V._length;for(fe=0;fe<G;fe+=1)Rn.release(V.shapes[fe]);V._length=0,f===p&&(b=Cr.double(b),p*=2),b[f]=V,f+=1}return u}(),Sr=function(){var u=-999999;function f(N,U,M){var I=M.lastIndex,j,Z,ae,ce,Fe,Qe,Xe,Le,st,ct=this.keyframes;if(N<ct[0].t-this.offsetTime)j=ct[0].s[0],ae=!0,I=0;else if(N>=ct[ct.length-1].t-this.offsetTime)j=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],ae=!0;else{for(var Ie=I,be=ct.length-1,se=!0,H,he,Ne;se&&(H=ct[Ie],he=ct[Ie+1],!(he.t-this.offsetTime>N));)Ie<be-1?Ie+=1:se=!1;if(Ne=this.keyframesMetadata[Ie]||{},ae=H.h===1,I=Ie,!ae){if(N>=he.t-this.offsetTime)Le=1;else if(N<H.t-this.offsetTime)Le=0;else{var Re;Ne.__fnct?Re=Ne.__fnct:(Re=En.getBezierEasing(H.o.x,H.o.y,H.i.x,H.i.y).get,Ne.__fnct=Re),Le=Re((N-(H.t-this.offsetTime))/(he.t-this.offsetTime-(H.t-this.offsetTime)))}Z=he.s?he.s[0]:H.e[0]}j=H.s[0]}for(Qe=U._length,Xe=j.i[0].length,M.lastIndex=I,ce=0;ce<Qe;ce+=1)for(Fe=0;Fe<Xe;Fe+=1)st=ae?j.i[ce][Fe]:j.i[ce][Fe]+(Z.i[ce][Fe]-j.i[ce][Fe])*Le,U.i[ce][Fe]=st,st=ae?j.o[ce][Fe]:j.o[ce][Fe]+(Z.o[ce][Fe]-j.o[ce][Fe])*Le,U.o[ce][Fe]=st,st=ae?j.v[ce][Fe]:j.v[ce][Fe]+(Z.v[ce][Fe]-j.v[ce][Fe])*Le,U.v[ce][Fe]=st}function p(){var N=this.comp.renderedFrame-this.offsetTime,U=this.keyframes[0].t-this.offsetTime,M=this.keyframes[this.keyframes.length-1].t-this.offsetTime,I=this._caching.lastFrame;return I!==u&&(I<U&&N<U||I>M&&N>M)||(this._caching.lastIndex=I<N?this._caching.lastIndex:0,this.interpolateShape(N,this.pv,this._caching)),this._caching.lastFrame=N,this.pv}function b(){this.paths=this.localShapeCollection}function x(N,U){if(N._length!==U._length||N.c!==U.c)return!1;var M,I=N._length;for(M=0;M<I;M+=1)if(N.v[M][0]!==U.v[M][0]||N.v[M][1]!==U.v[M][1]||N.o[M][0]!==U.o[M][0]||N.o[M][1]!==U.o[M][1]||N.i[M][0]!==U.i[M][0]||N.i[M][1]!==U.i[M][1])return!1;return!0}function E(N){x(this.v,N)||(this.v=Rn.clone(N),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function V(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var N;this.kf?N=this.pv:this.data.ks?N=this.data.ks.k:N=this.data.pt.k;var U,M=this.effectsSequence.length;for(U=0;U<M;U+=1)N=this.effectsSequence[U](N);this.setVValue(N),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function fe(N,U,M){this.propType="shape",this.comp=N.comp,this.container=N,this.elem=N,this.data=U,this.k=!1,this.kf=!1,this._mdf=!1;var I=M===3?U.pt.k:U.ks.k;this.v=Rn.clone(I),this.pv=Rn.clone(this.v),this.localShapeCollection=er.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=b,this.effectsSequence=[]}function G(N){this.effectsSequence.push(N),this.container.addDynamicProperty(this)}fe.prototype.interpolateShape=f,fe.prototype.getValue=V,fe.prototype.setVValue=E,fe.prototype.addEffect=G;function ye(N,U,M){this.propType="shape",this.comp=N.comp,this.elem=N,this.container=N,this.offsetTime=N.data.st,this.keyframes=M===3?U.pt.k:U.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var I=this.keyframes[0].s[0].i.length;this.v=Rn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,I),this.pv=Rn.clone(this.v),this.localShapeCollection=er.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=u,this.reset=b,this._caching={lastFrame:u,lastIndex:0},this.effectsSequence=[p.bind(this)]}ye.prototype.getValue=V,ye.prototype.interpolateShape=f,ye.prototype.setVValue=E,ye.prototype.addEffect=G;var $e=function(){var N=Et;function U(M,I){this.v=Rn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=er.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=I.d,this.elem=M,this.comp=M.comp,this.frameId=-1,this.initDynamicPropertyContainer(M),this.p=it.getProp(M,I.p,1,0,this),this.s=it.getProp(M,I.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return U.prototype={reset:b,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var I=this.p.v[0],j=this.p.v[1],Z=this.s.v[0]/2,ae=this.s.v[1]/2,ce=this.d!==3,Fe=this.v;Fe.v[0][0]=I,Fe.v[0][1]=j-ae,Fe.v[1][0]=ce?I+Z:I-Z,Fe.v[1][1]=j,Fe.v[2][0]=I,Fe.v[2][1]=j+ae,Fe.v[3][0]=ce?I-Z:I+Z,Fe.v[3][1]=j,Fe.i[0][0]=ce?I-Z*N:I+Z*N,Fe.i[0][1]=j-ae,Fe.i[1][0]=ce?I+Z:I-Z,Fe.i[1][1]=j-ae*N,Fe.i[2][0]=ce?I+Z*N:I-Z*N,Fe.i[2][1]=j+ae,Fe.i[3][0]=ce?I-Z:I+Z,Fe.i[3][1]=j+ae*N,Fe.o[0][0]=ce?I+Z*N:I-Z*N,Fe.o[0][1]=j-ae,Fe.o[1][0]=ce?I+Z:I-Z,Fe.o[1][1]=j+ae*N,Fe.o[2][0]=ce?I-Z*N:I+Z*N,Fe.o[2][1]=j+ae,Fe.o[3][0]=ce?I-Z:I+Z,Fe.o[3][1]=j-ae*N}},Se([ln],U),U}(),ke=function(){function N(U,M){this.v=Rn.newElement(),this.v.setPathData(!0,0),this.elem=U,this.comp=U.comp,this.data=M,this.frameId=-1,this.d=M.d,this.initDynamicPropertyContainer(U),M.sy===1?(this.ir=it.getProp(U,M.ir,0,0,this),this.is=it.getProp(U,M.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=it.getProp(U,M.pt,0,0,this),this.p=it.getProp(U,M.p,1,0,this),this.r=it.getProp(U,M.r,0,tt,this),this.or=it.getProp(U,M.or,0,0,this),this.os=it.getProp(U,M.os,0,.01,this),this.localShapeCollection=er.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return N.prototype={reset:b,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var M=Math.floor(this.pt.v)*2,I=Math.PI*2/M,j=!0,Z=this.or.v,ae=this.ir.v,ce=this.os.v,Fe=this.is.v,Qe=2*Math.PI*Z/(M*2),Xe=2*Math.PI*ae/(M*2),Le,st,ct,Ie,be=-Math.PI/2;be+=this.r.v;var se=this.data.d===3?-1:1;for(this.v._length=0,Le=0;Le<M;Le+=1){st=j?Z:ae,ct=j?ce:Fe,Ie=j?Qe:Xe;var H=st*Math.cos(be),he=st*Math.sin(be),Ne=H===0&&he===0?0:he/Math.sqrt(H*H+he*he),Re=H===0&&he===0?0:-H/Math.sqrt(H*H+he*he);H+=+this.p.v[0],he+=+this.p.v[1],this.v.setTripleAt(H,he,H-Ne*Ie*ct*se,he-Re*Ie*ct*se,H+Ne*Ie*ct*se,he+Re*Ie*ct*se,Le,!0),j=!j,be+=I*se}},convertPolygonToPath:function(){var M=Math.floor(this.pt.v),I=Math.PI*2/M,j=this.or.v,Z=this.os.v,ae=2*Math.PI*j/(M*4),ce,Fe=-Math.PI*.5,Qe=this.data.d===3?-1:1;for(Fe+=this.r.v,this.v._length=0,ce=0;ce<M;ce+=1){var Xe=j*Math.cos(Fe),Le=j*Math.sin(Fe),st=Xe===0&&Le===0?0:Le/Math.sqrt(Xe*Xe+Le*Le),ct=Xe===0&&Le===0?0:-Xe/Math.sqrt(Xe*Xe+Le*Le);Xe+=+this.p.v[0],Le+=+this.p.v[1],this.v.setTripleAt(Xe,Le,Xe-st*ae*Z*Qe,Le-ct*ae*Z*Qe,Xe+st*ae*Z*Qe,Le+ct*ae*Z*Qe,ce,!0),Fe+=I*Qe}this.paths.length=0,this.paths[0]=this.v}},Se([ln],N),N}(),A=function(){function N(U,M){this.v=Rn.newElement(),this.v.c=!0,this.localShapeCollection=er.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=U,this.comp=U.comp,this.frameId=-1,this.d=M.d,this.initDynamicPropertyContainer(U),this.p=it.getProp(U,M.p,1,0,this),this.s=it.getProp(U,M.s,1,0,this),this.r=it.getProp(U,M.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return N.prototype={convertRectToPath:function(){var M=this.p.v[0],I=this.p.v[1],j=this.s.v[0]/2,Z=this.s.v[1]/2,ae=xt(j,Z,this.r.v),ce=ae*(1-Et);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(M+j,I-Z+ae,M+j,I-Z+ae,M+j,I-Z+ce,0,!0),this.v.setTripleAt(M+j,I+Z-ae,M+j,I+Z-ce,M+j,I+Z-ae,1,!0),ae!==0?(this.v.setTripleAt(M+j-ae,I+Z,M+j-ae,I+Z,M+j-ce,I+Z,2,!0),this.v.setTripleAt(M-j+ae,I+Z,M-j+ce,I+Z,M-j+ae,I+Z,3,!0),this.v.setTripleAt(M-j,I+Z-ae,M-j,I+Z-ae,M-j,I+Z-ce,4,!0),this.v.setTripleAt(M-j,I-Z+ae,M-j,I-Z+ce,M-j,I-Z+ae,5,!0),this.v.setTripleAt(M-j+ae,I-Z,M-j+ae,I-Z,M-j+ce,I-Z,6,!0),this.v.setTripleAt(M+j-ae,I-Z,M+j-ce,I-Z,M+j-ae,I-Z,7,!0)):(this.v.setTripleAt(M-j,I+Z,M-j+ce,I+Z,M-j,I+Z,2),this.v.setTripleAt(M-j,I-Z,M-j,I-Z+ce,M-j,I-Z,3))):(this.v.setTripleAt(M+j,I-Z+ae,M+j,I-Z+ce,M+j,I-Z+ae,0,!0),ae!==0?(this.v.setTripleAt(M+j-ae,I-Z,M+j-ae,I-Z,M+j-ce,I-Z,1,!0),this.v.setTripleAt(M-j+ae,I-Z,M-j+ce,I-Z,M-j+ae,I-Z,2,!0),this.v.setTripleAt(M-j,I-Z+ae,M-j,I-Z+ae,M-j,I-Z+ce,3,!0),this.v.setTripleAt(M-j,I+Z-ae,M-j,I+Z-ce,M-j,I+Z-ae,4,!0),this.v.setTripleAt(M-j+ae,I+Z,M-j+ae,I+Z,M-j+ce,I+Z,5,!0),this.v.setTripleAt(M+j-ae,I+Z,M+j-ce,I+Z,M+j-ae,I+Z,6,!0),this.v.setTripleAt(M+j,I+Z-ae,M+j,I+Z-ae,M+j,I+Z-ce,7,!0)):(this.v.setTripleAt(M-j,I-Z,M-j+ce,I-Z,M-j,I-Z,1,!0),this.v.setTripleAt(M-j,I+Z,M-j,I+Z-ce,M-j,I+Z,2,!0),this.v.setTripleAt(M+j,I+Z,M+j-ce,I+Z,M+j,I+Z,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:b},Se([ln],N),N}();function q(N,U,M){var I;if(M===3||M===4){var j=M===3?U.pt:U.ks,Z=j.k;Z.length?I=new ye(N,U,M):I=new fe(N,U,M)}else M===5?I=new A(N,U):M===6?I=new $e(N,U):M===7&&(I=new ke(N,U));return I.k&&N.addDynamicProperty(I),I}function z(){return fe}function le(){return ye}var ue={};return ue.getShapeProp=q,ue.getConstructorFunction=z,ue.getKeyframedConstructorFunction=le,ue}();/*!
|
|
157
|
+
Transformation Matrix v2.0
|
|
158
|
+
(c) Epistemex 2014-2015
|
|
159
|
+
www.epistemex.com
|
|
160
|
+
By Ken Fyrstenberg
|
|
161
|
+
Contributions by leeoniya.
|
|
162
|
+
License: MIT, header required.
|
|
163
|
+
*/var cn=function(){var u=Math.cos,f=Math.sin,p=Math.tan,b=Math.round;function x(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function E(se){if(se===0)return this;var H=u(se),he=f(se);return this._t(H,-he,0,0,he,H,0,0,0,0,1,0,0,0,0,1)}function V(se){if(se===0)return this;var H=u(se),he=f(se);return this._t(1,0,0,0,0,H,-he,0,0,he,H,0,0,0,0,1)}function fe(se){if(se===0)return this;var H=u(se),he=f(se);return this._t(H,0,he,0,0,1,0,0,-he,0,H,0,0,0,0,1)}function G(se){if(se===0)return this;var H=u(se),he=f(se);return this._t(H,-he,0,0,he,H,0,0,0,0,1,0,0,0,0,1)}function ye(se,H){return this._t(1,H,se,1,0,0)}function $e(se,H){return this.shear(p(se),p(H))}function ke(se,H){var he=u(H),Ne=f(H);return this._t(he,Ne,0,0,-Ne,he,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,p(se),1,0,0,0,0,1,0,0,0,0,1)._t(he,-Ne,0,0,Ne,he,0,0,0,0,1,0,0,0,0,1)}function A(se,H,he){return!he&&he!==0&&(he=1),se===1&&H===1&&he===1?this:this._t(se,0,0,0,0,H,0,0,0,0,he,0,0,0,0,1)}function q(se,H,he,Ne,Re,lt,It,_t,Mn,tn,Br,br,rr,cr,fr,Ur){return this.props[0]=se,this.props[1]=H,this.props[2]=he,this.props[3]=Ne,this.props[4]=Re,this.props[5]=lt,this.props[6]=It,this.props[7]=_t,this.props[8]=Mn,this.props[9]=tn,this.props[10]=Br,this.props[11]=br,this.props[12]=rr,this.props[13]=cr,this.props[14]=fr,this.props[15]=Ur,this}function z(se,H,he){return he=he||0,se!==0||H!==0||he!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,se,H,he,1):this}function le(se,H,he,Ne,Re,lt,It,_t,Mn,tn,Br,br,rr,cr,fr,Ur){var dt=this.props;if(se===1&&H===0&&he===0&&Ne===0&&Re===0&<===1&&It===0&&_t===0&&Mn===0&&tn===0&&Br===1&&br===0)return dt[12]=dt[12]*se+dt[15]*rr,dt[13]=dt[13]*lt+dt[15]*cr,dt[14]=dt[14]*Br+dt[15]*fr,dt[15]*=Ur,this._identityCalculated=!1,this;var Sn=dt[0],di=dt[1],Li=dt[2],oa=dt[3],xi=dt[4],sa=dt[5],ua=dt[6],on=dt[7],On=dt[8],Ia=dt[9],Ei=dt[10],la=dt[11],Ci=dt[12],ca=dt[13],La=dt[14],Wo=dt[15];return dt[0]=Sn*se+di*Re+Li*Mn+oa*rr,dt[1]=Sn*H+di*lt+Li*tn+oa*cr,dt[2]=Sn*he+di*It+Li*Br+oa*fr,dt[3]=Sn*Ne+di*_t+Li*br+oa*Ur,dt[4]=xi*se+sa*Re+ua*Mn+on*rr,dt[5]=xi*H+sa*lt+ua*tn+on*cr,dt[6]=xi*he+sa*It+ua*Br+on*fr,dt[7]=xi*Ne+sa*_t+ua*br+on*Ur,dt[8]=On*se+Ia*Re+Ei*Mn+la*rr,dt[9]=On*H+Ia*lt+Ei*tn+la*cr,dt[10]=On*he+Ia*It+Ei*Br+la*fr,dt[11]=On*Ne+Ia*_t+Ei*br+la*Ur,dt[12]=Ci*se+ca*Re+La*Mn+Wo*rr,dt[13]=Ci*H+ca*lt+La*tn+Wo*cr,dt[14]=Ci*he+ca*It+La*Br+Wo*fr,dt[15]=Ci*Ne+ca*_t+La*br+Wo*Ur,this._identityCalculated=!1,this}function ue(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function N(se){for(var H=0;H<16;){if(se.props[H]!==this.props[H])return!1;H+=1}return!0}function U(se){var H;for(H=0;H<16;H+=1)se.props[H]=this.props[H];return se}function M(se){var H;for(H=0;H<16;H+=1)this.props[H]=se[H]}function I(se,H,he){return{x:se*this.props[0]+H*this.props[4]+he*this.props[8]+this.props[12],y:se*this.props[1]+H*this.props[5]+he*this.props[9]+this.props[13],z:se*this.props[2]+H*this.props[6]+he*this.props[10]+this.props[14]}}function j(se,H,he){return se*this.props[0]+H*this.props[4]+he*this.props[8]+this.props[12]}function Z(se,H,he){return se*this.props[1]+H*this.props[5]+he*this.props[9]+this.props[13]}function ae(se,H,he){return se*this.props[2]+H*this.props[6]+he*this.props[10]+this.props[14]}function ce(){var se=this.props[0]*this.props[5]-this.props[1]*this.props[4],H=this.props[5]/se,he=-this.props[1]/se,Ne=-this.props[4]/se,Re=this.props[0]/se,lt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/se,It=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/se,_t=new cn;return _t.props[0]=H,_t.props[1]=he,_t.props[4]=Ne,_t.props[5]=Re,_t.props[12]=lt,_t.props[13]=It,_t}function Fe(se){var H=this.getInverseMatrix();return H.applyToPointArray(se[0],se[1],se[2]||0)}function Qe(se){var H,he=se.length,Ne=[];for(H=0;H<he;H+=1)Ne[H]=Fe(se[H]);return Ne}function Xe(se,H,he){var Ne=xe("float32",6);if(this.isIdentity())Ne[0]=se[0],Ne[1]=se[1],Ne[2]=H[0],Ne[3]=H[1],Ne[4]=he[0],Ne[5]=he[1];else{var Re=this.props[0],lt=this.props[1],It=this.props[4],_t=this.props[5],Mn=this.props[12],tn=this.props[13];Ne[0]=se[0]*Re+se[1]*It+Mn,Ne[1]=se[0]*lt+se[1]*_t+tn,Ne[2]=H[0]*Re+H[1]*It+Mn,Ne[3]=H[0]*lt+H[1]*_t+tn,Ne[4]=he[0]*Re+he[1]*It+Mn,Ne[5]=he[0]*lt+he[1]*_t+tn}return Ne}function Le(se,H,he){var Ne;return this.isIdentity()?Ne=[se,H,he]:Ne=[se*this.props[0]+H*this.props[4]+he*this.props[8]+this.props[12],se*this.props[1]+H*this.props[5]+he*this.props[9]+this.props[13],se*this.props[2]+H*this.props[6]+he*this.props[10]+this.props[14]],Ne}function st(se,H){if(this.isIdentity())return se+","+H;var he=this.props;return Math.round((se*he[0]+H*he[4]+he[12])*100)/100+","+Math.round((se*he[1]+H*he[5]+he[13])*100)/100}function ct(){for(var se=0,H=this.props,he="matrix3d(",Ne=1e4;se<16;)he+=b(H[se]*Ne)/Ne,he+=se===15?")":",",se+=1;return he}function Ie(se){var H=1e4;return se<1e-6&&se>0||se>-1e-6&&se<0?b(se*H)/H:se}function be(){var se=this.props,H=Ie(se[0]),he=Ie(se[1]),Ne=Ie(se[4]),Re=Ie(se[5]),lt=Ie(se[12]),It=Ie(se[13]);return"matrix("+H+","+he+","+Ne+","+Re+","+lt+","+It+")"}return function(){this.reset=x,this.rotate=E,this.rotateX=V,this.rotateY=fe,this.rotateZ=G,this.skew=$e,this.skewFromAxis=ke,this.shear=ye,this.scale=A,this.setTransform=q,this.translate=z,this.transform=le,this.applyToPoint=I,this.applyToX=j,this.applyToY=Z,this.applyToZ=ae,this.applyToPointArray=Le,this.applyToTriplePoints=Xe,this.applyToPointStringified=st,this.toCSS=ct,this.to2dCSS=be,this.clone=U,this.cloneFromProps=M,this.equals=N,this.inversePoints=Qe,this.inversePoint=Fe,this.getInverseMatrix=ce,this._t=this.transform,this.isIdentity=ue,this._identity=!0,this._identityCalculated=!1,this.props=xe("float32",16),this.reset()}}();function $i(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$i=function(p){return typeof p}:$i=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},$i(u)}var Kt={};function ws(u){Pe(u)}function Qa(){Ot.searchAnimations()}function xs(u){Ct(u)}function Da(u){Kr(u)}function Fi(u){return Ot.loadAnimation(u)}function eo(u){if(typeof u=="string")switch(u){case"high":gr(200);break;default:case"medium":gr(50);break;case"low":gr(10);break}else!isNaN(u)&&u>1&&gr(u)}function to(){return typeof navigator<"u"}function Io(u,f){u==="expressions"&&Er(f)}function Lo(u){switch(u){case"propertyFactory":return it;case"shapePropertyFactory":return Sr;case"matrix":return cn;default:return null}}Kt.play=Ot.play,Kt.pause=Ot.pause,Kt.setLocationHref=ws,Kt.togglePause=Ot.togglePause,Kt.setSpeed=Ot.setSpeed,Kt.setDirection=Ot.setDirection,Kt.stop=Ot.stop,Kt.searchAnimations=Qa,Kt.registerAnimation=Ot.registerAnimation,Kt.loadAnimation=Fi,Kt.setSubframeRendering=xs,Kt.resize=Ot.resize,Kt.goToAndStop=Ot.goToAndStop,Kt.destroy=Ot.destroy,Kt.setQuality=eo,Kt.inBrowser=to,Kt.installPlugin=Io,Kt.freeze=Ot.freeze,Kt.unfreeze=Ot.unfreeze,Kt.setVolume=Ot.setVolume,Kt.mute=Ot.mute,Kt.unmute=Ot.unmute,Kt.getRegisteredAnimations=Ot.getRegisteredAnimations,Kt.useWebWorker=ee,Kt.setIDPrefix=Da,Kt.__getFactory=Lo,Kt.version="5.10.2";function Es(){document.readyState==="complete"&&(clearInterval(No),Qa())}function Bo(u){for(var f=Aa.split("&"),p=0;p<f.length;p+=1){var b=f[p].split("=");if(decodeURIComponent(b[0])==u)return decodeURIComponent(b[1])}return null}var Aa="";{var no=document.getElementsByTagName("script"),ta=no.length-1,Vo=no[ta]||{src:""};Aa=Vo.src?Vo.src.replace(/^[^\?]+\??/,""):"",Bo("renderer")}var No=setInterval(Es,100);try{$i(ne)!=="object"&&(window.bodymovin=Kt)}catch{}var zr=function(){var u={},f={};u.registerModifier=p,u.getModifier=b;function p(x,E){f[x]||(f[x]=E)}function b(x,E,V){return new f[x](E,V)}return u}();function Dr(){}Dr.prototype.initModifierProperties=function(){},Dr.prototype.addShapeToModifier=function(){},Dr.prototype.addShape=function(u){if(!this.closed){u.sh.container.addDynamicProperty(u.sh);var f={shape:u.sh,data:u,localShapeCollection:er.newShapeCollection()};this.shapes.push(f),this.addShapeToModifier(f),this._isAnimated&&u.setAsAnimated()}},Dr.prototype.init=function(u,f){this.shapes=[],this.elem=u,this.initDynamicPropertyContainer(u),this.initModifierProperties(u,f),this.frameId=Ce,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Dr.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},Se([ln],Dr);function Y(){}Se([Dr],Y),Y.prototype.initModifierProperties=function(u,f){this.s=it.getProp(u,f.s,0,.01,this),this.e=it.getProp(u,f.e,0,.01,this),this.o=it.getProp(u,f.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=f.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Y.prototype.addShapeToModifier=function(u){u.pathsData=[]},Y.prototype.calculateShapeEdges=function(u,f,p,b,x){var E=[];f<=1?E.push({s:u,e:f}):u>=1?E.push({s:u-1,e:f-1}):(E.push({s:u,e:1}),E.push({s:0,e:f-1}));var V=[],fe,G=E.length,ye;for(fe=0;fe<G;fe+=1)if(ye=E[fe],!(ye.e*x<b||ye.s*x>b+p)){var $e,ke;ye.s*x<=b?$e=0:$e=(ye.s*x-b)/p,ye.e*x>=b+p?ke=1:ke=(ye.e*x-b)/p,V.push([$e,ke])}return V.length||V.push([0,0]),V},Y.prototype.releasePathsData=function(u){var f,p=u.length;for(f=0;f<p;f+=1)mn.release(u[f]);return u.length=0,u},Y.prototype.processShapes=function(u){var f,p;if(this._mdf||u){var b=this.o.v%360/360;if(b<0&&(b+=1),this.s.v>1?f=1+b:this.s.v<0?f=0+b:f=this.s.v+b,this.e.v>1?p=1+b:this.e.v<0?p=0+b:p=this.e.v+b,f>p){var x=f;f=p,p=x}f=Math.round(f*1e4)*1e-4,p=Math.round(p*1e4)*1e-4,this.sValue=f,this.eValue=p}else f=this.sValue,p=this.eValue;var E,V,fe=this.shapes.length,G,ye,$e,ke,A,q=0;if(p===f)for(V=0;V<fe;V+=1)this.shapes[V].localShapeCollection.releaseShapes(),this.shapes[V].shape._mdf=!0,this.shapes[V].shape.paths=this.shapes[V].localShapeCollection,this._mdf&&(this.shapes[V].pathsData.length=0);else if(p===1&&f===0||p===0&&f===1){if(this._mdf)for(V=0;V<fe;V+=1)this.shapes[V].pathsData.length=0,this.shapes[V].shape._mdf=!0}else{var z=[],le,ue;for(V=0;V<fe;V+=1)if(le=this.shapes[V],!le.shape._mdf&&!this._mdf&&!u&&this.m!==2)le.shape.paths=le.localShapeCollection;else{if(E=le.shape.paths,ye=E._length,A=0,!le.shape._mdf&&le.pathsData.length)A=le.totalShapeLength;else{for($e=this.releasePathsData(le.pathsData),G=0;G<ye;G+=1)ke=Qn.getSegmentsLength(E.shapes[G]),$e.push(ke),A+=ke.totalLength;le.totalShapeLength=A,le.pathsData=$e}q+=A,le.shape._mdf=!0}var N=f,U=p,M=0,I;for(V=fe-1;V>=0;V-=1)if(le=this.shapes[V],le.shape._mdf){for(ue=le.localShapeCollection,ue.releaseShapes(),this.m===2&&fe>1?(I=this.calculateShapeEdges(f,p,le.totalShapeLength,M,q),M+=le.totalShapeLength):I=[[N,U]],ye=I.length,G=0;G<ye;G+=1){N=I[G][0],U=I[G][1],z.length=0,U<=1?z.push({s:le.totalShapeLength*N,e:le.totalShapeLength*U}):N>=1?z.push({s:le.totalShapeLength*(N-1),e:le.totalShapeLength*(U-1)}):(z.push({s:le.totalShapeLength*N,e:le.totalShapeLength}),z.push({s:0,e:le.totalShapeLength*(U-1)}));var j=this.addShapes(le,z[0]);if(z[0].s!==z[0].e){if(z.length>1){var Z=le.shape.paths.shapes[le.shape.paths._length-1];if(Z.c){var ae=j.pop();this.addPaths(j,ue),j=this.addShapes(le,z[1],ae)}else this.addPaths(j,ue),j=this.addShapes(le,z[1])}this.addPaths(j,ue)}}le.shape.paths=ue}}},Y.prototype.addPaths=function(u,f){var p,b=u.length;for(p=0;p<b;p+=1)f.addShape(u[p])},Y.prototype.addSegment=function(u,f,p,b,x,E,V){x.setXYAt(f[0],f[1],"o",E),x.setXYAt(p[0],p[1],"i",E+1),V&&x.setXYAt(u[0],u[1],"v",E),x.setXYAt(b[0],b[1],"v",E+1)},Y.prototype.addSegmentFromArray=function(u,f,p,b){f.setXYAt(u[1],u[5],"o",p),f.setXYAt(u[2],u[6],"i",p+1),b&&f.setXYAt(u[0],u[4],"v",p),f.setXYAt(u[3],u[7],"v",p+1)},Y.prototype.addShapes=function(u,f,p){var b=u.pathsData,x=u.shape.paths.shapes,E,V=u.shape.paths._length,fe,G,ye=0,$e,ke,A,q,z=[],le,ue=!0;for(p?(ke=p._length,le=p._length):(p=Rn.newElement(),ke=0,le=0),z.push(p),E=0;E<V;E+=1){for(A=b[E].lengths,p.c=x[E].c,G=x[E].c?A.length:A.length+1,fe=1;fe<G;fe+=1)if($e=A[fe-1],ye+$e.addedLength<f.s)ye+=$e.addedLength,p.c=!1;else if(ye>f.e){p.c=!1;break}else f.s<=ye&&f.e>=ye+$e.addedLength?(this.addSegment(x[E].v[fe-1],x[E].o[fe-1],x[E].i[fe],x[E].v[fe],p,ke,ue),ue=!1):(q=Qn.getNewSegment(x[E].v[fe-1],x[E].v[fe],x[E].o[fe-1],x[E].i[fe],(f.s-ye)/$e.addedLength,(f.e-ye)/$e.addedLength,A[fe-1]),this.addSegmentFromArray(q,p,ke,ue),ue=!1,p.c=!1),ye+=$e.addedLength,ke+=1;if(x[E].c&&A.length){if($e=A[fe-1],ye<=f.e){var N=A[fe-1].addedLength;f.s<=ye&&f.e>=ye+N?(this.addSegment(x[E].v[fe-1],x[E].o[fe-1],x[E].i[0],x[E].v[0],p,ke,ue),ue=!1):(q=Qn.getNewSegment(x[E].v[fe-1],x[E].v[0],x[E].o[fe-1],x[E].i[0],(f.s-ye)/N,(f.e-ye)/N,A[fe-1]),this.addSegmentFromArray(q,p,ke,ue),ue=!1,p.c=!1)}else p.c=!1;ye+=$e.addedLength,ke+=1}if(p._length&&(p.setXYAt(p.v[le][0],p.v[le][1],"i",le),p.setXYAt(p.v[p._length-1][0],p.v[p._length-1][1],"o",p._length-1)),ye>f.e)break;E<V-1&&(p=Rn.newElement(),ue=!0,z.push(p),ke=0)}return z};function Ee(){}Se([Dr],Ee),Ee.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.amount=it.getProp(u,f.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Ee.prototype.processPath=function(u,f){var p=f/100,b=[0,0],x=u._length,E=0;for(E=0;E<x;E+=1)b[0]+=u.v[E][0],b[1]+=u.v[E][1];b[0]/=x,b[1]/=x;var V=Rn.newElement();V.c=u.c;var fe,G,ye,$e,ke,A;for(E=0;E<x;E+=1)fe=u.v[E][0]+(b[0]-u.v[E][0])*p,G=u.v[E][1]+(b[1]-u.v[E][1])*p,ye=u.o[E][0]+(b[0]-u.o[E][0])*-p,$e=u.o[E][1]+(b[1]-u.o[E][1])*-p,ke=u.i[E][0]+(b[0]-u.i[E][0])*-p,A=u.i[E][1]+(b[1]-u.i[E][1])*-p,V.setTripleAt(fe,G,ye,$e,ke,A,E);return V},Ee.prototype.processShapes=function(u){var f,p,b=this.shapes.length,x,E,V=this.amount.v;if(V!==0){var fe,G;for(p=0;p<b;p+=1){if(fe=this.shapes[p],G=fe.localShapeCollection,!(!fe.shape._mdf&&!this._mdf&&!u))for(G.releaseShapes(),fe.shape._mdf=!0,f=fe.shape.paths.shapes,E=fe.shape.paths._length,x=0;x<E;x+=1)G.addShape(this.processPath(f[x],V));fe.shape.paths=fe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var Me=function(){var u=[0,0];function f(G){var ye=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||ye,this.a&&G.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&G.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&G.skewFromAxis(-this.sk.v,this.sa.v),this.r?G.rotate(-this.r.v):G.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?G.translate(this.px.v,this.py.v,-this.pz.v):G.translate(this.px.v,this.py.v,0):G.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function p(G){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||G){var ye;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var $e,ke;if(ye=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?($e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/ye,0),ke=this.p.getValueAtTime(this.p.keyframes[0].t/ye,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?($e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ye,0),ke=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ye,0)):($e=this.p.pv,ke=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ye,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){$e=[],ke=[];var A=this.px,q=this.py;A._caching.lastFrame+A.offsetTime<=A.keyframes[0].t?($e[0]=A.getValueAtTime((A.keyframes[0].t+.01)/ye,0),$e[1]=q.getValueAtTime((q.keyframes[0].t+.01)/ye,0),ke[0]=A.getValueAtTime(A.keyframes[0].t/ye,0),ke[1]=q.getValueAtTime(q.keyframes[0].t/ye,0)):A._caching.lastFrame+A.offsetTime>=A.keyframes[A.keyframes.length-1].t?($e[0]=A.getValueAtTime(A.keyframes[A.keyframes.length-1].t/ye,0),$e[1]=q.getValueAtTime(q.keyframes[q.keyframes.length-1].t/ye,0),ke[0]=A.getValueAtTime((A.keyframes[A.keyframes.length-1].t-.01)/ye,0),ke[1]=q.getValueAtTime((q.keyframes[q.keyframes.length-1].t-.01)/ye,0)):($e=[A.pv,q.pv],ke[0]=A.getValueAtTime((A._caching.lastFrame+A.offsetTime-.01)/ye,A.offsetTime),ke[1]=q.getValueAtTime((q._caching.lastFrame+q.offsetTime-.01)/ye,q.offsetTime))}else ke=u,$e=ke;this.v.rotate(-Math.atan2($e[1]-ke[1],$e[0]-ke[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function b(){if(!this.a.k)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function x(){}function E(G){this._addDynamicProperty(G),this.elem.addDynamicProperty(G),this._isDirty=!0}function V(G,ye,$e){if(this.elem=G,this.frameId=-1,this.propType="transform",this.data=ye,this.v=new cn,this.pre=new cn,this.appliedTransformations=0,this.initDynamicPropertyContainer($e||G),ye.p&&ye.p.s?(this.px=it.getProp(G,ye.p.x,0,0,this),this.py=it.getProp(G,ye.p.y,0,0,this),ye.p.z&&(this.pz=it.getProp(G,ye.p.z,0,0,this))):this.p=it.getProp(G,ye.p||{k:[0,0,0]},1,0,this),ye.rx){if(this.rx=it.getProp(G,ye.rx,0,tt,this),this.ry=it.getProp(G,ye.ry,0,tt,this),this.rz=it.getProp(G,ye.rz,0,tt,this),ye.or.k[0].ti){var ke,A=ye.or.k.length;for(ke=0;ke<A;ke+=1)ye.or.k[ke].to=null,ye.or.k[ke].ti=null}this.or=it.getProp(G,ye.or,1,tt,this),this.or.sh=!0}else this.r=it.getProp(G,ye.r||{k:0},0,tt,this);ye.sk&&(this.sk=it.getProp(G,ye.sk,0,tt,this),this.sa=it.getProp(G,ye.sa,0,tt,this)),this.a=it.getProp(G,ye.a||{k:[0,0,0]},1,0,this),this.s=it.getProp(G,ye.s||{k:[100,100,100]},1,.01,this),ye.o?this.o=it.getProp(G,ye.o,0,.01,G):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}V.prototype={applyToMatrix:f,getValue:p,precalculateMatrix:b,autoOrient:x},Se([ln],V),V.prototype.addDynamicProperty=E,V.prototype._addDynamicProperty=ln.prototype.addDynamicProperty;function fe(G,ye,$e){return new V(G,ye,$e)}return{getTransformProperty:fe}}();function ze(){}Se([Dr],ze),ze.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.c=it.getProp(u,f.c,0,null,this),this.o=it.getProp(u,f.o,0,null,this),this.tr=Me.getTransformProperty(u,f.tr,this),this.so=it.getProp(u,f.tr.so,0,.01,this),this.eo=it.getProp(u,f.tr.eo,0,.01,this),this.data=f,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new cn,this.rMatrix=new cn,this.sMatrix=new cn,this.tMatrix=new cn,this.matrix=new cn},ze.prototype.applyTransforms=function(u,f,p,b,x,E){var V=E?-1:1,fe=b.s.v[0]+(1-b.s.v[0])*(1-x),G=b.s.v[1]+(1-b.s.v[1])*(1-x);u.translate(b.p.v[0]*V*x,b.p.v[1]*V*x,b.p.v[2]),f.translate(-b.a.v[0],-b.a.v[1],b.a.v[2]),f.rotate(-b.r.v*V*x),f.translate(b.a.v[0],b.a.v[1],b.a.v[2]),p.translate(-b.a.v[0],-b.a.v[1],b.a.v[2]),p.scale(E?1/fe:fe,E?1/G:G),p.translate(b.a.v[0],b.a.v[1],b.a.v[2])},ze.prototype.init=function(u,f,p,b){for(this.elem=u,this.arr=f,this.pos=p,this.elemsData=b,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(u),this.initModifierProperties(u,f[p]);p>0;)p-=1,this._elements.unshift(f[p]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ze.prototype.resetElements=function(u){var f,p=u.length;for(f=0;f<p;f+=1)u[f]._processed=!1,u[f].ty==="gr"&&this.resetElements(u[f].it)},ze.prototype.cloneElements=function(u){var f=JSON.parse(JSON.stringify(u));return this.resetElements(f),f},ze.prototype.changeGroupRender=function(u,f){var p,b=u.length;for(p=0;p<b;p+=1)u[p]._render=f,u[p].ty==="gr"&&this.changeGroupRender(u[p].it,f)},ze.prototype.processShapes=function(u){var f,p,b,x,E,V=!1;if(this._mdf||u){var fe=Math.ceil(this.c.v);if(this._groups.length<fe){for(;this._groups.length<fe;){var G={it:this.cloneElements(this._elements),ty:"gr"};G.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,G),this._groups.splice(0,0,G),this._currentCopies+=1}this.elem.reloadShapes(),V=!0}E=0;var ye;for(b=0;b<=this._groups.length-1;b+=1){if(ye=E<fe,this._groups[b]._render=ye,this.changeGroupRender(this._groups[b].it,ye),!ye){var $e=this.elemsData[b].it,ke=$e[$e.length-1];ke.transform.op.v!==0?(ke.transform.op._mdf=!0,ke.transform.op.v=0):ke.transform.op._mdf=!1}E+=1}this._currentCopies=fe;var A=this.o.v,q=A%1,z=A>0?Math.floor(A):Math.ceil(A),le=this.pMatrix.props,ue=this.rMatrix.props,N=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var U=0;if(A>0){for(;U<z;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),U+=1;q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,q,!1),U+=q)}else if(A<0){for(;U>z;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),U-=1;q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-q,!0),U-=q)}b=this.data.m===1?0:this._currentCopies-1,x=this.data.m===1?1:-1,E=this._currentCopies;for(var M,I;E;){if(f=this.elemsData[b].it,p=f[f.length-1].transform.mProps.v.props,I=p.length,f[f.length-1].transform.mProps._mdf=!0,f[f.length-1].transform.op._mdf=!0,f[f.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(b/(this._currentCopies-1)),U!==0){for((b!==0&&x===1||b!==this._currentCopies-1&&x===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ue[0],ue[1],ue[2],ue[3],ue[4],ue[5],ue[6],ue[7],ue[8],ue[9],ue[10],ue[11],ue[12],ue[13],ue[14],ue[15]),this.matrix.transform(N[0],N[1],N[2],N[3],N[4],N[5],N[6],N[7],N[8],N[9],N[10],N[11],N[12],N[13],N[14],N[15]),this.matrix.transform(le[0],le[1],le[2],le[3],le[4],le[5],le[6],le[7],le[8],le[9],le[10],le[11],le[12],le[13],le[14],le[15]),M=0;M<I;M+=1)p[M]=this.matrix.props[M];this.matrix.reset()}else for(this.matrix.reset(),M=0;M<I;M+=1)p[M]=this.matrix.props[M];U+=1,E-=1,b+=x}}else for(E=this._currentCopies,b=0,x=1;E;)f=this.elemsData[b].it,p=f[f.length-1].transform.mProps.v.props,f[f.length-1].transform.mProps._mdf=!1,f[f.length-1].transform.op._mdf=!1,E-=1,b+=x;return V},ze.prototype.addShape=function(){};function at(){}Se([Dr],at),at.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.rd=it.getProp(u,f.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},at.prototype.processPath=function(u,f){var p=Rn.newElement();p.c=u.c;var b,x=u._length,E,V,fe,G,ye,$e,ke=0,A,q,z,le,ue,N;for(b=0;b<x;b+=1)E=u.v[b],fe=u.o[b],V=u.i[b],E[0]===fe[0]&&E[1]===fe[1]&&E[0]===V[0]&&E[1]===V[1]?(b===0||b===x-1)&&!u.c?(p.setTripleAt(E[0],E[1],fe[0],fe[1],V[0],V[1],ke),ke+=1):(b===0?G=u.v[x-1]:G=u.v[b-1],ye=Math.sqrt(Math.pow(E[0]-G[0],2)+Math.pow(E[1]-G[1],2)),$e=ye?Math.min(ye/2,f)/ye:0,ue=E[0]+(G[0]-E[0])*$e,A=ue,N=E[1]-(E[1]-G[1])*$e,q=N,z=A-(A-E[0])*Et,le=q-(q-E[1])*Et,p.setTripleAt(A,q,z,le,ue,N,ke),ke+=1,b===x-1?G=u.v[0]:G=u.v[b+1],ye=Math.sqrt(Math.pow(E[0]-G[0],2)+Math.pow(E[1]-G[1],2)),$e=ye?Math.min(ye/2,f)/ye:0,z=E[0]+(G[0]-E[0])*$e,A=z,le=E[1]+(G[1]-E[1])*$e,q=le,ue=A-(A-E[0])*Et,N=q-(q-E[1])*Et,p.setTripleAt(A,q,z,le,ue,N,ke),ke+=1):(p.setTripleAt(u.v[b][0],u.v[b][1],u.o[b][0],u.o[b][1],u.i[b][0],u.i[b][1],ke),ke+=1);return p},at.prototype.processShapes=function(u){var f,p,b=this.shapes.length,x,E,V=this.rd.v;if(V!==0){var fe,G;for(p=0;p<b;p+=1){if(fe=this.shapes[p],G=fe.localShapeCollection,!(!fe.shape._mdf&&!this._mdf&&!u))for(G.releaseShapes(),fe.shape._mdf=!0,f=fe.shape.paths.shapes,E=fe.shape.paths._length,x=0;x<E;x+=1)G.addShape(this.processPath(f[x],V));fe.shape.paths=fe.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Bt(u,f){return Math.abs(u-f)*1e5<=Math.min(Math.abs(u),Math.abs(f))}function bt(u){return Math.abs(u)<=1e-5}function St(u,f,p){return u*(1-p)+f*p}function Zt(u,f,p){return[St(u[0],f[0],p),St(u[1],f[1],p)]}function Pn(u,f,p){if(u===0)return[];var b=f*f-4*u*p;if(b<0)return[];var x=-f/(2*u);if(b===0)return[x];var E=Math.sqrt(b)/(2*u);return[x-E,x+E]}function vr(u,f,p,b){return[-u+3*f-3*p+b,3*u-6*f+3*p,-3*u+3*f,u]}function yr(u){return new rn(u,u,u,u,!1)}function rn(u,f,p,b,x){x&&ra(u,f)&&(f=Zt(u,b,1/3)),x&&ra(p,b)&&(p=Zt(u,b,2/3));var E=vr(u[0],f[0],p[0],b[0]),V=vr(u[1],f[1],p[1],b[1]);this.a=[E[0],V[0]],this.b=[E[1],V[1]],this.c=[E[2],V[2]],this.d=[E[3],V[3]],this.points=[u,f,p,b]}rn.prototype.point=function(u){return[((this.a[0]*u+this.b[0])*u+this.c[0])*u+this.d[0],((this.a[1]*u+this.b[1])*u+this.c[1])*u+this.d[1]]},rn.prototype.derivative=function(u){return[(3*u*this.a[0]+2*this.b[0])*u+this.c[0],(3*u*this.a[1]+2*this.b[1])*u+this.c[1]]},rn.prototype.tangentAngle=function(u){var f=this.derivative(u);return Math.atan2(f[1],f[0])},rn.prototype.normalAngle=function(u){var f=this.derivative(u);return Math.atan2(f[0],f[1])},rn.prototype.inflectionPoints=function(){var u=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(bt(u))return[];var f=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/u,p=f*f-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/u;if(p<0)return[];var b=Math.sqrt(p);return bt(b)?b>0&&b<1?[f]:[]:[f-b,f+b].filter(function(x){return x>0&&x<1})},rn.prototype.split=function(u){if(u<=0)return[yr(this.points[0]),this];if(u>=1)return[this,yr(this.points[this.points.length-1])];var f=Zt(this.points[0],this.points[1],u),p=Zt(this.points[1],this.points[2],u),b=Zt(this.points[2],this.points[3],u),x=Zt(f,p,u),E=Zt(p,b,u),V=Zt(x,E,u);return[new rn(this.points[0],f,x,V,!0),new rn(V,E,b,this.points[3],!0)]};function Fr(u,f){var p=u.points[0][f],b=u.points[u.points.length-1][f];if(p>b){var x=b;b=p,p=x}for(var E=Pn(3*u.a[f],2*u.b[f],u.c[f]),V=0;V<E.length;V+=1)if(E[V]>0&&E[V]<1){var fe=u.point(E[V])[f];fe<p?p=fe:fe>b&&(b=fe)}return{min:p,max:b}}rn.prototype.bounds=function(){return{x:Fr(this,0),y:Fr(this,1)}},rn.prototype.boundingBox=function(){var u=this.bounds();return{left:u.x.min,right:u.x.max,top:u.y.min,bottom:u.y.max,width:u.x.max-u.x.min,height:u.y.max-u.y.min,cx:(u.x.max+u.x.min)/2,cy:(u.y.max+u.y.min)/2}};function na(u,f,p){var b=u.boundingBox();return{cx:b.cx,cy:b.cy,width:b.width,height:b.height,bez:u,t:(f+p)/2,t1:f,t2:p}}function Pa(u){var f=u.bez.split(.5);return[na(f[0],u.t1,u.t),na(f[1],u.t,u.t2)]}function ro(u,f){return Math.abs(u.cx-f.cx)*2<u.width+f.width&&Math.abs(u.cy-f.cy)*2<u.height+f.height}function ri(u,f,p,b,x,E){if(ro(u,f)){if(p>=E||u.width<=b&&u.height<=b&&f.width<=b&&f.height<=b){x.push([u.t,f.t]);return}var V=Pa(u),fe=Pa(f);ri(V[0],fe[0],p+1,b,x,E),ri(V[0],fe[1],p+1,b,x,E),ri(V[1],fe[0],p+1,b,x,E),ri(V[1],fe[1],p+1,b,x,E)}}rn.prototype.intersections=function(u,f,p){f===void 0&&(f=2),p===void 0&&(p=7);var b=[];return ri(na(this,0,1),na(u,0,1),0,f,b,p),b},rn.shapeSegment=function(u,f){var p=(f+1)%u.length();return new rn(u.v[f],u.o[f],u.i[p],u.v[p],!0)},rn.shapeSegmentInverted=function(u,f){var p=(f+1)%u.length();return new rn(u.v[p],u.i[p],u.o[f],u.v[f],!0)};function Cs(u,f){return[u[1]*f[2]-u[2]*f[1],u[2]*f[0]-u[0]*f[2],u[0]*f[1]-u[1]*f[0]]}function Ta(u,f,p,b){var x=[u[0],u[1],1],E=[f[0],f[1],1],V=[p[0],p[1],1],fe=[b[0],b[1],1],G=Cs(Cs(x,E),Cs(V,fe));return bt(G[2])?null:[G[0]/G[2],G[1]/G[2]]}function _a(u,f,p){return[u[0]+Math.cos(f)*p,u[1]-Math.sin(f)*p]}function io(u,f){return Math.hypot(u[0]-f[0],u[1]-f[1])}function ra(u,f){return Bt(u[0],f[0])&&Bt(u[1],f[1])}function ao(){}Se([Dr],ao),ao.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.amplitude=it.getProp(u,f.s,0,null,this),this.frequency=it.getProp(u,f.r,0,null,this),this.pointsType=it.getProp(u,f.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function jo(u,f,p,b,x,E,V){var fe=p-Math.PI/2,G=p+Math.PI/2,ye=f[0]+Math.cos(p)*b*x,$e=f[1]-Math.sin(p)*b*x;u.setTripleAt(ye,$e,ye+Math.cos(fe)*E,$e-Math.sin(fe)*E,ye+Math.cos(G)*V,$e-Math.sin(G)*V,u.length())}function yu(u,f){var p=[f[0]-u[0],f[1]-u[1]],b=-Math.PI*.5,x=[Math.cos(b)*p[0]-Math.sin(b)*p[1],Math.sin(b)*p[0]+Math.cos(b)*p[1]];return x}function Fl(u,f){var p=f===0?u.length()-1:f-1,b=(f+1)%u.length(),x=u.v[p],E=u.v[b],V=yu(x,E);return Math.atan2(0,1)-Math.atan2(V[1],V[0])}function oo(u,f,p,b,x,E,V){var fe=Fl(f,p),G=f.v[p%f._length],ye=f.v[p===0?f._length-1:p-1],$e=f.v[(p+1)%f._length],ke=E===2?Math.sqrt(Math.pow(G[0]-ye[0],2)+Math.pow(G[1]-ye[1],2)):0,A=E===2?Math.sqrt(Math.pow(G[0]-$e[0],2)+Math.pow(G[1]-$e[1],2)):0;jo(u,f.v[p%f._length],fe,V,b,A/((x+1)*2),ke/((x+1)*2))}function Ml(u,f,p,b,x,E){for(var V=0;V<b;V+=1){var fe=(V+1)/(b+1),G=x===2?Math.sqrt(Math.pow(f.points[3][0]-f.points[0][0],2)+Math.pow(f.points[3][1]-f.points[0][1],2)):0,ye=f.normalAngle(fe),$e=f.point(fe);jo(u,$e,ye,E,p,G/((b+1)*2),G/((b+1)*2)),E=-E}return E}ao.prototype.processPath=function(u,f,p,b){var x=u._length,E=Rn.newElement();if(E.c=u.c,u.c||(x-=1),x===0)return E;var V=-1,fe=rn.shapeSegment(u,0);oo(E,u,0,f,p,b,V);for(var G=0;G<x;G+=1)V=Ml(E,fe,f,p,b,-V),G===x-1&&!u.c?fe=null:fe=rn.shapeSegment(u,(G+1)%x),oo(E,u,G+1,f,p,b,V);return E},ao.prototype.processShapes=function(u){var f,p,b=this.shapes.length,x,E,V=this.amplitude.v,fe=Math.max(0,Math.round(this.frequency.v)),G=this.pointsType.v;if(V!==0){var ye,$e;for(p=0;p<b;p+=1){if(ye=this.shapes[p],$e=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!u))for($e.releaseShapes(),ye.shape._mdf=!0,f=ye.shape.paths.shapes,E=ye.shape.paths._length,x=0;x<E;x+=1)$e.addShape(this.processPath(f[x],V,fe,G));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function so(u,f,p){var b=Math.atan2(f[0]-u[0],f[1]-u[1]);return[_a(u,b,p),_a(f,b,p)]}function an(u,f){var p,b,x,E,V,fe,G;G=so(u.points[0],u.points[1],f),p=G[0],b=G[1],G=so(u.points[1],u.points[2],f),x=G[0],E=G[1],G=so(u.points[2],u.points[3],f),V=G[0],fe=G[1];var ye=Ta(p,b,x,E);ye===null&&(ye=b);var $e=Ta(V,fe,x,E);return $e===null&&($e=V),new rn(p,ye,$e,fe)}function fn(u,f,p,b,x){var E=f.points[3],V=p.points[0];if(b===3||ra(E,V))return E;if(b===2){var fe=-f.tangentAngle(1),G=-p.tangentAngle(0)+Math.PI,ye=Ta(E,_a(E,fe+Math.PI/2,100),V,_a(V,fe+Math.PI/2,100)),$e=ye?io(ye,E):io(E,V)/2,ke=_a(E,fe,2*$e*Et);return u.setXYAt(ke[0],ke[1],"o",u.length()-1),ke=_a(V,G,2*$e*Et),u.setTripleAt(V[0],V[1],V[0],V[1],ke[0],ke[1],u.length()),V}var A=ra(E,f.points[2])?f.points[0]:f.points[2],q=ra(V,p.points[1])?p.points[3]:p.points[1],z=Ta(A,E,V,q);return z&&io(z,E)<x?(u.setTripleAt(z[0],z[1],z[0],z[1],z[0],z[1],u.length()),z):E}function Q(u,f){var p=u.intersections(f);return p.length&&Bt(p[0][0],1)&&p.shift(),p.length?p[0]:null}function _e(u,f){var p=u.slice(),b=f.slice(),x=Q(u[u.length-1],f[0]);return x&&(p[u.length-1]=u[u.length-1].split(x[0])[0],b[0]=f[0].split(x[1])[1]),u.length>1&&f.length>1&&(x=Q(u[0],f[f.length-1]),x)?[[u[0].split(x[0])[0]],[f[f.length-1].split(x[1])[1]]]:[p,b]}function We(u){for(var f,p=1;p<u.length;p+=1)f=_e(u[p-1],u[p]),u[p-1]=f[0],u[p]=f[1];return u.length>1&&(f=_e(u[u.length-1],u[0]),u[u.length-1]=f[0],u[0]=f[1]),u}function pt(u,f){var p=u.inflectionPoints(),b,x,E,V;if(p.length===0)return[an(u,f)];if(p.length===1||Bt(p[1],1))return E=u.split(p[0]),b=E[0],x=E[1],[an(b,f),an(x,f)];E=u.split(p[0]),b=E[0];var fe=(p[1]-p[0])/(1-p[0]);return E=E[1].split(fe),V=E[0],x=E[1],[an(b,f),an(V,f),an(x,f)]}function Fn(){}Se([Dr],Fn),Fn.prototype.initModifierProperties=function(u,f){this.getValue=this.processKeys,this.amount=it.getProp(u,f.a,0,null,this),this.miterLimit=it.getProp(u,f.ml,0,null,this),this.lineJoin=f.lj,this._isAnimated=this.amount.effectsSequence.length!==0},Fn.prototype.processPath=function(u,f,p,b){var x=Rn.newElement();x.c=u.c;var E=u.length();u.c||(E-=1);var V,fe,G,ye=[];for(V=0;V<E;V+=1)G=rn.shapeSegment(u,V),ye.push(pt(G,f));if(!u.c)for(V=E-1;V>=0;V-=1)G=rn.shapeSegmentInverted(u,V),ye.push(pt(G,f));ye=We(ye);var $e=null,ke=null;for(V=0;V<ye.length;V+=1){var A=ye[V];for(ke&&($e=fn(x,ke,A[0],p,b)),ke=A[A.length-1],fe=0;fe<A.length;fe+=1)G=A[fe],$e&&ra(G.points[0],$e)?x.setXYAt(G.points[1][0],G.points[1][1],"o",x.length()-1):x.setTripleAt(G.points[0][0],G.points[0][1],G.points[1][0],G.points[1][1],G.points[0][0],G.points[0][1],x.length()),x.setTripleAt(G.points[3][0],G.points[3][1],G.points[3][0],G.points[3][1],G.points[2][0],G.points[2][1],x.length()),$e=G.points[3]}return ye.length&&fn(x,ke,ye[0][0],p,b),x},Fn.prototype.processShapes=function(u){var f,p,b=this.shapes.length,x,E,V=this.amount.v,fe=this.miterLimit.v,G=this.lineJoin;if(V!==0){var ye,$e;for(p=0;p<b;p+=1){if(ye=this.shapes[p],$e=ye.localShapeCollection,!(!ye.shape._mdf&&!this._mdf&&!u))for($e.releaseShapes(),ye.shape._mdf=!0,f=ye.shape.paths.shapes,E=ye.shape.paths._length,x=0;x<E;x+=1)$e.addShape(this.processPath(f[x],V,G,fe));ye.shape.paths=ye.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function Ar(u){for(var f=u.fStyle?u.fStyle.split(" "):[],p="normal",b="normal",x=f.length,E,V=0;V<x;V+=1)switch(E=f[V].toLowerCase(),E){case"italic":b="italic";break;case"bold":p="700";break;case"black":p="900";break;case"medium":p="500";break;case"regular":case"normal":p="400";break;case"light":case"thin":p="200";break}return{style:b,weight:u.fWeight||p}}var Mr=function(){var u=5e3,f={w:0,size:0,shapes:[],data:{shapes:[]}},p=[];p=p.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var b=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],x=[65039,8205];function E(I){var j=I.split(","),Z,ae=j.length,ce=[];for(Z=0;Z<ae;Z+=1)j[Z]!=="sans-serif"&&j[Z]!=="monospace"&&ce.push(j[Z]);return ce.join(",")}function V(I,j){var Z=Ve("span");Z.setAttribute("aria-hidden",!0),Z.style.fontFamily=j;var ae=Ve("span");ae.innerText="giItT1WQy@!-/#",Z.style.position="absolute",Z.style.left="-10000px",Z.style.top="-10000px",Z.style.fontSize="300px",Z.style.fontVariant="normal",Z.style.fontStyle="normal",Z.style.fontWeight="normal",Z.style.letterSpacing="0",Z.appendChild(ae),document.body.appendChild(Z);var ce=ae.offsetWidth;return ae.style.fontFamily=E(I)+", "+j,{node:ae,w:ce,parent:Z}}function fe(){var I,j=this.fonts.length,Z,ae,ce=j;for(I=0;I<j;I+=1)this.fonts[I].loaded?ce-=1:this.fonts[I].fOrigin==="n"||this.fonts[I].origin===0?this.fonts[I].loaded=!0:(Z=this.fonts[I].monoCase.node,ae=this.fonts[I].monoCase.w,Z.offsetWidth!==ae?(ce-=1,this.fonts[I].loaded=!0):(Z=this.fonts[I].sansCase.node,ae=this.fonts[I].sansCase.w,Z.offsetWidth!==ae&&(ce-=1,this.fonts[I].loaded=!0)),this.fonts[I].loaded&&(this.fonts[I].sansCase.parent.parentNode.removeChild(this.fonts[I].sansCase.parent),this.fonts[I].monoCase.parent.parentNode.removeChild(this.fonts[I].monoCase.parent)));ce!==0&&Date.now()-this.initTime<u?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function G(I,j){var Z=document.body&&j?"svg":"canvas",ae,ce=Ar(I);if(Z==="svg"){var Fe=ft("text");Fe.style.fontSize="100px",Fe.setAttribute("font-family",I.fFamily),Fe.setAttribute("font-style",ce.style),Fe.setAttribute("font-weight",ce.weight),Fe.textContent="1",I.fClass?(Fe.style.fontFamily="inherit",Fe.setAttribute("class",I.fClass)):Fe.style.fontFamily=I.fFamily,j.appendChild(Fe),ae=Fe}else{var Qe=new OffscreenCanvas(500,500).getContext("2d");Qe.font=ce.style+" "+ce.weight+" 100px "+I.fFamily,ae=Qe}function Xe(Le){return Z==="svg"?(ae.textContent=Le,ae.getComputedTextLength()):ae.measureText(Le).width}return{measureText:Xe}}function ye(I,j){if(!I){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=I.list;return}if(!document.body){this.isLoaded=!0,I.list.forEach(function(be){be.helper=G(be),be.cache={}}),this.fonts=I.list;return}var Z=I.list,ae,ce=Z.length,Fe=ce;for(ae=0;ae<ce;ae+=1){var Qe=!0,Xe,Le;if(Z[ae].loaded=!1,Z[ae].monoCase=V(Z[ae].fFamily,"monospace"),Z[ae].sansCase=V(Z[ae].fFamily,"sans-serif"),!Z[ae].fPath)Z[ae].loaded=!0,Fe-=1;else if(Z[ae].fOrigin==="p"||Z[ae].origin===3){if(Xe=document.querySelectorAll('style[f-forigin="p"][f-family="'+Z[ae].fFamily+'"], style[f-origin="3"][f-family="'+Z[ae].fFamily+'"]'),Xe.length>0&&(Qe=!1),Qe){var st=Ve("style");st.setAttribute("f-forigin",Z[ae].fOrigin),st.setAttribute("f-origin",Z[ae].origin),st.setAttribute("f-family",Z[ae].fFamily),st.type="text/css",st.innerText="@font-face {font-family: "+Z[ae].fFamily+"; font-style: normal; src: url('"+Z[ae].fPath+"');}",j.appendChild(st)}}else if(Z[ae].fOrigin==="g"||Z[ae].origin===1){for(Xe=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Le=0;Le<Xe.length;Le+=1)Xe[Le].href.indexOf(Z[ae].fPath)!==-1&&(Qe=!1);if(Qe){var ct=Ve("link");ct.setAttribute("f-forigin",Z[ae].fOrigin),ct.setAttribute("f-origin",Z[ae].origin),ct.type="text/css",ct.rel="stylesheet",ct.href=Z[ae].fPath,document.body.appendChild(ct)}}else if(Z[ae].fOrigin==="t"||Z[ae].origin===2){for(Xe=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Le=0;Le<Xe.length;Le+=1)Z[ae].fPath===Xe[Le].src&&(Qe=!1);if(Qe){var Ie=Ve("link");Ie.setAttribute("f-forigin",Z[ae].fOrigin),Ie.setAttribute("f-origin",Z[ae].origin),Ie.setAttribute("rel","stylesheet"),Ie.setAttribute("href",Z[ae].fPath),j.appendChild(Ie)}}Z[ae].helper=G(Z[ae],j),Z[ae].cache={},this.fonts.push(Z[ae])}Fe===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function $e(I){if(I){this.chars||(this.chars=[]);var j,Z=I.length,ae,ce=this.chars.length,Fe;for(j=0;j<Z;j+=1){for(ae=0,Fe=!1;ae<ce;)this.chars[ae].style===I[j].style&&this.chars[ae].fFamily===I[j].fFamily&&this.chars[ae].ch===I[j].ch&&(Fe=!0),ae+=1;Fe||(this.chars.push(I[j]),ce+=1)}}}function ke(I,j,Z){for(var ae=0,ce=this.chars.length;ae<ce;){if(this.chars[ae].ch===I&&this.chars[ae].style===j&&this.chars[ae].fFamily===Z)return this.chars[ae];ae+=1}return(typeof I=="string"&&I.charCodeAt(0)!==13||!I)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",I,j,Z)),f}function A(I,j,Z){var ae=this.getFontByName(j),ce=I.charCodeAt(0);if(!ae.cache[ce+1]){var Fe=ae.helper;if(I===" "){var Qe=Fe.measureText("|"+I+"|"),Xe=Fe.measureText("||");ae.cache[ce+1]=(Qe-Xe)/100}else ae.cache[ce+1]=Fe.measureText(I)/100}return ae.cache[ce+1]*Z}function q(I){for(var j=0,Z=this.fonts.length;j<Z;){if(this.fonts[j].fName===I)return this.fonts[j];j+=1}return this.fonts[0]}function z(I,j){var Z=I.toString(16)+j.toString(16);return b.indexOf(Z)!==-1}function le(I,j){return j?I===x[0]&&j===x[1]:I===x[1]}function ue(I){return p.indexOf(I)!==-1}function N(){this.isLoaded=!0}var U=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};U.isModifier=z,U.isZeroWidthJoiner=le,U.isCombinedCharacter=ue;var M={addChars:$e,addFonts:ye,getCharData:ke,getFontByName:q,measureText:A,checkLoadedFonts:fe,setIsLoaded:N};return U.prototype=M,U}();function lr(){}lr.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(f){this.renderableComponents.indexOf(f)===-1&&this.renderableComponents.push(f)},removeRenderableComponent:function(f){this.renderableComponents.indexOf(f)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(f),1)},prepareRenderableFrame:function(f){this.checkLayerLimits(f)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(f){this.data.ip-this.data.st<=f&&this.data.op-this.data.st>f?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var f,p=this.renderableComponents.length;for(f=0;f<p;f+=1)this.renderableComponents[f].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var jn=function(){var u={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(f){return u[f]||""}}();function Mi(u,f,p){this.p=it.getProp(f,u.v,0,0,p)}function Oi(u,f,p){this.p=it.getProp(f,u.v,0,0,p)}function Ss(u,f,p){this.p=it.getProp(f,u.v,1,0,p)}function Ko(u,f,p){this.p=it.getProp(f,u.v,1,0,p)}function Or(u,f,p){this.p=it.getProp(f,u.v,0,0,p)}function uo(u,f,p){this.p=it.getProp(f,u.v,0,0,p)}function mf(u,f,p){this.p=it.getProp(f,u.v,0,0,p)}function gf(){this.p={}}function Ol(u,f){var p=u.ef||[];this.effectElements=[];var b,x=p.length,E;for(b=0;b<x;b+=1)E=new zo(p[b],f),this.effectElements.push(E)}function zo(u,f){this.init(u,f)}Se([ln],zo),zo.prototype.getValue=zo.prototype.iterateDynamicProperties,zo.prototype.init=function(u,f){this.data=u,this.effectElements=[],this.initDynamicPropertyContainer(f);var p,b=this.data.ef.length,x,E=this.data.ef;for(p=0;p<b;p+=1){switch(x=null,E[p].ty){case 0:x=new Mi(E[p],f,this);break;case 1:x=new Oi(E[p],f,this);break;case 2:x=new Ss(E[p],f,this);break;case 3:x=new Ko(E[p],f,this);break;case 4:case 7:x=new mf(E[p],f,this);break;case 10:x=new Or(E[p],f,this);break;case 11:x=new uo(E[p],f,this);break;case 5:x=new Ol(E[p],f);break;default:x=new gf(E[p]);break}x&&this.effectElements.push(x)}};function ia(){}ia.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var f=0,p=this.data.masksProperties.length;f<p;){if(this.data.masksProperties[f].mode!=="n"&&this.data.masksProperties[f].cl!==!1)return!0;f+=1}return!1},initExpressions:function(){},setBlendMode:function(){var f=jn(this.data.bm),p=this.baseElement||this.layerElement;p.style["mix-blend-mode"]=f},initBaseData:function(f,p,b){this.globalData=p,this.comp=b,this.data=f,this.layerId=Qt(),this.data.sr||(this.data.sr=1),this.effectsManager=new Ol(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function tr(){}tr.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(f,p){var b,x=this.dynamicProperties.length;for(b=0;b<x;b+=1)(p||this._isParent&&this.dynamicProperties[b].propType==="transform")&&(this.dynamicProperties[b].getValue(),this.dynamicProperties[b]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(f){this.dynamicProperties.indexOf(f)===-1&&this.dynamicProperties.push(f)}};function ka(u,f,p){this.initFrame(),this.initRenderable(),this.assetData=f.getAssetData(u.refId),this.footageData=f.imageLoader.getAsset(this.assetData),this.initBaseData(u,f,p)}ka.prototype.prepareFrame=function(){},Se([lr,ia,tr],ka),ka.prototype.getBaseElement=function(){return null},ka.prototype.renderFrame=function(){},ka.prototype.destroy=function(){},ka.prototype.initExpressions=function(){},ka.prototype.getFootageData=function(){return this.footageData};function Dn(u,f,p){this.initFrame(),this.initRenderable(),this.assetData=f.getAssetData(u.refId),this.initBaseData(u,f,p),this._isPlaying=!1,this._canPlay=!1;var b=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(b),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=u.tm?it.getProp(this,u.tm,0,f.frameRate,this):{_placeholder:!0},this.lv=it.getProp(this,u.au&&u.au.lv?u.au.lv:{k:[100]},1,.01,this)}Dn.prototype.prepareFrame=function(u){if(this.prepareRenderableFrame(u,!0),this.prepareProperties(u,!0),this.tm._placeholder)this._currentTime=u/this.data.sr;else{var f=this.tm.v;this._currentTime=f}this._volume=this.lv.v[0];var p=this._volume*this._volumeMultiplier;this._previousVolume!==p&&(this._previousVolume=p,this.audio.volume(p))},Se([lr,ia,tr],Dn),Dn.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Dn.prototype.show=function(){},Dn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Dn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Dn.prototype.resume=function(){this._canPlay=!0},Dn.prototype.setRate=function(u){this.audio.rate(u)},Dn.prototype.volume=function(u){this._volumeMultiplier=u,this._previousVolume=u*this._volume,this.audio.volume(this._previousVolume)},Dn.prototype.getBaseElement=function(){return null},Dn.prototype.destroy=function(){},Dn.prototype.sourceRectAtTime=function(){},Dn.prototype.initExpressions=function(){};function Ir(){}Ir.prototype.checkLayers=function(u){var f,p=this.layers.length,b;for(this.completeLayers=!0,f=p-1;f>=0;f-=1)this.elements[f]||(b=this.layers[f],b.ip-b.st<=u-this.layers[f].st&&b.op-b.st>u-this.layers[f].st&&this.buildItem(f)),this.completeLayers=this.elements[f]?this.completeLayers:!1;this.checkPendingElements()},Ir.prototype.createItem=function(u){switch(u.ty){case 2:return this.createImage(u);case 0:return this.createComp(u);case 1:return this.createSolid(u);case 3:return this.createNull(u);case 4:return this.createShape(u);case 5:return this.createText(u);case 6:return this.createAudio(u);case 13:return this.createCamera(u);case 15:return this.createFootage(u);default:return this.createNull(u)}},Ir.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Ir.prototype.createAudio=function(u){return new Dn(u,this.globalData,this)},Ir.prototype.createFootage=function(u){return new ka(u,this.globalData,this)},Ir.prototype.buildAllItems=function(){var u,f=this.layers.length;for(u=0;u<f;u+=1)this.buildItem(u);this.checkPendingElements()},Ir.prototype.includeLayers=function(u){this.completeLayers=!1;var f,p=u.length,b,x=this.layers.length;for(f=0;f<p;f+=1)for(b=0;b<x;){if(this.layers[b].id===u[f].id){this.layers[b]=u[f];break}b+=1}},Ir.prototype.setProjectInterface=function(u){this.globalData.projectInterface=u},Ir.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Ir.prototype.buildElementParenting=function(u,f,p){for(var b=this.elements,x=this.layers,E=0,V=x.length;E<V;)x[E].ind==f&&(!b[E]||b[E]===!0?(this.buildItem(E),this.addPendingElement(u)):(p.push(b[E]),b[E].setAsParent(),x[E].parent!==void 0?this.buildElementParenting(u,x[E].parent,p):u.setHierarchy(p))),E+=1},Ir.prototype.addPendingElement=function(u){this.pendingElements.push(u)},Ir.prototype.searchExtraCompositions=function(u){var f,p=u.length;for(f=0;f<p;f+=1)if(u[f].xt){var b=this.createComp(u[f]);b.initExpressions(),this.globalData.projectInterface.registerComposition(b)}},Ir.prototype.getElementById=function(u){var f,p=this.elements.length;for(f=0;f<p;f+=1)if(this.elements[f].data.ind===u)return this.elements[f];return null},Ir.prototype.getElementByPath=function(u){var f=u.shift(),p;if(typeof f=="number")p=this.elements[f];else{var b,x=this.elements.length;for(b=0;b<x;b+=1)if(this.elements[b].data.nm===f){p=this.elements[b];break}}return u.length===0?p:p.getElementByPath(u)},Ir.prototype.setupGlobalData=function(u,f){this.globalData.fontManager=new Mr,this.globalData.fontManager.addChars(u.chars),this.globalData.fontManager.addFonts(u.fonts,f),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=u.fr,this.globalData.nm=u.nm,this.globalData.compSize={w:u.w,h:u.h}};function lo(){}lo.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Me.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new cn},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var f,p=this.finalTransform.mat,b=0,x=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;b<x;){if(this.hierarchy[b].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}b+=1}if(this.finalTransform._matMdf)for(f=this.finalTransform.mProp.v.props,p.cloneFromProps(f),b=0;b<x;b+=1)f=this.hierarchy[b].finalTransform.mProp.v.props,p.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15])}},globalToLocal:function(f){var p=[];p.push(this.finalTransform);for(var b=!0,x=this.comp;b;)x.finalTransform?(x.data.hasMask&&p.splice(0,0,x.finalTransform),x=x.comp):b=!1;var E,V=p.length,fe;for(E=0;E<V;E+=1)fe=p[E].mat.applyToPointArray(0,0,0),f=[f[0]-fe[0],f[1]-fe[1],0];return f},mHelper:new cn};function qr(u,f,p){this.data=u,this.element=f,this.globalData=p,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var b=this.globalData.defs,x,E=this.masksProperties?this.masksProperties.length:0;this.viewData=Be(E),this.solidPath="";var V,fe=this.masksProperties,G=0,ye=[],$e,ke,A=Qt(),q,z,le,ue,N="clipPath",U="clip-path";for(x=0;x<E;x+=1)if((fe[x].mode!=="a"&&fe[x].mode!=="n"||fe[x].inv||fe[x].o.k!==100||fe[x].o.x)&&(N="mask",U="mask"),(fe[x].mode==="s"||fe[x].mode==="i")&&G===0?(q=ft("rect"),q.setAttribute("fill","#ffffff"),q.setAttribute("width",this.element.comp.data.w||0),q.setAttribute("height",this.element.comp.data.h||0),ye.push(q)):q=null,V=ft("path"),fe[x].mode==="n")this.viewData[x]={op:it.getProp(this.element,fe[x].o,0,.01,this.element),prop:Sr.getShapeProp(this.element,fe[x],3),elem:V,lastPath:""},b.appendChild(V);else{G+=1,V.setAttribute("fill",fe[x].mode==="s"?"#000000":"#ffffff"),V.setAttribute("clip-rule","nonzero");var M;if(fe[x].x.k!==0?(N="mask",U="mask",ue=it.getProp(this.element,fe[x].x,0,null,this.element),M=Qt(),z=ft("filter"),z.setAttribute("id",M),le=ft("feMorphology"),le.setAttribute("operator","erode"),le.setAttribute("in","SourceGraphic"),le.setAttribute("radius","0"),z.appendChild(le),b.appendChild(z),V.setAttribute("stroke",fe[x].mode==="s"?"#000000":"#ffffff")):(le=null,ue=null),this.storedData[x]={elem:V,x:ue,expan:le,lastPath:"",lastOperator:"",filterId:M,lastRadius:0},fe[x].mode==="i"){ke=ye.length;var I=ft("g");for($e=0;$e<ke;$e+=1)I.appendChild(ye[$e]);var j=ft("mask");j.setAttribute("mask-type","alpha"),j.setAttribute("id",A+"_"+G),j.appendChild(V),b.appendChild(j),I.setAttribute("mask","url("+Te()+"#"+A+"_"+G+")"),ye.length=0,ye.push(I)}else ye.push(V);fe[x].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[x]={elem:V,lastPath:"",op:it.getProp(this.element,fe[x].o,0,.01,this.element),prop:Sr.getShapeProp(this.element,fe[x],3),invRect:q},this.viewData[x].prop.k||this.drawPath(fe[x],this.viewData[x].prop.v,this.viewData[x])}for(this.maskElement=ft(N),E=ye.length,x=0;x<E;x+=1)this.maskElement.appendChild(ye[x]);G>0&&(this.maskElement.setAttribute("id",A),this.element.maskedElement.setAttribute(U,"url("+Te()+"#"+A+")"),b.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}qr.prototype.getMaskProperty=function(u){return this.viewData[u].prop},qr.prototype.renderFrame=function(u){var f=this.element.finalTransform.mat,p,b=this.masksProperties.length;for(p=0;p<b;p+=1)if((this.viewData[p].prop._mdf||u)&&this.drawPath(this.masksProperties[p],this.viewData[p].prop.v,this.viewData[p]),(this.viewData[p].op._mdf||u)&&this.viewData[p].elem.setAttribute("fill-opacity",this.viewData[p].op.v),this.masksProperties[p].mode!=="n"&&(this.viewData[p].invRect&&(this.element.finalTransform.mProp._mdf||u)&&this.viewData[p].invRect.setAttribute("transform",f.getInverseMatrix().to2dCSS()),this.storedData[p].x&&(this.storedData[p].x._mdf||u))){var x=this.storedData[p].expan;this.storedData[p].x.v<0?(this.storedData[p].lastOperator!=="erode"&&(this.storedData[p].lastOperator="erode",this.storedData[p].elem.setAttribute("filter","url("+Te()+"#"+this.storedData[p].filterId+")")),x.setAttribute("radius",-this.storedData[p].x.v)):(this.storedData[p].lastOperator!=="dilate"&&(this.storedData[p].lastOperator="dilate",this.storedData[p].elem.setAttribute("filter",null)),this.storedData[p].elem.setAttribute("stroke-width",this.storedData[p].x.v*2))}},qr.prototype.getMaskelement=function(){return this.maskElement},qr.prototype.createLayerSolidPath=function(){var u="M0,0 ";return u+=" h"+this.globalData.compSize.w,u+=" v"+this.globalData.compSize.h,u+=" h-"+this.globalData.compSize.w,u+=" v-"+this.globalData.compSize.h+" ",u},qr.prototype.drawPath=function(u,f,p){var b=" M"+f.v[0][0]+","+f.v[0][1],x,E;for(E=f._length,x=1;x<E;x+=1)b+=" C"+f.o[x-1][0]+","+f.o[x-1][1]+" "+f.i[x][0]+","+f.i[x][1]+" "+f.v[x][0]+","+f.v[x][1];if(f.c&&E>1&&(b+=" C"+f.o[x-1][0]+","+f.o[x-1][1]+" "+f.i[0][0]+","+f.i[0][1]+" "+f.v[0][0]+","+f.v[0][1]),p.lastPath!==b){var V="";p.elem&&(f.c&&(V=u.inv?this.solidPath+b:b),p.elem.setAttribute("d",V)),p.lastPath=b}},qr.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var Ra=function(){var u={};u.createFilter=f,u.createAlphaToLuminanceFilter=p;function f(b,x){var E=ft("filter");return E.setAttribute("id",b),x!==!0&&(E.setAttribute("filterUnits","objectBoundingBox"),E.setAttribute("x","0%"),E.setAttribute("y","0%"),E.setAttribute("width","100%"),E.setAttribute("height","100%")),E}function p(){var b=ft("feColorMatrix");return b.setAttribute("type","matrix"),b.setAttribute("color-interpolation-filters","sRGB"),b.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),b}return u}(),bu=function(){var u={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(u.maskType=!1),/firefox/i.test(navigator.userAgent)&&(u.svgLumaHidden=!1),u}(),Cn={},aa="filter_result_";function $u(u){var f,p="SourceGraphic",b=u.data.ef?u.data.ef.length:0,x=Qt(),E=Ra.createFilter(x,!0),V=0;this.filters=[];var fe;for(f=0;f<b;f+=1){fe=null;var G=u.data.ef[f].ty;if(Cn[G]){var ye=Cn[G].effect;fe=new ye(E,u.effectsManager.effectElements[f],u,aa+V,p),p=aa+V,Cn[G].countsAsEffect&&(V+=1)}fe&&this.filters.push(fe)}V&&(u.globalData.defs.appendChild(E),u.layerElement.setAttribute("filter","url("+Te()+"#"+x+")")),this.filters.length&&u.addRenderableComponent(this)}$u.prototype.renderFrame=function(u){var f,p=this.filters.length;for(f=0;f<p;f+=1)this.filters[f].renderFrame(u)};function Ds(){}Ds.prototype={initRendererElement:function(){this.layerElement=ft("g")},createContainerElements:function(){this.matteElement=ft("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var f=null;if(this.data.td){this.matteMasks={};var p=ft("g");p.setAttribute("id",this.layerId),p.appendChild(this.layerElement),f=p,this.globalData.defs.appendChild(p)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),f=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var b=ft("clipPath"),x=ft("path");x.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var E=Qt();if(b.setAttribute("id",E),b.appendChild(x),this.globalData.defs.appendChild(b),this.checkMasks()){var V=ft("g");V.setAttribute("clip-path","url("+Te()+"#"+E+")"),V.appendChild(this.layerElement),this.transformedElement=V,f?f.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+Te()+"#"+E+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new qr(this.data,this,this.globalData),this.renderableEffectsManager=new $u(this)},getMatte:function(f){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[f]){var p=this.layerId+"_"+f,b,x,E,V;if(f===1||f===3){var fe=ft("mask");fe.setAttribute("id",p),fe.setAttribute("mask-type",f===3?"luminance":"alpha"),E=ft("use"),E.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),fe.appendChild(E),this.globalData.defs.appendChild(fe),!bu.maskType&&f===1&&(fe.setAttribute("mask-type","luminance"),b=Qt(),x=Ra.createFilter(b),this.globalData.defs.appendChild(x),x.appendChild(Ra.createAlphaToLuminanceFilter()),V=ft("g"),V.appendChild(E),fe.appendChild(V),V.setAttribute("filter","url("+Te()+"#"+b+")"))}else if(f===2){var G=ft("mask");G.setAttribute("id",p),G.setAttribute("mask-type","alpha");var ye=ft("g");G.appendChild(ye),b=Qt(),x=Ra.createFilter(b);var $e=ft("feComponentTransfer");$e.setAttribute("in","SourceGraphic"),x.appendChild($e);var ke=ft("feFuncA");ke.setAttribute("type","table"),ke.setAttribute("tableValues","1.0 0.0"),$e.appendChild(ke),this.globalData.defs.appendChild(x);var A=ft("rect");A.setAttribute("width",this.comp.data.w),A.setAttribute("height",this.comp.data.h),A.setAttribute("x","0"),A.setAttribute("y","0"),A.setAttribute("fill","#ffffff"),A.setAttribute("opacity","0"),ye.setAttribute("filter","url("+Te()+"#"+b+")"),ye.appendChild(A),E=ft("use"),E.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ye.appendChild(E),bu.maskType||(G.setAttribute("mask-type","luminance"),x.appendChild(Ra.createAlphaToLuminanceFilter()),V=ft("g"),ye.appendChild(A),V.appendChild(this.layerElement),ye.appendChild(V)),this.globalData.defs.appendChild(G)}this.matteMasks[f]=p}return this.matteMasks[f]},setMatte:function(f){this.matteElement&&this.matteElement.setAttribute("mask","url("+Te()+"#"+f+")")}};function Fa(){}Fa.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(f){this.hierarchy=f},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function As(){}(function(){var u={initElement:function(p,b,x){this.initFrame(),this.initBaseData(p,b,x),this.initTransform(p,b,x),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var p=this.baseElement||this.layerElement;p.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var p=this.baseElement||this.layerElement;p.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(p){this._mdf=!1,this.prepareRenderableFrame(p),this.prepareProperties(p,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};Se([lr,Je(u)],As)})();function Ps(u,f,p){this.assetData=f.getAssetData(u.refId),this.initElement(u,f,p),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}Se([ia,lo,Ds,Fa,tr,As],Ps),Ps.prototype.createContent=function(){var u=this.globalData.getAssetsPath(this.assetData);this.innerElem=ft("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this.layerElement.appendChild(this.innerElem)},Ps.prototype.sourceRectAtTime=function(){return this.sourceRect};function Jh(u,f){this.elem=u,this.pos=f}function Il(){}Il.prototype={addShapeToModifiers:function(f){var p,b=this.shapeModifiers.length;for(p=0;p<b;p+=1)this.shapeModifiers[p].addShape(f)},isShapeInAnimatedModifiers:function(f){for(var p=0,b=this.shapeModifiers.length;p<b;)if(this.shapeModifiers[p].isAnimatedWithShape(f))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var f,p=this.shapes.length;for(f=0;f<p;f+=1)this.shapes[f].sh.reset();p=this.shapeModifiers.length;var b;for(f=p-1;f>=0&&(b=this.shapeModifiers[f].processShapes(this._isFirstFrame),!b);f-=1);}},searchProcessedElement:function(f){for(var p=this.processedElements,b=0,x=p.length;b<x;){if(p[b].elem===f)return p[b].pos;b+=1}return 0},addProcessedElement:function(f,p){for(var b=this.processedElements,x=b.length;x;)if(x-=1,b[x].elem===f){b[x].pos=p;return}b.push(new Jh(f,p))},prepareFrame:function(f){this.prepareRenderableFrame(f),this.prepareProperties(f,this.isInRange)}};var Ts={1:"butt",2:"round",3:"square"},co={1:"miter",2:"round",3:"bevel"};function vf(u,f,p){this.caches=[],this.styles=[],this.transformers=u,this.lStr="",this.sh=p,this.lvl=f,this._isAnimated=!!p.k;for(var b=0,x=u.length;b<x;){if(u[b].mProps.dynamicProperties.length){this._isAnimated=!0;break}b+=1}}vf.prototype.setAsAnimated=function(){this._isAnimated=!0};function Ll(u,f){this.data=u,this.type=u.ty,this.d="",this.lvl=f,this._mdf=!1,this.closed=u.hd===!0,this.pElem=ft("path"),this.msElem=null}Ll.prototype.reset=function(){this.d="",this._mdf=!1};function _s(u,f,p,b){this.elem=u,this.frameId=-1,this.dataProps=Be(f.length),this.renderer=p,this.k=!1,this.dashStr="",this.dashArray=xe("float32",f.length?f.length-1:0),this.dashoffset=xe("float32",1),this.initDynamicPropertyContainer(b);var x,E=f.length||0,V;for(x=0;x<E;x+=1)V=it.getProp(u,f[x].v,0,0,this),this.k=V.k||this.k,this.dataProps[x]={n:f[x].n,p:V};this.k||this.getValue(!0),this._isAnimated=this.k}_s.prototype.getValue=function(u){if(!(this.elem.globalData.frameId===this.frameId&&!u)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||u,this._mdf)){var f=0,p=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),f=0;f<p;f+=1)this.dataProps[f].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[f].p.v:this.dashArray[f]=this.dataProps[f].p.v:this.dashoffset[0]=this.dataProps[f].p.v}},Se([ln],_s);function wu(u,f,p){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(u,f.o,0,.01,this),this.w=it.getProp(u,f.w,0,null,this),this.d=new _s(u,f.d||{},"svg",this),this.c=it.getProp(u,f.c,1,255,this),this.style=p,this._isAnimated=!!this._isAnimated}Se([ln],wu);function xu(u,f,p){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.o=it.getProp(u,f.o,0,.01,this),this.c=it.getProp(u,f.c,1,255,this),this.style=p}Se([ln],xu);function Bl(u,f,p){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.style=p}Se([ln],Bl);function ks(u,f,p){this.data=f,this.c=xe("uint8c",f.p*4);var b=f.k.k[0].s?f.k.k[0].s.length-f.p*4:f.k.k.length-f.p*4;this.o=xe("float32",b),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=b,this.initDynamicPropertyContainer(p),this.prop=it.getProp(u,f.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}ks.prototype.comparePoints=function(u,f){for(var p=0,b=this.o.length/2,x;p<b;){if(x=Math.abs(u[p*4]-u[f*4+p*2]),x>.01)return!1;p+=1}return!0},ks.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var u=0,f=this.data.k.k.length;u<f;){if(!this.comparePoints(this.data.k.k[u].s,this.data.p))return!1;u+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},ks.prototype.getValue=function(u){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||u){var f,p=this.data.p*4,b,x;for(f=0;f<p;f+=1)b=f%4===0?100:255,x=Math.round(this.prop.v[f]*b),this.c[f]!==x&&(this.c[f]=x,this._cmdf=!u);if(this.o.length)for(p=this.prop.v.length,f=this.data.p*4;f<p;f+=1)b=f%2===0?100:1,x=f%2===0?Math.round(this.prop.v[f]*100):this.prop.v[f],this.o[f-this.data.p*4]!==x&&(this.o[f-this.data.p*4]=x,this._omdf=!u);this._mdf=!u}},Se([ln],ks);function Ma(u,f,p){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.initGradientData(u,f,p)}Ma.prototype.initGradientData=function(u,f,p){this.o=it.getProp(u,f.o,0,.01,this),this.s=it.getProp(u,f.s,1,null,this),this.e=it.getProp(u,f.e,1,null,this),this.h=it.getProp(u,f.h||{k:0},0,.01,this),this.a=it.getProp(u,f.a||{k:0},0,tt,this),this.g=new ks(u,f.g,this),this.style=p,this.stops=[],this.setGradientData(p.pElem,f),this.setGradientOpacity(f,p),this._isAnimated=!!this._isAnimated},Ma.prototype.setGradientData=function(u,f){var p=Qt(),b=ft(f.t===1?"linearGradient":"radialGradient");b.setAttribute("id",p),b.setAttribute("spreadMethod","pad"),b.setAttribute("gradientUnits","userSpaceOnUse");var x=[],E,V,fe;for(fe=f.g.p*4,V=0;V<fe;V+=4)E=ft("stop"),b.appendChild(E),x.push(E);u.setAttribute(f.ty==="gf"?"fill":"stroke","url("+Te()+"#"+p+")"),this.gf=b,this.cst=x},Ma.prototype.setGradientOpacity=function(u,f){if(this.g._hasOpacity&&!this.g._collapsable){var p,b,x,E=ft("mask"),V=ft("path");E.appendChild(V);var fe=Qt(),G=Qt();E.setAttribute("id",G);var ye=ft(u.t===1?"linearGradient":"radialGradient");ye.setAttribute("id",fe),ye.setAttribute("spreadMethod","pad"),ye.setAttribute("gradientUnits","userSpaceOnUse"),x=u.g.k.k[0].s?u.g.k.k[0].s.length:u.g.k.k.length;var $e=this.stops;for(b=u.g.p*4;b<x;b+=2)p=ft("stop"),p.setAttribute("stop-color","rgb(255,255,255)"),ye.appendChild(p),$e.push(p);V.setAttribute(u.ty==="gf"?"fill":"stroke","url("+Te()+"#"+fe+")"),u.ty==="gs"&&(V.setAttribute("stroke-linecap",Ts[u.lc||2]),V.setAttribute("stroke-linejoin",co[u.lj||2]),u.lj===1&&V.setAttribute("stroke-miterlimit",u.ml)),this.of=ye,this.ms=E,this.ost=$e,this.maskId=G,f.msElem=V}},Se([ln],Ma);function Eu(u,f,p){this.initDynamicPropertyContainer(u),this.getValue=this.iterateDynamicProperties,this.w=it.getProp(u,f.w,0,null,this),this.d=new _s(u,f.d||{},"svg",this),this.initGradientData(u,f,p),this._isAnimated=!!this._isAnimated}Se([Ma,ln],Eu);function Xh(){this.it=[],this.prevViewData=[],this.gr=ft("g")}function yf(u,f,p){this.transform={mProps:u,op:f,container:p},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var Yr=function(f,p,b,x){if(p===0)return"";var E=f.o,V=f.i,fe=f.v,G,ye=" M"+x.applyToPointStringified(fe[0][0],fe[0][1]);for(G=1;G<p;G+=1)ye+=" C"+x.applyToPointStringified(E[G-1][0],E[G-1][1])+" "+x.applyToPointStringified(V[G][0],V[G][1])+" "+x.applyToPointStringified(fe[G][0],fe[G][1]);return b&&p&&(ye+=" C"+x.applyToPointStringified(E[G-1][0],E[G-1][1])+" "+x.applyToPointStringified(V[0][0],V[0][1])+" "+x.applyToPointStringified(fe[0][0],fe[0][1]),ye+="z"),ye},Vl=function(){var u=new cn,f=new cn,p={createRenderFunction:b};function b(ke){switch(ke.ty){case"fl":return fe;case"gf":return ye;case"gs":return G;case"st":return $e;case"sh":case"el":case"rc":case"sr":return V;case"tr":return x;case"no":return E;default:return null}}function x(ke,A,q){(q||A.transform.op._mdf)&&A.transform.container.setAttribute("opacity",A.transform.op.v),(q||A.transform.mProps._mdf)&&A.transform.container.setAttribute("transform",A.transform.mProps.v.to2dCSS())}function E(){}function V(ke,A,q){var z,le,ue,N,U,M,I=A.styles.length,j=A.lvl,Z,ae,ce,Fe,Qe;for(M=0;M<I;M+=1){if(N=A.sh._mdf||q,A.styles[M].lvl<j){for(ae=f.reset(),Fe=j-A.styles[M].lvl,Qe=A.transformers.length-1;!N&&Fe>0;)N=A.transformers[Qe].mProps._mdf||N,Fe-=1,Qe-=1;if(N)for(Fe=j-A.styles[M].lvl,Qe=A.transformers.length-1;Fe>0;)ce=A.transformers[Qe].mProps.v.props,ae.transform(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5],ce[6],ce[7],ce[8],ce[9],ce[10],ce[11],ce[12],ce[13],ce[14],ce[15]),Fe-=1,Qe-=1}else ae=u;if(Z=A.sh.paths,le=Z._length,N){for(ue="",z=0;z<le;z+=1)U=Z.shapes[z],U&&U._length&&(ue+=Yr(U,U._length,U.c,ae));A.caches[M]=ue}else ue=A.caches[M];A.styles[M].d+=ke.hd===!0?"":ue,A.styles[M]._mdf=N||A.styles[M]._mdf}}function fe(ke,A,q){var z=A.style;(A.c._mdf||q)&&z.pElem.setAttribute("fill","rgb("+yt(A.c.v[0])+","+yt(A.c.v[1])+","+yt(A.c.v[2])+")"),(A.o._mdf||q)&&z.pElem.setAttribute("fill-opacity",A.o.v)}function G(ke,A,q){ye(ke,A,q),$e(ke,A,q)}function ye(ke,A,q){var z=A.gf,le=A.g._hasOpacity,ue=A.s.v,N=A.e.v;if(A.o._mdf||q){var U=ke.ty==="gf"?"fill-opacity":"stroke-opacity";A.style.pElem.setAttribute(U,A.o.v)}if(A.s._mdf||q){var M=ke.t===1?"x1":"cx",I=M==="x1"?"y1":"cy";z.setAttribute(M,ue[0]),z.setAttribute(I,ue[1]),le&&!A.g._collapsable&&(A.of.setAttribute(M,ue[0]),A.of.setAttribute(I,ue[1]))}var j,Z,ae,ce;if(A.g._cmdf||q){j=A.cst;var Fe=A.g.c;for(ae=j.length,Z=0;Z<ae;Z+=1)ce=j[Z],ce.setAttribute("offset",Fe[Z*4]+"%"),ce.setAttribute("stop-color","rgb("+Fe[Z*4+1]+","+Fe[Z*4+2]+","+Fe[Z*4+3]+")")}if(le&&(A.g._omdf||q)){var Qe=A.g.o;for(A.g._collapsable?j=A.cst:j=A.ost,ae=j.length,Z=0;Z<ae;Z+=1)ce=j[Z],A.g._collapsable||ce.setAttribute("offset",Qe[Z*2]+"%"),ce.setAttribute("stop-opacity",Qe[Z*2+1])}if(ke.t===1)(A.e._mdf||q)&&(z.setAttribute("x2",N[0]),z.setAttribute("y2",N[1]),le&&!A.g._collapsable&&(A.of.setAttribute("x2",N[0]),A.of.setAttribute("y2",N[1])));else{var Xe;if((A.s._mdf||A.e._mdf||q)&&(Xe=Math.sqrt(Math.pow(ue[0]-N[0],2)+Math.pow(ue[1]-N[1],2)),z.setAttribute("r",Xe),le&&!A.g._collapsable&&A.of.setAttribute("r",Xe)),A.e._mdf||A.h._mdf||A.a._mdf||q){Xe||(Xe=Math.sqrt(Math.pow(ue[0]-N[0],2)+Math.pow(ue[1]-N[1],2)));var Le=Math.atan2(N[1]-ue[1],N[0]-ue[0]),st=A.h.v;st>=1?st=.99:st<=-1&&(st=-.99);var ct=Xe*st,Ie=Math.cos(Le+A.a.v)*ct+ue[0],be=Math.sin(Le+A.a.v)*ct+ue[1];z.setAttribute("fx",Ie),z.setAttribute("fy",be),le&&!A.g._collapsable&&(A.of.setAttribute("fx",Ie),A.of.setAttribute("fy",be))}}}function $e(ke,A,q){var z=A.style,le=A.d;le&&(le._mdf||q)&&le.dashStr&&(z.pElem.setAttribute("stroke-dasharray",le.dashStr),z.pElem.setAttribute("stroke-dashoffset",le.dashoffset[0])),A.c&&(A.c._mdf||q)&&z.pElem.setAttribute("stroke","rgb("+yt(A.c.v[0])+","+yt(A.c.v[1])+","+yt(A.c.v[2])+")"),(A.o._mdf||q)&&z.pElem.setAttribute("stroke-opacity",A.o.v),(A.w._mdf||q)&&(z.pElem.setAttribute("stroke-width",A.w.v),z.msElem&&z.msElem.setAttribute("stroke-width",A.w.v))}return p}();function Tn(u,f,p){this.shapes=[],this.shapesData=u.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(u,f,p),this.prevViewData=[]}Se([ia,lo,Ds,Il,Fa,tr,As],Tn),Tn.prototype.initSecondaryElement=function(){},Tn.prototype.identityMatrix=new cn,Tn.prototype.buildExpressionInterface=function(){},Tn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Tn.prototype.filterUniqueShapes=function(){var u,f=this.shapes.length,p,b,x=this.stylesList.length,E,V=[],fe=!1;for(b=0;b<x;b+=1){for(E=this.stylesList[b],fe=!1,V.length=0,u=0;u<f;u+=1)p=this.shapes[u],p.styles.indexOf(E)!==-1&&(V.push(p),fe=p._isAnimated||fe);V.length>1&&fe&&this.setShapesAsAnimated(V)}},Tn.prototype.setShapesAsAnimated=function(u){var f,p=u.length;for(f=0;f<p;f+=1)u[f].setAsAnimated()},Tn.prototype.createStyleElement=function(u,f){var p,b=new Ll(u,f),x=b.pElem;if(u.ty==="st")p=new wu(this,u,b);else if(u.ty==="fl")p=new xu(this,u,b);else if(u.ty==="gf"||u.ty==="gs"){var E=u.ty==="gf"?Ma:Eu;p=new E(this,u,b),this.globalData.defs.appendChild(p.gf),p.maskId&&(this.globalData.defs.appendChild(p.ms),this.globalData.defs.appendChild(p.of),x.setAttribute("mask","url("+Te()+"#"+p.maskId+")"))}else u.ty==="no"&&(p=new Bl(this,u,b));return(u.ty==="st"||u.ty==="gs")&&(x.setAttribute("stroke-linecap",Ts[u.lc||2]),x.setAttribute("stroke-linejoin",co[u.lj||2]),x.setAttribute("fill-opacity","0"),u.lj===1&&x.setAttribute("stroke-miterlimit",u.ml)),u.r===2&&x.setAttribute("fill-rule","evenodd"),u.ln&&x.setAttribute("id",u.ln),u.cl&&x.setAttribute("class",u.cl),u.bm&&(x.style["mix-blend-mode"]=jn(u.bm)),this.stylesList.push(b),this.addToAnimatedContents(u,p),p},Tn.prototype.createGroupElement=function(u){var f=new Xh;return u.ln&&f.gr.setAttribute("id",u.ln),u.cl&&f.gr.setAttribute("class",u.cl),u.bm&&(f.gr.style["mix-blend-mode"]=jn(u.bm)),f},Tn.prototype.createTransformElement=function(u,f){var p=Me.getTransformProperty(this,u,this),b=new yf(p,p.o,f);return this.addToAnimatedContents(u,b),b},Tn.prototype.createShapeElement=function(u,f,p){var b=4;u.ty==="rc"?b=5:u.ty==="el"?b=6:u.ty==="sr"&&(b=7);var x=Sr.getShapeProp(this,u,b,this),E=new vf(f,p,x);return this.shapes.push(E),this.addShapeToModifiers(E),this.addToAnimatedContents(u,E),E},Tn.prototype.addToAnimatedContents=function(u,f){for(var p=0,b=this.animatedContents.length;p<b;){if(this.animatedContents[p].element===f)return;p+=1}this.animatedContents.push({fn:Vl.createRenderFunction(u),element:f,data:u})},Tn.prototype.setElementStyles=function(u){var f=u.styles,p,b=this.stylesList.length;for(p=0;p<b;p+=1)this.stylesList[p].closed||f.push(this.stylesList[p])},Tn.prototype.reloadShapes=function(){this._isFirstFrame=!0;var u,f=this.itemsData.length;for(u=0;u<f;u+=1)this.prevViewData[u]=this.itemsData[u];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),f=this.dynamicProperties.length,u=0;u<f;u+=1)this.dynamicProperties[u].getValue();this.renderModifiers()},Tn.prototype.searchShapes=function(u,f,p,b,x,E,V){var fe=[].concat(E),G,ye=u.length-1,$e,ke,A=[],q=[],z,le,ue;for(G=ye;G>=0;G-=1){if(ue=this.searchProcessedElement(u[G]),ue?f[G]=p[ue-1]:u[G]._render=V,u[G].ty==="fl"||u[G].ty==="st"||u[G].ty==="gf"||u[G].ty==="gs"||u[G].ty==="no")ue?f[G].style.closed=!1:f[G]=this.createStyleElement(u[G],x),u[G]._render&&f[G].style.pElem.parentNode!==b&&b.appendChild(f[G].style.pElem),A.push(f[G].style);else if(u[G].ty==="gr"){if(!ue)f[G]=this.createGroupElement(u[G]);else for(ke=f[G].it.length,$e=0;$e<ke;$e+=1)f[G].prevViewData[$e]=f[G].it[$e];this.searchShapes(u[G].it,f[G].it,f[G].prevViewData,f[G].gr,x+1,fe,V),u[G]._render&&f[G].gr.parentNode!==b&&b.appendChild(f[G].gr)}else u[G].ty==="tr"?(ue||(f[G]=this.createTransformElement(u[G],b)),z=f[G].transform,fe.push(z)):u[G].ty==="sh"||u[G].ty==="rc"||u[G].ty==="el"||u[G].ty==="sr"?(ue||(f[G]=this.createShapeElement(u[G],fe,x)),this.setElementStyles(f[G])):u[G].ty==="tm"||u[G].ty==="rd"||u[G].ty==="ms"||u[G].ty==="pb"||u[G].ty==="zz"||u[G].ty==="op"?(ue?(le=f[G],le.closed=!1):(le=zr.getModifier(u[G].ty),le.init(this,u[G]),f[G]=le,this.shapeModifiers.push(le)),q.push(le)):u[G].ty==="rp"&&(ue?(le=f[G],le.closed=!0):(le=zr.getModifier(u[G].ty),f[G]=le,le.init(this,u,G,f),this.shapeModifiers.push(le),V=!1),q.push(le));this.addProcessedElement(u[G],G+1)}for(ye=A.length,G=0;G<ye;G+=1)A[G].closed=!0;for(ye=q.length,G=0;G<ye;G+=1)q[G].closed=!0},Tn.prototype.renderInnerContent=function(){this.renderModifiers();var u,f=this.stylesList.length;for(u=0;u<f;u+=1)this.stylesList[u].reset();for(this.renderShape(),u=0;u<f;u+=1)(this.stylesList[u]._mdf||this._isFirstFrame)&&(this.stylesList[u].msElem&&(this.stylesList[u].msElem.setAttribute("d",this.stylesList[u].d),this.stylesList[u].d="M0 0"+this.stylesList[u].d),this.stylesList[u].pElem.setAttribute("d",this.stylesList[u].d||"M0 0"))},Tn.prototype.renderShape=function(){var u,f=this.animatedContents.length,p;for(u=0;u<f;u+=1)p=this.animatedContents[u],(this._isFirstFrame||p.element._isAnimated)&&p.data!==!0&&p.fn(p.data,p.element,this._isFirstFrame)},Tn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function Cu(u,f,p,b,x,E){this.o=u,this.sw=f,this.sc=p,this.fc=b,this.m=x,this.p=E,this._mdf={o:!0,sw:!!f,sc:!!p,fc:!!b,m:!0,p:!0}}Cu.prototype.update=function(u,f,p,b,x,E){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var V=!1;return this.o!==u&&(this.o=u,this._mdf.o=!0,V=!0),this.sw!==f&&(this.sw=f,this._mdf.sw=!0,V=!0),this.sc!==p&&(this.sc=p,this._mdf.sc=!0,V=!0),this.fc!==b&&(this.fc=b,this._mdf.fc=!0,V=!0),this.m!==x&&(this.m=x,this._mdf.m=!0,V=!0),E.length&&(this.p[0]!==E[0]||this.p[1]!==E[1]||this.p[4]!==E[4]||this.p[5]!==E[5]||this.p[12]!==E[12]||this.p[13]!==E[13])&&(this.p=E,this._mdf.p=!0,V=!0),V};function Lr(u,f){this._frameId=Ce,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=f,this.elem=u,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}Lr.prototype.defaultBoxWidth=[0,0],Lr.prototype.copyData=function(u,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(u[p]=f[p]);return u},Lr.prototype.setCurrentData=function(u){u.__complete||this.completeTextData(u),this.currentData=u,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Lr.prototype.searchProperty=function(){return this.searchKeyframes()},Lr.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Lr.prototype.addEffect=function(u){this.effectsSequence.push(u),this.elem.addDynamicProperty(this)},Lr.prototype.getValue=function(u){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!u)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var f=this.currentData,p=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var b,x=this.effectsSequence.length,E=u||this.data.d.k[this.keysIndex].s;for(b=0;b<x;b+=1)p!==this.keysIndex?E=this.effectsSequence[b](E,E.t):E=this.effectsSequence[b](this.currentData,E.t);f!==E&&this.setCurrentData(E),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},Lr.prototype.getKeyframeValue=function(){for(var u=this.data.d.k,f=this.elem.comp.renderedFrame,p=0,b=u.length;p<=b-1&&!(p===b-1||u[p+1].t>f);)p+=1;return this.keysIndex!==p&&(this.keysIndex=p),this.data.d.k[this.keysIndex].s},Lr.prototype.buildFinalText=function(u){for(var f=[],p=0,b=u.length,x,E,V=!1;p<b;)x=u.charCodeAt(p),Mr.isCombinedCharacter(x)?f[f.length-1]+=u.charAt(p):x>=55296&&x<=56319?(E=u.charCodeAt(p+1),E>=56320&&E<=57343?(V||Mr.isModifier(x,E)?(f[f.length-1]+=u.substr(p,2),V=!1):f.push(u.substr(p,2)),p+=1):f.push(u.charAt(p))):x>56319?(E=u.charCodeAt(p+1),Mr.isZeroWidthJoiner(x,E)?(V=!0,f[f.length-1]+=u.substr(p,2),p+=1):f.push(u.charAt(p))):Mr.isZeroWidthJoiner(x)?(f[f.length-1]+=u.charAt(p),V=!0):f.push(u.charAt(p)),p+=1;return f},Lr.prototype.completeTextData=function(u){u.__complete=!0;var f=this.elem.globalData.fontManager,p=this.data,b=[],x,E,V,fe=0,G,ye=p.m.g,$e=0,ke=0,A=0,q=[],z=0,le=0,ue,N,U=f.getFontByName(u.f),M,I=0,j=Ar(U);u.fWeight=j.weight,u.fStyle=j.style,u.finalSize=u.s,u.finalText=this.buildFinalText(u.t),E=u.finalText.length,u.finalLineHeight=u.lh;var Z=u.tr/1e3*u.finalSize,ae;if(u.sz)for(var ce=!0,Fe=u.sz[0],Qe=u.sz[1],Xe,Le;ce;){Le=this.buildFinalText(u.t),Xe=0,z=0,E=Le.length,Z=u.tr/1e3*u.finalSize;var st=-1;for(x=0;x<E;x+=1)ae=Le[x].charCodeAt(0),V=!1,Le[x]===" "?st=x:(ae===13||ae===3)&&(z=0,V=!0,Xe+=u.finalLineHeight||u.finalSize*1.2),f.chars?(M=f.getCharData(Le[x],U.fStyle,U.fFamily),I=V?0:M.w*u.finalSize/100):I=f.measureText(Le[x],u.f,u.finalSize),z+I>Fe&&Le[x]!==" "?(st===-1?E+=1:x=st,Xe+=u.finalLineHeight||u.finalSize*1.2,Le.splice(x,st===x?1:0,"\r"),st=-1,z=0):(z+=I,z+=Z);Xe+=U.ascent*u.finalSize/100,this.canResize&&u.finalSize>this.minimumFontSize&&Qe<Xe?(u.finalSize-=1,u.finalLineHeight=u.finalSize*u.lh/u.s):(u.finalText=Le,E=u.finalText.length,ce=!1)}z=-Z,I=0;var ct=0,Ie;for(x=0;x<E;x+=1)if(V=!1,Ie=u.finalText[x],ae=Ie.charCodeAt(0),ae===13||ae===3?(ct=0,q.push(z),le=z>le?z:le,z=-2*Z,G="",V=!0,A+=1):G=Ie,f.chars?(M=f.getCharData(Ie,U.fStyle,f.getFontByName(u.f).fFamily),I=V?0:M.w*u.finalSize/100):I=f.measureText(G,u.f,u.finalSize),Ie===" "?ct+=I+Z:(z+=I+Z+ct,ct=0),b.push({l:I,an:I,add:$e,n:V,anIndexes:[],val:G,line:A,animatorJustifyOffset:0}),ye==2){if($e+=I,G===""||G===" "||x===E-1){for((G===""||G===" ")&&($e-=I);ke<=x;)b[ke].an=$e,b[ke].ind=fe,b[ke].extra=I,ke+=1;fe+=1,$e=0}}else if(ye==3){if($e+=I,G===""||x===E-1){for(G===""&&($e-=I);ke<=x;)b[ke].an=$e,b[ke].ind=fe,b[ke].extra=I,ke+=1;$e=0,fe+=1}}else b[fe].ind=fe,b[fe].extra=0,fe+=1;if(u.l=b,le=z>le?z:le,q.push(z),u.sz)u.boxWidth=u.sz[0],u.justifyOffset=0;else switch(u.boxWidth=le,u.j){case 1:u.justifyOffset=-u.boxWidth;break;case 2:u.justifyOffset=-u.boxWidth/2;break;default:u.justifyOffset=0}u.lineWidths=q;var be=p.a,se,H;N=be.length;var he,Ne,Re=[];for(ue=0;ue<N;ue+=1){for(se=be[ue],se.a.sc&&(u.strokeColorAnim=!0),se.a.sw&&(u.strokeWidthAnim=!0),(se.a.fc||se.a.fh||se.a.fs||se.a.fb)&&(u.fillColorAnim=!0),Ne=0,he=se.s.b,x=0;x<E;x+=1)H=b[x],H.anIndexes[ue]=Ne,(he==1&&H.val!==""||he==2&&H.val!==""&&H.val!==" "||he==3&&(H.n||H.val==" "||x==E-1)||he==4&&(H.n||x==E-1))&&(se.s.rn===1&&Re.push(Ne),Ne+=1);p.a[ue].s.totalChars=Ne;var lt=-1,It;if(se.s.rn===1)for(x=0;x<E;x+=1)H=b[x],lt!=H.anIndexes[ue]&&(lt=H.anIndexes[ue],It=Re.splice(Math.floor(Math.random()*Re.length),1)[0]),H.anIndexes[ue]=It}u.yOffset=u.finalLineHeight||u.finalSize*1.2,u.ls=u.ls||0,u.ascent=U.ascent*u.finalSize/100},Lr.prototype.updateDocumentData=function(u,f){f=f===void 0?this.keysIndex:f;var p=this.copyData({},this.data.d.k[f].s);p=this.copyData(p,u),this.data.d.k[f].s=p,this.recalculate(f),this.elem.addDynamicProperty(this)},Lr.prototype.recalculate=function(u){var f=this.data.d.k[u].s;f.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(f)},Lr.prototype.canResizeFont=function(u){this.canResize=u,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Lr.prototype.setMinimumFontSize=function(u){this.minimumFontSize=Math.floor(u)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Qh=function(){var u=Math.max,f=Math.min,p=Math.floor;function b(E,V){this._currentTextLength=-1,this.k=!1,this.data=V,this.elem=E,this.comp=E.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(E),this.s=it.getProp(E,V.s||{k:0},0,0,this),"e"in V?this.e=it.getProp(E,V.e,0,0,this):this.e={v:100},this.o=it.getProp(E,V.o||{k:0},0,0,this),this.xe=it.getProp(E,V.xe||{k:0},0,0,this),this.ne=it.getProp(E,V.ne||{k:0},0,0,this),this.sm=it.getProp(E,V.sm||{k:100},0,0,this),this.a=it.getProp(E,V.a,0,.01,this),this.dynamicProperties.length||this.getValue()}b.prototype={getMult:function(V){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var fe=0,G=0,ye=1,$e=1;this.ne.v>0?fe=this.ne.v/100:G=-this.ne.v/100,this.xe.v>0?ye=1-this.xe.v/100:$e=1+this.xe.v/100;var ke=En.getBezierEasing(fe,G,ye,$e).get,A=0,q=this.finalS,z=this.finalE,le=this.data.sh;if(le===2)z===q?A=V>=z?1:0:A=u(0,f(.5/(z-q)+(V-q)/(z-q),1)),A=ke(A);else if(le===3)z===q?A=V>=z?0:1:A=1-u(0,f(.5/(z-q)+(V-q)/(z-q),1)),A=ke(A);else if(le===4)z===q?A=0:(A=u(0,f(.5/(z-q)+(V-q)/(z-q),1)),A<.5?A*=2:A=1-2*(A-.5)),A=ke(A);else if(le===5){if(z===q)A=0;else{var ue=z-q;V=f(u(0,V+.5-q),z-q);var N=-ue/2+V,U=ue/2;A=Math.sqrt(1-N*N/(U*U))}A=ke(A)}else le===6?(z===q?A=0:(V=f(u(0,V+.5-q),z-q),A=(1+Math.cos(Math.PI+Math.PI*2*V/(z-q)))/2),A=ke(A)):(V>=p(q)&&(V-q<0?A=u(0,f(f(z,1)-(q-V),1)):A=u(0,f(z-V,1))),A=ke(A));if(this.sm.v!==100){var M=this.sm.v*.01;M===0&&(M=1e-8);var I=.5-M*.5;A<I?A=0:(A=(A-I)/M,A>1&&(A=1))}return A*this.a.v},getValue:function(V){this.iterateDynamicProperties(),this._mdf=V||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,V&&this.data.r===2&&(this.e.v=this._currentTextLength);var fe=this.data.r===2?1:100/this.data.totalChars,G=this.o.v/fe,ye=this.s.v/fe+G,$e=this.e.v/fe+G;if(ye>$e){var ke=ye;ye=$e,$e=ke}this.finalS=ye,this.finalE=$e}},Se([ln],b);function x(E,V,fe){return new b(E,V)}return{getTextSelectorProp:x}}();function ep(u,f,p){var b={propType:!1},x=it.getProp,E=f.a;this.a={r:E.r?x(u,E.r,0,tt,p):b,rx:E.rx?x(u,E.rx,0,tt,p):b,ry:E.ry?x(u,E.ry,0,tt,p):b,sk:E.sk?x(u,E.sk,0,tt,p):b,sa:E.sa?x(u,E.sa,0,tt,p):b,s:E.s?x(u,E.s,1,.01,p):b,a:E.a?x(u,E.a,1,0,p):b,o:E.o?x(u,E.o,0,.01,p):b,p:E.p?x(u,E.p,1,0,p):b,sw:E.sw?x(u,E.sw,0,0,p):b,sc:E.sc?x(u,E.sc,1,0,p):b,fc:E.fc?x(u,E.fc,1,0,p):b,fh:E.fh?x(u,E.fh,0,0,p):b,fs:E.fs?x(u,E.fs,0,.01,p):b,fb:E.fb?x(u,E.fb,0,.01,p):b,t:E.t?x(u,E.t,0,0,p):b},this.s=Qh.getTextSelectorProp(u,f.s,p),this.s.t=f.s.t}function fo(u,f,p){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=u,this._renderType=f,this._elem=p,this._animatorsData=Be(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(p)}fo.prototype.searchProperties=function(){var u,f=this._textData.a.length,p,b=it.getProp;for(u=0;u<f;u+=1)p=this._textData.a[u],this._animatorsData[u]=new ep(this._elem,p,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:b(this._elem,this._textData.p.a,0,0,this),f:b(this._elem,this._textData.p.f,0,0,this),l:b(this._elem,this._textData.p.l,0,0,this),r:b(this._elem,this._textData.p.r,0,0,this),p:b(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=b(this._elem,this._textData.m.a,1,0,this)},fo.prototype.getMeasures=function(u,f){if(this.lettersChangedFlag=f,!(!this._mdf&&!this._isFirstFrame&&!f&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var p=this._moreOptions.alignment.v,b=this._animatorsData,x=this._textData,E=this.mHelper,V=this._renderType,fe=this.renderedLetters.length,G,ye,$e,ke,A=u.l,q,z,le,ue,N,U,M,I,j,Z,ae,ce,Fe,Qe,Xe;if(this._hasMaskedPath){if(Xe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Le=Xe.v;this._pathData.r.v&&(Le=Le.reverse()),q={tLength:0,segments:[]},ke=Le._length-1;var st;for(ce=0,$e=0;$e<ke;$e+=1)st=Qn.buildBezierData(Le.v[$e],Le.v[$e+1],[Le.o[$e][0]-Le.v[$e][0],Le.o[$e][1]-Le.v[$e][1]],[Le.i[$e+1][0]-Le.v[$e+1][0],Le.i[$e+1][1]-Le.v[$e+1][1]]),q.tLength+=st.segmentLength,q.segments.push(st),ce+=st.segmentLength;$e=ke,Xe.v.c&&(st=Qn.buildBezierData(Le.v[$e],Le.v[0],[Le.o[$e][0]-Le.v[$e][0],Le.o[$e][1]-Le.v[$e][1]],[Le.i[0][0]-Le.v[0][0],Le.i[0][1]-Le.v[0][1]]),q.tLength+=st.segmentLength,q.segments.push(st),ce+=st.segmentLength),this._pathData.pi=q}if(q=this._pathData.pi,z=this._pathData.f.v,M=0,U=1,ue=0,N=!0,Z=q.segments,z<0&&Xe.v.c)for(q.tLength<Math.abs(z)&&(z=-Math.abs(z)%q.tLength),M=Z.length-1,j=Z[M].points,U=j.length-1;z<0;)z+=j[U].partialLength,U-=1,U<0&&(M-=1,j=Z[M].points,U=j.length-1);j=Z[M].points,I=j[U-1],le=j[U],ae=le.partialLength}ke=A.length,G=0,ye=0;var ct=u.finalSize*1.2*.714,Ie=!0,be,se,H,he,Ne;he=b.length;var Re,lt=-1,It,_t,Mn,tn=z,Br=M,br=U,rr=-1,cr,fr,Ur,dt,Sn,di,Li,oa,xi="",sa=this.defaultPropsArray,ua;if(u.j===2||u.j===1){var on=0,On=0,Ia=u.j===2?-.5:-1,Ei=0,la=!0;for($e=0;$e<ke;$e+=1)if(A[$e].n){for(on&&(on+=On);Ei<$e;)A[Ei].animatorJustifyOffset=on,Ei+=1;on=0,la=!0}else{for(H=0;H<he;H+=1)be=b[H].a,be.t.propType&&(la&&u.j===2&&(On+=be.t.v*Ia),se=b[H].s,Re=se.getMult(A[$e].anIndexes[H],x.a[H].s.totalChars),Re.length?on+=be.t.v*Re[0]*Ia:on+=be.t.v*Re*Ia);la=!1}for(on&&(on+=On);Ei<$e;)A[Ei].animatorJustifyOffset=on,Ei+=1}for($e=0;$e<ke;$e+=1){if(E.reset(),cr=1,A[$e].n)G=0,ye+=u.yOffset,ye+=Ie?1:0,z=tn,Ie=!1,this._hasMaskedPath&&(M=Br,U=br,j=Z[M].points,I=j[U-1],le=j[U],ae=le.partialLength,ue=0),xi="",oa="",di="",ua="",sa=this.defaultPropsArray;else{if(this._hasMaskedPath){if(rr!==A[$e].line){switch(u.j){case 1:z+=ce-u.lineWidths[A[$e].line];break;case 2:z+=(ce-u.lineWidths[A[$e].line])/2;break}rr=A[$e].line}lt!==A[$e].ind&&(A[lt]&&(z+=A[lt].extra),z+=A[$e].an/2,lt=A[$e].ind),z+=p[0]*A[$e].an*.005;var Ci=0;for(H=0;H<he;H+=1)be=b[H].a,be.p.propType&&(se=b[H].s,Re=se.getMult(A[$e].anIndexes[H],x.a[H].s.totalChars),Re.length?Ci+=be.p.v[0]*Re[0]:Ci+=be.p.v[0]*Re),be.a.propType&&(se=b[H].s,Re=se.getMult(A[$e].anIndexes[H],x.a[H].s.totalChars),Re.length?Ci+=be.a.v[0]*Re[0]:Ci+=be.a.v[0]*Re);for(N=!0,this._pathData.a.v&&(z=A[0].an*.5+(ce-this._pathData.f.v-A[0].an*.5-A[A.length-1].an*.5)*lt/(ke-1),z+=this._pathData.f.v);N;)ue+ae>=z+Ci||!j?(Fe=(z+Ci-ue)/le.partialLength,_t=I.point[0]+(le.point[0]-I.point[0])*Fe,Mn=I.point[1]+(le.point[1]-I.point[1])*Fe,E.translate(-p[0]*A[$e].an*.005,-(p[1]*ct)*.01),N=!1):j&&(ue+=le.partialLength,U+=1,U>=j.length&&(U=0,M+=1,Z[M]?j=Z[M].points:Xe.v.c?(U=0,M=0,j=Z[M].points):(ue-=le.partialLength,j=null)),j&&(I=le,le=j[U],ae=le.partialLength));It=A[$e].an/2-A[$e].add,E.translate(-It,0,0)}else It=A[$e].an/2-A[$e].add,E.translate(-It,0,0),E.translate(-p[0]*A[$e].an*.005,-p[1]*ct*.01,0);for(H=0;H<he;H+=1)be=b[H].a,be.t.propType&&(se=b[H].s,Re=se.getMult(A[$e].anIndexes[H],x.a[H].s.totalChars),(G!==0||u.j!==0)&&(this._hasMaskedPath?Re.length?z+=be.t.v*Re[0]:z+=be.t.v*Re:Re.length?G+=be.t.v*Re[0]:G+=be.t.v*Re));for(u.strokeWidthAnim&&(Ur=u.sw||0),u.strokeColorAnim&&(u.sc?fr=[u.sc[0],u.sc[1],u.sc[2]]:fr=[0,0,0]),u.fillColorAnim&&u.fc&&(dt=[u.fc[0],u.fc[1],u.fc[2]]),H=0;H<he;H+=1)be=b[H].a,be.a.propType&&(se=b[H].s,Re=se.getMult(A[$e].anIndexes[H],x.a[H].s.totalChars),Re.length?E.translate(-be.a.v[0]*Re[0],-be.a.v[1]*Re[1],be.a.v[2]*Re[2]):E.translate(-be.a.v[0]*Re,-be.a.v[1]*Re,be.a.v[2]*Re));for(H=0;H<he;H+=1)be=b[H].a,be.s.propType&&(se=b[H].s,Re=se.getMult(A[$e].anIndexes[H],x.a[H].s.totalChars),Re.length?E.scale(1+(be.s.v[0]-1)*Re[0],1+(be.s.v[1]-1)*Re[1],1):E.scale(1+(be.s.v[0]-1)*Re,1+(be.s.v[1]-1)*Re,1));for(H=0;H<he;H+=1){if(be=b[H].a,se=b[H].s,Re=se.getMult(A[$e].anIndexes[H],x.a[H].s.totalChars),be.sk.propType&&(Re.length?E.skewFromAxis(-be.sk.v*Re[0],be.sa.v*Re[1]):E.skewFromAxis(-be.sk.v*Re,be.sa.v*Re)),be.r.propType&&(Re.length?E.rotateZ(-be.r.v*Re[2]):E.rotateZ(-be.r.v*Re)),be.ry.propType&&(Re.length?E.rotateY(be.ry.v*Re[1]):E.rotateY(be.ry.v*Re)),be.rx.propType&&(Re.length?E.rotateX(be.rx.v*Re[0]):E.rotateX(be.rx.v*Re)),be.o.propType&&(Re.length?cr+=(be.o.v*Re[0]-cr)*Re[0]:cr+=(be.o.v*Re-cr)*Re),u.strokeWidthAnim&&be.sw.propType&&(Re.length?Ur+=be.sw.v*Re[0]:Ur+=be.sw.v*Re),u.strokeColorAnim&&be.sc.propType)for(Sn=0;Sn<3;Sn+=1)Re.length?fr[Sn]+=(be.sc.v[Sn]-fr[Sn])*Re[0]:fr[Sn]+=(be.sc.v[Sn]-fr[Sn])*Re;if(u.fillColorAnim&&u.fc){if(be.fc.propType)for(Sn=0;Sn<3;Sn+=1)Re.length?dt[Sn]+=(be.fc.v[Sn]-dt[Sn])*Re[0]:dt[Sn]+=(be.fc.v[Sn]-dt[Sn])*Re;be.fh.propType&&(Re.length?dt=Tt(dt,be.fh.v*Re[0]):dt=Tt(dt,be.fh.v*Re)),be.fs.propType&&(Re.length?dt=Wt(dt,be.fs.v*Re[0]):dt=Wt(dt,be.fs.v*Re)),be.fb.propType&&(Re.length?dt=Dt(dt,be.fb.v*Re[0]):dt=Dt(dt,be.fb.v*Re))}}for(H=0;H<he;H+=1)be=b[H].a,be.p.propType&&(se=b[H].s,Re=se.getMult(A[$e].anIndexes[H],x.a[H].s.totalChars),this._hasMaskedPath?Re.length?E.translate(0,be.p.v[1]*Re[0],-be.p.v[2]*Re[1]):E.translate(0,be.p.v[1]*Re,-be.p.v[2]*Re):Re.length?E.translate(be.p.v[0]*Re[0],be.p.v[1]*Re[1],-be.p.v[2]*Re[2]):E.translate(be.p.v[0]*Re,be.p.v[1]*Re,-be.p.v[2]*Re));if(u.strokeWidthAnim&&(di=Ur<0?0:Ur),u.strokeColorAnim&&(Li="rgb("+Math.round(fr[0]*255)+","+Math.round(fr[1]*255)+","+Math.round(fr[2]*255)+")"),u.fillColorAnim&&u.fc&&(oa="rgb("+Math.round(dt[0]*255)+","+Math.round(dt[1]*255)+","+Math.round(dt[2]*255)+")"),this._hasMaskedPath){if(E.translate(0,-u.ls),E.translate(0,p[1]*ct*.01+ye,0),this._pathData.p.v){Qe=(le.point[1]-I.point[1])/(le.point[0]-I.point[0]);var ca=Math.atan(Qe)*180/Math.PI;le.point[0]<I.point[0]&&(ca+=180),E.rotate(-ca*Math.PI/180)}E.translate(_t,Mn,0),z-=p[0]*A[$e].an*.005,A[$e+1]&<!==A[$e+1].ind&&(z+=A[$e].an/2,z+=u.tr*.001*u.finalSize)}else{switch(E.translate(G,ye,0),u.ps&&E.translate(u.ps[0],u.ps[1]+u.ascent,0),u.j){case 1:E.translate(A[$e].animatorJustifyOffset+u.justifyOffset+(u.boxWidth-u.lineWidths[A[$e].line]),0,0);break;case 2:E.translate(A[$e].animatorJustifyOffset+u.justifyOffset+(u.boxWidth-u.lineWidths[A[$e].line])/2,0,0);break}E.translate(0,-u.ls),E.translate(It,0,0),E.translate(p[0]*A[$e].an*.005,p[1]*ct*.01,0),G+=A[$e].l+u.tr*.001*u.finalSize}V==="html"?xi=E.toCSS():V==="svg"?xi=E.to2dCSS():sa=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],ua=cr}fe<=$e?(Ne=new Cu(ua,di,Li,oa,xi,sa),this.renderedLetters.push(Ne),fe+=1,this.lettersChangedFlag=!0):(Ne=this.renderedLetters[$e],this.lettersChangedFlag=Ne.update(ua,di,Li,oa,xi,sa)||this.lettersChangedFlag)}}},fo.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},fo.prototype.mHelper=new cn,fo.prototype.defaultPropsArray=[],Se([ln],fo);function wi(){}wi.prototype.initElement=function(u,f,p){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(u,f,p),this.textProperty=new Lr(this,u.t,this.dynamicProperties),this.textAnimator=new fo(u.t,this.renderType,this),this.initTransform(u,f,p),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},wi.prototype.prepareFrame=function(u){this._mdf=!1,this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},wi.prototype.createPathShape=function(u,f){var p,b=f.length,x,E="";for(p=0;p<b;p+=1)f[p].ty==="sh"&&(x=f[p].ks.k,E+=Yr(x,x.i.length,!0,u));return E},wi.prototype.updateDocumentData=function(u,f){this.textProperty.updateDocumentData(u,f)},wi.prototype.canResizeFont=function(u){this.textProperty.canResizeFont(u)},wi.prototype.setMinimumFontSize=function(u){this.textProperty.setMinimumFontSize(u)},wi.prototype.applyTextPropertiesToMatrix=function(u,f,p,b,x){switch(u.ps&&f.translate(u.ps[0],u.ps[1]+u.ascent,0),f.translate(0,-u.ls,0),u.j){case 1:f.translate(u.justifyOffset+(u.boxWidth-u.lineWidths[p]),0,0);break;case 2:f.translate(u.justifyOffset+(u.boxWidth-u.lineWidths[p])/2,0,0);break}f.translate(b,x,0)},wi.prototype.buildColor=function(u){return"rgb("+Math.round(u[0]*255)+","+Math.round(u[1]*255)+","+Math.round(u[2]*255)+")"},wi.prototype.emptyProp=new Cu,wi.prototype.destroy=function(){};var tp={shapes:[]};function Zr(u,f,p){this.textSpans=[],this.renderType="svg",this.initElement(u,f,p)}Se([ia,lo,Ds,Fa,tr,As,wi],Zr),Zr.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=ft("text"))},Zr.prototype.buildTextContents=function(u){for(var f=0,p=u.length,b=[],x="";f<p;)u[f]==="\r"||u[f]===""?(b.push(x),x=""):x+=u[f],f+=1;return b.push(x),b},Zr.prototype.buildShapeData=function(u,f){if(u.shapes&&u.shapes.length){var p=u.shapes[0];if(p.it){var b=p.it[p.it.length-1];b.s&&(b.s.k[0]=f,b.s.k[1]=f)}}return u},Zr.prototype.buildNewText=function(){this.addDynamicProperty(this);var u,f,p=this.textProperty.currentData;this.renderedLetters=Be(p?p.l.length:0),p.fc?this.layerElement.setAttribute("fill",this.buildColor(p.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),p.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(p.sc)),this.layerElement.setAttribute("stroke-width",p.sw)),this.layerElement.setAttribute("font-size",p.finalSize);var b=this.globalData.fontManager.getFontByName(p.f);if(b.fClass)this.layerElement.setAttribute("class",b.fClass);else{this.layerElement.setAttribute("font-family",b.fFamily);var x=p.fWeight,E=p.fStyle;this.layerElement.setAttribute("font-style",E),this.layerElement.setAttribute("font-weight",x)}this.layerElement.setAttribute("aria-label",p.t);var V=p.l||[],fe=!!this.globalData.fontManager.chars;f=V.length;var G,ye=this.mHelper,$e="",ke=this.data.singleShape,A=0,q=0,z=!0,le=p.tr*.001*p.finalSize;if(ke&&!fe&&!p.sz){var ue=this.textContainer,N="start";switch(p.j){case 1:N="end";break;case 2:N="middle";break;default:N="start";break}ue.setAttribute("text-anchor",N),ue.setAttribute("letter-spacing",le);var U=this.buildTextContents(p.finalText);for(f=U.length,q=p.ps?p.ps[1]+p.ascent:0,u=0;u<f;u+=1)G=this.textSpans[u].span||ft("tspan"),G.textContent=U[u],G.setAttribute("x",0),G.setAttribute("y",q),G.style.display="inherit",ue.appendChild(G),this.textSpans[u]||(this.textSpans[u]={span:null,glyph:null}),this.textSpans[u].span=G,q+=p.finalLineHeight;this.layerElement.appendChild(ue)}else{var M=this.textSpans.length,I;for(u=0;u<f;u+=1){if(this.textSpans[u]||(this.textSpans[u]={span:null,childSpan:null,glyph:null}),!fe||!ke||u===0){if(G=M>u?this.textSpans[u].span:ft(fe?"g":"text"),M<=u){if(G.setAttribute("stroke-linecap","butt"),G.setAttribute("stroke-linejoin","round"),G.setAttribute("stroke-miterlimit","4"),this.textSpans[u].span=G,fe){var j=ft("g");G.appendChild(j),this.textSpans[u].childSpan=j}this.textSpans[u].span=G,this.layerElement.appendChild(G)}G.style.display="inherit"}if(ye.reset(),ke&&(V[u].n&&(A=-le,q+=p.yOffset,q+=z?1:0,z=!1),this.applyTextPropertiesToMatrix(p,ye,V[u].line,A,q),A+=V[u].l||0,A+=le),fe){I=this.globalData.fontManager.getCharData(p.finalText[u],b.fStyle,this.globalData.fontManager.getFontByName(p.f).fFamily);var Z;if(I.t===1)Z=new fi(I.data,this.globalData,this);else{var ae=tp;I.data&&I.data.shapes&&(ae=this.buildShapeData(I.data,p.finalSize)),Z=new Tn(ae,this.globalData,this)}if(this.textSpans[u].glyph){var ce=this.textSpans[u].glyph;this.textSpans[u].childSpan.removeChild(ce.layerElement),ce.destroy()}this.textSpans[u].glyph=Z,Z._debug=!0,Z.prepareFrame(0),Z.renderFrame(),this.textSpans[u].childSpan.appendChild(Z.layerElement),I.t===1&&this.textSpans[u].childSpan.setAttribute("transform","scale("+p.finalSize/100+","+p.finalSize/100+")")}else ke&&G.setAttribute("transform","translate("+ye.props[12]+","+ye.props[13]+")"),G.textContent=V[u].val,G.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}ke&&G&&G.setAttribute("d",$e)}for(;u<this.textSpans.length;)this.textSpans[u].span.style.display="none",u+=1;this._sizeChanged=!0},Zr.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var u=this.layerElement.getBBox();this.bbox={top:u.y,left:u.x,width:u.width,height:u.height}}return this.bbox},Zr.prototype.getValue=function(){var u,f=this.textSpans.length,p;for(this.renderedFrame=this.comp.renderedFrame,u=0;u<f;u+=1)p=this.textSpans[u].glyph,p&&(p.prepareFrame(this.comp.renderedFrame-this.data.st),p._mdf&&(this._mdf=!0))},Zr.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var u,f,p=this.textAnimator.renderedLetters,b=this.textProperty.currentData.l;f=b.length;var x,E,V;for(u=0;u<f;u+=1)b[u].n||(x=p[u],E=this.textSpans[u].span,V=this.textSpans[u].glyph,V&&V.renderFrame(),x._mdf.m&&E.setAttribute("transform",x.m),x._mdf.o&&E.setAttribute("opacity",x.o),x._mdf.sw&&E.setAttribute("stroke-width",x.sw),x._mdf.sc&&E.setAttribute("stroke",x.sc),x._mdf.fc&&E.setAttribute("fill",x.fc))}};function Nl(u,f,p){this.initElement(u,f,p)}Se([Ps],Nl),Nl.prototype.createContent=function(){var u=ft("rect");u.setAttribute("width",this.data.sw),u.setAttribute("height",this.data.sh),u.setAttribute("fill",this.data.sc),this.layerElement.appendChild(u)};function Oa(u,f,p){this.initFrame(),this.initBaseData(u,f,p),this.initFrame(),this.initTransform(u,f,p),this.initHierarchy()}Oa.prototype.prepareFrame=function(u){this.prepareProperties(u,!0)},Oa.prototype.renderFrame=function(){},Oa.prototype.getBaseElement=function(){return null},Oa.prototype.destroy=function(){},Oa.prototype.sourceRectAtTime=function(){},Oa.prototype.hide=function(){},Se([ia,lo,Fa,tr],Oa);function nr(){}Se([Ir],nr),nr.prototype.createNull=function(u){return new Oa(u,this.globalData,this)},nr.prototype.createShape=function(u){return new Tn(u,this.globalData,this)},nr.prototype.createText=function(u){return new Zr(u,this.globalData,this)},nr.prototype.createImage=function(u){return new Ps(u,this.globalData,this)},nr.prototype.createSolid=function(u){return new Nl(u,this.globalData,this)},nr.prototype.configAnimation=function(u){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+u.w+" "+u.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",u.w),this.svgElement.setAttribute("height",u.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var f=this.globalData.defs;this.setupGlobalData(u,f),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=u;var p=ft("clipPath"),b=ft("rect");b.setAttribute("width",u.w),b.setAttribute("height",u.h),b.setAttribute("x",0),b.setAttribute("y",0);var x=Qt();p.setAttribute("id",x),p.appendChild(b),this.layerElement.setAttribute("clip-path","url("+Te()+"#"+x+")"),f.appendChild(p),this.layers=u.layers,this.elements=Be(u.layers.length)},nr.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var u,f=this.layers?this.layers.length:0;for(u=0;u<f;u+=1)this.elements[u]&&this.elements[u].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},nr.prototype.updateContainerSize=function(){},nr.prototype.findIndexByInd=function(u){var f=0,p=this.layers.length;for(f=0;f<p;f+=1)if(this.layers[f].ind===u)return f;return-1},nr.prototype.buildItem=function(u){var f=this.elements;if(!(f[u]||this.layers[u].ty===99)){f[u]=!0;var p=this.createItem(this.layers[u]);if(f[u]=p,sr()&&(this.layers[u].ty===0&&this.globalData.projectInterface.registerComposition(p),p.initExpressions()),this.appendElementInPos(p,u),this.layers[u].tt){var b="tp"in this.layers[u]?this.findIndexByInd(this.layers[u].tp):u-1;if(b===-1)return;if(!this.elements[b]||this.elements[b]===!0)this.buildItem(b),this.addPendingElement(p);else{var x=f[b],E=x.getMatte(this.layers[u].tt);p.setMatte(E)}}}},nr.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var u=this.pendingElements.pop();if(u.checkParenting(),u.data.tt)for(var f=0,p=this.elements.length;f<p;){if(this.elements[f]===u){var b="tp"in u.data?this.findIndexByInd(u.data.tp):f-1,x=this.elements[b],E=x.getMatte(this.layers[f].tt);u.setMatte(E);break}f+=1}}},nr.prototype.renderFrame=function(u){if(!(this.renderedFrame===u||this.destroyed)){u===null?u=this.renderedFrame:this.renderedFrame=u,this.globalData.frameNum=u,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=u,this.globalData._mdf=!1;var f,p=this.layers.length;for(this.completeLayers||this.checkLayers(u),f=p-1;f>=0;f-=1)(this.completeLayers||this.elements[f])&&this.elements[f].prepareFrame(u-this.layers[f].st);if(this.globalData._mdf)for(f=0;f<p;f+=1)(this.completeLayers||this.elements[f])&&this.elements[f].renderFrame()}},nr.prototype.appendElementInPos=function(u,f){var p=u.getBaseElement();if(p){for(var b=0,x;b<f;)this.elements[b]&&this.elements[b]!==!0&&this.elements[b].getBaseElement()&&(x=this.elements[b].getBaseElement()),b+=1;x?this.layerElement.insertBefore(p,x):this.layerElement.appendChild(p)}},nr.prototype.hide=function(){this.layerElement.style.display="none"},nr.prototype.show=function(){this.layerElement.style.display="block"};function Ii(){}Se([ia,lo,Fa,tr,As],Ii),Ii.prototype.initElement=function(u,f,p){this.initFrame(),this.initBaseData(u,f,p),this.initTransform(u,f,p),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!f.progressiveLoad)&&this.buildAllItems(),this.hide()},Ii.prototype.prepareFrame=function(u){if(this._mdf=!1,this.prepareRenderableFrame(u),this.prepareProperties(u,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=u/this.data.sr;else{var f=this.tm.v;f===this.data.op&&(f=this.data.op-1),this.renderedFrame=f}var p,b=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),p=b-1;p>=0;p-=1)(this.completeLayers||this.elements[p])&&(this.elements[p].prepareFrame(this.renderedFrame-this.layers[p].st),this.elements[p]._mdf&&(this._mdf=!0))}},Ii.prototype.renderInnerContent=function(){var u,f=this.layers.length;for(u=0;u<f;u+=1)(this.completeLayers||this.elements[u])&&this.elements[u].renderFrame()},Ii.prototype.setElements=function(u){this.elements=u},Ii.prototype.getElements=function(){return this.elements},Ii.prototype.destroyElements=function(){var u,f=this.layers.length;for(u=0;u<f;u+=1)this.elements[u]&&this.elements[u].destroy()},Ii.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function fi(u,f,p){this.layers=u.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?Be(this.layers.length):[],this.initElement(u,f,p),this.tm=u.tm?it.getProp(this,u.tm,0,f.frameRate,this):{_placeholder:!0}}Se([nr,Ii,Ds],fi),fi.prototype.createComp=function(u){return new fi(u,this.globalData,this)};function Uo(u,f){this.animationItem=u,this.layers=null,this.renderedFrame=-1,this.svgElement=ft("svg");var p="";if(f&&f.title){var b=ft("title"),x=Qt();b.setAttribute("id",x),b.textContent=f.title,this.svgElement.appendChild(b),p+=x}if(f&&f.description){var E=ft("desc"),V=Qt();E.setAttribute("id",V),E.textContent=f.description,this.svgElement.appendChild(E),p+=" "+V}p&&this.svgElement.setAttribute("aria-labelledby",p);var fe=ft("defs");this.svgElement.appendChild(fe);var G=ft("g");this.svgElement.appendChild(G),this.layerElement=G,this.renderConfig={preserveAspectRatio:f&&f.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:f&&f.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:f&&f.contentVisibility||"visible",progressiveLoad:f&&f.progressiveLoad||!1,hideOnTransparent:!(f&&f.hideOnTransparent===!1),viewBoxOnly:f&&f.viewBoxOnly||!1,viewBoxSize:f&&f.viewBoxSize||!1,className:f&&f.className||"",id:f&&f.id||"",focusable:f&&f.focusable,filterSize:{width:f&&f.filterSize&&f.filterSize.width||"100%",height:f&&f.filterSize&&f.filterSize.height||"100%",x:f&&f.filterSize&&f.filterSize.x||"0%",y:f&&f.filterSize&&f.filterSize.y||"0%"},width:f&&f.width,height:f&&f.height,runExpressions:!f||f.runExpressions===void 0||f.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:fe,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return Se([nr],Uo),Uo.prototype.createComp=function(u){return new fi(u,this.globalData,this)},Hr("svg",Uo),zr.registerModifier("tm",Y),zr.registerModifier("pb",Ee),zr.registerModifier("rp",ze),zr.registerModifier("rd",at),zr.registerModifier("zz",ao),zr.registerModifier("op",Fn),Kt})})(c,c.exports);var d=c.exports;function h(de,ne){var re=de==null?null:typeof Symbol<"u"&&de[Symbol.iterator]||de["@@iterator"];if(re!=null){var K,oe,Ce,ee,pe=[],Pe=!0,Te=!1;try{if(Ce=(re=re.call(de)).next,ne!==0)for(;!(Pe=(K=Ce.call(re)).done)&&(pe.push(K.value),pe.length!==ne);Pe=!0);}catch(Ve){Te=!0,oe=Ve}finally{try{if(!Pe&&re.return!=null&&(ee=re.return(),Object(ee)!==ee))return}finally{if(Te)throw oe}}return pe}}function g(de,ne){var re=Object.keys(de);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(de);ne&&(K=K.filter(function(oe){return Object.getOwnPropertyDescriptor(de,oe).enumerable})),re.push.apply(re,K)}return re}function v(de){for(var ne=1;ne<arguments.length;ne++){var re=arguments[ne]!=null?arguments[ne]:{};ne%2?g(Object(re),!0).forEach(function(K){$(de,K,re[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(re)):g(Object(re)).forEach(function(K){Object.defineProperty(de,K,Object.getOwnPropertyDescriptor(re,K))})}return de}function $(de,ne,re){return ne=k(ne),ne in de?Object.defineProperty(de,ne,{value:re,enumerable:!0,configurable:!0,writable:!0}):de[ne]=re,de}function y(de,ne){if(de==null)return{};var re={},K=Object.keys(de),oe,Ce;for(Ce=0;Ce<K.length;Ce++)oe=K[Ce],!(ne.indexOf(oe)>=0)&&(re[oe]=de[oe]);return re}function P(de,ne){if(de==null)return{};var re=y(de,ne),K,oe;if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(de);for(oe=0;oe<Ce.length;oe++)K=Ce[oe],!(ne.indexOf(K)>=0)&&Object.prototype.propertyIsEnumerable.call(de,K)&&(re[K]=de[K])}return re}function T(de,ne){return R(de)||h(de,ne)||D(de,ne)||_()}function R(de){if(Array.isArray(de))return de}function D(de,ne){if(de){if(typeof de=="string")return C(de,ne);var re=Object.prototype.toString.call(de).slice(8,-1);if(re==="Object"&&de.constructor&&(re=de.constructor.name),re==="Map"||re==="Set")return Array.from(de);if(re==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(re))return C(de,ne)}}function C(de,ne){(ne==null||ne>de.length)&&(ne=de.length);for(var re=0,K=new Array(ne);re<ne;re++)K[re]=de[re];return K}function _(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
164
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(de,ne){if(typeof de!="object"||de===null)return de;var re=de[Symbol.toPrimitive];if(re!==void 0){var K=re.call(de,ne||"default");if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ne==="string"?String:Number)(de)}function k(de){var ne=B(de,"string");return typeof ne=="symbol"?ne:String(ne)}var L=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],X=function(ne,re){var K=ne.animationData,oe=ne.loop,Ce=ne.autoplay,ee=ne.initialSegment,pe=ne.onComplete,Pe=ne.onLoopComplete,Te=ne.onEnterFrame,Ve=ne.onSegmentStart,Se=ne.onConfigReady,Je=ne.onDataReady,Ge=ne.onDataFailed,xe=ne.onLoadedImages,Be=ne.onDOMLoaded,qe=ne.onDestroy;ne.lottieRef,ne.renderer,ne.name,ne.assetsPath,ne.rendererSettings;var Ke=P(ne,L),Oe=r.useState(!1),et=T(Oe,2),wt=et[0],Lt=et[1],yt=r.useRef(),xt=r.useRef(null),Yn=function(){var Dt;(Dt=yt.current)===null||Dt===void 0||Dt.play()},tt=function(){var Dt;(Dt=yt.current)===null||Dt===void 0||Dt.stop()},Et=function(){var Dt;(Dt=yt.current)===null||Dt===void 0||Dt.pause()},At=function(Dt){var Tt;(Tt=yt.current)===null||Tt===void 0||Tt.setSpeed(Dt)},Bn=function(Dt,Tt){var Ct;(Ct=yt.current)===null||Ct===void 0||Ct.goToAndPlay(Dt,Tt)},ar=function(Dt,Tt){var Ct;(Ct=yt.current)===null||Ct===void 0||Ct.goToAndStop(Dt,Tt)},Zn=function(Dt){var Tt;(Tt=yt.current)===null||Tt===void 0||Tt.setDirection(Dt)},Vn=function(Dt,Tt){var Ct;(Ct=yt.current)===null||Ct===void 0||Ct.playSegments(Dt,Tt)},_r=function(Dt){var Tt;(Tt=yt.current)===null||Tt===void 0||Tt.setSubframe(Dt)},Jn=function(Dt){var Tt;return(Tt=yt.current)===null||Tt===void 0?void 0:Tt.getDuration(Dt)},Qt=function(){var Dt;(Dt=yt.current)===null||Dt===void 0||Dt.destroy(),yt.current=void 0},or=function(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Tt;if(xt.current){(Tt=yt.current)===null||Tt===void 0||Tt.destroy();var Ct=v(v(v({},ne),Dt),{},{container:xt.current});return yt.current=d.loadAnimation(Ct),Lt(!!yt.current),function(){var zn;(zn=yt.current)===null||zn===void 0||zn.destroy(),yt.current=void 0}}};r.useEffect(function(){var Wt=or();return function(){return Wt==null?void 0:Wt()}},[K,oe]),r.useEffect(function(){yt.current&&(yt.current.autoplay=!!Ce)},[Ce]),r.useEffect(function(){if(yt.current){if(!ee){yt.current.resetSegments(!0);return}!Array.isArray(ee)||!ee.length||((yt.current.currentRawFrame<ee[0]||yt.current.currentRawFrame>ee[1])&&(yt.current.currentRawFrame=ee[0]),yt.current.setSegment(ee[0],ee[1]))}},[ee]),r.useEffect(function(){var Wt=[{name:"complete",handler:pe},{name:"loopComplete",handler:Pe},{name:"enterFrame",handler:Te},{name:"segmentStart",handler:Ve},{name:"config_ready",handler:Se},{name:"data_ready",handler:Je},{name:"data_failed",handler:Ge},{name:"loaded_images",handler:xe},{name:"DOMLoaded",handler:Be},{name:"destroy",handler:qe}],Dt=Wt.filter(function(Ct){return Ct.handler!=null});if(Dt.length){var Tt=Dt.map(function(Ct){var zn;return(zn=yt.current)===null||zn===void 0||zn.addEventListener(Ct.name,Ct.handler),function(){var Er;(Er=yt.current)===null||Er===void 0||Er.removeEventListener(Ct.name,Ct.handler)}});return function(){Tt.forEach(function(Ct){return Ct()})}}},[pe,Pe,Te,Ve,Se,Je,Ge,xe,Be,qe]);var xr=a.default.createElement("div",v({style:re,ref:xt},Ke));return{View:xr,play:Yn,stop:tt,pause:Et,setSpeed:At,goToAndStop:ar,goToAndPlay:Bn,setDirection:Zn,playSegments:Vn,setSubframe:_r,getDuration:Jn,destroy:Qt,animationContainerRef:xt,animationLoaded:wt,animationItem:yt.current}};function F(de){var ne=de.getBoundingClientRect(),re=ne.top,K=ne.height,oe=window.innerHeight-re,Ce=window.innerHeight+K;return oe/Ce}function ge(de,ne,re){var K=de.getBoundingClientRect(),oe=K.top,Ce=K.left,ee=K.width,pe=K.height,Pe=(ne-Ce)/ee,Te=(re-oe)/pe;return{x:Pe,y:Te}}var te=function(ne){var re=ne.wrapperRef,K=ne.animationItem,oe=ne.mode,Ce=ne.actions;r.useEffect(function(){var ee=re.current;if(!(!ee||!K||!Ce.length)){K.stop();var pe=function(){var Ve=null,Se=function(){var Ge=F(ee),xe=Ce.find(function(qe){var Ke=qe.visibility;return Ke&&Ge>=Ke[0]&&Ge<=Ke[1]});if(xe){if(xe.type==="seek"&&xe.visibility&&xe.frames.length===2){var Be=xe.frames[0]+Math.ceil((Ge-xe.visibility[0])/(xe.visibility[1]-xe.visibility[0])*xe.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
165
|
+
K.goToAndStop(Be-K.firstFrame-1,!0)}xe.type==="loop"&&(Ve===null||Ve!==xe.frames||K.isPaused)&&(K.playSegments(xe.frames,!0),Ve=xe.frames),xe.type==="play"&&K.isPaused&&(K.resetSegments(!0),K.play()),xe.type==="stop"&&K.goToAndStop(xe.frames[0]-K.firstFrame-1,!0)}};return document.addEventListener("scroll",Se),function(){document.removeEventListener("scroll",Se)}},Pe=function(){var Ve=function(xe,Be){var qe=xe,Ke=Be;if(qe!==-1&&Ke!==-1){var Oe=ge(ee,qe,Ke);qe=Oe.x,Ke=Oe.y}var et=Ce.find(function(yt){var xt=yt.position;return xt&&Array.isArray(xt.x)&&Array.isArray(xt.y)?qe>=xt.x[0]&&qe<=xt.x[1]&&Ke>=xt.y[0]&&Ke<=xt.y[1]:xt&&!Number.isNaN(xt.x)&&!Number.isNaN(xt.y)?qe===xt.x&&Ke===xt.y:!1});if(et){if(et.type==="seek"&&et.position&&Array.isArray(et.position.x)&&Array.isArray(et.position.y)&&et.frames.length===2){var wt=(qe-et.position.x[0])/(et.position.x[1]-et.position.x[0]),Lt=(Ke-et.position.y[0])/(et.position.y[1]-et.position.y[0]);K.playSegments(et.frames,!0),K.goToAndStop(Math.ceil((wt+Lt)/2*(et.frames[1]-et.frames[0])),!0)}et.type==="loop"&&K.playSegments(et.frames,!0),et.type==="play"&&(K.isPaused&&K.resetSegments(!1),K.playSegments(et.frames)),et.type==="stop"&&K.goToAndStop(et.frames[0],!0)}},Se=function(xe){Ve(xe.clientX,xe.clientY)},Je=function(){Ve(-1,-1)};return ee.addEventListener("mousemove",Se),ee.addEventListener("mouseout",Je),function(){ee.removeEventListener("mousemove",Se),ee.removeEventListener("mouseout",Je)}};switch(oe){case"scroll":return pe();case"cursor":return Pe()}}},[oe,K])},ie=function(ne){var re=ne.actions,K=ne.mode,oe=ne.lottieObj,Ce=oe.animationItem,ee=oe.View,pe=oe.animationContainerRef;return te({actions:re,animationItem:Ce,mode:K,wrapperRef:pe}),ee},De=["style","interactivity"],me=function(ne){var re,K,oe,Ce=ne.style,ee=ne.interactivity,pe=P(ne,De),Pe=X(pe,Ce),Te=Pe.View,Ve=Pe.play,Se=Pe.stop,Je=Pe.pause,Ge=Pe.setSpeed,xe=Pe.goToAndStop,Be=Pe.goToAndPlay,qe=Pe.setDirection,Ke=Pe.playSegments,Oe=Pe.setSubframe,et=Pe.getDuration,wt=Pe.destroy,Lt=Pe.animationContainerRef,yt=Pe.animationLoaded,xt=Pe.animationItem;return r.useEffect(function(){ne.lottieRef&&(ne.lottieRef.current={play:Ve,stop:Se,pause:Je,setSpeed:Ge,goToAndPlay:Be,goToAndStop:xe,setDirection:qe,playSegments:Ke,setSubframe:Oe,getDuration:et,destroy:wt,animationContainerRef:Lt,animationLoaded:yt,animationItem:xt})},[(re=ne.lottieRef)===null||re===void 0?void 0:re.current]),ie({lottieObj:{View:Te,play:Ve,stop:Se,pause:Je,setSpeed:Ge,goToAndStop:xe,goToAndPlay:Be,setDirection:qe,playSegments:Ke,setSubframe:Oe,getDuration:et,destroy:wt,animationContainerRef:Lt,animationLoaded:yt,animationItem:xt},actions:(K=ee==null?void 0:ee.actions)!==null&&K!==void 0?K:[],mode:(oe=ee==null?void 0:ee.mode)!==null&&oe!==void 0?oe:"scroll"})};n.LottiePlayer=d,n.default=me,n.useLottie=X,n.useLottieInteractivity=ie,Object.defineProperty(n,"__esModule",{value:!0})})}(gc,gc.exports)),gc.exports}var oV=aV();const sV=bs(oV),j4=new Set;function jh(e,t,n){e||j4.has(t)||(console.warn(t),j4.add(t))}function uV(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&jh(!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 Kh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Gg=e=>Array.isArray(e);function gD(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 Oc(e){return typeof e=="string"||Array.isArray(e)}function K4(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function vy(e,t,n,r){if(typeof t=="function"){const[i,a]=K4(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=K4(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function zh(e,t,n){const r=e.getProps();return vy(r,t,n!==void 0?n:r.custom,e)}const yy=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],by=["initial",...yy],rf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gu=new Set(rf),ko=e=>e*1e3,ds=e=>e/1e3,lV={type:"spring",stiffness:500,damping:25,restSpeed:10},cV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fV={type:"keyframes",duration:.8},dV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hV=(e,{keyframes:t})=>t.length>2?fV:gu.has(e)?e.startsWith("scale")?cV(t[1]):lV:dV;function vD(e,t){return e?e[t]||e.default||e:void 0}const pV={skipAnimations:!1,useManualTiming:!1},mV=e=>e!==null;function Uh(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(mV),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const gs=e=>e;let Dl=gs,cu=gs;process.env.NODE_ENV!=="production"&&(Dl=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},cu=(e,t)=>{if(!e)throw new Error(t)});function gV(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function c(h){a.has(h)&&(d.schedule(h),e()),h(s)}const d={schedule:(h,g=!1,v=!1)=>{const y=v&&r?t:n;return g&&a.add(h),y.has(h)||y.add(h),h},cancel:h=>{n.delete(h),a.delete(h)},process:h=>{if(s=h,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(c),t.clear(),r=!1,i&&(i=!1,d.process(h))}};return d}const od=["read","resolveKeyframes","update","preRender","render","postRender"],vV=40;function yD(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=od.reduce((D,C)=>(D[C]=gV(a),D),{}),{read:c,resolveKeyframes:d,update:h,preRender:g,render:v,postRender:$}=s,y=()=>{const D=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(D-i.timestamp,vV),1),i.timestamp=D,i.isProcessing=!0,c.process(i),d.process(i),h.process(i),g.process(i),v.process(i),$.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(y))},P=()=>{n=!0,r=!0,i.isProcessing||e(y)};return{schedule:od.reduce((D,C)=>{const _=s[C];return D[C]=(B,k=!1,L=!1)=>(n||P(),_.schedule(B,k,L)),D},{}),cancel:D=>{for(let C=0;C<od.length;C++)s[od[C]].cancel(D)},state:i,steps:s}}const{schedule:Ri,cancel:qg,state:eh,steps:_W}=yD(typeof requestAnimationFrame<"u"?requestAnimationFrame:gs,!0),bD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yV=1e-7,bV=12;function $V(e,t,n,r,i){let a,s,c=0;do s=t+(n-t)/2,a=bD(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>yV&&++c<bV);return s}function af(e,t,n,r){if(e===t&&n===r)return gs;const i=a=>$V(a,0,1,e,n);return a=>a===0||a===1?a:bD(i(a),t,r)}const $D=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wD=e=>t=>1-e(1-t),xD=af(.33,1.53,.69,.99),$y=wD(xD),ED=$D($y),CD=e=>(e*=2)<1?.5*$y(e):.5*(2-Math.pow(2,-10*(e-1))),wy=e=>1-Math.sin(Math.acos(e)),wV=wD(wy),SD=$D(wy),DD=e=>/^0[^.\s]+$/u.test(e);function xV(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||DD(e):!0}const AD=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),PD=e=>t=>typeof t=="string"&&t.startsWith(e),TD=PD("--"),EV=PD("var(--"),xy=e=>EV(e)?CV.test(e.split("/*")[0].trim()):!1,CV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,SV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DV(e){const t=SV.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const AV=4;function _D(e,t,n=1){cu(n<=AV,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=DV(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return AD(s)?parseFloat(s):s}return xy(i)?_D(i,t,n+1):i}const fu=(e,t,n)=>n>t?t:n<e?e:n,Al={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ic={...Al,transform:e=>fu(0,1,e)},sd={...Al,default:1},of=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),es=of("deg"),tl=of("%"),Mt=of("px"),PV=of("vh"),TV=of("vw"),z4={...tl,parse:e=>tl.parse(e)/100,transform:e=>tl.transform(e*100)},_V=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),U4=e=>e===Al||e===Mt,W4=(e,t)=>parseFloat(e.split(", ")[t]),H4=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return W4(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?W4(a[1],e):0}},kV=new Set(["x","y","z"]),RV=rf.filter(e=>!kV.has(e));function FV(e){const t=[];return RV.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ml={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:H4(4,13),y:H4(5,14)};ml.translateX=ml.x;ml.translateY=ml.y;const kD=e=>t=>t.test(e),MV={test:e=>e==="auto",parse:e=>e},RD=[Al,Mt,tl,es,TV,PV,MV],G4=e=>RD.find(kD(e)),Qs=new Set;let Yg=!1,Zg=!1;function FD(){if(Zg){const e=Array.from(Qs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=FV(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(([a,s])=>{var c;(c=r.getValue(a))===null||c===void 0||c.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Zg=!1,Yg=!1,Qs.forEach(e=>e.complete()),Qs.clear()}function MD(){Qs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zg=!0)})}function OV(){MD(),FD()}class Ey{constructor(t,n,r,i,a,s=!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=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qs.add(this),Yg||(Yg=!0,Ri.read(MD),Ri.resolveKeyframes(FD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const s=i==null?void 0:i.get(),c=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const d=r.readValue(n,c);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=c),i&&s===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ec=e=>Math.round(e*1e5)/1e5,Cy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function IV(e){return e==null}const LV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Sy=(e,t)=>n=>!!(typeof n=="string"&&LV.test(n)&&n.startsWith(e)||t&&!IV(n)&&Object.prototype.hasOwnProperty.call(n,t)),OD=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,c]=r.match(Cy);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:c!==void 0?parseFloat(c):1}},BV=e=>fu(0,255,e),Am={...Al,transform:e=>Math.round(BV(e))},qs={test:Sy("rgb","red"),parse:OD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Am.transform(e)+", "+Am.transform(t)+", "+Am.transform(n)+", "+Ec(Ic.transform(r))+")"};function VV(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 Jg={test:Sy("#"),parse:VV,transform:qs.transform},Gu={test:Sy("hsl","hue"),parse:OD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+tl.transform(Ec(t))+", "+tl.transform(Ec(n))+", "+Ec(Ic.transform(r))+")"},Xr={test:e=>qs.test(e)||Jg.test(e)||Gu.test(e),parse:e=>qs.test(e)?qs.parse(e):Gu.test(e)?Gu.parse(e):Jg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?qs.transform(e):Gu.transform(e)},NV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jV(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Cy))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(NV))===null||n===void 0?void 0:n.length)||0)>0}const ID="number",LD="color",KV="var",zV="var(",q4="${}",UV=/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 Lc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const c=t.replace(UV,d=>(Xr.test(d)?(r.color.push(a),i.push(LD),n.push(Xr.parse(d))):d.startsWith(zV)?(r.var.push(a),i.push(KV),n.push(d)):(r.number.push(a),i.push(ID),n.push(parseFloat(d))),++a,q4)).split(q4);return{values:n,split:c,indexes:r,types:i}}function BD(e){return Lc(e).values}function VD(e){const{split:t,types:n}=Lc(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const c=n[s];c===ID?a+=Ec(i[s]):c===LD?a+=Xr.transform(i[s]):a+=i[s]}return a}}const WV=e=>typeof e=="number"?0:e;function HV(e){const t=BD(e);return VD(e)(t.map(WV))}const Pl={test:jV,parse:BD,createTransformer:VD,getAnimatableNone:HV},GV=new Set(["brightness","contrast","saturate","opacity"]);function qV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cy)||[];if(!r)return e;const i=n.replace(r,"");let a=GV.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const YV=/\b([a-z-]*)\(.*?\)/gu,Xg={...Pl,getAnimatableNone:e=>{const t=e.match(YV);return t?t.map(qV).join(" "):e}},ZV={borderWidth:Mt,borderTopWidth:Mt,borderRightWidth:Mt,borderBottomWidth:Mt,borderLeftWidth:Mt,borderRadius:Mt,radius:Mt,borderTopLeftRadius:Mt,borderTopRightRadius:Mt,borderBottomRightRadius:Mt,borderBottomLeftRadius:Mt,width:Mt,maxWidth:Mt,height:Mt,maxHeight:Mt,top:Mt,right:Mt,bottom:Mt,left:Mt,padding:Mt,paddingTop:Mt,paddingRight:Mt,paddingBottom:Mt,paddingLeft:Mt,margin:Mt,marginTop:Mt,marginRight:Mt,marginBottom:Mt,marginLeft:Mt,backgroundPositionX:Mt,backgroundPositionY:Mt},JV={rotate:es,rotateX:es,rotateY:es,rotateZ:es,scale:sd,scaleX:sd,scaleY:sd,scaleZ:sd,skew:es,skewX:es,skewY:es,distance:Mt,translateX:Mt,translateY:Mt,translateZ:Mt,x:Mt,y:Mt,z:Mt,perspective:Mt,transformPerspective:Mt,opacity:Ic,originX:z4,originY:z4,originZ:Mt},Y4={...Al,transform:Math.round},Dy={...ZV,...JV,zIndex:Y4,size:Mt,fillOpacity:Ic,strokeOpacity:Ic,numOctaves:Y4},XV={...Dy,color:Xr,backgroundColor:Xr,outlineColor:Xr,fill:Xr,stroke:Xr,borderColor:Xr,borderTopColor:Xr,borderRightColor:Xr,borderBottomColor:Xr,borderLeftColor:Xr,filter:Xg,WebkitFilter:Xg},Ay=e=>XV[e];function ND(e,t){let n=Ay(e);return n!==Xg&&(n=Pl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const QV=new Set(["auto","none","0"]);function eN(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!QV.has(a)&&Lc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=ND(n,i)}class jD extends Ey{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let h=t[d];if(typeof h=="string"&&(h=h.trim(),xy(h))){const g=_D(h,n.current);g!==void 0&&(t[d]=g),d===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!_V.has(r)||t.length!==2)return;const[i,a]=t,s=G4(i),c=G4(a);if(s!==c)if(U4(s)&&U4(c))for(let d=0;d<t.length;d++){const h=t[d];typeof h=="string"&&(t[d]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)xV(t[i])&&r.push(i);r.length&&eN(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=ml[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 a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const s=i.length-1,c=i[s];i[s]=ml[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([d,h])=>{n.getValue(d).set(h)}),this.resolveNoneKeyframes()}}function Py(e){return typeof e=="function"}let Cd;function tN(){Cd=void 0}const hs={now:()=>(Cd===void 0&&hs.set(eh.isProcessing||pV.useManualTiming?eh.timestamp:performance.now()),Cd),set:e=>{Cd=e,queueMicrotask(tN)}},Z4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Pl.test(e)||e==="0")&&!e.startsWith("url("));function nN(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 rN(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=Z4(i,t),c=Z4(a,t);return Dl(s===c,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!s||!c?!1:nN(e)||(n==="spring"||Py(n))&&r}const iN=40;class KD{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=hs.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>iN?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&OV(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=hs.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:s,onComplete:c,onUpdate:d,isGenerator:h}=this.options;if(!h&&!rN(t,r,i,a))if(s)this.options.duration=0;else{d==null||d(Uh(t,this.options,n)),c==null||c(),this.resolveFinishedPromise();return}const g=this.initPlayback(t,n);g!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...g},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 Ty=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},zD=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(Ty(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function UD(e,t){return t?e*(1e3/t):0}const aN=5;function WD(e,t,n){const r=Math.max(t-aN,0);return UD(n-e(r),t-r)}const Hn={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},J4=.001;function oN({duration:e=Hn.duration,bounce:t=Hn.bounce,velocity:n=Hn.velocity,mass:r=Hn.mass}){let i,a;Dl(e<=ko(Hn.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=fu(Hn.minDamping,Hn.maxDamping,s),e=fu(Hn.minDuration,Hn.maxDuration,ds(e)),s<1?(i=h=>{const g=h*s,v=g*e,$=g-n,y=Qg(h,s),P=Math.exp(-v);return J4-$/y*P},a=h=>{const v=h*s*e,$=v*n+n,y=Math.pow(s,2)*Math.pow(h,2)*e,P=Math.exp(-v),T=Qg(Math.pow(h,2),s);return(-i(h)+J4>0?-1:1)*(($-y)*P)/T}):(i=h=>{const g=Math.exp(-h*e),v=(h-n)*e+1;return-.001+g*v},a=h=>{const g=Math.exp(-h*e),v=(n-h)*(e*e);return g*v});const c=5/e,d=uN(i,a,c);if(e=ko(e),isNaN(d))return{stiffness:Hn.stiffness,damping:Hn.damping,duration:e};{const h=Math.pow(d,2)*r;return{stiffness:h,damping:s*2*Math.sqrt(r*h),duration:e}}}const sN=12;function uN(e,t,n){let r=n;for(let i=1;i<sN;i++)r=r-e(r)/t(r);return r}function Qg(e,t){return e*Math.sqrt(1-t*t)}const ev=2e4;function HD(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ev;)t+=n,r=e.next(t);return t>=ev?1/0:t}const lN=["duration","bounce"],cN=["stiffness","damping","mass"];function X4(e,t){return t.some(n=>e[n]!==void 0)}function fN(e){let t={velocity:Hn.velocity,stiffness:Hn.stiffness,damping:Hn.damping,mass:Hn.mass,isResolvedFromDuration:!1,...e};if(!X4(e,cN)&&X4(e,lN))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*fu(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Hn.mass,stiffness:i,damping:a}}else{const n=oN(e);t={...t,...n,mass:Hn.mass},t.isResolvedFromDuration=!0}return t}function GD(e=Hn.visualDuration,t=Hn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],c={done:!1,value:a},{stiffness:d,damping:h,mass:g,duration:v,velocity:$,isResolvedFromDuration:y}=fN({...n,velocity:-ds(n.velocity||0)}),P=$||0,T=h/(2*Math.sqrt(d*g)),R=s-a,D=ds(Math.sqrt(d/g)),C=Math.abs(R)<5;r||(r=C?Hn.restSpeed.granular:Hn.restSpeed.default),i||(i=C?Hn.restDelta.granular:Hn.restDelta.default);let _;if(T<1){const k=Qg(D,T);_=L=>{const X=Math.exp(-T*D*L);return s-X*((P+T*D*R)/k*Math.sin(k*L)+R*Math.cos(k*L))}}else if(T===1)_=k=>s-Math.exp(-D*k)*(R+(P+D*R)*k);else{const k=D*Math.sqrt(T*T-1);_=L=>{const X=Math.exp(-T*D*L),F=Math.min(k*L,300);return s-X*((P+T*D*R)*Math.sinh(F)+k*R*Math.cosh(F))/k}}const B={calculatedDuration:y&&v||null,next:k=>{const L=_(k);if(y)c.done=k>=v;else{let X=0;T<1&&(X=k===0?ko(P):WD(_,k,L));const F=Math.abs(X)<=r,ge=Math.abs(s-L)<=i;c.done=F&&ge}return c.value=c.done?s:L,c},toString:()=>{const k=Math.min(HD(B),ev),L=zD(X=>B.next(k*X).value,k,30);return k+"ms "+L}};return B}function Q4({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:c,max:d,restDelta:h=.5,restSpeed:g}){const v=e[0],$={done:!1,value:v},y=F=>c!==void 0&&F<c||d!==void 0&&F>d,P=F=>c===void 0?d:d===void 0||Math.abs(c-F)<Math.abs(d-F)?c:d;let T=n*t;const R=v+T,D=s===void 0?R:s(R);D!==R&&(T=D-v);const C=F=>-T*Math.exp(-F/r),_=F=>D+C(F),B=F=>{const ge=C(F),te=_(F);$.done=Math.abs(ge)<=h,$.value=$.done?D:te};let k,L;const X=F=>{y($.value)&&(k=F,L=GD({keyframes:[$.value,P($.value)],velocity:WD(_,F,$.value),damping:i,stiffness:a,restDelta:h,restSpeed:g}))};return X(0),{calculatedDuration:null,next:F=>{let ge=!1;return!L&&k===void 0&&(ge=!0,B(F),X(F)),k!==void 0&&F>=k?L.next(F-k):(!ge&&B(F),$)}}}const dN=af(.42,0,1,1),hN=af(0,0,.58,1),qD=af(.42,0,.58,1),pN=e=>Array.isArray(e)&&typeof e[0]!="number",_y=e=>Array.isArray(e)&&typeof e[0]=="number",e3={linear:gs,easeIn:dN,easeInOut:qD,easeOut:hN,circIn:wy,circInOut:SD,circOut:wV,backIn:$y,backInOut:ED,backOut:xD,anticipate:CD},t3=e=>{if(_y(e)){cu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return af(t,n,r,i)}else if(typeof e=="string")return cu(e3[e]!==void 0,`Invalid easing type '${e}'`),e3[e];return e},mN=(e,t)=>n=>t(e(n)),Wh=(...e)=>e.reduce(mN),Hh=(e,t,n)=>e+(t-e)*n;function Pm(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 gN({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const c=n<.5?n*(1+t):n+t-n*t,d=2*n-c;i=Pm(d,c,e+1/3),a=Pm(d,c,e),s=Pm(d,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function th(e,t){return n=>n>0?t:e}const Tm=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},vN=[Jg,qs,Gu],yN=e=>vN.find(t=>t.test(e));function n3(e){const t=yN(e);if(Dl(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Gu&&(n=gN(n)),n}const r3=(e,t)=>{const n=n3(e),r=n3(t);if(!n||!r)return th(e,t);const i={...n};return a=>(i.red=Tm(n.red,r.red,a),i.green=Tm(n.green,r.green,a),i.blue=Tm(n.blue,r.blue,a),i.alpha=Hh(n.alpha,r.alpha,a),qs.transform(i))},tv=new Set(["none","hidden"]);function bN(e,t){return tv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $N(e,t){return n=>Hh(e,t,n)}function ky(e){return typeof e=="number"?$N:typeof e=="string"?xy(e)?th:Xr.test(e)?r3:EN:Array.isArray(e)?YD:typeof e=="object"?Xr.test(e)?r3:wN:th}function YD(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>ky(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function wN(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ky(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function xN(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],c=e.indexes[s][i[s]],d=(n=e.values[c])!==null&&n!==void 0?n:0;r[a]=d,i[s]++}return r}const EN=(e,t)=>{const n=Pl.createTransformer(t),r=Lc(e),i=Lc(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?tv.has(e)&&!i.values.length||tv.has(t)&&!r.values.length?bN(e,t):Wh(YD(xN(r,i),i.values),n):(Dl(!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 ZD(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Hh(e,t,n):ky(e)(e,t)}function CN(e,t,n){const r=[],i=n||ZD,a=e.length-1;for(let s=0;s<a;s++){let c=i(e[s],e[s+1]);if(t){const d=Array.isArray(t)?t[s]||gs:t;c=Wh(d,c)}r.push(c)}return r}function SN(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(cu(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=CN(t,r,i),c=s.length,d=h=>{let g=0;if(c>1)for(;g<e.length-2&&!(h<e[g+1]);g++);const v=Ty(e[g],e[g+1],h);return s[g](v)};return n?h=>d(fu(e[0],e[a-1],h)):d}function DN(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ty(0,t,r);e.push(Hh(n,1,i))}}function AN(e){const t=[0];return DN(t,e.length-1),t}function PN(e,t){return e.map(n=>n*t)}function TN(e,t){return e.map(()=>t||qD).splice(0,e.length-1)}function nh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=pN(r)?r.map(t3):t3(r),a={done:!1,value:t[0]},s=PN(n&&n.length===t.length?n:AN(t),e),c=SN(s,t,{ease:Array.isArray(i)?i:TN(t,i)});return{calculatedDuration:e,next:d=>(a.value=c(d),a.done=d>=e,a)}}const _N=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ri.update(t,!0),stop:()=>qg(t),now:()=>eh.isProcessing?eh.timestamp:hs.now()}},kN={decay:Q4,inertia:Q4,tween:nh,keyframes:nh,spring:GD},RN=e=>e/100;class Ry extends KD{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:d}=this.options;d&&d()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Ey,c=(d,h)=>this.onKeyframesResolved(d,h);this.resolver=new s(a,c,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:a,velocity:s=0}=this.options,c=Py(n)?n:kN[n]||nh;let d,h;c!==nh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&cu(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),d=Wh(RN,ZD(t[0],t[1])),t=[0,100]);const g=c({...this.options,keyframes:t});a==="mirror"&&(h=c({...this.options,keyframes:[...t].reverse(),velocity:-s})),g.calculatedDuration===null&&(g.calculatedDuration=HD(g));const{calculatedDuration:v}=g,$=v+i,y=$*(r+1)-i;return{generator:g,mirroredGenerator:h,mapPercentToKeyframes:d,calculatedDuration:v,resolvedDuration:$,totalDuration:y}}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:F}=this.options;return{done:!0,value:F[F.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:s,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:h,totalDuration:g,resolvedDuration:v}=r;if(this.startTime===null)return a.next(0);const{delay:$,repeat:y,repeatType:P,repeatDelay:T,onUpdate:R}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-g/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 D=this.currentTime-$*(this.speed>=0?1:-1),C=this.speed>=0?D<0:D>g;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=g);let _=this.currentTime,B=a;if(y){const F=Math.min(this.currentTime,g)/v;let ge=Math.floor(F),te=F%1;!te&&F>=1&&(te=1),te===1&&ge--,ge=Math.min(ge,y+1),!!(ge%2)&&(P==="reverse"?(te=1-te,T&&(te-=T/v)):P==="mirror"&&(B=s)),_=fu(0,1,te)*v}const k=C?{done:!1,value:d[0]}:B.next(_);c&&(k.value=c(k.value));let{done:L}=k;!C&&h!==null&&(L=this.speed>=0?this.currentTime>=g:this.currentTime<=0);const X=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return X&&i!==void 0&&(k.value=Uh(d,this.options,i)),R&&R(k.value),X&&this.finish(),k}get duration(){const{resolved:t}=this;return t?ds(t.calculatedDuration):0}get time(){return ds(this.currentTime)}set time(t){t=ko(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=ds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=_N,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),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 FN=new Set(["opacity","clipPath","filter","transform"]);function Fy(e){let t;return()=>(t===void 0&&(t=e()),t)}const MN={linearEasing:void 0};function ON(e,t){const n=Fy(e);return()=>{var r;return(r=MN[t])!==null&&r!==void 0?r:n()}}const rh=ON(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function JD(e){return!!(typeof e=="function"&&rh()||!e||typeof e=="string"&&(e in nv||rh())||_y(e)||Array.isArray(e)&&e.every(JD))}const vc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,nv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vc([0,.65,.55,1]),circOut:vc([.55,0,1,.45]),backIn:vc([.31,.01,.66,-.59]),backOut:vc([.33,1.53,.69,.99])};function XD(e,t){if(e)return typeof e=="function"&&rh()?zD(e,t):_y(e)?vc(e):Array.isArray(e)?e.map(n=>XD(n,t)||nv.easeOut):nv[e]}function IN(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:c="easeInOut",times:d}={}){const h={[t]:n};d&&(h.offset=d);const g=XD(c,i);return Array.isArray(g)&&(h.easing=g),e.animate(h,{delay:r,duration:i,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}function i3(e,t){e.timeline=t,e.onfinish=null}const LN=Fy(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ih=10,BN=2e4;function VN(e){return Py(e.type)||e.type==="spring"||!JD(e.ease)}function NN(e,t){const n=new Ry({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<BN;)r=n.sample(a),i.push(r.value),a+=ih;return{times:void 0,keyframes:i,duration:a-ih,ease:"linear"}}const QD={anticipate:CD,backInOut:ED,circInOut:SD};function jN(e){return e in QD}class a3 extends KD{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new jD(a,(s,c)=>this.onKeyframesResolved(s,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:a,ease:s,type:c,motionValue:d,name:h,startTime:g}=this.options;if(!(!((r=d.owner)===null||r===void 0)&&r.current))return!1;if(typeof s=="string"&&rh()&&jN(s)&&(s=QD[s]),VN(this.options)){const{onComplete:$,onUpdate:y,motionValue:P,element:T,...R}=this.options,D=NN(t,R);t=D.keyframes,t.length===1&&(t[1]=t[0]),i=D.duration,a=D.times,s=D.ease,c="keyframes"}const v=IN(d.owner.current,h,t,{...this.options,duration:i,times:a,ease:s});return v.startTime=g??this.calcStartTime(),this.pendingTimeline?(i3(v,this.pendingTimeline),this.pendingTimeline=void 0):v.onfinish=()=>{const{onComplete:$}=this.options;d.set(Uh(t,this.options,n)),$&&$(),this.cancel(),this.resolveFinishedPromise()},{animation:v,duration:i,times:a,type:c,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ds(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ds(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ko(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 gs;const{animation:r}=n;i3(r,t)}return gs}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:a,ease:s,times:c}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:g,onComplete:v,element:$,...y}=this.options,P=new Ry({...y,keyframes:r,duration:i,type:a,ease:s,times:c,isGenerator:!0}),T=ko(this.time);h.setWithVelocity(P.sample(T-ih).value,P.sample(T).value,ih)}const{onStop:d}=this.options;d&&d(),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:a,damping:s,type:c}=t;return LN()&&r&&FN.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&a!=="mirror"&&s!==0&&c!=="inertia"}}const KN=Fy(()=>window.ScrollTimeline!==void 0);class zN{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=>KN()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].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 UN({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:c,from:d,elapsed:h,...g}){return!!Object.keys(g).length}const WN=(e,t,n,r={},i,a)=>s=>{const c=vD(r,e)||{},d=c.delay||r.delay||0;let{elapsed:h=0}=r;h=h-ko(d);let g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-h,onUpdate:$=>{t.set($),c.onUpdate&&c.onUpdate($)},onComplete:()=>{s(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};UN(c)||(g={...g,...hV(e,g)}),g.duration&&(g.duration=ko(g.duration)),g.repeatDelay&&(g.repeatDelay=ko(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(v=!0)),v&&!a&&t.get()!==void 0){const $=Uh(g.keyframes,c);if($!==void 0)return Ri.update(()=>{g.onUpdate($),g.onComplete()}),new zN([])}return!a&&a3.supports(g)?new a3(g):new Ry(g)},HN=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),GN=e=>Gg(e)?e[e.length-1]||0:e;function qN(e,t){e.indexOf(t)===-1&&e.push(t)}function YN(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class e5{constructor(){this.subscriptions=[]}add(t){return qN(this.subscriptions,t),()=>YN(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 a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const o3=30,ZN=e=>!isNaN(parseFloat(e));class JN{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=hs.now();this.updatedAt!==a&&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=hs.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ZN(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&jh(!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 e5);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ri.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=hs.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>o3)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,o3);return UD(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 ah(e,t){return new JN(e,t)}function XN(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ah(n))}function QN(e,t){const n=zh(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const c=GN(a[s]);XN(e,s,c)}}const My=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ej="framerAppearId",t5="data-"+My(ej);function tj(e){return e.props[t5]}const si=e=>!!(e&&e.getVelocity);function nj(e){return!!(si(e)&&e.add)}function rj(e,t){const n=e.getValue("willChange");if(nj(n))return n.add(t)}function ij({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function n5(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:c,...d}=t;r&&(s=r);const h=[],g=i&&e.animationState&&e.animationState.getState()[i];for(const v in d){const $=e.getValue(v,(a=e.latestValues[v])!==null&&a!==void 0?a:null),y=d[v];if(y===void 0||g&&ij(g,v))continue;const P={delay:n,...vD(s||{},v)};let T=!1;if(window.MotionHandoffAnimation){const D=tj(e);if(D){const C=window.MotionHandoffAnimation(D,v,Ri);C!==null&&(P.startTime=C,T=!0)}}rj(e,v),$.start(WN(v,$,y,e.shouldReduceMotion&&gu.has(v)?{type:!1}:P,e,T));const R=$.animation;R&&h.push(R)}return c&&Promise.all(h).then(()=>{Ri.update(()=>{c&&QN(e,c)})}),h}function rv(e,t,n={}){var r;const i=zh(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const s=i?()=>Promise.all(n5(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:g=0,staggerChildren:v,staggerDirection:$}=a;return aj(e,t,g+h,v,$,n)}:()=>Promise.resolve(),{when:d}=a;if(d){const[h,g]=d==="beforeChildren"?[s,c]:[c,s];return h().then(()=>g())}else return Promise.all([s(),c(n.delay)])}function aj(e,t,n=0,r=0,i=1,a){const s=[],c=(e.variantChildren.size-1)*r,d=i===1?(h=0)=>h*r:(h=0)=>c-h*r;return Array.from(e.variantChildren).sort(oj).forEach((h,g)=>{h.notify("AnimationStart",t),s.push(rv(h,t,{...a,delay:n+d(g)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(s)}function oj(e,t){return e.sortNodePosition(t)}function sj(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>rv(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=rv(e,t,n);else{const i=typeof t=="function"?zh(e,t,n.custom):t;r=Promise.all(n5(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const uj=by.length;function r5(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?r5(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uj;n++){const r=by[n],i=e.props[r];(Oc(i)||i===!1)&&(t[r]=i)}return t}const lj=[...yy].reverse(),cj=yy.length;function fj(e){return t=>Promise.all(t.map(({animation:n,options:r})=>sj(e,n,r)))}function dj(e){let t=fj(e),n=s3(),r=!0;const i=d=>(h,g)=>{var v;const $=zh(e,g,d==="exit"?(v=e.presenceContext)===null||v===void 0?void 0:v.custom:void 0);if($){const{transition:y,transitionEnd:P,...T}=$;h={...h,...T,...P}}return h};function a(d){t=d(e)}function s(d){const{props:h}=e,g=r5(e.parent)||{},v=[],$=new Set;let y={},P=1/0;for(let R=0;R<cj;R++){const D=lj[R],C=n[D],_=h[D]!==void 0?h[D]:g[D],B=Oc(_),k=D===d?C.isActive:null;k===!1&&(P=R);let L=_===g[D]&&_!==h[D]&&B;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),C.protectedKeys={...y},!C.isActive&&k===null||!_&&!C.prevProp||Kh(_)||typeof _=="boolean")continue;const X=hj(C.prevProp,_);let F=X||D===d&&C.isActive&&!L&&B||R>P&&B,ge=!1;const te=Array.isArray(_)?_:[_];let ie=te.reduce(i(D),{});k===!1&&(ie={});const{prevResolvedValues:De={}}=C,me={...De,...ie},de=K=>{F=!0,$.has(K)&&(ge=!0,$.delete(K)),C.needsAnimating[K]=!0;const oe=e.getValue(K);oe&&(oe.liveStyle=!1)};for(const K in me){const oe=ie[K],Ce=De[K];if(y.hasOwnProperty(K))continue;let ee=!1;Gg(oe)&&Gg(Ce)?ee=!gD(oe,Ce):ee=oe!==Ce,ee?oe!=null?de(K):$.add(K):oe!==void 0&&$.has(K)?de(K):C.protectedKeys[K]=!0}C.prevProp=_,C.prevResolvedValues=ie,C.isActive&&(y={...y,...ie}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(L&&X)||ge)&&v.push(...te.map(K=>({animation:K,options:{type:D}})))}if($.size){const R={};$.forEach(D=>{const C=e.getBaseTarget(D),_=e.getValue(D);_&&(_.liveStyle=!0),R[D]=C??null}),v.push({animation:R})}let T=!!v.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(v):Promise.resolve()}function c(d,h){var g;if(n[d].isActive===h)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach($=>{var y;return(y=$.animationState)===null||y===void 0?void 0:y.setActive(d,h)}),n[d].isActive=h;const v=s(d);for(const $ in n)n[$].protectedKeys={};return v}return{animateChanges:s,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=s3(),r=!0}}}function hj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!gD(t,e):!1}function Ns(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s3(){return{animate:Ns(!0),whileInView:Ns(),whileHover:Ns(),whileTap:Ns(),whileDrag:Ns(),whileFocus:Ns(),exit:Ns()}}class Tl{constructor(t){this.isMounted=!1,this.node=t}update(){}}class pj extends Tl{constructor(t){super(t),t.animationState||(t.animationState=dj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Kh(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 mj=0;class gj extends Tl{constructor(){super(...arguments),this.id=mj++}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 vj={animation:{Feature:pj},exit:{Feature:gj}},yj={x:!1,y:!1};function bj(){return yj.y}const $j=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function i5(e){return{point:{x:e.pageX,y:e.pageY}}}function u3(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function a5(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const l3=()=>({min:0,max:0}),o5=()=>({x:l3(),y:l3()});function wj({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function xj(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 Ej(e,t){return wj(xj(e.getBoundingClientRect(),t))}const s5=S.createContext(null),Cj=S.createContext({}),Sj=S.createContext({}),Dj={},{schedule:Aj,cancel:kW}=yD(queueMicrotask,!1);function Pj(e){const t=si(e)?e.get():e;return HN(t)?t.toValue():t}function Tj(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function u5(e,t){const n=Tj(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function c3(e){return t=>{t.pointerType==="touch"||bj()||e(t)}}function _j(e,t,n={}){const[r,i,a]=u5(e,n),s=c3(c=>{const{target:d}=c,h=t(c);if(!h||!d)return;const g=c3(v=>{h(v),d.removeEventListener("pointerleave",g)});d.addEventListener("pointerleave",g,i)});return r.forEach(c=>{c.addEventListener("pointerenter",s,i)}),a}function f3(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Ri.postRender(()=>a(t,i5(t)))}class kj extends Tl{mount(){const{current:t}=this.node;t&&(this.unmount=_j(t,n=>(f3(this.node,n,"Start"),r=>f3(this.node,r,"End"))))}unmount(){}}class Rj extends Tl{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=Wh(u3(this.node.current,"focus",()=>this.onFocus()),u3(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const yc=new WeakSet;function d3(e){return t=>{t.key==="Enter"&&e(t)}}function _m(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Fj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=d3(()=>{if(yc.has(n))return;_m(n,"down");const i=d3(()=>{_m(n,"up")}),a=()=>_m(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},Mj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Oj(e){return Mj.has(e.tagName)||e.tabIndex!==-1}const l5=(e,t)=>t?e===t?!0:l5(e,t.parentElement):!1;function h3(e){return $j(e)&&!0}function Ij(e,t,n={}){const[r,i,a]=u5(e,n),s=c=>{const d=c.currentTarget;if(!h3(c)||yc.has(d))return;yc.add(d);const h=t(c),g=(y,P)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",$),!(!h3(y)||!yc.has(d))&&(yc.delete(d),h&&h(y,{success:P}))},v=y=>{g(y,n.useGlobalTarget||l5(d,y.target))},$=y=>{g(y,!1)};window.addEventListener("pointerup",v,i),window.addEventListener("pointercancel",$,i)};return r.forEach(c=>{Oj(c)||(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",s,i),c.addEventListener("focus",h=>Fj(h,i),i)}),a}function p3(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Ri.postRender(()=>a(t,i5(t)))}class Lj extends Tl{mount(){const{current:t}=this.node;t&&(this.unmount=Ij(t,n=>(p3(this.node,n,"Start"),(r,{success:i})=>p3(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const iv=new WeakMap,km=new WeakMap,Bj=e=>{const t=iv.get(e.target);t&&t(e)},Vj=e=>{e.forEach(Bj)};function Nj({root:e,...t}){const n=e||document;km.has(n)||km.set(n,{});const r=km.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Vj,{root:e,...t})),r[i]}function jj(e,t,n){const r=Nj(t);return iv.set(e,n),r.observe(e),()=>{iv.delete(e),r.unobserve(e)}}const Kj={some:0,all:1};class zj extends Tl{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:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Kj[i]},c=d=>{const{isIntersecting:h}=d;if(this.isInView===h||(this.isInView=h,a&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),$=h?g:v;$&&$(d)};return jj(this.node.current,s,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Uj(t,n))&&this.startObserver()}unmount(){}}function Uj({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Wj={inView:{Feature:zj},tap:{Feature:Lj},focus:{Feature:Rj},hover:{Feature:kj}},c5=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Gh=S.createContext({}),Oy=typeof window<"u",Hj=Oy?S.useLayoutEffect:S.useEffect,Iy=S.createContext({strict:!1});function Gj(e,t,n,r,i){var a,s;const{visualElement:c}=S.useContext(Gh),d=S.useContext(Iy),h=S.useContext(s5),g=S.useContext(c5).reducedMotion,v=S.useRef(null);r=r||d.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:c,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:g}));const $=v.current,y=S.useContext(Sj);$&&!$.projection&&i&&($.type==="html"||$.type==="svg")&&qj(v.current,n,i,y);const P=S.useRef(!1);S.useInsertionEffect(()=>{$&&P.current&&$.update(n,h)});const T=n[t5],R=S.useRef(!!T&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,T))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,T)));return Hj(()=>{$&&(P.current=!0,window.MotionIsMounted=!0,$.updateFeatures(),Aj.render($.render),R.current&&$.animationState&&$.animationState.animateChanges())}),S.useEffect(()=>{$&&(!R.current&&$.animationState&&$.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{var D;(D=window.MotionHandoffMarkAsComplete)===null||D===void 0||D.call(window,T)}),R.current=!1))}),$}function qj(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:c,layoutScroll:d,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:f5(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||c&&a5(c),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:d,layoutRoot:h})}function f5(e){if(e)return e.options.allowProjection!==!1?e.projection:f5(e.parent)}function Yj(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):a5(n)&&(n.current=r))},[t])}function qh(e){return Kh(e.animate)||by.some(t=>Oc(e[t]))}function d5(e){return!!(qh(e)||e.variants)}function Zj(e,t){if(qh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Oc(n)?n:void 0,animate:Oc(r)?r:void 0}}return e.inherit!==!1?t:{}}function Jj(e){const{initial:t,animate:n}=Zj(e,S.useContext(Gh));return S.useMemo(()=>({initial:t,animate:n}),[m3(t),m3(n)])}function m3(e){return Array.isArray(e)?e.join(" "):e}const g3={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"]},gl={};for(const e in g3)gl[e]={isEnabled:t=>g3[e].some(n=>!!t[n])};function av(e){for(const t in e)gl[t]={...gl[t],...e[t]}}const Xj=Symbol.for("motionComponentSymbol");function Qj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&av(e);function a(c,d){let h;const g={...S.useContext(c5),...c,layoutId:eK(c)},{isStatic:v}=g,$=Jj(c),y=r(c,v);if(!v&&Oy){tK(g,e);const P=nK(g);h=P.MeasureLayout,$.visualElement=Gj(i,y,g,t,P.ProjectionNode)}return Wm.jsxs(Gh.Provider,{value:$,children:[h&&$.visualElement?Wm.jsx(h,{visualElement:$.visualElement,...g}):null,n(i,c,Yj(y,$.visualElement,d),y,v,$.visualElement)]})}const s=S.forwardRef(a);return s[Xj]=i,s}function eK({layoutId:e}){const t=S.useContext(Cj).id;return t&&e!==void 0?t+"-"+e:e}function tK(e,t){const n=S.useContext(Iy).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?Dl(!1,r):cu(!1,r)}}function nK(e){const{drag:t,layout:n}=gl;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 rK=["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 Ly(e){return typeof e!="string"||e.includes("-")?!1:!!(rK.indexOf(e)>-1||/[A-Z]/u.test(e))}function h5(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const p5=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 m5(e,t,n,r){h5(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(p5.has(i)?i:My(i),t.attrs[i])}function g5(e,{layout:t,layoutId:n}){return gu.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Dj[e]||e==="opacity")}function By(e,t,n){var r;const{style:i}=e,a={};for(const s in i)(si(i[s])||t.style&&si(t.style[s])||g5(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[s]=i[s]);return a}function v5(e,t,n){const r=By(e,t,n);for(const i in e)if(si(e[i])||si(t[i])){const a=rf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function iK(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}function aK({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const s={latestValues:oK(r,i,a,e),renderState:t()};return n&&(s.mount=c=>n(r,c,s)),s}const y5=e=>(t,n)=>{const r=S.useContext(Gh),i=S.useContext(s5),a=()=>aK(e,t,r,i);return n?a():iK(a)};function oK(e,t,n,r){const i={},a=r(e,{});for(const $ in a)i[$]=Pj(a[$]);let{initial:s,animate:c}=e;const d=qh(e),h=d5(e);t&&h&&!d&&e.inherit!==!1&&(s===void 0&&(s=t.initial),c===void 0&&(c=t.animate));let g=n?n.initial===!1:!1;g=g||s===!1;const v=g?c:s;if(v&&typeof v!="boolean"&&!Kh(v)){const $=Array.isArray(v)?v:[v];for(let y=0;y<$.length;y++){const P=vy(e,$[y]);if(P){const{transitionEnd:T,transition:R,...D}=P;for(const C in D){let _=D[C];if(Array.isArray(_)){const B=g?_.length-1:0;_=_[B]}_!==null&&(i[C]=_)}for(const C in T)i[C]=T[C]}}}return i}const Vy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),b5=()=>({...Vy(),attrs:{}}),$5=(e,t)=>t&&typeof e=="number"?t.transform(e):e,sK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uK=rf.length;function lK(e,t,n){let r="",i=!0;for(let a=0;a<uK;a++){const s=rf[a],c=e[s];if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(s.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||n){const h=$5(c,Dy[s]);if(!d){i=!1;const g=sK[s]||s;r+=`${g}(${h}) `}n&&(t[s]=h)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Ny(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,c=!1;for(const d in t){const h=t[d];if(gu.has(d)){s=!0;continue}else if(TD(d)){i[d]=h;continue}else{const g=$5(h,Dy[d]);d.startsWith("origin")?(c=!0,a[d]=g):r[d]=g}}if(t.transform||(s||n?r.transform=lK(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:g=0}=a;r.transformOrigin=`${d} ${h} ${g}`}}function v3(e,t,n){return typeof e=="string"?e:Mt.transform(t+n*e)}function cK(e,t,n){const r=v3(t,e.x,e.width),i=v3(n,e.y,e.height);return`${r} ${i}`}const fK={offset:"stroke-dashoffset",array:"stroke-dasharray"},dK={offset:"strokeDashoffset",array:"strokeDasharray"};function hK(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?fK:dK;e[a.offset]=Mt.transform(-r);const s=Mt.transform(t),c=Mt.transform(n);e[a.array]=`${s} ${c}`}function jy(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:s,pathSpacing:c=1,pathOffset:d=0,...h},g,v){if(Ny(e,h,v),g){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:$,style:y,dimensions:P}=e;$.transform&&(P&&(y.transform=$.transform),delete $.transform),P&&(i!==void 0||a!==void 0||y.transform)&&(y.transformOrigin=cK(P,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&($.x=t),n!==void 0&&($.y=n),r!==void 0&&($.scale=r),s!==void 0&&hK($,s,c,d,!1)}const Ky=e=>typeof e=="string"&&e.toLowerCase()==="svg",pK={useVisualState:y5({scrapeMotionValuesFromProps:v5,createRenderState:b5,onMount:(e,t,{renderState:n,latestValues:r})=>{Ri.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ri.render(()=>{jy(n,r,Ky(t.tagName),e.transformTemplate),m5(t,n)})}})},mK={useVisualState:y5({scrapeMotionValuesFromProps:By,createRenderState:Vy})};function w5(e,t,n){for(const r in t)!si(t[r])&&!g5(r,n)&&(e[r]=t[r])}function gK({transformTemplate:e},t){return S.useMemo(()=>{const n=Vy();return Ny(n,t,e),Object.assign({},n.vars,n.style)},[t])}function vK(e,t){const n=e.style||{},r={};return w5(r,n,e),Object.assign(r,gK(e,t)),r}function yK(e,t){const n={},r=vK(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 bK=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")||bK.has(e)}let x5=e=>!oh(e);function $K(e){e&&(x5=t=>t.startsWith("on")?!oh(t):e(t))}try{$K(require("@emotion/is-prop-valid").default)}catch{}function wK(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(x5(i)||n===!0&&oh(i)||!t&&!oh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function xK(e,t,n,r){const i=S.useMemo(()=>{const a=b5();return jy(a,t,Ky(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};w5(a,e.style,e),i.style={...a,...i.style}}return i}function EK(e=!1){return(n,r,i,{latestValues:a},s)=>{const d=(Ly(n)?xK:yK)(r,a,s,n),h=wK(r,typeof n=="string",e),g=n!==S.Fragment?{...h,...d,ref:i}:{},{children:v}=r,$=S.useMemo(()=>si(v)?v.get():v,[v]);return S.createElement(n,{...g,children:$})}}function CK(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Ly(r)?pK:mK,preloadedFeatures:e,useRender:EK(i),createVisualElement:t,Component:r};return Qj(s)}}const ov={current:null},E5={current:!1};function SK(){if(E5.current=!0,!!Oy)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ov.current=e.matches;e.addListener(t),t()}else ov.current=!1}function DK(e,t,n){for(const r in t){const i=t[r],a=n[r];if(si(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&jh(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(si(a))e.addValue(r,ah(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,ah(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const y3=new WeakMap,AK=[...RD,Xr,Pl],PK=e=>AK.find(kD(e)),b3=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class TK{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ey,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 $=hs.now();this.renderScheduledAt<$&&(this.renderScheduledAt=$,Ri.render(this.render,!1,!0))};const{latestValues:d,renderState:h}=s;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=qh(n),this.isVariantNode=d5(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const $ in v){const y=v[$];d[$]!==void 0&&si(y)&&y.set(d[$],!1)}}mount(t){this.current=t,y3.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)),E5.current||SK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ov.current,process.env.NODE_ENV!=="production"&&jh(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(){y3.delete(this.current),this.projection&&this.projection.unmount(),qg(this.notifyUpdate),qg(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=gu.has(t),i=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Ri.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),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 gl){const n=gl[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 a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):o5()}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<b3.length;r++){const i=b3[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=DK(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=ah(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"&&(AD(i)||DD(i))?i=parseFloat(i):!PK(i)&&Pl.test(n)&&(i=ND(t,n)),this.setBaseTarget(t,si(i)?i.get():i)),si(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 s=vy(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!si(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new e5),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class C5 extends TK{constructor(){super(...arguments),this.KeyframeResolver=jD}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;si(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function _K(e){return window.getComputedStyle(e)}class kK extends C5{constructor(){super(...arguments),this.type="html",this.renderInstance=h5}readValueFromInstance(t,n){if(gu.has(n)){const r=Ay(n);return r&&r.default||0}else{const r=_K(t),i=(TD(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ej(t,n)}build(t,n,r){Ny(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return By(t,n,r)}}class RK extends C5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=o5}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gu.has(n)){const r=Ay(n);return r&&r.default||0}return n=p5.has(n)?n:My(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v5(t,n,r)}build(t,n,r){jy(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){m5(t,n,r,i)}mount(t){this.isSVGTag=Ky(t.tagName),super.mount(t)}}const FK=(e,t)=>Ly(e)?new RK(t):new kK(t,{allowProjection:e!==S.Fragment}),MK=CK(),OK=uV(MK);function IK({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!Rm(t)),i=S.useRef(void 0);if(!Rm(t)){const{renderer:a,...s}=t;i.current=a,av(s)}return S.useEffect(()=>{Rm(t)&&t().then(({renderer:a,...s})=>{av(s),i.current=a,r(!0)})},[]),Wm.jsx(Iy.Provider,{value:{renderer:i.current,strict:n},children:e})}function Rm(e){return typeof e=="function"}const LK={renderer:FK,...vj,...Wj};function S5(e){return t=>typeof t===e}var BK=S5("function"),VK=e=>e===null,$3=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",w3=e=>!NK(e)&&!VK(e)&&(BK(e)||typeof e=="object"),NK=S5("undefined");function jK(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!ui(e[r],t[r]))return!1;return!0}function KK(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 zK(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(!ui(n[1],t.get(n[0])))return!1;return!0}function UK(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 ui(e,t){if(e===t)return!0;if(e&&w3(e)&&t&&w3(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return jK(e,t);if(e instanceof Map&&t instanceof Map)return zK(e,t);if(e instanceof Set&&t instanceof Set)return UK(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return KK(e,t);if($3(e)&&$3(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 a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!ui(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var WK=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],HK=["bigint","boolean","null","number","string","symbol","undefined"];function Yh(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(GK(t))return t}function Ca(e){return t=>Yh(t)===e}function GK(e){return WK.includes(e)}function _l(e){return t=>typeof t===e}function qK(e){return HK.includes(e)}var YK=["innerHTML","ownerDocument","style","attributes","nodeValue"];function ut(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(ut.array(e))return"Array";if(ut.plainFunction(e))return"Function";const t=Yh(e);return t||"Object"}ut.array=Array.isArray;ut.arrayOf=(e,t)=>!ut.array(e)&&!ut.function(t)?!1:e.every(n=>t(n));ut.asyncGeneratorFunction=e=>Yh(e)==="AsyncGeneratorFunction";ut.asyncFunction=Ca("AsyncFunction");ut.bigint=_l("bigint");ut.boolean=e=>e===!0||e===!1;ut.date=Ca("Date");ut.defined=e=>!ut.undefined(e);ut.domElement=e=>ut.object(e)&&!ut.plainObject(e)&&e.nodeType===1&&ut.string(e.nodeName)&&YK.every(t=>t in e);ut.empty=e=>ut.string(e)&&e.length===0||ut.array(e)&&e.length===0||ut.object(e)&&!ut.map(e)&&!ut.set(e)&&Object.keys(e).length===0||ut.set(e)&&e.size===0||ut.map(e)&&e.size===0;ut.error=Ca("Error");ut.function=_l("function");ut.generator=e=>ut.iterable(e)&&ut.function(e.next)&&ut.function(e.throw);ut.generatorFunction=Ca("GeneratorFunction");ut.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;ut.iterable=e=>!ut.nullOrUndefined(e)&&ut.function(e[Symbol.iterator]);ut.map=Ca("Map");ut.nan=e=>Number.isNaN(e);ut.null=e=>e===null;ut.nullOrUndefined=e=>ut.null(e)||ut.undefined(e);ut.number=e=>_l("number")(e)&&!ut.nan(e);ut.numericString=e=>ut.string(e)&&e.length>0&&!Number.isNaN(Number(e));ut.object=e=>!ut.nullOrUndefined(e)&&(ut.function(e)||typeof e=="object");ut.oneOf=(e,t)=>ut.array(e)?e.indexOf(t)>-1:!1;ut.plainFunction=Ca("Function");ut.plainObject=e=>{if(Yh(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};ut.primitive=e=>ut.null(e)||qK(typeof e);ut.promise=Ca("Promise");ut.propertyOf=(e,t,n)=>{if(!ut.object(e)||!t)return!1;const r=e[t];return ut.function(n)?n(r):ut.defined(r)};ut.regexp=Ca("RegExp");ut.set=Ca("Set");ut.string=_l("string");ut.symbol=_l("symbol");ut.undefined=_l("undefined");ut.weakMap=Ca("WeakMap");ut.weakSet=Ca("WeakSet");var ht=ut;function ZK(...e){return e.every(t=>ht.string(t)||ht.array(t)||ht.plainObject(t))}function JK(e,t,n){return D5(e,t)?[e,t].every(ht.array)?!e.some(D3(n))&&t.some(D3(n)):[e,t].every(ht.plainObject)?!Object.entries(e).some(S3(n))&&Object.entries(t).some(S3(n)):t===n:!1}function x3(e,t,n){const{actual:r,key:i,previous:a,type:s}=n,c=Ha(e,i),d=Ha(t,i);let h=[c,d].every(ht.number)&&(s==="increased"?c<d:c>d);return ht.undefined(r)||(h=h&&d===r),ht.undefined(a)||(h=h&&c===a),h}function E3(e,t,n){const{key:r,type:i,value:a}=n,s=Ha(e,r),c=Ha(t,r),d=i==="added"?s:c,h=i==="added"?c:s;if(!ht.nullOrUndefined(a)){if(ht.defined(d)){if(ht.array(d)||ht.plainObject(d))return JK(d,h,a)}else return ui(h,a);return!1}return[s,c].every(ht.array)?!h.every(zy(d)):[s,c].every(ht.plainObject)?XK(Object.keys(d),Object.keys(h)):![s,c].every(g=>ht.primitive(g)&&ht.defined(g))&&(i==="added"?!ht.defined(s)&&ht.defined(c):ht.defined(s)&&!ht.defined(c))}function C3(e,t,{key:n}={}){let r=Ha(e,n),i=Ha(t,n);if(!D5(r,i))throw new TypeError("Inputs have different types");if(!ZK(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ht.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function S3(e){return([t,n])=>ht.array(e)?ui(e,n)||e.some(r=>ui(r,n)||ht.array(n)&&zy(n)(r)):ht.plainObject(e)&&e[t]?!!e[t]&&ui(e[t],n):ui(e,n)}function XK(e,t){return t.some(n=>!e.includes(n))}function D3(e){return t=>ht.array(e)?e.some(n=>ui(n,t)||ht.array(t)&&zy(t)(n)):ui(e,t)}function ac(e,t){return ht.array(e)?e.some(n=>ui(n,t)):ui(e,t)}function zy(e){return t=>e.some(n=>ui(n,t))}function D5(...e){return e.every(ht.array)||e.every(ht.number)||e.every(ht.plainObject)||e.every(ht.string)}function Ha(e,t){return ht.plainObject(e)||ht.array(e)?ht.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ht.number(t)?e[t]:e:e}function sh(e,t){if([e,t].some(ht.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(g=>ht.plainObject(g)||ht.array(g)))throw new Error("Expected plain objects or array");return{added:(g,v)=>{try{return E3(e,t,{key:g,type:"added",value:v})}catch{return!1}},changed:(g,v,$)=>{try{const y=Ha(e,g),P=Ha(t,g),T=ht.defined(v),R=ht.defined($);if(T||R){const D=R?ac($,y):!ac(v,y),C=ac(v,P);return D&&C}return[y,P].every(ht.array)||[y,P].every(ht.plainObject)?!ui(y,P):y!==P}catch{return!1}},changedFrom:(g,v,$)=>{if(!ht.defined(g))return!1;try{const y=Ha(e,g),P=Ha(t,g),T=ht.defined($);return ac(v,y)&&(T?ac($,P):!T)}catch{return!1}},decreased:(g,v,$)=>{if(!ht.defined(g))return!1;try{return x3(e,t,{key:g,actual:v,previous:$,type:"decreased"})}catch{return!1}},emptied:g=>{try{const[v,$]=C3(e,t,{key:g});return!!v.length&&!$.length}catch{return!1}},filled:g=>{try{const[v,$]=C3(e,t,{key:g});return!v.length&&!!$.length}catch{return!1}},increased:(g,v,$)=>{if(!ht.defined(g))return!1;try{return x3(e,t,{key:g,actual:v,previous:$,type:"increased"})}catch{return!1}},removed:(g,v)=>{try{return E3(e,t,{key:g,type:"removed",value:v})}catch{return!1}}}}var Fm,A3;function QK(){if(A3)return Fm;A3=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;Fm={left:i("scrollLeft"),top:i("scrollTop")};function i(c){return function(h,g,v,$){v=v||{},typeof v=="function"&&($=v,v={}),typeof $!="function"&&($=s);var y=r(),P=h[c],T=v.ease||a,R=isNaN(v.duration)?350:+v.duration,D=!1;return P===g?$(e,h[c]):requestAnimationFrame(_),C;function C(){D=!0}function _(B){if(D)return $(t,h[c]);var k=r(),L=n(1,(k-y)/R),X=T(L);h[c]=X*(g-P)+P,L<1?requestAnimationFrame(_):requestAnimationFrame(function(){$(null,h[c])})}}}function a(c){return .5*(1-Math.cos(Math.PI*c))}function s(){}return Fm}var ez=QK();const tz=bs(ez);var Sd={exports:{}},nz=Sd.exports,P3;function rz(){return P3||(P3=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(nz,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})}(Sd)),Sd.exports}var iz=rz();const A5=bs(iz);var Mm,T3;function az(){if(T3)return Mm;T3=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,Mm=n,Mm}var oz=az();const _3=bs(oz);var Om,k3;function sz(){if(k3)return Om;k3=1;var e=function(C){return t(C)&&!n(C)};function t(D){return!!D&&typeof D=="object"}function n(D){var C=Object.prototype.toString.call(D);return C==="[object RegExp]"||C==="[object Date]"||a(D)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a(D){return D.$$typeof===i}function s(D){return Array.isArray(D)?[]:{}}function c(D,C){return C.clone!==!1&&C.isMergeableObject(D)?T(s(D),D,C):D}function d(D,C,_){return D.concat(C).map(function(B){return c(B,_)})}function h(D,C){if(!C.customMerge)return T;var _=C.customMerge(D);return typeof _=="function"?_:T}function g(D){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(D).filter(function(C){return Object.propertyIsEnumerable.call(D,C)}):[]}function v(D){return Object.keys(D).concat(g(D))}function $(D,C){try{return C in D}catch{return!1}}function y(D,C){return $(D,C)&&!(Object.hasOwnProperty.call(D,C)&&Object.propertyIsEnumerable.call(D,C))}function P(D,C,_){var B={};return _.isMergeableObject(D)&&v(D).forEach(function(k){B[k]=c(D[k],_)}),v(C).forEach(function(k){y(D,k)||($(D,k)&&_.isMergeableObject(C[k])?B[k]=h(k,_)(D[k],C[k],_):B[k]=c(C[k],_))}),B}function T(D,C,_){_=_||{},_.arrayMerge=_.arrayMerge||d,_.isMergeableObject=_.isMergeableObject||e,_.cloneUnlessOtherwiseSpecified=c;var B=Array.isArray(C),k=Array.isArray(D),L=B===k;return L?B?_.arrayMerge(D,C,_):P(D,C,_):c(C,_)}T.all=function(C,_){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(B,k){return T(B,k,_)},{})};var R=T;return Om=R,Om}var uz=sz();const va=bs(uz);var ud={exports:{}},ld={exports:{}},vn={};/** @license React v16.13.1
|
|
166
|
+
* react-is.production.min.js
|
|
167
|
+
*
|
|
168
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the MIT license found in the
|
|
171
|
+
* LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/var R3;function lz(){if(R3)return vn;R3=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,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,$=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(k){if(typeof k=="object"&&k!==null){var L=k.$$typeof;switch(L){case t:switch(k=k.type,k){case d:case h:case r:case a:case i:case v:return k;default:switch(k=k&&k.$$typeof,k){case c:case g:case P:case y:case s:return k;default:return L}}case n:return L}}}function B(k){return _(k)===h}return vn.AsyncMode=d,vn.ConcurrentMode=h,vn.ContextConsumer=c,vn.ContextProvider=s,vn.Element=t,vn.ForwardRef=g,vn.Fragment=r,vn.Lazy=P,vn.Memo=y,vn.Portal=n,vn.Profiler=a,vn.StrictMode=i,vn.Suspense=v,vn.isAsyncMode=function(k){return B(k)||_(k)===d},vn.isConcurrentMode=B,vn.isContextConsumer=function(k){return _(k)===c},vn.isContextProvider=function(k){return _(k)===s},vn.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},vn.isForwardRef=function(k){return _(k)===g},vn.isFragment=function(k){return _(k)===r},vn.isLazy=function(k){return _(k)===P},vn.isMemo=function(k){return _(k)===y},vn.isPortal=function(k){return _(k)===n},vn.isProfiler=function(k){return _(k)===a},vn.isStrictMode=function(k){return _(k)===i},vn.isSuspense=function(k){return _(k)===v},vn.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===h||k===a||k===i||k===v||k===$||typeof k=="object"&&k!==null&&(k.$$typeof===P||k.$$typeof===y||k.$$typeof===s||k.$$typeof===c||k.$$typeof===g||k.$$typeof===R||k.$$typeof===D||k.$$typeof===C||k.$$typeof===T)},vn.typeOf=_,vn}var yn={};/** @license React v16.13.1
|
|
173
|
+
* react-is.development.js
|
|
174
|
+
*
|
|
175
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the MIT license found in the
|
|
178
|
+
* LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/var F3;function cz(){return F3||(F3=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,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,$=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,P=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function _(Oe){return typeof Oe=="string"||typeof Oe=="function"||Oe===r||Oe===h||Oe===a||Oe===i||Oe===v||Oe===$||typeof Oe=="object"&&Oe!==null&&(Oe.$$typeof===P||Oe.$$typeof===y||Oe.$$typeof===s||Oe.$$typeof===c||Oe.$$typeof===g||Oe.$$typeof===R||Oe.$$typeof===D||Oe.$$typeof===C||Oe.$$typeof===T)}function B(Oe){if(typeof Oe=="object"&&Oe!==null){var et=Oe.$$typeof;switch(et){case t:var wt=Oe.type;switch(wt){case d:case h:case r:case a:case i:case v:return wt;default:var Lt=wt&&wt.$$typeof;switch(Lt){case c:case g:case P:case y:case s:return Lt;default:return et}}case n:return et}}}var k=d,L=h,X=c,F=s,ge=t,te=g,ie=r,De=P,me=y,de=n,ne=a,re=i,K=v,oe=!1;function Ce(Oe){return oe||(oe=!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.")),ee(Oe)||B(Oe)===d}function ee(Oe){return B(Oe)===h}function pe(Oe){return B(Oe)===c}function Pe(Oe){return B(Oe)===s}function Te(Oe){return typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===t}function Ve(Oe){return B(Oe)===g}function Se(Oe){return B(Oe)===r}function Je(Oe){return B(Oe)===P}function Ge(Oe){return B(Oe)===y}function xe(Oe){return B(Oe)===n}function Be(Oe){return B(Oe)===a}function qe(Oe){return B(Oe)===i}function Ke(Oe){return B(Oe)===v}yn.AsyncMode=k,yn.ConcurrentMode=L,yn.ContextConsumer=X,yn.ContextProvider=F,yn.Element=ge,yn.ForwardRef=te,yn.Fragment=ie,yn.Lazy=De,yn.Memo=me,yn.Portal=de,yn.Profiler=ne,yn.StrictMode=re,yn.Suspense=K,yn.isAsyncMode=Ce,yn.isConcurrentMode=ee,yn.isContextConsumer=pe,yn.isContextProvider=Pe,yn.isElement=Te,yn.isForwardRef=Ve,yn.isFragment=Se,yn.isLazy=Je,yn.isMemo=Ge,yn.isPortal=xe,yn.isProfiler=Be,yn.isStrictMode=qe,yn.isSuspense=Ke,yn.isValidElementType=_,yn.typeOf=B}()),yn}var M3;function P5(){return M3||(M3=1,process.env.NODE_ENV==="production"?ld.exports=lz():ld.exports=cz()),ld.exports}/*
|
|
180
|
+
object-assign
|
|
181
|
+
(c) Sindre Sorhus
|
|
182
|
+
@license MIT
|
|
183
|
+
*/var Im,O3;function fz(){if(O3)return Im;O3=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(s).map(function(g){return s[g]});if(d.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(g){h[g]=g}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Im=i()?Object.assign:function(a,s){for(var c,d=r(a),h,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var v in c)t.call(c,v)&&(d[v]=c[v]);if(e){h=e(c);for(var $=0;$<h.length;$++)n.call(c,h[$])&&(d[h[$]]=c[h[$]])}}return d},Im}var Lm,I3;function Uy(){if(I3)return Lm;I3=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lm=e,Lm}var Bm,L3;function T5(){return L3||(L3=1,Bm=Function.call.bind(Object.prototype.hasOwnProperty)),Bm}var Vm,B3;function dz(){if(B3)return Vm;B3=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Uy(),n={},r=T5();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,c,d,h){if(process.env.NODE_ENV!=="production"){for(var g in a)if(r(a,g)){var v;try{if(typeof a[g]!="function"){var $=Error((d||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}v=a[g](s,g,d,c,null,t)}catch(P){v=P}if(v&&!(v instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof v+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),v instanceof Error&&!(v.message in n)){n[v.message]=!0;var y=h?h():"";e("Failed "+c+" type: "+v.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Vm=i,Vm}var Nm,V3;function hz(){if(V3)return Nm;V3=1;var e=P5(),t=fz(),n=Uy(),r=T5(),i=dz(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function s(){return null}return Nm=function(c,d){var h=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function v(ee){var pe=ee&&(h&&ee[h]||ee[g]);if(typeof pe=="function")return pe}var $="<<anonymous>>",y={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:C(),arrayOf:_,element:B(),elementType:k(),instanceOf:L,node:te(),objectOf:F,oneOf:X,oneOfType:ge,shape:De,exact:me};function P(ee,pe){return ee===pe?ee!==0||1/ee===1/pe:ee!==ee&&pe!==pe}function T(ee,pe){this.message=ee,this.data=pe&&typeof pe=="object"?pe:{},this.stack=""}T.prototype=Error.prototype;function R(ee){if(process.env.NODE_ENV!=="production")var pe={},Pe=0;function Te(Se,Je,Ge,xe,Be,qe,Ke){if(xe=xe||$,qe=qe||Ge,Ke!==n){if(d){var Oe=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 Oe.name="Invariant Violation",Oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var et=xe+":"+Ge;!pe[et]&&Pe<3&&(a("You are manually calling a React.PropTypes validation function for the `"+qe+"` prop on `"+xe+"`. 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."),pe[et]=!0,Pe++)}}return Je[Ge]==null?Se?Je[Ge]===null?new T("The "+Be+" `"+qe+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new T("The "+Be+" `"+qe+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:ee(Je,Ge,xe,Be,qe)}var Ve=Te.bind(null,!1);return Ve.isRequired=Te.bind(null,!0),Ve}function D(ee){function pe(Pe,Te,Ve,Se,Je,Ge){var xe=Pe[Te],Be=re(xe);if(Be!==ee){var qe=K(xe);return new T("Invalid "+Se+" `"+Je+"` of type "+("`"+qe+"` supplied to `"+Ve+"`, expected ")+("`"+ee+"`."),{expectedType:ee})}return null}return R(pe)}function C(){return R(s)}function _(ee){function pe(Pe,Te,Ve,Se,Je){if(typeof ee!="function")return new T("Property `"+Je+"` of component `"+Ve+"` has invalid PropType notation inside arrayOf.");var Ge=Pe[Te];if(!Array.isArray(Ge)){var xe=re(Ge);return new T("Invalid "+Se+" `"+Je+"` of type "+("`"+xe+"` supplied to `"+Ve+"`, expected an array."))}for(var Be=0;Be<Ge.length;Be++){var qe=ee(Ge,Be,Ve,Se,Je+"["+Be+"]",n);if(qe instanceof Error)return qe}return null}return R(pe)}function B(){function ee(pe,Pe,Te,Ve,Se){var Je=pe[Pe];if(!c(Je)){var Ge=re(Je);return new T("Invalid "+Ve+" `"+Se+"` of type "+("`"+Ge+"` supplied to `"+Te+"`, expected a single ReactElement."))}return null}return R(ee)}function k(){function ee(pe,Pe,Te,Ve,Se){var Je=pe[Pe];if(!e.isValidElementType(Je)){var Ge=re(Je);return new T("Invalid "+Ve+" `"+Se+"` of type "+("`"+Ge+"` supplied to `"+Te+"`, expected a single ReactElement type."))}return null}return R(ee)}function L(ee){function pe(Pe,Te,Ve,Se,Je){if(!(Pe[Te]instanceof ee)){var Ge=ee.name||$,xe=Ce(Pe[Te]);return new T("Invalid "+Se+" `"+Je+"` of type "+("`"+xe+"` supplied to `"+Ve+"`, expected ")+("instance of `"+Ge+"`."))}return null}return R(pe)}function X(ee){if(!Array.isArray(ee))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function pe(Pe,Te,Ve,Se,Je){for(var Ge=Pe[Te],xe=0;xe<ee.length;xe++)if(P(Ge,ee[xe]))return null;var Be=JSON.stringify(ee,function(Ke,Oe){var et=K(Oe);return et==="symbol"?String(Oe):Oe});return new T("Invalid "+Se+" `"+Je+"` of value `"+String(Ge)+"` "+("supplied to `"+Ve+"`, expected one of "+Be+"."))}return R(pe)}function F(ee){function pe(Pe,Te,Ve,Se,Je){if(typeof ee!="function")return new T("Property `"+Je+"` of component `"+Ve+"` has invalid PropType notation inside objectOf.");var Ge=Pe[Te],xe=re(Ge);if(xe!=="object")return new T("Invalid "+Se+" `"+Je+"` of type "+("`"+xe+"` supplied to `"+Ve+"`, expected an object."));for(var Be in Ge)if(r(Ge,Be)){var qe=ee(Ge,Be,Ve,Se,Je+"."+Be,n);if(qe instanceof Error)return qe}return null}return R(pe)}function ge(ee){if(!Array.isArray(ee))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var pe=0;pe<ee.length;pe++){var Pe=ee[pe];if(typeof Pe!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+oe(Pe)+" at index "+pe+"."),s}function Te(Ve,Se,Je,Ge,xe){for(var Be=[],qe=0;qe<ee.length;qe++){var Ke=ee[qe],Oe=Ke(Ve,Se,Je,Ge,xe,n);if(Oe==null)return null;Oe.data&&r(Oe.data,"expectedType")&&Be.push(Oe.data.expectedType)}var et=Be.length>0?", expected one of type ["+Be.join(", ")+"]":"";return new T("Invalid "+Ge+" `"+xe+"` supplied to "+("`"+Je+"`"+et+"."))}return R(Te)}function te(){function ee(pe,Pe,Te,Ve,Se){return de(pe[Pe])?null:new T("Invalid "+Ve+" `"+Se+"` supplied to "+("`"+Te+"`, expected a ReactNode."))}return R(ee)}function ie(ee,pe,Pe,Te,Ve){return new T((ee||"React class")+": "+pe+" type `"+Pe+"."+Te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ve+"`.")}function De(ee){function pe(Pe,Te,Ve,Se,Je){var Ge=Pe[Te],xe=re(Ge);if(xe!=="object")return new T("Invalid "+Se+" `"+Je+"` of type `"+xe+"` "+("supplied to `"+Ve+"`, expected `object`."));for(var Be in ee){var qe=ee[Be];if(typeof qe!="function")return ie(Ve,Se,Je,Be,K(qe));var Ke=qe(Ge,Be,Ve,Se,Je+"."+Be,n);if(Ke)return Ke}return null}return R(pe)}function me(ee){function pe(Pe,Te,Ve,Se,Je){var Ge=Pe[Te],xe=re(Ge);if(xe!=="object")return new T("Invalid "+Se+" `"+Je+"` of type `"+xe+"` "+("supplied to `"+Ve+"`, expected `object`."));var Be=t({},Pe[Te],ee);for(var qe in Be){var Ke=ee[qe];if(r(ee,qe)&&typeof Ke!="function")return ie(Ve,Se,Je,qe,K(Ke));if(!Ke)return new T("Invalid "+Se+" `"+Je+"` key `"+qe+"` supplied to `"+Ve+"`.\nBad object: "+JSON.stringify(Pe[Te],null," ")+`
|
|
184
|
+
Valid keys: `+JSON.stringify(Object.keys(ee),null," "));var Oe=Ke(Ge,qe,Ve,Se,Je+"."+qe,n);if(Oe)return Oe}return null}return R(pe)}function de(ee){switch(typeof ee){case"number":case"string":case"undefined":return!0;case"boolean":return!ee;case"object":if(Array.isArray(ee))return ee.every(de);if(ee===null||c(ee))return!0;var pe=v(ee);if(pe){var Pe=pe.call(ee),Te;if(pe!==ee.entries){for(;!(Te=Pe.next()).done;)if(!de(Te.value))return!1}else for(;!(Te=Pe.next()).done;){var Ve=Te.value;if(Ve&&!de(Ve[1]))return!1}}else return!1;return!0;default:return!1}}function ne(ee,pe){return ee==="symbol"?!0:pe?pe["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&pe instanceof Symbol:!1}function re(ee){var pe=typeof ee;return Array.isArray(ee)?"array":ee instanceof RegExp?"object":ne(pe,ee)?"symbol":pe}function K(ee){if(typeof ee>"u"||ee===null)return""+ee;var pe=re(ee);if(pe==="object"){if(ee instanceof Date)return"date";if(ee instanceof RegExp)return"regexp"}return pe}function oe(ee){var pe=K(ee);switch(pe){case"array":case"object":return"an "+pe;case"boolean":case"date":case"regexp":return"a "+pe;default:return pe}}function Ce(ee){return!ee.constructor||!ee.constructor.name?$:ee.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Nm}var jm,N3;function pz(){if(N3)return jm;N3=1;var e=Uy();function t(){}function n(){}return n.resetWarningCache=t,jm=function(){function r(s,c,d,h,g,v){if(v!==e){var $=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 $.name="Invariant Violation",$}}r.isRequired=r;function i(){return r}var a={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 a.PropTypes=a,a},jm}var j3;function mz(){if(j3)return ud.exports;if(j3=1,process.env.NODE_ENV!=="production"){var e=P5(),t=!0;ud.exports=hz()(e.isElement,t)}else ud.exports=pz()();return ud.exports}var gz=mz();const nt=bs(gz);/**!
|
|
185
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
186
|
+
* @version 1.16.1
|
|
187
|
+
* @license
|
|
188
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
189
|
+
*
|
|
190
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
191
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
192
|
+
* in the Software without restriction, including without limitation the rights
|
|
193
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
194
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
195
|
+
* furnished to do so, subject to the following conditions:
|
|
196
|
+
*
|
|
197
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
198
|
+
* copies or substantial portions of the Software.
|
|
199
|
+
*
|
|
200
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
201
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
202
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
203
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
204
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
205
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
206
|
+
* SOFTWARE.
|
|
207
|
+
*/var sf=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",vz=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(sf&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function yz(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function bz(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},vz))}}var $z=sf&&window.Promise,wz=$z?yz:bz;function _5(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function vu(e,t){if(e.nodeType!==1)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}function Wy(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function uf(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=vu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:uf(Wy(e))}function k5(e){return e&&e.referenceNode?e.referenceNode:e}var K3=sf&&!!(window.MSInputMethodContext&&document.documentMode),z3=sf&&/MSIE 10/.test(navigator.userAgent);function kl(e){return e===11?K3:e===10?z3:K3||z3}function vl(e){if(!e)return document.documentElement;for(var t=kl(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&&vu(n,"position")==="static"?vl(n):n}function xz(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||vl(e.firstElementChild)===e}function sv(e){return e.parentNode!==null?sv(e.parentNode):e}function uh(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,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var s=a.commonAncestorContainer;if(e!==s&&t!==s||r.contains(i))return xz(s)?s:vl(s);var c=sv(e);return c.host?uh(c.host,t):uh(e,sv(t).host)}function yl(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,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function Ez(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=yl(t,"top"),i=yl(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function U3(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 W3(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],kl(10)?parseInt(n["offset"+e])+parseInt(r["margin"+(e==="Height"?"Top":"Left")])+parseInt(r["margin"+(e==="Height"?"Bottom":"Right")]):0)}function R5(e){var t=e.body,n=e.documentElement,r=kl(10)&&getComputedStyle(n);return{height:W3("Height",t,n,r),width:W3("Width",t,n,r)}}var Cz=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Sz=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}}(),bl=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Ji=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 vs(e){return Ji({},e,{right:e.left+e.width,bottom:e.top+e.height})}function uv(e){var t={};try{if(kl(10)){t=e.getBoundingClientRect();var n=yl(e,"top"),r=yl(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},a=e.nodeName==="HTML"?R5(e.ownerDocument):{},s=a.width||e.clientWidth||i.width,c=a.height||e.clientHeight||i.height,d=e.offsetWidth-s,h=e.offsetHeight-c;if(d||h){var g=vu(e);d-=U3(g,"x"),h-=U3(g,"y"),i.width-=d,i.height-=h}return vs(i)}function Hy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=kl(10),i=t.nodeName==="HTML",a=uv(e),s=uv(t),c=uf(e),d=vu(t),h=parseFloat(d.borderTopWidth),g=parseFloat(d.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var v=vs({top:a.top-s.top-h,left:a.left-s.left-g,width:a.width,height:a.height});if(v.marginTop=0,v.marginLeft=0,!r&&i){var $=parseFloat(d.marginTop),y=parseFloat(d.marginLeft);v.top-=h-$,v.bottom-=h-$,v.left-=g-y,v.right-=g-y,v.marginTop=$,v.marginLeft=y}return(r&&!n?t.contains(c):t===c&&c.nodeName!=="BODY")&&(v=Ez(v,t)),v}function Dz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.ownerDocument.documentElement,r=Hy(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:yl(n),c=t?0:yl(n,"left"),d={top:s-r.top+r.marginTop,left:c-r.left+r.marginLeft,width:i,height:a};return vs(d)}function F5(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(vu(e,"position")==="fixed")return!0;var n=Wy(e);return n?F5(n):!1}function M5(e){if(!e||!e.parentElement||kl())return document.documentElement;for(var t=e.parentElement;t&&vu(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function Gy(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},s=i?M5(e):uh(e,k5(t));if(r==="viewport")a=Dz(s,i);else{var c=void 0;r==="scrollParent"?(c=uf(Wy(t)),c.nodeName==="BODY"&&(c=e.ownerDocument.documentElement)):r==="window"?c=e.ownerDocument.documentElement:c=r;var d=Hy(c,s,i);if(c.nodeName==="HTML"&&!F5(s)){var h=R5(e.ownerDocument),g=h.height,v=h.width;a.top+=d.top-d.marginTop,a.bottom=g+d.top,a.left+=d.left-d.marginLeft,a.right=v+d.left}else a=d}n=n||0;var $=typeof n=="number";return a.left+=$?n:n.left||0,a.top+=$?n:n.top||0,a.right-=$?n:n.right||0,a.bottom-=$?n:n.bottom||0,a}function Az(e){var t=e.width,n=e.height;return t*n}function O5(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var s=Gy(n,r,a,i),c={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},d=Object.keys(c).map(function($){return Ji({key:$},c[$],{area:Az(c[$])})}).sort(function($,y){return y.area-$.area}),h=d.filter(function($){var y=$.width,P=$.height;return y>=n.clientWidth&&P>=n.clientHeight}),g=h.length>0?h[0].key:d[0].key,v=e.split("-")[1];return g+(v?"-"+v:"")}function I5(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=r?M5(t):uh(t,k5(n));return Hy(n,i,r)}function L5(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),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function lh(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 B5(e,t,n){n=n.split("-")[0];var r=L5(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,s=a?"top":"left",c=a?"left":"top",d=a?"height":"width",h=a?"width":"height";return i[s]=t[s]+t[d]/2-r[d]/2,n===c?i[c]=t[c]-r[h]:i[c]=t[lh(c)],i}function lf(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Pz(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===n});var r=lf(e,function(i){return i[t]===n});return e.indexOf(r)}function V5(e,t,n){var r=n===void 0?e:e.slice(0,Pz(e,"name",n));return r.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&_5(a)&&(t.offsets.popper=vs(t.offsets.popper),t.offsets.reference=vs(t.offsets.reference),t=a(t,i))}),t}function Tz(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=I5(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O5(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=B5(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=V5(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function N5(e,t){return e.some(function(n){var r=n.name,i=n.enabled;return i&&r===t})}function qy(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],a=i?""+i+n:e;if(typeof document.body.style[a]<"u")return a}return null}function _z(){return this.state.isDestroyed=!0,N5(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[qy("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j5(e){var t=e.ownerDocument;return t?t.defaultView:window}function K5(e,t,n,r){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||K5(uf(a.parentNode),t,n,r),r.push(a)}function kz(e,t,n,r){n.updateBound=r,j5(e).addEventListener("resize",n.updateBound,{passive:!0});var i=uf(e);return K5(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Rz(){this.state.eventsEnabled||(this.state=kz(this.reference,this.options,this.state,this.scheduleUpdate))}function Fz(e,t){return j5(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 Mz(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Fz(this.reference,this.state))}function Yy(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function lv(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&Yy(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Oz(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function Iz(e){return lv(e.instance.popper,e.styles),Oz(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&lv(e.arrowElement,e.arrowStyles),e}function Lz(e,t,n,r,i){var a=I5(i,t,e,n.positionFixed),s=O5(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),lv(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Bz(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,s=Math.floor,c=function(D){return D},d=a(i.width),h=a(r.width),g=["left","right"].indexOf(e.placement)!==-1,v=e.placement.indexOf("-")!==-1,$=d%2===h%2,y=d%2===1&&h%2===1,P=t?g||v||$?a:s:c,T=t?a:c;return{left:P(y&&!v&&t?r.left-1:r.left),top:T(r.top),bottom:T(r.bottom),right:P(r.right)}}var Vz=sf&&/Firefox/i.test(navigator.userAgent);function Nz(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=lf(e.instance.modifiers,function(_){return _.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=a!==void 0?a:t.gpuAcceleration,c=vl(e.instance.popper),d=uv(c),h={position:i.position},g=Bz(e,window.devicePixelRatio<2||!Vz),v=n==="bottom"?"top":"bottom",$=r==="right"?"left":"right",y=qy("transform"),P=void 0,T=void 0;if(v==="bottom"?c.nodeName==="HTML"?T=-c.clientHeight+g.bottom:T=-d.height+g.bottom:T=g.top,$==="right"?c.nodeName==="HTML"?P=-c.clientWidth+g.right:P=-d.width+g.right:P=g.left,s&&y)h[y]="translate3d("+P+"px, "+T+"px, 0)",h[v]=0,h[$]=0,h.willChange="transform";else{var R=v==="bottom"?-1:1,D=$==="right"?-1:1;h[v]=T*R,h[$]=P*D,h.willChange=v+", "+$}var C={"x-placement":e.placement};return e.attributes=Ji({},C,e.attributes),e.styles=Ji({},h,e.styles),e.arrowStyles=Ji({},e.offsets.arrow,e.arrowStyles),e}function z5(e,t,n){var r=lf(e,function(c){var d=c.name;return d===t}),i=!!r&&e.some(function(c){return c.name===n&&c.enabled&&c.order<r.order});if(!i){var a="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function jz(e,t){var n;if(!z5(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],a=e.offsets,s=a.popper,c=a.reference,d=["left","right"].indexOf(i)!==-1,h=d?"height":"width",g=d?"Top":"Left",v=g.toLowerCase(),$=d?"left":"top",y=d?"bottom":"right",P=L5(r)[h];c[y]-P<s[v]&&(e.offsets.popper[v]-=s[v]-(c[y]-P)),c[v]+P>s[y]&&(e.offsets.popper[v]+=c[v]+P-s[y]),e.offsets.popper=vs(e.offsets.popper);var T=c[v]+c[h]/2-P/2,R=vu(e.instance.popper),D=parseFloat(R["margin"+g]),C=parseFloat(R["border"+g+"Width"]),_=T-e.offsets.popper[v]-D-C;return _=Math.max(Math.min(s[h]-P,_),0),e.arrowElement=r,e.offsets.arrow=(n={},bl(n,v,Math.round(_)),bl(n,$,""),n),e}function Kz(e){return e==="end"?"start":e==="start"?"end":e}var U5=["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"],Km=U5.slice(3);function H3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Km.indexOf(e),r=Km.slice(n+1).concat(Km.slice(0,n));return t?r.reverse():r}var zm={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function zz(e,t){if(N5(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var n=Gy(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=lh(r),a=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case zm.FLIP:s=[r,i];break;case zm.CLOCKWISE:s=H3(r);break;case zm.COUNTERCLOCKWISE:s=H3(r,!0);break;default:s=t.behavior}return s.forEach(function(c,d){if(r!==c||s.length===d+1)return e;r=e.placement.split("-")[0],i=lh(r);var h=e.offsets.popper,g=e.offsets.reference,v=Math.floor,$=r==="left"&&v(h.right)>v(g.left)||r==="right"&&v(h.left)<v(g.right)||r==="top"&&v(h.bottom)>v(g.top)||r==="bottom"&&v(h.top)<v(g.bottom),y=v(h.left)<v(n.left),P=v(h.right)>v(n.right),T=v(h.top)<v(n.top),R=v(h.bottom)>v(n.bottom),D=r==="left"&&y||r==="right"&&P||r==="top"&&T||r==="bottom"&&R,C=["top","bottom"].indexOf(r)!==-1,_=!!t.flipVariations&&(C&&a==="start"&&y||C&&a==="end"&&P||!C&&a==="start"&&T||!C&&a==="end"&&R),B=!!t.flipVariationsByContent&&(C&&a==="start"&&P||C&&a==="end"&&y||!C&&a==="start"&&R||!C&&a==="end"&&T),k=_||B;($||D||k)&&(e.flipped=!0,($||D)&&(r=s[d+1]),k&&(a=Kz(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Ji({},e.offsets.popper,B5(e.instance.popper,e.offsets.reference,e.placement)),e=V5(e.instance.modifiers,e,"flip"))}),e}function Uz(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,s=["top","bottom"].indexOf(i)!==-1,c=s?"right":"bottom",d=s?"left":"top",h=s?"width":"height";return n[c]<a(r[d])&&(e.offsets.popper[d]=a(r[d])-n[h]),n[d]>a(r[c])&&(e.offsets.popper[d]=a(r[c])),e}function Wz(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],s=i[2];if(!a)return e;if(s.indexOf("%")===0){var c=void 0;switch(s){case"%p":c=n;break;case"%":case"%r":default:c=r}var d=vs(c);return d[t]/100*a}else if(s==="vh"||s==="vw"){var h=void 0;return s==="vh"?h=Math.max(document.documentElement.clientHeight,window.innerHeight||0):h=Math.max(document.documentElement.clientWidth,window.innerWidth||0),h/100*a}else return a}function Hz(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,s=e.split(/(\+|\-)/).map(function(g){return g.trim()}),c=s.indexOf(lf(s,function(g){return g.search(/,|\s/)!==-1}));s[c]&&s[c].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var d=/\s*,\s*|\s+/,h=c!==-1?[s.slice(0,c).concat([s[c].split(d)[0]]),[s[c].split(d)[1]].concat(s.slice(c+1))]:[s];return h=h.map(function(g,v){var $=(v===1?!a:a)?"height":"width",y=!1;return g.reduce(function(P,T){return P[P.length-1]===""&&["+","-"].indexOf(T)!==-1?(P[P.length-1]=T,y=!0,P):y?(P[P.length-1]+=T,y=!1,P):P.concat(T)},[]).map(function(P){return Wz(P,$,t,n)})}),h.forEach(function(g,v){g.forEach(function($,y){Yy($)&&(i[v]+=$*(g[y-1]==="-"?-1:1))})}),i}function Gz(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,s=i.reference,c=r.split("-")[0],d=void 0;return Yy(+n)?d=[+n,0]:d=Hz(n,a,s,c),c==="left"?(a.top+=d[0],a.left-=d[1]):c==="right"?(a.top+=d[0],a.left+=d[1]):c==="top"?(a.left+=d[0],a.top-=d[1]):c==="bottom"&&(a.left+=d[0],a.top+=d[1]),e.popper=a,e}function qz(e,t){var n=t.boundariesElement||vl(e.instance.popper);e.instance.reference===n&&(n=vl(n));var r=qy("transform"),i=e.instance.popper.style,a=i.top,s=i.left,c=i[r];i.top="",i.left="",i[r]="";var d=Gy(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=s,i[r]=c,t.boundaries=d;var h=t.priority,g=e.offsets.popper,v={primary:function(y){var P=g[y];return g[y]<d[y]&&!t.escapeWithReference&&(P=Math.max(g[y],d[y])),bl({},y,P)},secondary:function(y){var P=y==="right"?"left":"top",T=g[P];return g[y]>d[y]&&!t.escapeWithReference&&(T=Math.min(g[P],d[y]-(y==="right"?g.width:g.height))),bl({},P,T)}};return h.forEach(function($){var y=["left","top"].indexOf($)!==-1?"primary":"secondary";g=Ji({},g,v[y]($))}),e.offsets.popper=g,e}function Yz(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,s=i.popper,c=["bottom","top"].indexOf(n)!==-1,d=c?"left":"top",h=c?"width":"height",g={start:bl({},d,a[d]),end:bl({},d,a[d]+a[h]-s[h])};e.offsets.popper=Ji({},s,g[r])}return e}function Zz(e){if(!z5(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=lf(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 Jz(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,s=["left","right"].indexOf(n)!==-1,c=["top","left"].indexOf(n)===-1;return i[s?"left":"top"]=a[n]-(c?i[s?"width":"height"]:0),e.placement=lh(t),e.offsets.popper=vs(i),e}var Xz={shift:{order:100,enabled:!0,fn:Yz},offset:{order:200,enabled:!0,fn:Gz,offset:0},preventOverflow:{order:300,enabled:!0,fn:qz,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Uz},arrow:{order:500,enabled:!0,fn:jz,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:zz,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Jz},hide:{order:800,enabled:!0,fn:Zz},computeStyle:{order:850,enabled:!0,fn:Nz,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:Iz,onLoad:Lz,gpuAcceleration:void 0}},Qz={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Xz},Bc=function(){function e(t,n){var r=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Cz(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=wz(this.update.bind(this)),this.options=Ji({},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(Ji({},e.Defaults.modifiers,i.modifiers)).forEach(function(s){r.options.modifiers[s]=Ji({},e.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return Ji({name:s},r.options.modifiers[s])}).sort(function(s,c){return s.order-c.order}),this.modifiers.forEach(function(s){s.enabled&&_5(s.onLoad)&&s.onLoad(r.reference,r.popper,r.options,s,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Sz(e,[{key:"update",value:function(){return Tz.call(this)}},{key:"destroy",value:function(){return _z.call(this)}},{key:"enableEventListeners",value:function(){return Rz.call(this)}},{key:"disableEventListeners",value:function(){return Mz.call(this)}}]),e}();Bc.Utils=(typeof window<"u"?window:global).PopperUtils;Bc.placements=U5;Bc.Defaults=Qz;var eU=["innerHTML","ownerDocument","style","attributes","nodeValue"],tU=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],nU=["bigint","boolean","null","number","string","symbol","undefined"];function Zh(e){var t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(rU(t))return t}function Sa(e){return function(t){return Zh(t)===e}}function rU(e){return tU.includes(e)}function Rl(e){return function(t){return typeof t===e}}function iU(e){return nU.includes(e)}function je(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(je.array(e))return"Array";if(je.plainFunction(e))return"Function";var t=Zh(e);return t||"Object"}je.array=Array.isArray;je.arrayOf=function(e,t){return!je.array(e)&&!je.function(t)?!1:e.every(function(n){return t(n)})};je.asyncGeneratorFunction=function(e){return Zh(e)==="AsyncGeneratorFunction"};je.asyncFunction=Sa("AsyncFunction");je.bigint=Rl("bigint");je.boolean=function(e){return e===!0||e===!1};je.date=Sa("Date");je.defined=function(e){return!je.undefined(e)};je.domElement=function(e){return je.object(e)&&!je.plainObject(e)&&e.nodeType===1&&je.string(e.nodeName)&&eU.every(function(t){return t in e})};je.empty=function(e){return je.string(e)&&e.length===0||je.array(e)&&e.length===0||je.object(e)&&!je.map(e)&&!je.set(e)&&Object.keys(e).length===0||je.set(e)&&e.size===0||je.map(e)&&e.size===0};je.error=Sa("Error");je.function=Rl("function");je.generator=function(e){return je.iterable(e)&&je.function(e.next)&&je.function(e.throw)};je.generatorFunction=Sa("GeneratorFunction");je.instanceOf=function(e,t){return!e||!t?!1:Object.getPrototypeOf(e)===t.prototype};je.iterable=function(e){return!je.nullOrUndefined(e)&&je.function(e[Symbol.iterator])};je.map=Sa("Map");je.nan=function(e){return Number.isNaN(e)};je.null=function(e){return e===null};je.nullOrUndefined=function(e){return je.null(e)||je.undefined(e)};je.number=function(e){return Rl("number")(e)&&!je.nan(e)};je.numericString=function(e){return je.string(e)&&e.length>0&&!Number.isNaN(Number(e))};je.object=function(e){return!je.nullOrUndefined(e)&&(je.function(e)||typeof e=="object")};je.oneOf=function(e,t){return je.array(e)?e.indexOf(t)>-1:!1};je.plainFunction=Sa("Function");je.plainObject=function(e){if(Zh(e)!=="Object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};je.primitive=function(e){return je.null(e)||iU(typeof e)};je.promise=Sa("Promise");je.propertyOf=function(e,t,n){if(!je.object(e)||!t)return!1;var r=e[t];return je.function(n)?n(r):je.defined(r)};je.regexp=Sa("RegExp");je.set=Sa("Set");je.string=Rl("string");je.symbol=Rl("symbol");je.undefined=Rl("undefined");je.weakMap=Sa("WeakMap");je.weakSet=Sa("WeakSet");function W5(e){return function(t){return typeof t===e}}var aU=W5("function"),oU=function(e){return e===null},G3=function(e){return Object.prototype.toString.call(e).slice(8,-1)==="RegExp"},q3=function(e){return!sU(e)&&!oU(e)&&(aU(e)||typeof e=="object")},sU=W5("undefined"),cv=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 uU(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;r--!==0;)if(!bi(e[r],t[r]))return!1;return!0}function lU(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 cU(e,t){var n,r,i,a;if(e.size!==t.size)return!1;try{for(var s=cv(e.entries()),c=s.next();!c.done;c=s.next()){var d=c.value;if(!t.has(d[0]))return!1}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var h=cv(e.entries()),g=h.next();!g.done;g=h.next()){var d=g.value;if(!bi(d[1],t.get(d[0])))return!1}}catch(v){i={error:v}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}return!0}function fU(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var i=cv(e.entries()),a=i.next();!a.done;a=i.next()){var s=a.value;if(!t.has(s[0]))return!1}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}function bi(e,t){if(e===t)return!0;if(e&&q3(e)&&t&&q3(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return uU(e,t);if(e instanceof Map&&t instanceof Map)return cU(e,t);if(e instanceof Set&&t instanceof Set)return fU(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return lU(e,t);if(G3(e)&&G3(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 a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!bi(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function dU(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(function(n){return je.string(n)||je.array(n)||je.plainObject(n)})}function hU(e,t,n){return H5(e,t)?[e,t].every(je.array)?!e.some(Q3(n))&&t.some(Q3(n)):[e,t].every(je.plainObject)?!Object.entries(e).some(X3(n))&&Object.entries(t).some(X3(n)):t===n:!1}function Y3(e,t,n){var r=n.actual,i=n.key,a=n.previous,s=n.type,c=Ga(e,i),d=Ga(t,i),h=[c,d].every(je.number)&&(s==="increased"?c<d:c>d);return je.undefined(r)||(h=h&&d===r),je.undefined(a)||(h=h&&c===a),h}function Z3(e,t,n){var r=n.key,i=n.type,a=n.value,s=Ga(e,r),c=Ga(t,r),d=i==="added"?s:c,h=i==="added"?c:s;if(!je.nullOrUndefined(a)){if(je.defined(d)){if(je.array(d)||je.plainObject(d))return hU(d,h,a)}else return bi(h,a);return!1}return[s,c].every(je.array)?!h.every(Zy(d)):[s,c].every(je.plainObject)?pU(Object.keys(d),Object.keys(h)):![s,c].every(function(g){return je.primitive(g)&&je.defined(g)})&&(i==="added"?!je.defined(s)&&je.defined(c):je.defined(s)&&!je.defined(c))}function J3(e,t,n){var r=n===void 0?{}:n,i=r.key,a=Ga(e,i),s=Ga(t,i);if(!H5(a,s))throw new TypeError("Inputs have different types");if(!dU(a,s))throw new TypeError("Inputs don't have length");return[a,s].every(je.plainObject)&&(a=Object.keys(a),s=Object.keys(s)),[a,s]}function X3(e){return function(t){var n=t[0],r=t[1];return je.array(e)?bi(e,r)||e.some(function(i){return bi(i,r)||je.array(r)&&Zy(r)(i)}):je.plainObject(e)&&e[n]?!!e[n]&&bi(e[n],r):bi(e,r)}}function pU(e,t){return t.some(function(n){return!e.includes(n)})}function Q3(e){return function(t){return je.array(e)?e.some(function(n){return bi(n,t)||je.array(t)&&Zy(t)(n)}):bi(e,t)}}function oc(e,t){return je.array(e)?e.some(function(n){return bi(n,t)}):bi(e,t)}function Zy(e){return function(t){return e.some(function(n){return bi(n,t)})}}function H5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.every(je.array)||e.every(je.number)||e.every(je.plainObject)||e.every(je.string)}function Ga(e,t){if(je.plainObject(e)||je.array(e)){if(je.string(t)){var n=t.split(".");return n.reduce(function(r,i){return r&&r[i]},e)}return je.number(t)?e[t]:e}return e}function mU(e,t){if([e,t].some(je.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(function(v){return je.plainObject(v)||je.array(v)}))throw new Error("Expected plain objects or array");var n=function(v,$){try{return Z3(e,t,{key:v,type:"added",value:$})}catch{return!1}},r=function(v,$,y){try{var P=Ga(e,v),T=Ga(t,v),R=je.defined($),D=je.defined(y);if(R||D){var C=D?oc(y,P):!oc($,P),_=oc($,T);return C&&_}return[P,T].every(je.array)||[P,T].every(je.plainObject)?!bi(P,T):P!==T}catch{return!1}},i=function(v,$,y){if(!je.defined(v))return!1;try{var P=Ga(e,v),T=Ga(t,v),R=je.defined(y);return oc($,P)&&(R?oc(y,T):!R)}catch{return!1}},a=function(v,$){return je.defined(v)?(process.env.NODE_ENV==="development"&&console.warn("`changedTo` is deprecated! Replace it with `change`"),r(v,$)):!1},s=function(v,$,y){if(!je.defined(v))return!1;try{return Y3(e,t,{key:v,actual:$,previous:y,type:"decreased"})}catch{return!1}},c=function(v){try{var $=J3(e,t,{key:v}),y=$[0],P=$[1];return!!y.length&&!P.length}catch{return!1}},d=function(v){try{var $=J3(e,t,{key:v}),y=$[0],P=$[1];return!y.length&&!!P.length}catch{return!1}},h=function(v,$,y){if(!je.defined(v))return!1;try{return Y3(e,t,{key:v,actual:$,previous:y,type:"increased"})}catch{return!1}},g=function(v,$){try{return Z3(e,t,{key:v,type:"removed",value:$})}catch{return!1}};return{added:n,changed:r,changedFrom:i,changedTo:a,decreased:s,emptied:c,filled:d,increased:h,removed:g}}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 Kn(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){Qr(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 cf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gU(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,q5(r.key),r)}}function ff(e,t,n){return t&&gU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qr(e,t,n){return t=q5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function df(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&&fv(e,t)}function ch(e){return ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ch(e)}function fv(e,t){return fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fv(e,t)}function vU(){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 yU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function G5(e,t){if(e==null)return{};var n=yU(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Co(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bU(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 Co(e)}function hf(e){var t=vU();return function(){var r=ch(e),i;if(t){var a=ch(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return bU(this,i)}}function $U(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 q5(e){var t=$U(e,"string");return typeof t=="symbol"?t:String(t)}var wU={flip:{padding:20},preventOverflow:{padding:10}},xU="The typeValidator argument must be a function with the signature function(props, propName, componentName).",EU="The error message is optional, but must be a string if provided.";function CU(e,t,n,r){return typeof e=="boolean"?e:typeof e=="function"?e(t,n,r):e?!!e:!1}function SU(e,t){return Object.hasOwnProperty.call(e,t)}function DU(e,t,n,r){return new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function AU(e,t){if(typeof e!="function")throw new TypeError(xU);if(t)throw new TypeError(EU)}function t$(e,t,n){return AU(e,n),function(r,i,a){for(var s=arguments.length,c=new Array(s>3?s-3:0),d=3;d<s;d++)c[d-3]=arguments[d];return CU(t,r,i,a)?SU(r,i)?e.apply(void 0,[r,i,a].concat(c)):DU(r,i,a):e.apply(void 0,[r,i,a].concat(c))}}var sn={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},sc=ls.createPortal!==void 0;function Ka(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Um(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function cd(e){var t=e.title,n=e.data,r=e.warn,i=r===void 0?!1:r,a=e.debug,s=a===void 0?!1:a,c=i?console.warn||console.error:console.log;s&&t&&n&&(console.groupCollapsed("%creact-floater: ".concat(t),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(function(d){je.plainObject(d)&&d.key?c.apply(console,[d.key,d.value]):c.apply(console,[d])}):c.apply(console,[n]),console.groupEnd())}function PU(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.addEventListener(t,n,r)}function TU(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;e.removeEventListener(t,n,r)}function _U(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i;i=function(s){n(s),TU(e,t,i)},PU(e,t,i,r)}function n$(){}var Y5=function(e){df(n,e);var t=hf(n);function n(){return cf(this,n),t.apply(this,arguments)}return ff(n,[{key:"componentDidMount",value:function(){Ka()&&(this.node||this.appendNode(),sc||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Ka()&&(sc||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!Ka()||!this.node||(sc||ls.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,a=i.id,s=i.zIndex;this.node||(this.node=document.createElement("div"),a&&(this.node.id=a),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Ka())return null;var i=this.props,a=i.children,s=i.setRef;if(this.node||this.appendNode(),sc)return ls.createPortal(a,this.node);var c=ls.unstable_renderSubtreeIntoContainer(this,a.length>1?S.createElement("div",null,a):a[0],this.node);return s(c),null}},{key:"renderReact16",value:function(){var i=this.props,a=i.hasChildren,s=i.placement,c=i.target;return a?this.renderPortal():c||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return sc?this.renderReact16():null}}]),n}(S.Component);Qr(Y5,"propTypes",{children:nt.oneOfType([nt.element,nt.array]),hasChildren:nt.bool,id:nt.oneOfType([nt.string,nt.number]),placement:nt.string,setRef:nt.func.isRequired,target:nt.oneOfType([nt.object,nt.string]),zIndex:nt.number});var Z5=function(e){df(n,e);var t=hf(n);function n(){return cf(this,n),t.apply(this,arguments)}return ff(n,[{key:"parentStyle",get:function(){var i=this.props,a=i.placement,s=i.styles,c=s.arrow.length,d={pointerEvents:"none",position:"absolute",width:"100%"};return a.startsWith("top")?(d.bottom=0,d.left=0,d.right=0,d.height=c):a.startsWith("bottom")?(d.left=0,d.right=0,d.top=0,d.height=c):a.startsWith("left")?(d.right=0,d.top=0,d.bottom=0):a.startsWith("right")&&(d.left=0,d.top=0),d}},{key:"render",value:function(){var i=this.props,a=i.placement,s=i.setArrowRef,c=i.styles,d=c.arrow,h=d.color,g=d.display,v=d.length,$=d.margin,y=d.position,P=d.spread,T={display:g,position:y},R,D=P,C=v;return a.startsWith("top")?(R="0,0 ".concat(D/2,",").concat(C," ").concat(D,",0"),T.bottom=0,T.marginLeft=$,T.marginRight=$):a.startsWith("bottom")?(R="".concat(D,",").concat(C," ").concat(D/2,",0 0,").concat(C),T.top=0,T.marginLeft=$,T.marginRight=$):a.startsWith("left")?(C=P,D=v,R="0,0 ".concat(D,",").concat(C/2," 0,").concat(C),T.right=0,T.marginTop=$,T.marginBottom=$):a.startsWith("right")&&(C=P,D=v,R="".concat(D,",").concat(C," ").concat(D,",0 0,").concat(C/2),T.left=0,T.marginTop=$,T.marginBottom=$),S.createElement("div",{className:"__floater__arrow",style:this.parentStyle},S.createElement("span",{ref:s,style:T},S.createElement("svg",{width:D,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("polygon",{points:R,fill:h}))))}}]),n}(S.Component);Qr(Z5,"propTypes",{placement:nt.string.isRequired,setArrowRef:nt.func.isRequired,styles:nt.object.isRequired});var kU=["color","height","width"];function J5(e){var t=e.handleClick,n=e.styles,r=n.color,i=n.height,a=n.width,s=G5(n,kU);return S.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},S.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},S.createElement("g",null,S.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}))))}J5.propTypes={handleClick:nt.func.isRequired,styles:nt.object.isRequired};function X5(e){var t=e.content,n=e.footer,r=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,c=e.title,d=e.styles,h={content:S.isValidElement(t)?t:S.createElement("div",{className:"__floater__content",style:d.content},t)};return c&&(h.title=S.isValidElement(c)?c:S.createElement("div",{className:"__floater__title",style:d.title},c)),n&&(h.footer=S.isValidElement(n)?n:S.createElement("div",{className:"__floater__footer",style:d.footer},n)),(s||a)&&!je.boolean(i)&&(h.close=S.createElement(J5,{styles:d.close,handleClick:r})),S.createElement("div",{className:"__floater__container",style:d.container},h.close,h.title,h.content,h.footer)}X5.propTypes={content:nt.node.isRequired,footer:nt.node,handleClick:nt.func.isRequired,open:nt.bool,positionWrapper:nt.bool.isRequired,showCloseButton:nt.bool.isRequired,styles:nt.object.isRequired,title:nt.node};var Q5=function(e){df(n,e);var t=hf(n);function n(){return cf(this,n),t.apply(this,arguments)}return ff(n,[{key:"style",get:function(){var i=this.props,a=i.disableAnimation,s=i.component,c=i.placement,d=i.hideArrow,h=i.status,g=i.styles,v=g.arrow.length,$=g.floater,y=g.floaterCentered,P=g.floaterClosing,T=g.floaterOpening,R=g.floaterWithAnimation,D=g.floaterWithComponent,C={};return d||(c.startsWith("top")?C.padding="0 0 ".concat(v,"px"):c.startsWith("bottom")?C.padding="".concat(v,"px 0 0"):c.startsWith("left")?C.padding="0 ".concat(v,"px 0 0"):c.startsWith("right")&&(C.padding="0 0 0 ".concat(v,"px"))),[sn.OPENING,sn.OPEN].indexOf(h)!==-1&&(C=Kn(Kn({},C),T)),h===sn.CLOSING&&(C=Kn(Kn({},C),P)),h===sn.OPEN&&!a&&(C=Kn(Kn({},C),R)),c==="center"&&(C=Kn(Kn({},C),y)),s&&(C=Kn(Kn({},C),D)),Kn(Kn({},$),C)}},{key:"render",value:function(){var i=this.props,a=i.component,s=i.handleClick,c=i.hideArrow,d=i.setFloaterRef,h=i.status,g={},v=["__floater"];return a?S.isValidElement(a)?g.content=S.cloneElement(a,{closeFn:s}):g.content=a({closeFn:s}):g.content=S.createElement(X5,this.props),h===sn.OPEN&&v.push("__floater__open"),c||(g.arrow=S.createElement(Z5,this.props)),S.createElement("div",{ref:d,className:v.join(" "),style:this.style},S.createElement("div",{className:"__floater__body"},g.content,g.arrow))}}]),n}(S.Component);Qr(Q5,"propTypes",{component:nt.oneOfType([nt.func,nt.element]),content:nt.node,disableAnimation:nt.bool.isRequired,footer:nt.node,handleClick:nt.func.isRequired,hideArrow:nt.bool.isRequired,open:nt.bool,placement:nt.string.isRequired,positionWrapper:nt.bool.isRequired,setArrowRef:nt.func.isRequired,setFloaterRef:nt.func.isRequired,showCloseButton:nt.bool,status:nt.string.isRequired,styles:nt.object.isRequired,title:nt.node});var eA=function(e){df(n,e);var t=hf(n);function n(){return cf(this,n),t.apply(this,arguments)}return ff(n,[{key:"render",value:function(){var i=this.props,a=i.children,s=i.handleClick,c=i.handleMouseEnter,d=i.handleMouseLeave,h=i.setChildRef,g=i.setWrapperRef,v=i.style,$=i.styles,y;if(a)if(S.Children.count(a)===1)if(!S.isValidElement(a))y=S.createElement("span",null,a);else{var P=je.function(a.type)?"innerRef":"ref";y=S.cloneElement(S.Children.only(a),Qr({},P,h))}else y=a;return y?S.createElement("span",{ref:g,style:Kn(Kn({},$),v),onClick:s,onMouseEnter:c,onMouseLeave:d},y):null}}]),n}(S.Component);Qr(eA,"propTypes",{children:nt.node,handleClick:nt.func.isRequired,handleMouseEnter:nt.func.isRequired,handleMouseLeave:nt.func.isRequired,setChildRef:nt.func.isRequired,setWrapperRef:nt.func.isRequired,style:nt.object,styles:nt.object.isRequired});var RU={zIndex:100};function FU(e){var t=va(RU,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 MU=["arrow","flip","offset"],OU=["position","top","right","bottom","left"],Jy=function(e){df(n,e);var t=hf(n);function n(r){var i;return cf(this,n),i=t.call(this,r),Qr(Co(i),"setArrowRef",function(a){i.arrowRef=a}),Qr(Co(i),"setChildRef",function(a){i.childRef=a}),Qr(Co(i),"setFloaterRef",function(a){i.floaterRef=a}),Qr(Co(i),"setWrapperRef",function(a){i.wrapperRef=a}),Qr(Co(i),"handleTransitionEnd",function(){var a=i.state.status,s=i.props.callback;i.wrapperPopper&&i.wrapperPopper.instance.update(),i.setState({status:a===sn.OPENING?sn.OPEN:sn.IDLE},function(){var c=i.state.status;s(c===sn.OPEN?"open":"close",i.props)})}),Qr(Co(i),"handleClick",function(){var a=i.props,s=a.event,c=a.open;if(!je.boolean(c)){var d=i.state,h=d.positionWrapper,g=d.status;(i.event==="click"||i.event==="hover"&&h)&&(cd({title:"click",data:[{event:s,status:g===sn.OPEN?"closing":"opening"}],debug:i.debug}),i.toggle())}}),Qr(Co(i),"handleMouseEnter",function(){var a=i.props,s=a.event,c=a.open;if(!(je.boolean(c)||Um())){var d=i.state.status;i.event==="hover"&&d===sn.IDLE&&(cd({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:i.debug}),clearTimeout(i.eventDelayTimeout),i.toggle())}}),Qr(Co(i),"handleMouseLeave",function(){var a=i.props,s=a.event,c=a.eventDelay,d=a.open;if(!(je.boolean(d)||Um())){var h=i.state,g=h.status,v=h.positionWrapper;i.event==="hover"&&(cd({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:i.debug}),c?[sn.OPENING,sn.OPEN].indexOf(g)!==-1&&!v&&!i.eventDelayTimeout&&(i.eventDelayTimeout=setTimeout(function(){delete i.eventDelayTimeout,i.toggle()},c*1e3)):i.toggle(sn.IDLE))}}),i.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:sn.INIT,statusWrapper:sn.INIT},i._isMounted=!1,i.hasMounted=!1,Ka()&&window.addEventListener("load",function(){i.popper&&i.popper.instance.update(),i.wrapperPopper&&i.wrapperPopper.instance.update()}),i}return ff(n,[{key:"componentDidMount",value:function(){if(Ka()){var i=this.state.positionWrapper,a=this.props,s=a.children,c=a.open,d=a.target;this._isMounted=!0,cd({title:"init",data:{hasChildren:!!s,hasTarget:!!d,isControlled:je.boolean(c),positionWrapper:i,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&d&&je.boolean(c)}}},{key:"componentDidUpdate",value:function(i,a){if(Ka()){var s=this.props,c=s.autoOpen,d=s.open,h=s.target,g=s.wrapperOptions,v=mU(a,this.state),$=v.changedFrom,y=v.changed;if(i.open!==d){var P;je.boolean(d)&&(P=d?sn.OPENING:sn.CLOSING),this.toggle(P)}(i.wrapperOptions.position!==g.position||i.target!==h)&&this.changeWrapperPosition(this.props),y("status",sn.IDLE)&&d?this.toggle(sn.OPEN):$("status",sn.INIT,sn.IDLE)&&c&&this.toggle(sn.OPEN),this.popper&&y("status",sn.OPENING)&&this.popper.instance.update(),this.floaterRef&&(y("status",sn.OPENING)||y("status",sn.CLOSING))&&_U(this.floaterRef,"transitionend",this.handleTransitionEnd),y("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Ka()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,c=this.props,d=c.disableFlip,h=c.getPopper,g=c.hideArrow,v=c.offset,$=c.placement,y=c.wrapperOptions,P=$==="top"||$==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if($==="center")this.setState({status:sn.IDLE});else if(a&&this.floaterRef){var T=this.options,R=T.arrow,D=T.flip,C=T.offset,_=G5(T,MU);new Bc(a,this.floaterRef,{placement:$,modifiers:Kn({arrow:Kn({enabled:!g,element:this.arrowRef},R),flip:Kn({enabled:!d,behavior:P},D),offset:Kn({offset:"0, ".concat(v,"px")},C)},_),onCreate:function(L){var X;if(i.popper=L,!((X=i.floaterRef)!==null&&X!==void 0&&X.isConnected)){i.setState({needsUpdate:!0});return}h(L,"floater"),i._isMounted&&i.setState({currentPlacement:L.placement,status:sn.IDLE}),$!==L.placement&&setTimeout(function(){L.instance.update()},1)},onUpdate:function(L){i.popper=L;var X=i.state.currentPlacement;i._isMounted&&L.placement!==X&&i.setState({currentPlacement:L.placement})}})}if(s){var B=je.undefined(y.offset)?0:y.offset;new Bc(this.target,this.wrapperRef,{placement:y.placement||$,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(B,"px")},flip:{enabled:!1}},onCreate:function(L){i.wrapperPopper=L,i._isMounted&&i.setState({statusWrapper:sn.IDLE}),h(L,"wrapper"),$!==L.placement&&setTimeout(function(){L.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var i=this;this.floaterRefInterval=setInterval(function(){var a;(a=i.floaterRef)!==null&&a!==void 0&&a.isConnected&&(clearInterval(i.floaterRefInterval),i.setState({needsUpdate:!1}),i.initPopper())},50)}},{key:"changeWrapperPosition",value:function(i){var a=i.target,s=i.wrapperOptions;this.setState({positionWrapper:s.position&&!!a})}},{key:"toggle",value:function(i){var a=this.state.status,s=a===sn.OPEN?sn.CLOSING:sn.OPENING;je.undefined(i)||(s=i),this.setState({status:s})}},{key:"debug",get:function(){var i=this.props.debug;return i||Ka()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var i=this.props,a=i.disableHoverToClick,s=i.event;return s==="hover"&&Um()&&!a?"click":s}},{key:"options",get:function(){var i=this.props.options;return va(wU,i||{})}},{key:"styles",get:function(){var i=this,a=this.state,s=a.status,c=a.positionWrapper,d=a.statusWrapper,h=this.props.styles,g=va(FU(h),h);if(c){var v;[sn.IDLE].indexOf(s)===-1||[sn.IDLE].indexOf(d)===-1?v=g.wrapperPosition:v=this.wrapperPopper.styles,g.wrapper=Kn(Kn({},g.wrapper),v)}if(this.target){var $=window.getComputedStyle(this.target);this.wrapperStyles?g.wrapper=Kn(Kn({},g.wrapper),this.wrapperStyles):["relative","static"].indexOf($.position)===-1&&(this.wrapperStyles={},c||(OU.forEach(function(y){i.wrapperStyles[y]=$[y]}),g.wrapper=Kn(Kn({},g.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 g}},{key:"target",get:function(){if(!Ka())return null;var i=this.props.target;return i?je.domElement(i)?i:document.querySelector(i):this.childRef||this.wrapperRef}},{key:"render",value:function(){var i=this.state,a=i.currentPlacement,s=i.positionWrapper,c=i.status,d=this.props,h=d.children,g=d.component,v=d.content,$=d.disableAnimation,y=d.footer,P=d.hideArrow,T=d.id,R=d.open,D=d.showCloseButton,C=d.style,_=d.target,B=d.title,k=S.createElement(eA,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},h),L={};return s?L.wrapperInPortal=k:L.wrapperAsChildren=k,S.createElement("span",null,S.createElement(Y5,{hasChildren:!!h,id:T,placement:a,setRef:this.setFloaterRef,target:_,zIndex:this.styles.options.zIndex},S.createElement(Q5,{component:g,content:v,disableAnimation:$,footer:y,handleClick:this.handleClick,hideArrow:P||a==="center",open:R,placement:a,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:D,status:c,styles:this.styles,title:B}),L.wrapperInPortal),L.wrapperAsChildren)}}]),n}(S.Component);Qr(Jy,"propTypes",{autoOpen:nt.bool,callback:nt.func,children:nt.node,component:t$(nt.oneOfType([nt.func,nt.element]),function(e){return!e.content}),content:t$(nt.node,function(e){return!e.component}),debug:nt.bool,disableAnimation:nt.bool,disableFlip:nt.bool,disableHoverToClick:nt.bool,event:nt.oneOf(["hover","click"]),eventDelay:nt.number,footer:nt.node,getPopper:nt.func,hideArrow:nt.bool,id:nt.oneOfType([nt.string,nt.number]),offset:nt.number,open:nt.bool,options:nt.object,placement:nt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:nt.bool,style:nt.object,styles:nt.object,target:nt.oneOfType([nt.object,nt.string]),title:nt.node,wrapperOptions:nt.shape({offset:nt.number,placement:nt.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:nt.bool})});Qr(Jy,"defaultProps",{autoOpen:!1,callback:n$,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:n$,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var IU=Object.defineProperty,LU=(e,t,n)=>t in e?IU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mt=(e,t,n)=>LU(e,typeof t!="symbol"?t+"":t,n),dn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},Yi={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"},jt={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Xt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function rs(){var e;return!!(typeof window<"u"&&((e=window.document)!=null&&e.createElement))}function tA(e){return e?e.getBoundingClientRect():null}function BU(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((a,s)=>a-s),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 To(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 VU(e){return!e||e.nodeType!==1?null:getComputedStyle(e)}function Vc(e,t,n){if(!e)return Ys();const r=A5(e);if(r){if(r.isSameNode(Ys()))return n?document:Ys();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",Ys()}return r}function pf(e,t){if(!e)return!1;const n=Vc(e,t);return n?!n.isSameNode(Ys()):!1}function NU(e){return e.offsetParent!==document.body}function $l(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=VU(e);return n==="BODY"||n==="HTML"?!1:r&&r.position===t?!0:e.parentNode?$l(e.parentNode,t):!1}function jU(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 KU(e,t,n){var r,i,a;const s=tA(e),c=Vc(e,n),d=pf(e,n),h=$l(e);let g=0,v=(r=s==null?void 0:s.top)!=null?r:0;if(d&&h){const $=(i=e==null?void 0:e.offsetTop)!=null?i:0,y=(a=c==null?void 0:c.scrollTop)!=null?a:0;v=$-y}else c instanceof HTMLElement&&(g=c.scrollTop,!d&&!$l(e)&&(v+=g),c.isSameNode(Ys())||(v+=Ys().scrollTop));return Math.floor(v-t)}function zU(e,t,n){var r;if(!e)return 0;const{offsetTop:i=0,scrollTop:a=0}=(r=A5(e))!=null?r:{};let s=e.getBoundingClientRect().top+a;i&&(pf(e,n)||NU(e))&&(s-=i);const c=Math.floor(s-t);return c<0?0:c}function Ys(){var e;return(e=document.scrollingElement)!=null?e:document.documentElement}function UU(e,t){const{duration:n,element:r}=t;return new Promise((i,a)=>{const{scrollTop:s}=r,c=e>s?e-s:s-e;tz.top(r,e,{duration:c<100?50:n},d=>d&&d.message!=="Element already at target scroll position"?a(d):i())})}var uc=ls.createPortal!==void 0;function nA(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 Dd(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function za(e,t={}){const{defaultValue:n,step:r,steps:i}=t;let a=_3(e);if(a)(a.includes("{step}")||a.includes("{steps}"))&&r&&i&&(a=a.replace("{step}",r.toString()).replace("{steps}",i.toString()));else if(S.isValidElement(e)&&!Object.values(e.props).length&&Dd(e.type)==="function"){const s=e.type({});a=za(s,t)}else a=_3(n);return a}function WU(e,t){return!ht.plainObject(e)||!ht.array(t)?!1:Object.keys(e).every(n=>t.includes(n))}function HU(e){const t=/^#?([\da-f])([\da-f])([\da-f])$/i,n=e.replace(t,(i,a,s,c)=>a+a+s+s+c+c),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 r$(e){return e.disableBeacon||e.placement==="center"}function i$(){return!["chrome","safari","firefox","opera"].includes(nA())}function ys({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(a=>{ht.plainObject(a)&&a.key?i.apply(console,[a.key,a.value]):i.apply(console,[a])}):i.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}function GU(e){return Object.keys(e)}function rA(e,...t){if(!ht.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 qU(e,...t){if(!ht.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 dv(e,t,n){const r=a=>a.replace("{step}",String(t)).replace("{steps}",String(n));if(Dd(e)==="string")return r(e);if(!S.isValidElement(e))return e;const{children:i}=e.props;if(Dd(i)==="string"&&i.includes("{step}"))return S.cloneElement(e,{children:r(i)});if(Array.isArray(i))return S.cloneElement(e,{children:i.map(a=>typeof a=="string"?r(a):dv(a,t,n))});if(Dd(e.type)==="function"&&!Object.values(e.props).length){const a=e.type({});return dv(a,t,n)}return e}function YU(e){const{isFirstStep:t,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:a,target:s}=e;return!a.disableScrolling&&(!t||i||n===jt.TOOLTIP)&&a.placement!=="center"&&(!a.isFixed||!$l(s))&&r!==n&&[jt.BEACON,jt.TOOLTIP].includes(n)}var ZU={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},iA={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},JU={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:iA,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},XU={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:[]},QU={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},lc={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},a$={borderRadius:4,position:"absolute"};function eW(e,t){var n,r,i,a,s;const{floaterProps:c,styles:d}=e,h=va((n=t.floaterProps)!=null?n:{},c??{}),g=va(d??{},(r=t.styles)!=null?r:{}),v=va(QU,g.options||{}),$=t.placement==="center"||t.disableBeacon;let{width:y}=v;window.innerWidth>480&&(y=380),"width"in v&&(y=typeof v.width=="number"&&window.innerWidth<v.width?window.innerWidth-30:v.width);const P={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:v.zIndex},T={beacon:{...lc,display:$?"none":"inline-block",height:v.beaconSize,position:"relative",width:v.beaconSize,zIndex:v.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:v.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(${HU(v.primaryColor).join(",")}, 0.2)`,border:`2px solid ${v.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:v.backgroundColor,borderRadius:5,boxSizing:"border-box",color:v.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:y},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:{...lc,backgroundColor:v.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...lc,color:v.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...lc,color:v.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...lc,color:v.textColor,fontSize:14},overlay:{...P,backgroundColor:v.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...P},overlayLegacyCenter:{...P,backgroundColor:v.overlayColor},spotlight:{...a$,backgroundColor:"gray"},spotlightLegacy:{...a$,boxShadow:`0 0 0 9999px ${v.overlayColor}, ${v.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(a=(i=h==null?void 0:h.styles)==null?void 0:i.arrow)==null?void 0:a.color)!=null?s:v.arrowColor},options:{zIndex:v.zIndex+100}},options:v};return va(T,g)}function tW(e){return qU(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Bu(e,t){var n,r,i,a,s,c;const d=t??{},h=va.all([JU,tW(e),d],{isMergeableObject:ht.plainObject}),g=eW(e,h),v=pf(To(h.target),h.disableScrollParentFix),$=va.all([ZU,(n=e.floaterProps)!=null?n:{},(r=h.floaterProps)!=null?r:{}]);return $.offset=h.offset,$.styles=va((i=$.styles)!=null?i:{},g.floaterStyles),$.offset+=(s=(a=e.spotlightPadding)!=null?a:h.spotlightPadding)!=null?s:0,h.placementBeacon&&$.wrapperOptions&&($.wrapperOptions.placement=h.placementBeacon),v&&$.options.preventOverflow&&($.options.preventOverflow.boundariesElement="window"),{...h,locale:va.all([iA,(c=e.locale)!=null?c:{},h.locale||{}]),floaterProps:$,styles:rA(g,"floaterStyles")}}function aA(e,t=!1){return ht.plainObject(e)?e.target?!0:(ys({title:"validateStep",data:"target is missing from the step",warn:!0,debug:t}),!1):(ys({title:"validateStep",data:"step must be an object",warn:!0,debug:t}),!1)}function o$(e,t=!1){return ht.array(e)?e.every(n=>aA(n,t)):(ys({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var oA={action:"init",controlled:!1,index:0,lifecycle:jt.INIT,origin:null,size:0,status:Xt.IDLE},s$=GU(rA(oA,"controlled","size")),nW=class{constructor(e){mt(this,"beaconPopper"),mt(this,"tooltipPopper"),mt(this,"data",new Map),mt(this,"listener"),mt(this,"store",new Map),mt(this,"addListener",i=>{this.listener=i}),mt(this,"setSteps",i=>{const{size:a,status:s}=this.getState(),c={size:i.length,status:s};this.data.set("steps",i),s===Xt.WAITING&&!a&&i.length&&(c.status=Xt.RUNNING),this.setState(c)}),mt(this,"getPopper",i=>i==="beacon"?this.beaconPopper:this.tooltipPopper),mt(this,"setPopper",(i,a)=>{i==="beacon"?this.beaconPopper=a:this.tooltipPopper=a}),mt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),mt(this,"close",(i=null)=>{const{index:a,status:s}=this.getState();s===Xt.RUNNING&&this.setState({...this.getNextState({action:dn.CLOSE,index:a+1,origin:i})})}),mt(this,"go",i=>{const{controlled:a,status:s}=this.getState();if(a||s!==Xt.RUNNING)return;const c=this.getSteps()[i];this.setState({...this.getNextState({action:dn.GO,index:i}),status:c?s:Xt.FINISHED})}),mt(this,"info",()=>this.getState()),mt(this,"next",()=>{const{index:i,status:a}=this.getState();a===Xt.RUNNING&&this.setState(this.getNextState({action:dn.NEXT,index:i+1}))}),mt(this,"open",()=>{const{status:i}=this.getState();i===Xt.RUNNING&&this.setState({...this.getNextState({action:dn.UPDATE,lifecycle:jt.TOOLTIP})})}),mt(this,"prev",()=>{const{index:i,status:a}=this.getState();a===Xt.RUNNING&&this.setState({...this.getNextState({action:dn.PREV,index:i-1})})}),mt(this,"reset",(i=!1)=>{const{controlled:a}=this.getState();a||this.setState({...this.getNextState({action:dn.RESET,index:0}),status:i?Xt.RUNNING:Xt.READY})}),mt(this,"skip",()=>{const{status:i}=this.getState();i===Xt.RUNNING&&this.setState({action:dn.SKIP,lifecycle:jt.INIT,status:Xt.SKIPPED})}),mt(this,"start",i=>{const{index:a,size:s}=this.getState();this.setState({...this.getNextState({action:dn.START,index:ht.number(i)?i:a},!0),status:s?Xt.RUNNING:Xt.WAITING})}),mt(this,"stop",(i=!1)=>{const{index:a,status:s}=this.getState();[Xt.FINISHED,Xt.SKIPPED].includes(s)||this.setState({...this.getNextState({action:dn.STOP,index:a+(i?1:0)}),status:Xt.PAUSED})}),mt(this,"update",i=>{var a,s;if(!WU(i,s$))throw new Error(`State is not valid. Valid keys: ${s$.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...i,action:(a=i.action)!=null?a:dn.UPDATE,origin:(s=i.origin)!=null?s:null},!0)})});const{continuous:t=!1,stepIndex:n,steps:r=[]}=e??{};this.setState({action:dn.INIT,controlled:ht.number(n),continuous:t,index:ht.number(n)?n:0,lifecycle:jt.INIT,origin:null,status:r.length?Xt.READY:Xt.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")||""}:{...oA}}getNextState(e,t=!1){var n,r,i,a,s;const{action:c,controlled:d,index:h,size:g,status:v}=this.getState(),$=ht.number(e.index)?e.index:h,y=d&&!t?h:Math.min(Math.max($,0),g);return{action:(n=e.action)!=null?n:c,controlled:d,index:y,lifecycle:(r=e.lifecycle)!=null?r:jt.INIT,origin:(i=e.origin)!=null?i:null,size:(a=e.size)!=null?a:g,status:y===g?Xt.FINISHED:(s=e.status)!=null?s:v}}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:a,origin:s=null,size:c,status:d}={...n,...e};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",a),this.store.set("origin",s),this.store.set("size",c),this.store.set("status",d),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 rW(e){return new nW(e)}function iW({styles:e}){return Ft.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var aW=iW,oW=class extends Ft.Component{constructor(){super(...arguments),mt(this,"isActive",!1),mt(this,"resizeTimeout"),mt(this,"scrollTimeout"),mt(this,"scrollParent"),mt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),mt(this,"hideSpotlight",()=>{const{continuous:e,disableOverlay:t,lifecycle:n}=this.props,r=[jt.INIT,jt.BEACON,jt.COMPLETE,jt.ERROR];return t||(e?r.includes(n):n!==jt.TOOLTIP)}),mt(this,"handleMouseMove",e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:a,width:s}=this.spotlightStyles,c=i==="fixed"?e.clientY:e.pageY,d=i==="fixed"?e.clientX:e.pageX,h=c>=a&&c<=a+n,v=d>=r&&d<=r+s&&h;v!==t&&this.updateState({mouseOverSpotlight:v})}),mt(this,"handleScroll",()=>{const{target:e}=this.props,t=To(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 $l(t,"sticky")&&this.updateState({})}),mt(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=To(r);this.scrollParent=Vc(i??document.body,n,!0),this.isActive=!0,process.env.NODE_ENV!=="production"&&!t&&pf(i,!0)&&ys({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:a}=this.props,{changed:s}=sh(e,this.props);if(s("target")||s("disableScrollParentFix")){const c=To(a);this.scrollParent=Vc(c??document.body,n,!0)}s("lifecycle",jt.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:c}=this.state;c||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===jt.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==jt.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 i$()&&(i=n==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:t?"default":"pointer",height:BU(),pointerEvents:e?"none":"auto",...i}}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:a,spotlightPadding:s=0,styles:c,target:d}=this.props,h=To(d),g=tA(h),v=$l(h),$=KU(h,s,i);return{...i$()?c.spotlightLegacy:c.spotlight,height:Math.round(((e=g==null?void 0:g.height)!=null?e:0)+s*2),left:Math.round(((t=g==null?void 0:g.left)!=null?t:0)-s),opacity:r?1:0,pointerEvents:a?"none":"auto",position:v?"fixed":"absolute",top:$,transition:"opacity 0.2s",width:Math.round(((n=g==null?void 0:g.width)!=null?n:0)+s*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:a}=this;if(r())return null;let s=n!=="center"&&e&&Ft.createElement(aW,{styles:a});if(nA()==="safari"){const{mixBlendMode:c,zIndex:d,...h}=i;s=Ft.createElement("div",{style:{...h}},s),delete i.backgroundColor}return Ft.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:t,role:"presentation",style:i},s)}},sW=class extends Ft.Component{constructor(){super(...arguments),mt(this,"node",null)}componentDidMount(){const{id:e}=this.props;rs()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),uc||this.renderReact15())}componentDidUpdate(){rs()&&(uc||this.renderReact15())}componentWillUnmount(){!rs()||!this.node||(uc||fd.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!rs())return;const{children:e}=this.props;this.node&&fd.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!rs()||!uc)return null;const{children:e}=this.props;return this.node?fd.createPortal(e,this.node):null}render(){return uc?this.renderReact16():null}},uW=class{constructor(e,t){if(mt(this,"element"),mt(this,"options"),mt(this,"canBeTabbed",n=>{const{tabIndex:r}=n;return r===null||r<0?!1:this.canHaveFocus(n)}),mt(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)}),mt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),mt(this,"handleKeyDown",n=>{const{code:r="Tab"}=this.options;n.code===r&&this.interceptTab(n)}),mt(this,"interceptTab",n=>{n.preventDefault();const r=this.findValidTabElements(),{shiftKey:i}=n;if(!r.length)return;let a=document.activeElement?r.indexOf(document.activeElement):0;a===-1||!i&&a+1===r.length?a=0:i&&a===0?a=r.length-1:a+=i?-1:1,r[a].focus()}),mt(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"}),mt(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}),mt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),mt(this,"checkFocus",n=>{document.activeElement!==n&&(n.focus(),window.requestAnimationFrame(()=>this.checkFocus(n)))}),mt(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()}},lW=class extends Ft.Component{constructor(e){if(super(e),mt(this,"beacon",null),mt(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(`
|
|
208
|
+
@keyframes joyride-beacon-inner {
|
|
209
|
+
20% {
|
|
210
|
+
opacity: 0.9;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
90% {
|
|
214
|
+
opacity: 0.7;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@keyframes joyride-beacon-outer {
|
|
219
|
+
0% {
|
|
220
|
+
transform: scale(1);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
45% {
|
|
224
|
+
opacity: 0.7;
|
|
225
|
+
transform: scale(0.75);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
100% {
|
|
229
|
+
opacity: 0.9;
|
|
230
|
+
transform: scale(1);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ht.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ht.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:a,size:s,step:c,styles:d}=this.props,h=za(i.open),g={"aria-label":h,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:h};let v;if(e){const $=e;v=Ft.createElement($,{continuous:t,index:n,isLastStep:r,size:s,step:c,...g})}else v=Ft.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:d.beacon,type:"button",...g},Ft.createElement("span",{style:d.beaconInner}),Ft.createElement("span",{style:d.beaconOuter}));return v}};function cW({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return S.createElement("button",{style:a,type:"button",...t},S.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"},S.createElement("g",null,S.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 fW=cW;function dW(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:s,step:c,tooltipProps:d}=e,{content:h,hideBackButton:g,hideCloseButton:v,hideFooter:$,showSkipButton:y,styles:P,title:T}=c,R={};return R.primary=Ft.createElement("button",{"data-test-id":"button-primary",style:P.buttonNext,type:"button",...a}),y&&!i&&(R.skip=Ft.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:P.buttonSkip,type:"button",...s})),!g&&r>0&&(R.back=Ft.createElement("button",{"data-test-id":"button-back",style:P.buttonBack,type:"button",...t})),R.close=!v&&Ft.createElement(fW,{"data-test-id":"button-close",styles:P.buttonClose,...n}),Ft.createElement("div",{key:"JoyrideTooltip","aria-label":za(T??h),className:"react-joyride__tooltip",style:P.tooltip,...d},Ft.createElement("div",{style:P.tooltipContainer},T&&Ft.createElement("h1",{"aria-label":za(T),style:P.tooltipTitle},T),Ft.createElement("div",{style:P.tooltipContent},h)),!$&&Ft.createElement("div",{style:P.tooltipFooter},Ft.createElement("div",{style:P.tooltipFooterSpacer},R.skip),R.back,R.primary),R.close)}var hW=dW,pW=class extends Ft.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{back:s,close:c,last:d,next:h,nextLabelWithProgress:g,skip:v}=a.locale,$=za(s),y=za(c),P=za(d),T=za(h),R=za(v);let D=c,C=y;if(e){if(D=h,C=T,a.showProgress&&!n){const _=za(g,{step:t+1,steps:i});D=dv(g,t+1,i),C=_}n&&(D=d,C=P)}return{backProps:{"aria-label":$,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:$},closeProps:{"aria-label":y,children:c,"data-action":"close",onClick:this.handleClickClose,role:"button",title:y},primaryProps:{"aria-label":C,children:D,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":R,children:v,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:R},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{beaconComponent:s,tooltipComponent:c,...d}=a;let h;if(c){const g={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:d,setTooltipRef:r},v=c;h=Ft.createElement(v,{...g})}else h=Ft.createElement(hW,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return h}},mW=class extends Ft.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:jt.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:a,store:s}=this.props;t==="wrapper"?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||a.placement==="center")&&i===jt.INIT&&s.update({action:r,lifecycle:jt.READY}),(n=a.floaterProps)!=null&&n.getPopper&&a.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:a}=this.props;return Ft.createElement(pW,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ys({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:a,debug:s,helpers:c,index:d,lifecycle:h,shouldScroll:g,status:v,step:$,store:y}=this.props,{changed:P,changedFrom:T}=sh(e,this.props),R=c.info(),D=i&&n!==dn.CLOSE&&(d>0||n===dn.PREV),C=P("action")||P("index")||P("lifecycle")||P("status"),_=T("lifecycle",[jt.TOOLTIP,jt.INIT],jt.INIT),B=P("action",[dn.NEXT,dn.PREV,dn.SKIP,dn.CLOSE]),k=a&&d===e.index;if(B&&(_||k)&&r({...R,index:e.index,lifecycle:jt.COMPLETE,step:e.step,type:Yi.STEP_AFTER}),$.placement==="center"&&v===Xt.RUNNING&&P("index")&&n!==dn.START&&h===jt.INIT&&y.update({lifecycle:jt.READY}),C){const L=To($.target),X=!!L;X&&jU(L)?(T("status",Xt.READY,Xt.RUNNING)||T("lifecycle",jt.INIT,jt.READY))&&r({...R,step:$,type:Yi.STEP_BEFORE}):(console.warn(X?"Target not visible":"Target not mounted",$),r({...R,type:Yi.TARGET_NOT_FOUND,step:$}),a||y.update({index:d+(n===dn.PREV?-1:1)}))}T("lifecycle",jt.INIT,jt.READY)&&y.update({lifecycle:r$($)||D?jt.TOOLTIP:jt.BEACON}),P("index")&&ys({title:`step:${h}`,data:[{key:"props",value:this.props}],debug:s}),P("lifecycle",jt.BEACON)&&r({...R,step:$,type:Yi.BEACON}),P("lifecycle",jt.TOOLTIP)&&(r({...R,step:$,type:Yi.TOOLTIP}),g&&this.tooltip&&(this.scope=new uW(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),T("lifecycle",[jt.TOOLTIP,jt.INIT],jt.INIT)&&((t=this.scope)==null||t.removeScope(),y.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return r$(t)||e===jt.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:s}=this.props,c=To(s.target);return!aA(s)||!ht.domElement(c)?null:Ft.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},Ft.createElement(Jy,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},Ft.createElement(lW,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:s,styles:s.styles})))}},sA=class extends Ft.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",s=>{const{callback:c}=this.props;ht.function(c)&&c(s)}),mt(this,"handleKeyboard",s=>{const{index:c,lifecycle:d}=this.state,{steps:h}=this.props,g=h[c];d===jt.TOOLTIP&&s.code==="Escape"&&g&&!g.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:c}=this.props;Bu(this.props,c[s]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=rW({...e,controlled:r&&ht.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;ys({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!rs())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;o$(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!rs())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:s,run:c,stepIndex:d,steps:h}=this.props,{stepIndex:g,steps:v}=e,{reset:$,setSteps:y,start:P,stop:T,update:R}=this.store,{changed:D}=sh(e,this.props),{changed:C,changedFrom:_}=sh(t,this.state),B=Bu(this.props,h[i]),k=!ui(v,h),L=ht.number(d)&&D("stepIndex"),X=To(B.target);if(k&&(o$(h,s)?y(h):console.warn("Steps are not valid",h)),D("run")&&(c?P(d):T()),L){let te=ht.number(g)&&g<d?dn.NEXT:dn.PREV;n===dn.STOP&&(te=dn.START),[Xt.FINISHED,Xt.SKIPPED].includes(a)||R({action:n===dn.CLOSE?dn.CLOSE:te,index:d,lifecycle:jt.INIT})}!r&&a===Xt.RUNNING&&i===0&&!X&&(this.store.update({index:i+1}),this.callback({...this.state,type:Yi.TARGET_NOT_FOUND,step:B}));const F={...this.state,index:i,step:B};if(C("action",[dn.NEXT,dn.PREV,dn.SKIP,dn.CLOSE])&&C("status",Xt.PAUSED)){const te=Bu(this.props,h[t.index]);this.callback({...F,index:t.index,lifecycle:jt.COMPLETE,step:te,type:Yi.STEP_AFTER})}if(C("status",[Xt.FINISHED,Xt.SKIPPED])){const te=Bu(this.props,h[t.index]);r||this.callback({...F,index:t.index,lifecycle:jt.COMPLETE,step:te,type:Yi.STEP_AFTER}),this.callback({...F,type:Yi.TOUR_END,step:te,index:t.index}),$()}else _("status",[Xt.IDLE,Xt.READY],Xt.RUNNING)?this.callback({...F,type:Yi.TOUR_START}):(C("status")||C("action",dn.RESET))&&this.callback({...F,type:Yi.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:a=!1,scrollDuration:s,scrollOffset:c=20,scrollToFirstStep:d=!1,steps:h}=this.props,g=Bu(this.props,h[t]),v=To(g.target),$=YU({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:d,step:g,target:v});if(r===Xt.RUNNING&&$){const y=pf(v,a),P=Vc(v,a);let T=Math.floor(zU(v,c,a))||0;ys({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const R=this.store.getPopper("beacon"),D=this.store.getPopper("tooltip");if(n===jt.BEACON&&R){const{offsets:C,placement:_}=R;!["bottom"].includes(_)&&!y&&(T=Math.floor(C.popper.top-c))}else if(n===jt.TOOLTIP&&D){const{flipped:C,offsets:_,placement:B}=D;["top","right","left"].includes(B)&&!C&&!y?T=Math.floor(_.popper.top-c):T-=g.spotlightPadding}T=T>=0?T:0,r===Xt.RUNNING&&UU(T,{element:P,duration:s}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!rs())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:s=!1,steps:c}=this.props,d=n===Xt.RUNNING,h={};if(d&&c[e]){const g=Bu(this.props,c[e]);h.step=Ft.createElement(mW,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!g.disableScrolling&&(e!==0||s),step:g,store:this.store}),h.overlay=Ft.createElement(sW,{id:"react-joyride-portal"},Ft.createElement(oW,{...g,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return Ft.createElement("div",{className:"react-joyride"},h.step,h.overlay)}};mt(sA,"defaultProps",XU);var gW=sA;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=_S;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=Cw;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=qc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=RM;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=Pr;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=UO;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=PS;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=ni;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=q9;exports.$293f70390ea03370$export$497855f14858aa34=BO;exports.$32489daedd52963e$export$1315d136e6f7581=ZO;exports.$337b884510726a0d$export$c6fdb837b070b4ff=xO;exports.$36a0ac60f04457c5$export$136073280381448e=B9;exports.$3c0fc76039f1c516$export$60e84778edff6d26=g2;exports.$40df3f8667284809$export$d55e7ee900f34e93=e8;exports.$46a4342aab3d8076$export$87e0539f600c24e5=O9;exports.$47b897dc8cdb026b$export$8d15029008292ae=X9;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=Z9;exports.$6057a3d2a53a12fd$export$42df105a73306d51=HO;exports.$64244302c3013299$export$dd0bbc9b26defe37=m9;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=T9;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=QO;exports.$93c38a5e28be6249$export$e50a61c1de9f574=$8;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=M9;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=t8;exports.$a916eb452884faea$export$b7a616150fdb9f44=P9;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=s8;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=h8;exports.$bb77f239b46e8c72$export$3274cf84b703fff=ex;exports.$bcca50147b47f54d$export$56b2c08e277f365=J9;exports.$c132121280ec012d$export$50eacbbf140a3141=_O;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=RO;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=KO;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=I9;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=w8;exports.$f2f8a6077418541e$export$542a6fd13ac93354=bO;exports.$fae977aafc393c5c$export$6b862160d295c8e=UM;exports.ACTIONS=dn;exports.AdvancedImage=oB;exports.Cloudinary=tV;exports.EVENTS=Yi;exports.LazyMotion=IK;exports.Lottie=sV;exports.M=rF;exports.M$1=ma;exports.R=hu;exports.STATUS=Xt;exports._=WR;exports.autoUpdate=W$;exports.components_default=gW;exports.domAnimation=LK;exports.dt=F$;exports.ee=b2;exports.flip=KR;exports.lazyload=PL;exports.lodashExports=Y$;exports.lt=yv;exports.m=OK;exports.mt=sR;exports.nt=iR;exports.offset=jR;exports.ot=aR;exports.placeholder=RL;exports.prismExports=rV;exports.q=Zv;exports.useFloating=NR;
|